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: 

Basic type DELVRY01 - Message typeDESDAV- User exit required

Former Member
0 Kudos

HI,

We are using the Basic type DELVRY01 as an outbond IDOC to post the data to external system. I'm looking for change the USER Exit where I can add entries to the segment E1ADRM1.

Early replies are appreciated and rewarded.

Thanks & Kind Regards,

Suresh

11 REPLIES 11

Former Member
0 Kudos

EXIT_SAPLV56K_002, enhancement V56K0001. You can get the user-exit in function IDOC_OUTPUT_DELVRY via:

perform fill_idoc_tab_delivery

perform process_delivery_header

perform process_e1adrm1_ord

perform idoc_data_append

perform customer_function_002

Message was edited by:

Michael Malvey

0 Kudos

Hi Michael,

I tried changing the the entries in SDATA field at run time (Debuging) but I see no impact on that, an dthe IDoc contains same data asusal but not the onewith my entry.

Do help me in sorting this out.

Thanks,

Suresh.

0 Kudos

Are you changing the entries in table IDOC_DATA?

0 Kudos

Yes,

I'm just adding the entry in the field, like I'm making

IDOC_DATA-SDATA+414(40) = '1234 Chicago Illinois".

But I dont see the same in IDOC when Idoc is posted. Am i rite or this is not the way?

Regards,

Suresh

0 Kudos

At what point in the program are you modifying the entry in IDOC_DATA? I would skip the debug update and add the code to the user exit. Ferry provided a good example of how to modify the table data. You should add a check on SEGMENT_NAME = 'E1ADRM1' so you don't process your code after each record is added to IDOC_DATA.

Message was edited by:

Michael Malvey

0 Kudos

FerrY and Michael,

I have done everything all that I missed since yesterday

Modify IDOC_DATA.

Rewarding msrks to both you guys.

Thanks.

Suresh.

0 Kudos

Michael,

I could successfully Implement it , but would you please let me know is there any hard and fast rule to find the enhancement is related to Delivery related IDOC, I could never find it until I see its description in Attributes.

I wouls highly appreciate if you could educate me on this.

Thanks in Advance,

Suresh.

ferry_lianto
Active Contributor
0 Kudos

Hi Suresh,

You need to get an access key from OSS and use it to modify the program LVED2FZZ where empty FORM routines are provided for you to use for each of the segments.

And try to use USEREXIT_CONTROL_RECORD_OUT.

Hope this will help.

Regards,

Ferry Lianto

ferry_lianto
Active Contributor
0 Kudos

Hi Suresh,

Please check this sample code on how to update for particular IDoc segment.

DATA: ZE1EDPT2 LIKE E1EDPT2.
 
LOOP AT IDOC_DATA.
  CASE IDOC_DATA-SEGNAM.
     WHEN 'E1EDPT2'.
       MOVE IDOC_DATA-SDATA TO ZE1EDPT2.
 
       ZE1EDPT2-TDLINE   = <...>    <- import from memory id
       ZE1EDPT2-TDFORMAT = <...>    <- import from memort id
 
       MOVE ZE1EDPT2 TO IDOC_DATA-SDATA.
       MODIFY IDOC_DATA.
 
     WHEN <...>
 
     OTHERS.     
 
   ENDCASE.
ENDLOOP.

Regards,

Ferry Lianto

Former Member
0 Kudos

Michael & Ferry

Help more , Keep helping. Keep it up.

Regards,

Suresh.

ferry_lianto
Active Contributor
0 Kudos

Hi Suresh,

The easyway to find user exits available in IDoc FM is to do search/ find (CTRLSHIFTF3) with string 'CUSTOMER-FUNCTION' in the main program of the FM.

Regards,

Ferry Lianto