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

BAPI SD_SALESDOCUMENT_CREATE problem in Condition type creation

Former Member
0 Kudos
1,059

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

5 REPLIES 5
Read only

former_member188219
Participant
0 Kudos
492

try with Cond_UPDAT = 'X'.

Read only

0 Kudos
492

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.

Read only

0 Kudos
492

U can check the thread https://scn.sap.com/thread/60903  and u can also check this thread

Read only

0 Kudos
492

Hi Anurag,

I tried as per ur links and suggestions but it is not working.

Read only

M_Abdelkader
Explorer
0 Kudos
492

Have you solved it ?