2011 Nov 04 5:14 AM
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.
2011 Nov 04 6:03 AM
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,
2011 Nov 04 6:23 AM
Hi Srikanth,
Please paste the piece of the code how you are updating.Which fields you are using condvalue or cond_value.
Regards,
Madhu.
2011 Nov 07 12:44 AM
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.
2011 Nov 07 2:38 AM
2011 Nov 07 6:14 AM
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.
2014 Dec 04 6:10 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |