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: 

EXIT_SAPMM07M_001 : customer exit

former_member220286
Participant
0 Kudos

Dear all ,

I have a requirement to pick the MIGO line item and header  text .

Header test I have picked from the table : MKPF .It is fine .

SELECT SINGLE BKTXT INTO ITAB-BKTXT FROM MKPF WHERE MBLNR = IMBLNR .     " Material text  



To pick the line item text : I tried below :-


SELECT SINGLE SGTXT INTO ITAB-SGTXT FROM MSEG WHERE MBLNR = IMBLNR .   " MATERAIL ITEM TEXT 


But MSEG do not have the line item text .


From where I can pick the text for line item .


I have searched and found that a customer exit :  EXIT_SAPMM07M_001  .

How to use this FM : what to enter in the import and export parameters .Please suggest any ideas .




But I am confused how to use it or is there any other way to pick the text ..


In MIGO  : transfer posting in the Where tab : there is a text which user enters .


I want this text to be picked up in my report .



5 REPLIES 5

Former Member
0 Kudos

Hi,

You need to create a project in CMOD and assign the enhancement MBCF0002 to it then you can go in the said FM and create the include inside this.

The parameter are the ones which you can use in the include while coding.

Hope this helps.

0 Kudos

Hi ,

Gaurav please suggest the parameters which we need to enter in this :

FM : EXIT_SAPMM07M_001

CALL FUNCTION 'EXIT_SAPMM07M_001' "Customer Function Exit: Set Segment Text in Material Document Item

  EXPORTING

  i_mseg = " mseg Data of Material Document Item

  i_vm07m = " vm07m Additional Data for Material Document Item

  i_dm07m = " dm07m Additional Data for Material Document Item

  i_mkpf = " mkpf Data of Material Document Header

  IMPORTING

  e_sgtxt = " mseg-sgtxt Segment Text Determined

  . " EXIT_SAPMM07M_001

What will be the export and import parameters to get the : e_sgtxt     ??

0 Kudos

This FM is not used this way. This FM is called by the standard program.

Please go through the below link to understand how the Customer exits are implemented.

Customer Exits (CMOD) - ABAP Development - SCN Wiki

Hope this helps.

0 Kudos

Need the GOITEM-SGTXT    text   ...

Sijin_Chandran
Active Contributor
0 Kudos

I guess your requirement is to fetch Item Text of Migo.

If I'm correct its saved in MSEG-SGTXT iteself.

and this Customer Exit EXIT_SAPMM07M_001 is not a code to be used for fetching data.


Please use a valid subject line & be clear about your requirement while jotting down it here.