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

Custom fields with BAPI_PO_CHANGE ( extensionin structure ??)

I need to change a custom field of PO using the BAPI_PO_CHANGE. The z field is zz_field is a header field and I need to modify this field value to ‘ABCD’.

I tried using this BAPI in SE37 but I am not able to get the desired results.

Any pointers on how do I use extensionin structure ?

Rgds,

Ajay.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 05:26 PM

    Hi,

    Check this..

    Add the 'z' field to BAPI_TE_MEPOHEADER.

    DATA: EXTENSIONIN LIKE TABLE OF BAPIPAREX

    WITH HEADER LINE.

    DATA: S_EXTENSION LIKE BAPI_TE_MEPOHEADER.

    S_EXTENSION-ZZ_FIELD = 'ABC'.

    EXTENSIONIN-STRUCTURE = 'BAPI_TE_MEPOHEADER'

    EXTENSIONIN-VALUEPART1 = S_EXTENSION.

    APPEND EXTENSIONIN.

    When you do it through SE37 you have to count the number of characters in the structure BAPI_TE_MEPOHEADER and place the value accordingly...

    Thanks,

    Naren

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Didn't get the following point

      "Add the 'z' field to BAPI_TE_MEPOHEADER"

      I am trying to do it using SE37 so cannot do

      "

      DATA: EXTENSIONIN LIKE TABLE OF BAPIPAREX

      WITH HEADER LINE.

      DATA: S_EXTENSION LIKE BAPI_TE_MEPOHEADER.

      S_EXTENSION-ZZ_FIELD = 'ABC'."

      Is there a way this can be achieved using SE37 first so that POC is ready and then I code for the same ?

      Rgds,

      Ajay

      Message was edited by: Ajay Sharma

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2006 at 07:48 PM

    Hi,

    I believe you cannot test the BAPI for modifying the custom fields with out adding the same to the structure BAPI_TE_MEPOHEADER.

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2007 at 06:01 PM

    I have an issue where there is a customer field create in BAPI_TE_MEPOHEADER that has the data type WERT15. This is a currency field and I can not figure out how to update it when E1BPPAREX-VALUEPART1 is a CHAR field. If you pass the value in CHAR format you get an SQL error on the update to EKKO.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 02:13 AM

    Hi Paul,

    Similar error i am also facing.

    Kindly let me know if you have got the solution.

    thanks

    Suganya

    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.