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: 

How to identify a user exit for IDoc

vivekkrishnan
Active Participant
0 Kudos

Hi all ,

I have an user exit and i need to identify whether its for Inbound or for Outbound .

Can you please guide me in this ?

Thanks in Advance .

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi Vivek,

Which SAP version are you using now?

Include program LEINMF1A is inside include program LEINMF02.

Regards,

Ferry Lianto

17 REPLIES 17

ferry_lianto
Active Contributor
0 Kudos

Hi Vivek,

Please find the function module that is being used to generate the inbound/outbound IDoc.

Then you go to inside the FM and search for 'CUSTOMER-FUNCTION' in the main program.

This is the place that provided by SAP to modify the IDoc segments.

      
CALL CUSTOMER-FUNCTION '012'
  EXPORTING
    DEKKO              = EKKO
    DPEKKO             = PEKKO
  TABLES
    DEKPO              = XEKPO
    DPEKPO             = XPEKPO
    DEKET              = XEKET
    DH_APPL            = APPL.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

0 Kudos

Hi Ferry,

Though not relevant to this query please help me . I see you are the one who help many of the ABAPers with Idoc related doubts . Somehow this Idoc and ALE concept is a hardnut to me . I want to focus more on this and gain very good knowledge on this . Can you please provide me with any resources which will help me to learn these concepts vry well . I did not get a chance to work on this in real time so far. So I want to pactice as much as I can before some real time stuff comes to me .

Can you please help me ?

Also sorry Vivek for posting this here .

Regards,

Vijay .

0 Kudos

hi vijay,

if you don't mind i would give you some tips.

plz get the book "ALE/EDI and IDoc Technologies for SAP" By Arvind Nagpal.This is an wonderful stuff thru which you can gain a complete knowledge about these hot tools..

Cheers,

Abdul Hakim

0 Kudos

Hi Abdul,

I have the book with me and have gone through that . I think I bought that only after you advised me to do so . But the book doesn't cover many configurations for example all the configurations required for the idoc inbound oprocessing with function module . The only best resource is help.sap.com which is wild goose chase for searching topics . So I am requesting Ferry or anyone who is capable to help me .

Regards,

Vijay .

0 Kudos

Hi Vijay,

Nothing come as best as the knowledge pool http://help.sap.com.

>> But the book doesn't cover many configurations for example all the configurations required for the idoc inbound oprocessing with function module .

I totally disagree with your above comments.

Arvind Nagpal has covered all the aspects which are required for implementing ALE scenario in the distributed environment.

Even i have learned all the aspects of ALE/IDoc from Nagpal's book.

For ur info: Even SAP has recommened itz ALE / IDoc Participants to refer to the Nagpal's book for further reference..

Cheers,

Abdul Hakim

abdul_hakim
Active Contributor
0 Kudos

hi

this can be determined based on where your exit is existing.for eg all the inbound programs follow the naming convention INBOUND_IDOC_<MESSAGE TYPE> and outboud will follow the naming convention OUTBOUND_IDOC_<MESSAGE TYPE>.

Cheers,

Abdul Hakim

Former Member
0 Kudos

Hi Vivek,

Please take a look at these..

cheers,

Prashanth

vivekkrishnan
Active Participant
0 Kudos

Hi Abdul,

when i click where used list it goes ultimately to a function group EINM EDI Message Output: Purchasing how do i find from that ??

My exit name is EXIT_SAPLEINM_002 . Please confirm .

ferry_lianto
Active Contributor
0 Kudos

Hi Vivek,

User exits EXIT_SAPLEINM_002 is used in FM IDOC_OUTPUT_DELINS in include program LEINMF1A.

  CALL CUSTOMER-FUNCTION '002'
       EXPORTING
            xekko     = ekko
            xlfa1     = lfa1
            xlfb1     = lfb1
            dobject   = object
       TABLES
            int_edidd = int_edidd
            xekpo     = xekpo
            xeket     = xeket
            dvbak     = xvbak
            dvbap     = xvbap
            dvbkd     = xvbkd
       EXCEPTIONS
            error_message_received        = 1
            data_not_relevant_for_sending = 2.

Regards,

Ferry Lianto

vivekkrishnan
Active Participant
0 Kudos

Hi Ferry ,

Can you explain me how did you find this ?

Because in the FM i did not find a subroutine for this exit.

0 Kudos

Hi Vivek,

Goto se37 and give IDOC_INPUT_ORDERS and say DISPLAY .

CTRL + F and type call customer-function in the text box. You can fund all of them .

Regards ,

Vijay .

ferry_lianto
Active Contributor
0 Kudos

Hi Vivek,

I did as follows.

- Go to SE37 and function module EXIT_SAPLEINM_002 then click on display button.

- Place the cursor on function module EXIT_SAPLEINM_002 and click on where is used list button.

- Choose program and click on execute button. System will show two progams (LEINMF1A and LEINMF3Q).

- Then double click on program LEINMF1A then system will take you to CALL CUSTOMER-FUNCTION '002'.

- Last double click on '002' (CALL CUSTOMER-FUNCTION '002') then you should be able to see user exits EXIT_SAPLEINM_002.

Regards,

Ferry Lianto

Please reward points if helpful.

Former Member
0 Kudos

Select the IDOC function module name and check the function group of the function module. Then go to transaction SMOD and in the field enhancement put <function group of fm> and press F4. You will get the list of enhancements which contains all the exits.

vivekkrishnan
Active Participant
0 Kudos

Hi Ferry ,

I did not find two programs i can find only one LEINMF02. can you advise on this.

Hi Vijay ,

I did what you have said . But i have two issues , i did not find CUSTOMER EXIT 002 and then how do you determine the Functional Module ??

0 Kudos

Hi,

To find 012 click on the find icon(Binoculars) next to print icon and type call customer-function in that. You will find 012 .Doubl click on call customer-function 'num' this will take you to the function module which has the include where you can place your code . double click on it and you can write your code .

Try the way I suggested and then read Ferry's instructions you will understand .

Regards,

Vijay .

Message was edited by: vijay kalava

ferry_lianto
Active Contributor
0 Kudos

Hi Vivek,

Which SAP version are you using now?

Include program LEINMF1A is inside include program LEINMF02.

Regards,

Ferry Lianto

vivekkrishnan
Active Participant
0 Kudos

hi ferry

my version is 4.6 C

hi vijay ,

I need to find exit 002 and not 012 as you ahve said.

Please clarify me . i am confused a lot since i am new to idoc.