BAPI_DELIVERYPROCESSING_EXEC创建交货单
1 DATA: lt_request TYPE STANDARD TABLE OF bapideliciousrequest WITH HEADER LINE. 2 DATA: lt_created TYPE STANDARD TABLE OF bapideliciouscreateditems WITH HEADER LINE. 3 DATA: lt_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE. 4 5 lt_request-document_numb = '5610000002'. 6 lt_request-document_item = '000010'. 7 lt_request-quantity_sales_uom = 2. 8 lt_request-document_type = 'A'. 9 lt_request-delivery_date = sy-datum. 10 APPEND lt_request. 11 12 CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC' 13 TABLES 14 request = lt_request 15 createditems = lt_created 16 return = lt_return.
交货单创建成功后,可以在 createditems 返回的数据查看到生成的交货单号。