07-27-2006 7:01 PM
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 .
07-27-2006 8:18 PM
Hi Vivek,
Which SAP version are you using now?
Include program LEINMF1A is inside include program LEINMF02.
Regards,
Ferry Lianto
07-27-2006 7:07 PM
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.
07-27-2006 7:12 PM
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 .
07-27-2006 7:16 PM
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
07-27-2006 7:23 PM
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 .
07-27-2006 7:33 PM
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
07-27-2006 7:10 PM
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
07-27-2006 7:16 PM
07-27-2006 7:33 PM
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 .
07-27-2006 7:38 PM
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
07-27-2006 7:51 PM
Hi Ferry ,
Can you explain me how did you find this ?
Because in the FM i did not find a subroutine for this exit.
07-27-2006 8:01 PM
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 .
07-27-2006 8:02 PM
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.
07-27-2006 8:09 PM
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.
07-27-2006 8:10 PM
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 ??
07-27-2006 8:23 PM
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
07-27-2006 8:18 PM
Hi Vivek,
Which SAP version are you using now?
Include program LEINMF1A is inside include program LEINMF02.
Regards,
Ferry Lianto
07-27-2006 8:38 PM
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.