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

Condition value is not populating in SD document.

Former Member
0 Likes
2,253

Hi ,

I'm trying to create a credit memo request using function module SD_SALESDOCUMENT_CREATE.

We need to insert a condition value for certain condition type (price condition).

We have populated field "sales_conditions_in-condvalue" for this purpose.

In table sales_conditions_inx we have additionally populated fields as follows.-

Sales document is successfully created, a new record is created in the item conditions tab, but the corresponding condition value is not updated.

In customizing, Manual Entries parameter for this condition is set to C (Manual entry has priority).

I appreciate your help.

Regards,

Srikanth.

Hi ,

I'm trying to create a credit memo request using function module SD_SALESDOCUMENT_CREATE.

We need to insert a condition value for certain condition type (price condition).

We have populated field "sales_conditions_in-condvalue" for this purpose.

In table sales_conditions_inx we have additionally populated fields as follows.-

Sales document is successfully created, a new record is created in the item conditions tab, but the corresponding condition value is not updated.

In customizing, Manual Entries parameter for this condition is set to C (Manual entry has priority).

I appreciate your help.

Regards,

Srikanth.

6 REPLIES 6
Read only

Former Member
0 Likes
1,433

hi,

if your condition type has help attached to it then you have take f1 on your help and find out the table and try to fetch the data through the table and assign it to your field.

this might work.

regards,

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,433

Hi Srikanth,

Please paste the piece of the code how you are updating.Which fields you are using condvalue or cond_value.

Regards,

Madhu.

Read only

0 Likes
1,433

Hi Madhu,

Here is my code:

SALES_CONDITIONS_IN-ITM_NUMBER = I_UPLOAD-ITMNUMBER.

SALES_CONDITIONS_IN-COND_TYPE = I_UPLOAD-COND_TYPE.

SALES_CONDITIONS_IN-COND_VALUE = I_UPLOAD-COND_VALUE / 10.

APPEND SALES_CONDITIONS_IN.

CLEAR SALES_CONDITIONS_IN.

SALES_CONDITIONS_INX-ITM_NUMBER = I_UPLOAD-ITMNUMBER.

SALES_CONDITIONS_INX-COND_TYPE = I_UPLOAD-COND_TYPE.

SALES_CONDITIONS_INX-UPDATEFLAG = 'U'.

SALES_CONDITIONS_INX-COND_VALUE = 'X'.

APPEND SALES_CONDITIONS_INX.

CLEAR SALES_CONDITIONS_INX.

I am just creating a CMR with reference to billing document. Its creating condition recod 'ZAP0' correctly, which i am passing manally. But, its not populating condition value to levy condition it should determine automatically.

Please suggest.

Regards,

Srikanth.

Read only

0 Likes
1,433

Hi Srikanth,

Please pass the COND_ST_NO.

Regards,

Madhu.

Read only

0 Likes
1,433

Hi Madhu,

I have passed COND_ST_NO = '010' and I have also passed COND_COUNT = '01'. but still not correct.

Any idea.

Regards,

Srikanth.

Read only

Former Member
0 Likes
1,433

A little late, but if anyone is still interested:

     If you want to populate KWERT directly without a rate calculation, then populate


          SALES_CONDITIONS_IN-condvalue and

          SALES_CONDITIONS_IN-currency_2.


     If you want to populate the condition rate (KBETR) and let SAP calculate the value (KWERT), then populate

    

          SALES_CONDITIONS_IN-cond_value and

          SALES_CONDITIONS_IN-currency.

Why they made field for KBETR = COND_VALUE and the field for KWERT = CONDVALUE, I don't have a clue.