Skip to Content

Update zfeilds using bapi

Hi All,

I am trying to upload Zfeilds using BAPI_ALM_ORDER_MAINTAIN . The structure BAPI_TE_AUFK is appended with zfeilds .

but unable to update these in data .

the documentation of the BAPI refers to structure refers to BAPI_TE_ALM_ORDER_MAINTAIN . or the the BADI IBAPI_ALM_ORD_MODIFY .. what does it has to do with these objects .. how to make this working (-: .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jun 27, 2009 at 11:05 AM

    Hi,

    Basically you will have to pass the z field and the relevant data in extensionin table of the BAPI.

    Then make use of the method MODIFY_INPUT_DATA in the BADI IF_EX_IBAPI_ALM_ORD_MODIFY to actually transfer these fields to the specific strcuture.

    Regards,

    Ankur PArab

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 27, 2009 at 11:32 AM

    Thanks Ankur for the reply ..

    but will you please detail about passing data to which structure . Structure is not part of import expot parameter of BADI

    actually the documentation of BAPI refers to strucure

    As mentioned in BAPI ..

    Procedure

    The following enhancement structure exists for using the Customer Exit:

    u2022 BAPI_TE_ALM_ORDER_MAINTAIN

    The structure has the fields of the method table as key fields. Thus the corresponding methods and thereby the referenced data structure can be assigned uniquely.

    The structure should be enhanced with the desired fields using append technology.

    For further information see the BAPI documentation on Customer Exits.

    please eleborate more on the code to be written in BADI .. which structure to pass data

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28, 2009 at 03:23 PM

    Populate following value in table parameter of EXTENSION_IN.

    STRUCTURE = 'structure name which is having your zfields'

    VALUEPART1 = pass zfields value.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2009 at 11:19 AM

    refer below exapmle

    MOVE 'BAPE_VBAP' TO gwa_extension-structure.

    MOVE gwa_slotid_data-ord_number TO gwa_bape_vbap-vbeln.

    MOVE gwa_slotid_data-itm_number TO gwa_bape_vbap-posnr.

    MOVE gwa_slotid_data-new_field TO gwa_bape_vbap-new_field.

    MOVE gwa_bape_vbap TO gwa_extension-valuepart1.

    APPEND gwa_extension TO gt_extension.

    CLEAR gwa_extension.

    MOVE 'BAPE_VBAPX' TO gwa_extension-structure.

    MOVE gwa_slotid_data-ord_number TO gwa_bape_vbapx-vbeln.

    MOVE gwa_slotid_data-itm_number TO gwa_bape_vbapx-posnr.

    MOVE 'X' TO gwa_bape_vbapx-new_field.

    MOVE gwa_bape_vbapx TO gwa_extension-valuepart1.

    APPEND gwa_extension TO gt_extension.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, I had the same problem and solved it by creating an append structure to IBAPI_CAUFVD_UPDATE,

      and then filling the relevant fields of CT_HEADER_INT and CT_HEADER_INT_UP.

      ( I am posting the answer in two relevant threads)

      Edited by: Panayotis Papadopoulos on Jan 27, 2010 2:10 PM

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.