Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Update zfeilds using bapi

0 Kudos

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 (-: .

5 REPLIES 5

former_member555112
Active Contributor
0 Kudos

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

0 Kudos

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

Peranandam
Contributor
0 Kudos

Populate following value in table parameter of EXTENSION_IN.

STRUCTURE = 'structure name which is having your zfields'

VALUEPART1 = pass zfields value.

Former Member
0 Kudos

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.

0 Kudos

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