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

Trigger Creation Outbound Idoc

Former Member
0 Likes
665

Hi Community,

I configured all to send by Nast an outbound idoc DELVRY03 message type DESADV.

Now I wish to know idoc number e its status in order to update custom tables about process.

My idea is:

- catch the event "Idoc Created"

- Check status

- Update some custom tables

I tried EXIT_SAPLV56K_001 but there docnum field is initial because system is creating idoc just in time.

I would like a exit or event to know idoc number just after system created it.

I think that idoc number is valued only out of FM 'IDOC_OUTPUT_DELVRY' in Report RSNASTED

Have you any suggestion to solve my trouble?

thanks in advance,

Frank

Hi Community,

I configured all to send by Nast an outbound idoc DELVRY03 message type DESADV.

Now I wish to know idoc number e its status in order to update custom tables about process.

My idea is:

- catch the event "Idoc Created"

- Check status

- Update some custom tables

I tried EXIT_SAPLV56K_001 but there docnum field is initial because system is creating idoc just in time.

I would like a exit or event to know idoc number just after system created it.

I think that idoc number is valued only out of FM 'IDOC_OUTPUT_DELVRY' in Report RSNASTED

Have you any suggestion to solve my trouble?

thanks in advance,

Frank

3 REPLIES 3
Read only

Former Member
0 Likes
532

Hi Frank,

did u checked this ..

i think u need to custmer exit over here

EXIT_SAPLV56K_002

INCLUDE ZXTRKU02.

EXPORTING

CONTROL_RECORD_OUT = CONTROL_RECORD_OUT

MESSAGE_TYPE = CONTROL_RECORD_IN-MESTYP

SEGMENT_NAME = SEGNAM

DATA = DB_DATA

TAB_IDOC_REDUCTION = TAB_IDOC_REDUCTION

TABLES

IDOC_DATA = INT_EDIDD

just check if db_data has a value ...

in the debugging just check if the data is still in idoc ,

then update the idoc status ..

hope this helps ,

regards,

VIjay.

Message was edited by: Vijay

Read only

Former Member
0 Likes
532

Hi Frank,

I would lke to suggest to create custom process routine (with medium 8 - special function ) by copying program RSNASTED to ZRSNASTED and assign to corresponding output type in transaction NACT for application V2 (shipping).

Once you copied, you can put your custom codes to update custom table with the new delivey IDoc number after calling FM EDI_DOCUMENT_CLOSE_CREATE_TAB. There is an idoc number returned from FM (EDIDC-DOCUNUM).

Hoep this will help and give an idea.

Regards,

Ferry Lianto

Read only

0 Likes
532

Thanks Lianto,

your idea is so good....and now the only one.

If you haven't other trick I'm starting to follow your suggestion.

Regards,

Frank