2014 Feb 07 7:40 AM
Hi Guru's,
Good Afternoon,
I have created a sales document BAPI using SD_SALESDOCUMENT_CREATE.
Sales document was creating perfectly fine and working good.
now the problem when creating sales order condition type when doing so i am getting it twice in the condition value tab
for ex , i am trying to add Cndn type ZADC
after creation of the BAPI it appearing twice in the CONDITION RECORD tab.
W_CONDITIONS_IN-ITM_NUMBER = LV_COUNT.
W_CONDITIONS_IN-COND_ST_NO = '020'.
W_CONDITIONS_IN-COND_TYPE = WA_SHEET3-KSCHL .
W_CONDITIONS_IN-COND_VALUE = WA_SHEET3-KBETR.
W_CONDITIONS_IN-CURRENCY = 'INR'.
W_CONDITIONS_IN-COND_COUNT = '01'.
W_CONDITIONS_IN-COND_UPDAT = ' '.
Please suggest how to use the insert condtion types while creation of sales order.
Warm Regards,
Vinod Kumar G
2014 Feb 07 7:44 AM
2014 Feb 07 8:10 AM
Hi Anurag,
I tried as per ur suggestion but i am ended with the below error.
Error in creating document
000010 : Condition type ZOC1, operation 'X' not supported
and detials below .
W_CONDITIONS_IN-ITM_NUMBER = WA_SHEET3-POSNR.
W_CONDITIONS_IN-COND_TYPE = WA_SHEET3-KSCHL .
W_CONDITIONS_IN-COND_VALUE = WA_SHEET3-KBETR.
W_CONDITIONS_IN-CURRENCY = 'INR'.
W_CONDITIONS_IN-COND_UPDAT = 'U'. (I and D was also tried but no use)
W_CONDITIONS_INX-ITM_NUMBER = WA_SHEET3-POSNR.
W_CONDITIONS_INX-COND_TYPE = WA_SHEET3-KSCHL .
W_CONDITIONS_INX-COND_VALUE = 'X'.
W_CONDITIONS_INX-UPDATEFLAG = 'X'.
W_CONDITIONS_INX-CURRENCY = 'X'.
Regards,
Vinod.
2014 Feb 07 8:19 AM
U can check the thread https://scn.sap.com/thread/60903 and u can also check this thread
2014 Feb 07 12:43 PM
Hi Anurag,
I tried as per ur links and suggestions but it is not working.
2023 Feb 26 2:00 PM