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

Unable to to update service line items using BAPI_PO_CHANGE

Hi,

I am using BAPI_PO_CHANGE to update service lines of a PO. i have passed pckg_no, line_no to the BAPI.

But every time it retuns "No Data changed" in BAPIRETURN table.

Please help me to resolve this issue.

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 Nov 07, 2008 at 05:22 AM

    Hello,

    LOOP AT y_i_eket INTO y_wa_eket.

    READ TABLE y_i_oldeket INTO y_wa_oldeket WITH KEY

    ebeln = y_wa_eket-ebeln

    ebelp = y_wa_eket-ebelp

    etenr = y_wa_eket-etenr.

    IF sy-subrc EQ 0.

    IF y_wa_eket-menge NE y_wa_oldeket-menge OR

    y_wa_eket-eindt NE y_wa_oldeket-eindt.

    y_wa_schedule-po_item = y_wa_eket-ebelp.

    y_wa_schedule-sched_line = y_wa_eket-etenr.

    WRITE y_wa_eket-eindt TO y_wa_schedule-delivery_date.

    y_wa_schedule-del_datcat_ext = 'D'.

    y_wa_schedule-quantity = y_wa_eket-menge.

    APPEND y_wa_schedule TO y_i_schedule.

    y_wa_schedulex-po_item = y_wa_eket-ebelp.

    y_wa_schedulex-sched_line = y_wa_eket-etenr.

    y_wa_schedulex-po_itemx = 'X'.

    y_wa_schedulex-sched_linex = 'X'.

    y_wa_schedulex-delivery_date = 'X'.

    y_wa_schedulex-del_datcat_ext = 'X'.

    y_wa_schedulex-quantity = 'X'.

    APPEND y_wa_schedulex TO y_i_schedulex.

    ENDIF.

    ENDIF.

    CALL FUNCTION 'BAPI_PO_CHANGE'

    EXPORTING

    purchaseorder = y_v_ebeln

    TABLES

    return = y_i_return

    poitem = y_i_item

    poitemx = y_i_itemx

    poschedule = y_i_schedule

    poschedulex = y_i_schedulex.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    EXPORTING

    wait = 'X'

    IMPORTING

    return = y_i_bapiret2_c.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 04:37 AM

    Experts,

    I want to change services. I passed all the details of service lines and the required field is updated. but now new problem has arrised.

    Quantity for service is 10 and gross price is 3

    Every time I update PO it gets multiplied by 10.

    After 8 trials it dumps saying COMPUTE_BCD_OVERFLOW.

    Please help me solve this issue.

    Add a comment
    10|10000 characters needed characters exceeded

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.