‎2010 Jul 19 4:32 PM
Hi,
I would like to repeat output of a delivery header using a BDC. To do this I use a BDC to copy the first line in the table control in screen Delivery:Output and press the button repeat output. But what if no line exists there in the table control to repeat the output.
1. Is there a way I can determine the output mediums of a delivery (any table or function module??), in this way if there exists no output medium I can simply skip repeating the output.
2. Is there a BAPI that can help me repeat the output of delivery header.
‎2010 Jul 19 8:22 PM
Hello Grame
In order to repeat (mass) delivery output I use transaction VL71.
For this transaction you could generated two versions of BDC or, even better, eCATTs:
- one version where processiing mode = '1' (= initial output)
- one version where processing mode = '2' (= repeated output)
Now you could simply combine the two eCATTs in the way that if the first one (mode = 1) fails (-> message "No messages for initial processing exist") then excecute the second eCATT (mode = 2).
You may check table NAST in advance for existing records but then you need to know the output type.
Regards
Uwe