‎2007 Nov 27 4:19 AM
Hi Experts,
I need to send IDOC when PO release, for that i found an Exit M06E0004. It is having
FUNCTION EXIT_SAPLEBND_002.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_CEKKO) LIKE CEKKO STRUCTURE CEKKO " EKKO table
*" VALUE(IT_BEKPO) TYPE MMPUR_BEKPO OPTIONAL " EKPO table
*" VALUE(IT_BEKET) TYPE MMPUR_BEKET OPTIONAL " EKEt table
*" VALUE(IT_EKKNU) TYPE MMPUR_EKKNU OPTIONAL
*" EXPORTING
*" VALUE(E_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*"----
INCLUDE ZXM06U22.
ENDFUNCTION.
All of the fields i have to take in IDOC segment r from EKKO and EKPO table, but 1 field is from MDSB table (MDSB-MATNR), how can i take it in the code i have to write. can i take TABLE: MDSB in the include, or any other way. because its standard FM we cant take it in IMPORT.
Regards,
Nik
‎2007 Nov 27 4:50 AM
Hello Nik
You can use a similar approach as described in thread:
You need to find out in which main program MDSB is defined. Then you can try to access this field dynamically from within your exit.
Alternatively, you have to search for a function module which can retrieve this (runtime) information (MDSB-MATNR).
Regards
Uwe
‎2007 Nov 27 5:35 AM
Hi Uwe,
Do u have any idea about BADO for PO release. I got the user exit only.
Can i do it by this way in EXIT.
Create a Function Module with all the Import parameters in the Exit.
In the FM write the Select statement to Get the Extra Field i want like MDSB-MATNR etc.
Regards
Nik.