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

MATMAS_BAPI Inbound Customer Exit

Former Member
0 Likes
915

Hi all,

I've customer fields in MARA. Now i want to create material master in LSMW with idoc(Message type MATMAS-BAPI) So i've created my own basic type with copy of MATMAS_BAPI01 and i added my customer fields in this basic type. I fill these customer fields in idoc segments. But i can't write these customer field values on database. Some of my friend have said i had to use MATMAS_BAPI's inbound function customer exit to fill MARA structure while idoc attempt to write customer fields on database. Anyone knows this enhancement name? Or is there any other way to solve this problem?

Best Regards

FIRAT KAYIRAN

MM Consultant

ISTANBUL,TURKEY

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
727

Hi,

check out this procedure


1)   extend the MARA tabel with an append structure with own fields.
2)   create a idoc segment ZE1MARAM with the new fields
3)   create the extension MATMAS03 (basic type MATMAS03) and extended
it with the new segment ZE1MARAM
4)   made a project with enhancement MGV00001 with component
      EXIT_SAPLMV02_002 and activat it.
5) for this userexit develop the abap ZXMGVU04 to read the
idoc-segment ZE1MARAM and 'put in into the mara-table'

The source code to  use   is :
DATA XZE1MARAM TYPE ZE1MARAM.
CLEAR XZE1MARAM.
CHECK F_CUST_SEGMENT-SEGNAM = 'ZE1MARAM'.
XZE1MARAM = F_CUST_SEGMENT-SDATA.
MOVE-CORRESPONDING XZE1MARAM TO F_MARA_UEB.

Process the IDOC and check the MARA table values...

Hope this would help you..

Regards

Narin Nandivada

Hi all,

I've customer fields in MARA. Now i want to create material master in LSMW with idoc(Message type MATMAS-BAPI) So i've created my own basic type with copy of MATMAS_BAPI01 and i added my customer fields in this basic type. I fill these customer fields in idoc segments. But i can't write these customer field values on database. Some of my friend have said i had to use MATMAS_BAPI's inbound function customer exit to fill MARA structure while idoc attempt to write customer fields on database. Anyone knows this enhancement name? Or is there any other way to solve this problem?

Best Regards

FIRAT KAYIRAN

MM Consultant

ISTANBUL,TURKEY

2 REPLIES 2
Read only

Former Member
0 Likes
728

Hi,

check out this procedure


1)   extend the MARA tabel with an append structure with own fields.
2)   create a idoc segment ZE1MARAM with the new fields
3)   create the extension MATMAS03 (basic type MATMAS03) and extended
it with the new segment ZE1MARAM
4)   made a project with enhancement MGV00001 with component
      EXIT_SAPLMV02_002 and activat it.
5) for this userexit develop the abap ZXMGVU04 to read the
idoc-segment ZE1MARAM and 'put in into the mara-table'

The source code to  use   is :
DATA XZE1MARAM TYPE ZE1MARAM.
CLEAR XZE1MARAM.
CHECK F_CUST_SEGMENT-SEGNAM = 'ZE1MARAM'.
XZE1MARAM = F_CUST_SEGMENT-SDATA.
MOVE-CORRESPONDING XZE1MARAM TO F_MARA_UEB.

Process the IDOC and check the MARA table values...

Hope this would help you..

Regards

Narin Nandivada

Read only

0 Likes
727

Firstly Thanks for your reply.

I created segment with my customer fields and i assigned this segment to newly created MATMAS03 extension. and i assign this extension to MATMAS03 basic type. But i when i open MATMAS03 basic type from WE30, i can't see my newly assigned segment. Must i see this segment from WE30? Also I can't see my customer fields in LSMW

Best Regards,

Fırat KAYIRAN