Skip to Content

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

Planned order creation: BAPI

Hi

I trying to create planned orders using BAPI_PLANNEDORDER_CREATE but are unsuccessful.

I only filled/completed the header data. Do i have to fill the component and capacity data to successfully create the planned order?

 CALL FUNCTION 'BAPI_PLANNEDORDER_CREATE'                  
   EXPORTING                                               
     headerdata                       = l_headerdata            
   IMPORTING                                               
     return                               = l_return                
     plannedorder                     = l_plannedorder          
     createdheaderdata             = l_createdheaderdata     
     capacityheaderdata1          = l_capacityheaderdata1
   TABLES                                                  
     componentsdata                = i_componentsdata        
     createdcomponentsdata     = i_createdcomponentsdata 
     capacitydata1                    = i_capacitydata1.        
                                                           
 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'                   
  EXPORTING                                                
     WAIT          =  'X'.                                 

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question