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

BAPI_PO_CHANGE

Dear all,

I have a Z conditon type zabc , which is used to capture the Handling charges.

In the Customisation this Condition type is set as

Cond Class :- "A"

Calcualte Type :- "A"

Cond Category :- "B"

The value is calculated thru a z prgoram and the same is being updated to the Purchase Order using "BAPI_PO_CHANGE " .

The Code : IF I_POCIND-COND_TYPE = 'Zabc''.

I_POCIND-COND_VALUE = IT_BOEDATA-OTH_CHGS_LC / IT_BOEDATA-BOE_XRATE.

I_POCIND-CURRENCY = IT_BOEDATA-WAERS.

When this Z Program is executed the conditon type gets executed but no values gets updated in the PO and the BAPI returns the message as "No Data Changed".

Can any body please help.

with rgds

Ranjith Singh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:37 AM

    Hi,

    Pass,

    I_POCINDX-COND_VALUE = 'X'.

    I_POCINDX-CURRENCY = 'X'.

    And call BAPI_TRANSACTION_COMMIT to commit the changes.

    Regards,

    Subramanian.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:46 AM

    Hi,

    I have passed the Values to those fields and appened the values to I_POCINDX.

    and i have used the BAPI_TRANSACTION_COMMIT.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:48 AM

    Hi,

    Sorry it got posted wrongly .

    MOVE : I_POCIND-ITM_NUMBER TO I_POCINDX-ITM_NUMBER,

    'X' TO I_POCINDX-ITM_NUMBERX,

    I_POCIND-CONDITION_NO TO I_POCINDX-CONDITION_NO,

    'X' TO I_POCINDX-CONDITION_NOX,

    I_POCIND-COND_ST_NO TO I_POCINDX-COND_ST_NO,

    'X' TO I_POCINDX-CURRENCY,

    'X' TO I_POCINDX-COND_VALUE,

    'X' TO I_POCINDX-CALCTYPCON,

    'X' TO I_POCINDX-COND_TYPE,

    'X' TO I_POCINDX-CHANGE_ID.

    APPEND I_POCINDX.

    CLEAR I_POCINDX.

    Shall i use the CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. inplace of append.

    Please help.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:51 AM

    It was wrongly set as answered

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 08:02 AM

    Hi,

    Can any body please help me on this,.

    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.