Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for variant configuration

Former Member
0 Kudos

Hi all,

I need a BAPI which loads Variant configuration information in sales order. I beleive BAPI_SALESORDER_CREATEFROMDAT2 can be used for this purpose, but I need help in finding the required structures and the fields that need to be used for this purpose. Can any one provide me the information ASAP?

Regards,

Asha.

1 REPLY 1

Former Member
0 Kudos

Please use FM BAPISDORDER_GETDETAILEDLIST to understand what structures need to be filled for VC.

Example code:

ls_view-header = 'X'.

ls_view-item = 'X'.

ls_view-sdschedule = 'X'.

ls_view-configure = 'X'.

ls_view-text = 'X'.

call function 'BAPISDORDER_GETDETAILEDLIST'

exporting

i_bapi_view = ls_view

tables

sales_documents = lt_docin

order_headers_out = lt_hdrout

order_items_out = lt_itmout

order_schedules_out = lt_schout

  • order_partners_out = lt_prtout

order_textheaders_out = lt_hdtxt

order_textlines_out = lt_txtli

order_cfgs_cucfgs_out = lt_cucfgout

order_cfgs_cuvals_out = lt_cuvalout

extensionout = lt_parex.