03-26-2007 10:33 PM
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
03-26-2007 10:37 PM
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
03-26-2007 10:37 PM
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
03-27-2007 11:11 AM
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.
03-27-2007 4:15 PM
Hi All,
The problem got solved. (-)ve sign is because of config for credit memo condition type which I was using.
Thanks