‎2005 Sep 06 6:32 AM
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
‎2005 Sep 06 6:51 AM
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.
‎2005 Sep 06 6:48 AM
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.
‎2005 Sep 06 6:49 AM
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
‎2005 Sep 06 6:51 AM
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.
‎2005 Sep 06 7:14 AM
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
‎2005 Sep 08 9:43 AM
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