2006 Oct 27 3:58 PM
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
2006 Oct 27 4:14 PM
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
2006 Oct 27 4:50 PM
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
2006 Oct 27 5:12 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |