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

Pass return reason in SD_SALESDOCUMENT_CREATE

0 Likes
1,841

Hi All,

I searched many thread but unfortunately, I couldn't find the answer.

I am using BAPI SD_SALESDOCUMENT_CREATE for creating return order.

My question is where we need to pass the return reason in SD_SALESDOCUMENT_CREATE.

Note : I can't change my BAPI at this moment.

Please help me.

Regards,

Shweta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,449

Shweta,

you need to use Extension for return reason in item level. Also you have to append MSR_RET_REASON field in BAPE_VBAP, BAPE_VBAPX, VBAPKOM, VBAPKOMX, VBAPKOZ & VBAPKOZX structures.

then you have to pass the values for MSR_RET_REASON value in Extension which needs to be passed FM.

Regards,

Ritwik

Hi All,

I searched many thread but unfortunately, I couldn't find the answer.

I am using BAPI SD_SALESDOCUMENT_CREATE for creating return order.

My question is where we need to pass the return reason in SD_SALESDOCUMENT_CREATE.

Note : I can't change my BAPI at this moment.

Please help me.

Regards,

Shweta

2 REPLIES 2
Read only

Former Member
0 Likes
1,449

Hello Shweta,

you can pass reason of return in Tables paramter in SALES_ITEM_IN in Field REASON_REJ.

Hope it is helpful.

Read only

Former Member
0 Likes
1,450

Shweta,

you need to use Extension for return reason in item level. Also you have to append MSR_RET_REASON field in BAPE_VBAP, BAPE_VBAPX, VBAPKOM, VBAPKOMX, VBAPKOZ & VBAPKOZX structures.

then you have to pass the values for MSR_RET_REASON value in Extension which needs to be passed FM.

Regards,

Ritwik