May 31 2008
Sending IDocs Via RSNASTED
Standard R/3 provides you with powerful routines, to trigger, prepare and
send out IDocs in a controlled way. There is only a few rare cases, where
you do not want to send IDocs the standard way.
The ABAP RSNAST00 is the standard routine to send IDocs from entries in the message control. This program can be called directly, from a batch routine
with variant or you can call the FORM einzelnachricht_screen(RSNAST00) from any other
program, while having the structure NAST correctly filled with all necessary information.
If there is an entry in table NAST, RSNAST00 looks up the associated processing routine in table TNAPR. If it is to send an IDoc with standard means, this will
usually be the routine RSNASTED(EDI_PROCESSING) or RSNASTED(ALE_PROCESSING) in the case of ALE distribution.
RSNASTED itself determines the associated IDoc outbound function module, executes it to fill the EDIDx tables and passes the prepared IDoc to the port. You can call the standard processing routines from any ABAP, by executing the following call to the routine. You only have to make sure that the structure NAST is declared with the tables statement in the calling routine and that you fill the at least the key
part and the routing information before.
TABLES NAST.
NAST-MANDT = SY-MANDT.
NAST-KSCHL = ‘ZEDIK’.
NAST-KAPPL = ‘V1′.
NAST-OBJKY = ‘0012345678′.
NAST-PARNR = ‘D012345678′.
PERFORM einzelnachricht_screen(RSNAST00).
Calling einzelnachricht_screen determines how the message is processed. If you want to force the IDocprocessing
you can call it directly:
TNAPR-PROGN = ”.
TNAPR-ROUTN = ‘ENTRY’.
PERFORM edi_processing(RSNASTED).
Leave a Reply
You must be logged in to post a comment.
Not A Member? Register for Free!





