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

error while editing the item condition data : urgent

Former Member
0 Likes
1,114

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

5 REPLIES 5
Read only

Former Member
0 Likes
990

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

Read only

0 Likes
990

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

Read only

0 Likes
990

Hi

Post the part of code where you fill the BDC table for KBETR field.

Max

Read only

Former Member
0 Likes
990

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

Read only

0 Likes
990

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.