Application Development and Automation 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: 
Read only

Material Master BAPI

Former Member
0 Likes
690

Hi,

I am using BAPI, BAPI_MATERIAL_SAVEDATA for the creation of material which is working fine. Now i want to add few fields which are not part of the import/tables.

Can anyone know what is the procedure for adding the new fields for the existing structures

Regards,

vamshi

1 ACCEPTED SOLUTION
Read only

former_member221770
Contributor
0 Likes
645

Vamshi,

Use the EXTENSIONIN and EXTENSIONINX tables. These parameters are supplied to allow you to use custom fields. Read the FM doco on these tables for more info.

Hope this helps.

Cheers,

Pat.

5 REPLIES 5
Read only

Former Member
0 Likes
645

hi,

Vamshi, if u add the new fields, how can u save it by using that bapi. That is standard bapi. U can do one thing. u copy that bapi to another bapi. And redefine the bapi method.

Read only

Former Member
0 Likes
645

hi,

Vamshi, if u add the new fields, how can u save it by using that bapi. That is standard bapi. U can do one thing. u copy that bapi to another bapi. And redefine the bapi method.

regards,

krishna prasad p

Read only

former_member221770
Contributor
0 Likes
646

Vamshi,

Use the EXTENSIONIN and EXTENSIONINX tables. These parameters are supplied to allow you to use custom fields. Read the FM doco on these tables for more info.

Hope this helps.

Cheers,

Pat.

Read only

Former Member
0 Likes
645

Hi ,

For Custom Fields Updation,

suppose you are updating MARC table

We need to create 2 structures like BAPI_TE_MARC,BAPI_TE_MARCX

In Extension table Parameter we Have to Pass Structure name BAPI_TE_MARC, in VALUEPART1 we have to pass string like MATNR has length of 18, plant has length of 4 characters, Custom field has length of 10 characters

str+0(18) = material number

str+18(4) = Plant

str+22(10) = your custom field

In ExtensionX table parameter we have to pass structure BAPI_TE_MARCX.

Thanks

Ramesh

Read only

0 Likes
645

Hi Ramesh,

Thanks for your reply. Correct me if i am coreect, you mean to say i have to create structures as "ZBAPI_TE_MARA".

Can u please explain more, how to pass the fields and field values along with structure.

regards,

vamshi