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

Credit memo request problem using

Former Member
0 Likes
531

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
Read only

Former Member
0 Likes
498

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
Read only

Former Member
0 Likes
499

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

Read only

0 Likes
498

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.

Read only

0 Likes
498

Hi All,

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

Thanks