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: 

creating sales order with variant configuration

Former Member
0 Kudos

im creating a sales order with variant configuration

im using bapi

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
* SALESDOCUMENTIN =
      order_header_in = ls_header_in
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
      BEHAVE_WHEN_ERROR = 'P'
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
    IMPORTING
      salesdocument = ev_salesorder
    TABLES
      return = et_return
      order_items_in = lt_item
      ORDER_ITEMS_INX = lt_itemx
      order_partners = lt_bapiparnr
      ORDER_SCHEDULES_IN = lt_schedules
      ORDER_SCHEDULES_INX = lt_schedulesx
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
      ORDER_CFGS_REF = lt_sales_cfgs_ref
      ORDER_CFGS_INST = lt_sales_cfgs_inst
* ORDER_CFGS_PART_OF =
      ORDER_CFGS_VALUE = lt_sales_cfgs_value
* ORDER_CFGS_BLOB =
      ORDER_CFGS_VK = lt_sales_cfgs_vk
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
* EXTENSIONEX =


.

will anyone please say how should fill the structure of table parameter of related to configuration.

anyone worked on this please let me know thanks advance.

1 ACCEPTED SOLUTION

gregorw
Active Contributor
0 Kudos
5 REPLIES 5

matt
Active Contributor

When you post code please use the "code" button in the editor. Also, when you paste from an ABAP editor, use right-click "Paste as plain text".

I've done it for you this time. See how much easier it is to read?

srikanthnalluri
Active Participant
0 Kudos

seems below FMs (From Where Used-List:) are passing the variant configuration, please check those FMs.

1. DPVMSRFC02_FCSO01_EXECUTE

2. VELO11_CUOR_EXECUTE

gregorw
Active Contributor
0 Kudos

Former Member
0 Kudos

Thanku sir

gregorw
Active Contributor
0 Kudos

The best way to say thank you is to click on "Accept" for the answer.