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: 

Credit memo request problem using

Former Member
0 Kudos

Dear All,

I am creating credit memo request using SD_SALESDOCUMENT_CREATE, I am facing problems in this

1> Quatity field is empty in the SO(TARGET_QTY)

2> The credit memo is always being created with negative value, which should not be the case

Note: I am passing manual condition type in condition type where calculation type is B(fixed value).

Can anyone suggest me why is it creating Credit memo request with (-)ve value always.

Thanks and regards,

Kapil Shiavaji Sonavane

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

For the first question..

Did you populate the field <b>target_qty</b> in the parameter SALES_ITEMS_IN.

Also you have to pass X parameter SALES_ITEMS_INX.

Thanks,

Naren

3 REPLIES 3

Former Member
0 Kudos

Hi,

For the first question..

Did you populate the field <b>target_qty</b> in the parameter SALES_ITEMS_IN.

Also you have to pass X parameter SALES_ITEMS_INX.

Thanks,

Naren

0 Kudos

Naren,

1> I have already used that, see the following code.

for SALES_ITEMS_INX

LOOP AT T_BAPISDITM1.

T_BAPISDITMX-ITM_NUMBER = T_BAPISDITM1-ITM_NUMBER.

  • T_BAPISDITMX-UPDATEFLAG = 'X'.

T_BAPISDITMX-TARGET_QTY = 'X'.

T_BAPISDITMX-TARGET_QU = 'X'.

APPEND T_BAPISDITMX.

ENDLOOP.

But still Quantity is blank.

2> Created Credit memo request is coming in (-)ve value this is major problem for me.

0 Kudos

Hi All,

The problem got solved. (-)ve sign is because of config for credit memo condition type which I was using.

Thanks