Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

creating delivery from PO

I have tried two different function modules to create delivery from PO

BAPI_DELIVERYPROCESSING_EXEC

W_FRM_DELIVERY_CREATE_GENERAL

Both of them have the same problem. When I provide more than one line item they create more than one delivery. What could I be doing wrong.

  ls_request-document_type      = 'B'.
  ls_request-document_numb      = p_vbeln.
  ls_request-document_item      = 000010.
  ls_request-quantity_sales_uom = p_lfimg.
  ls_request-date_usage         = p_datvw.
  ls_request-date               = p_date.
  ls_request-time               = p_time.
 
  APPEND ls_request TO lt_request.
 
ls_request-document_type      = 'B'.
  ls_request-document_numb      = p_vbeln.
  ls_request-document_item      = 000020.
  ls_request-quantity_sales_uom = p_lfimg.
  ls_request-date_usage         = p_datvw.
  ls_request-date               = p_date.
  ls_request-time               = p_time.
 
  APPEND ls_request TO lt_request.
  CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
      request                 = lt_request.

Message was edited by:

Megan Flores

Tags:
Former Member
replied

Hi,

I never had with two lines item ... can you add both quantities and create only one line? Just my two cents.

Regards,

Ferry Lianto

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question