Skip to Content
author's profile photo Former Member
Former Member

error while editing the item condition data : urgent

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.