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

Repeat Delivery Output

Former Member
0 Likes
7,748

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.

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
2,921

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