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

User-Exit for ORDERS05

Former Member
0 Likes
10,525

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.

1 ACCEPTED SOLUTION
Read only

Former Member
5,275

Hi,

I need user exit for the following segment

E1edkt2

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.

13 REPLIES 13
Read only

Former Member
0 Likes
5,275

Hi,

Can you be specific about the order whether it is a PO/SO for which you would like to create an IDOC,

Rgds,

Read only

Former Member
0 Likes
5,275

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

Read only

Former Member
0 Likes
5,275

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.

Read only

0 Likes
5,275

Hi!

Use one of the components of extension MM06E001 - User exits for EDI inbound and outbound purchasing documents.

Regards,

Maxim.

Read only

0 Likes
5,275

Hi Anandha,

You can use SAP Enhancement MM06E001.

Customer Function EXIT_SAPLEINM_002.

Hope this helps..

Sri

Read only

Former Member
0 Likes
5,275

Check this exit <b>EXIT_SAPLEINM_018</b>

it is related to E1EDK01....

regards

vijay

Read only

Former Member
0 Likes
5,275

Hi,

Can you please let me know for the segment

E1EDKT2 where i need to populate the standard text.

Read only

0 Likes
5,275

TDID -for textid

TDLINE -for Text..

Read only

Former Member
5,276

Hi,

I need user exit for the following segment

E1edkt2

Read only

0 Likes
5,275

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

Read only

0 Likes
5,275

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_SO

you try to look into CUSTOMER_FUNCTION.

Read only

0 Likes
5,275

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.

Read only

Former Member
0 Likes
5,275

Try EXIT_SAPLEINM_002.

Inside the FM, check for the name of the segment and code the logic.

Regards,

Ravi