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

Populate fields in extensions

Former Member
0 Likes
881

Hi All,

We have a requirement where we need to post 3 ZFIELDS in to standard TABLE MARC using standard BAPI “BAPI_MATERIAL_SAVEDATA”

We have tried to populate these fields in extensionin but it is not happening.

If any one have solution please reply at earliest

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
761

1. 1st field of BAPI_TE_MARC is Plant field so-

EXTENSIONIN-STRUCTURE = 'BAPI_TE_MARC'.

EXTENSIONINX-STRUCTURE = 'BAPI_TE_MARC'.

EXTENSIONIN-valuepart1+0(4) = WERKS.

EXTENSIONINX-valuepart1+0(1) = WERKS.

EXTENSIONIN+4(6) = ZFIELD1.

EXTENSIONINX+4(1) = 'X'.

EXTENSIONIN+10(6) = ZFIELD2.

EXTENSIONINX+5(1) = 'X'.

Thats it.

Hi All,

We have a requirement where we need to post 3 ZFIELDS in to standard TABLE MARC using standard BAPI “BAPI_MATERIAL_SAVEDATA”

We have tried to populate these fields in extensionin but it is not happening.

If any one have solution please reply at earliest

Regards,

4 REPLIES 4
Read only

Former Member
0 Likes
761

HI,

This should be done by screen exists. First we need to add the fileds in the MARC table in the .Include, Later we need to create a subscreen and add these 3 fields in the screen where you required to. It is kind of screen exit.

Regards,

Ram Mohan

Read only

Former Member
0 Likes
761

Assuming that you are passing the extension fields in the structure EXTENSIONIN, have you passed similar indicators in EXTENSIONINX? Can you please post your code where population is done?

Can you see the new zfields in structure BAPI_TE_MARC? if not then it will never work.

Read only

0 Likes
761

I am not able to see the fields in BAPI_TE_MARC, but when I am trying to add these fields it is saying already exists, more over I am not passing in EXTENSIONINX, can you tell how to do it for EXTENSIONINX?

Read only

Former Member
0 Likes
762

1. 1st field of BAPI_TE_MARC is Plant field so-

EXTENSIONIN-STRUCTURE = 'BAPI_TE_MARC'.

EXTENSIONINX-STRUCTURE = 'BAPI_TE_MARC'.

EXTENSIONIN-valuepart1+0(4) = WERKS.

EXTENSIONINX-valuepart1+0(1) = WERKS.

EXTENSIONIN+4(6) = ZFIELD1.

EXTENSIONINX+4(1) = 'X'.

EXTENSIONIN+10(6) = ZFIELD2.

EXTENSIONINX+5(1) = 'X'.

Thats it.