Application Development and Automation 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: 
Read only

BAPI for SD-Sales Order

Former Member
0 Likes
681

Hi,

In my sales order bapi.BAPI_SALESORDER_CREATEFROMDAT2

it showing following output..

E VP 112 Please enter sold-to party or ship-to party

E V4 219 Sales document 0005000011 was not changed

even though i applied Ship to party and sold to party...

How to solve this..?

Point assurd..

see below my FM.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

salesdocumentin = p_vbeln

order_header_in = it_header

order_header_inx = headerx

  • SENDER =

  • BINARY_RELATIONSHIPTYPE =

  • INT_NUMBER_ASSIGNMENT =

  • BEHAVE_WHEN_ERROR =

  • LOGIC_SWITCH =

  • TESTRUN =

  • CONVERT = ' '

IMPORTING

SALESDOCUMENT = get_vbeln

TABLES

return = return

order_items_in = it_item

order_items_inx = itemx

order_partners = partner

order_schedules_in = lt_schedules_in

order_schedules_inx = lt_schedules_inx

  • ORDER_CONDITIONS_IN =

  • ORDER_CONDITIONS_INX =

  • ORDER_CFGS_REF =

  • ORDER_CFGS_INST =

  • ORDER_CFGS_PART_OF =

  • ORDER_CFGS_VALUE =

  • ORDER_CFGS_BLOB =

  • ORDER_CFGS_VK =

  • ORDER_CFGS_REFINST =

  • ORDER_CCARD =

  • ORDER_TEXT =

  • ORDER_KEYS =

  • EXTENSIONIN =

  • PARTNERADDRESSES =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

Hi,

In my sales order bapi.BAPI_SALESORDER_CREATEFROMDAT2

it showing following output..

E VP 112 Please enter sold-to party or ship-to party

E V4 219 Sales document 0005000011 was not changed

even though i applied Ship to party and sold to party...

How to solve this..?

Point assurd..

see below my FM.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

salesdocumentin = p_vbeln

order_header_in = it_header

order_header_inx = headerx

  • SENDER =

  • BINARY_RELATIONSHIPTYPE =

  • INT_NUMBER_ASSIGNMENT =

  • BEHAVE_WHEN_ERROR =

  • LOGIC_SWITCH =

  • TESTRUN =

  • CONVERT = ' '

IMPORTING

SALESDOCUMENT = get_vbeln

TABLES

return = return

order_items_in = it_item

order_items_inx = itemx

order_partners = partner

order_schedules_in = lt_schedules_in

order_schedules_inx = lt_schedules_inx

  • ORDER_CONDITIONS_IN =

  • ORDER_CONDITIONS_INX =

  • ORDER_CFGS_REF =

  • ORDER_CFGS_INST =

  • ORDER_CFGS_PART_OF =

  • ORDER_CFGS_VALUE =

  • ORDER_CFGS_BLOB =

  • ORDER_CFGS_VK =

  • ORDER_CFGS_REFINST =

  • ORDER_CCARD =

  • ORDER_TEXT =

  • ORDER_KEYS =

  • EXTENSIONIN =

  • PARTNERADDRESSES =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

5 REPLIES 5
Read only

Former Member
0 Likes
643

Hi,

Use CONVERSION_EXIT_ALPHA_INPUT before passing the SOLD TO PARTY and SHIP TO PARTY to BAPI.

FOR sold to use PARVW = AG .

For Shipt to Use PARVW = WE or SH.

Regards

Kannaiah

Read only

Former Member
0 Likes
643

Make sure the headerx is updated

Read only

b_deterd2
Active Contributor
0 Likes
643

Hi,

Did you set the right partner roles: AG, RE, RG and WE ?

Regards,

Bert

Read only

Former Member
0 Likes
643
Read only

Former Member
0 Likes
643

thanks to all.