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: 

Pass return reason in SD_SALESDOCUMENT_CREATE

0 Kudos

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

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hello Shweta,

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

Hope it is helpful.

Former Member
0 Kudos

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