07-09-2015 7:20 AM
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 .
07-09-2015 7:26 AM
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.
07-09-2015 8:56 AM
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 ??
07-09-2015 9:10 AM
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.
07-09-2015 4:41 PM
07-10-2015 11:44 AM
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.