2005 Dec 09 8:32 AM
Hi,
I am using FM idoc_output_orders to create an EDI idoc.
I need to find a user exit where i need to populate a value under custom segment whose parent segment would be
E1EDK01. Please let me know which user exit should i change.
2005 Dec 09 9:05 AM
2005 Dec 09 8:40 AM
Hi,
Can you be specific about the order whether it is a PO/SO for which you would like to create an IDOC,
Rgds,
2005 Dec 09 8:43 AM
Hi,
I think you should ask your functional consultant for the user exit.
Else, go to SPRO-> SAP reference IMG -> there you will find all the user exits related to your requirement.
IN SPRO, everything is listed in terms of functional areas.
browse through the hierarchy to find your area where you need to do the changes and there you will find all the user exits available for your requirement with the documentation. You can go through the document, it will tell you what purpose can the user exit be used for.
Hope this helps...
Lokesh
Pls. reward appropriate points
2005 Dec 09 8:44 AM
Hi,
It is a purchase order outbound where i need to populate a value called sales order number which generated the po.
For this field, i created a segment and had attached it to the particular parent segment. I get the so from table EKKN.
But i don't have the user exit to implement this logic.
2005 Dec 09 8:51 AM
Hi!
Use one of the components of extension MM06E001 - User exits for EDI inbound and outbound purchasing documents.
Regards,
Maxim.
2005 Dec 09 8:51 AM
Hi Anandha,
You can use SAP Enhancement MM06E001.
Customer Function EXIT_SAPLEINM_002.
Hope this helps..
Sri
2005 Dec 09 8:48 AM
Check this exit <b>EXIT_SAPLEINM_018</b>
it is related to E1EDK01....
regards
vijay
2005 Dec 09 8:55 AM
Hi,
Can you please let me know for the segment
E1EDKT2 where i need to populate the standard text.
2005 Dec 09 8:57 AM
2005 Dec 09 9:05 AM
2005 Dec 09 9:13 AM
Hi Anandha,
The Same customer function EXIT_SAPLEINM_002 is called for every thing.
You need to check what is the last record in TABLE INT_EDIDD in the TABLES Parameter and code accordingly..
That is INT_EDIDD-SEGNAM of the last entry will be E1EDKT2..
Hope this helps..
Sri
2005 Dec 09 9:15 AM
if you see this include
LEINMF0C
*&---------------------------------------------------------------------*
*& Form FILL_E1EDKT2_SO
*&---------------------------------------------------------------------*
* füllen Segment E1EDKT2 --> Kopftextzeilen pro Text-ID *
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM FILL_E1EDKT2_SO.
CLEAR INT_EDIDD.
CLEAR E1EDKT2.
INT_EDIDD-SEGNAM = 'E1EDKT2'.
*- Textzeilen --------------------------------------------------------
E1EDKT2-TDLINE = XTLINE-TDLINE.
E1EDKT2-TDFORMAT = XTLINE-TDFORMAT.
MOVE E1EDKT2 TO INT_EDIDD-SDATA.
APPEND INT_EDIDD.
* Call Method PROCESS_IDOC_SEGMENT (BADI MM_EDI_ORDERS_OUT)
PERFORM badi_process_idoc_segment.
* Call Customer Function 002 (enhancement MM06E001)
<b>PERFORM CUSTOMER_FUNCTION.</b>
ENDFORM. " FILL_E1EDKT2_SOyou try to look into CUSTOMER_FUNCTION.
2005 Dec 09 9:26 AM
Hi!
For changing data in E1EDKT2 segment for ORDRSP you have to use EXIT_SAPLEINM_007:
IF 'E1EDKT2' = segment-segnam.
DATA:
wa_data LIKE LINE OF I_DATA,
tabix_e1edkt2 TYPE sy-tabix,
wa_e1edkt2 TYPE e1edkt2.
READ TABLE I_DATA
WITH KEY DOCNUM = segment-docnum
SEGNUM = segment-segnum
INTO wa_data.
tabix_e1edkt2 = sy-tabix.
wa_e1edkt2 = wa_data-sdata.
wa_e1edkt2-tdline = 'YOUR_TEXT_HERE'.
wa_e1edkt2-tdformat = 'YOUR_FORMAT_HERE'.
wa_data-sdata = wa_e1edkt2.
MODIFY i_data FROM wa_data INDEX tabix_e1edkt2
TRANSPORTING sdata.
ENDIF.
For populating data for E1EDKT2 for ORDRSP you have to use EXIT_SAPLEINM_008.
Regards,
Maxim.
2005 Dec 09 9:12 AM
Try EXIT_SAPLEINM_002.
Inside the FM, check for the name of the segment and code the logic.
Regards,
Ravi