2007 Jan 11 6:22 AM
Hi,
I am using a bdc. when i try to edit any of the item condition value (KBETR) and also if i try to insert a new condition , I am getting error as " Message_type_X " and the message no :00341, and the BDC is terminating at the point.
Can anybody kindly suggest a work around
shyam
Hi,
I am using a bdc. when i try to edit any of the item condition value (KBETR) and also if i try to insert a new condition , I am getting error as " Message_type_X " and the message no :00341, and the BDC is terminating at the point.
Can anybody kindly suggest a work around
shyam
2007 Jan 11 10:09 AM
Hi,
Your Condition Value KBETR is not being converted into proper SAP format set by your SAP System. So make use of Write statement to first convert it into proper format and then provide it to your BDCDATA.
Regards,
Aman
2007 Jan 11 10:22 AM
HI,
i have chaged it into a char(13) format then i am moving the data from the table to the field declared.
but after that also i am getting the dump.
shyam
2007 Jan 11 10:26 AM
Hi
Post the part of code where you fill the BDC table for KBETR field.
Max
2007 Jan 11 10:30 AM
Hi Shyam,
Try with this code.
*-----Adding the Condition Types at item level
PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=V69A_KONY'.
PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR' '05/04'.
PERFORM bdc_field USING 'BDC_OKCODE' '=PICK'.
*----1. Unitprc ( ZPR0 )
PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=V69A_KOAN'.
PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KBETR(02)'.
WRITE x_item-unitprc TO v_unitprc CURRENCY komv-waers NO-SIGN.
PERFORM bdc_field USING 'KOMV-KSCHL(02)' 'ZPR0'.
PERFORM bdc_field USING 'KOMV-KBETR(02)' v_unitprc.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
*-----End of Addition
PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
PERFORM bdc_field USING 'BDC_OKCODE' '/EBACK'.
Regards,
Aman
Message was edited by:
Amandeep Kumar
2007 Jan 11 10:48 AM
HI,
I am attachhing the code:
data : g_td(13) TYPE c, "Trade discount
PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV45A-KWMENG'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=T\05'.
IF wa_item-tradediscount NE initial.
g_td = wa_item-tradediscount.
PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
PERFORM bdc_field USING 'BDC_CURSOR'
'KOMV-KBETR(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'KOMV-KBETR(02)'
g_td.
ENDIF.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |