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

idoc extension

Former Member
0 Likes
658

hi friends

i have developed outbound interface to distribute vendor master. for this i extended idoc CREMAS04. i have extended the idoc for four address fields (stree2 to street5) can anybody pls tell me how to write the code to populate this segment. i know the enhancement and the user exit.

exit_saplokd1_001

hi friends

i have developed outbound interface to distribute vendor master. for this i extended idoc CREMAS04. i have extended the idoc for four address fields (stree2 to street5) can anybody pls tell me how to write the code to populate this segment. i know the enhancement and the user exit.

exit_saplokd1_001

4 REPLIES 4
Read only

Former Member
0 Likes
631

Refer this thread if you haven't done it already:

http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm

Regards,

Ravi

Read only

Laxmana_Appana_
Active Contributor
0 Likes
631

Hi Deepak,

check this link , it clearly explains the procedure to write the code for populating the extended segments

http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml

Regards

Appana

Read only

Former Member
0 Likes
631

i have developed outbound interface to distribute vendor master. for this i extended idoc CREMAS04. i have extended the idoc for four address fields (stree2 to street5) can anybody pls tell me how to write the code to populate this segment. i know the enhancement and the user exit.

exit_saplokd1_001..

Hi deepak,

can u pl clearly send the fields name that u added int he segment while extending the idoc..

thanking u..

ajay([email protected])

Read only

former_member187255
Active Contributor
0 Likes
631

Deepak,

You can use the exit <b>EXIT_SAPLKD01_001</b> to populate the data for the extended segments...

EX:


case SEGMENT_NAME.
  when C_E1LFA1M.
    I_E1LFA1M = IDOC_DATA-SDATA.
    read table IDOC_DATA with
      key SEGNAM = C_E1LFA1M.
    if SY-SUBRC = 0.
      I_E1LFA1M = IDOC_DATA-SDATA.
* Update Block Indicator to Y when LFA1-SPERQ
      if I_E1LFA1M-SPERQ NE ''.
        I_E1LFA1M-SPERQ = C_Y.
      else.
        I_E1LFA1M-SPERQ = C_N.
      endif.
      IDOC_DATA-SDATA = I_E1LFA1M.
      modify IDOC_DATA index SY-TABIX.
    endif.
endcase.

Message was edited by:

Ch@ndra