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

import parameter in Function Module for user exit

Former Member
0 Likes
1,060

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

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
556

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

Read only

0 Likes
556

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.