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

IDoc after adding Z text

Former Member
0 Likes
473

Hi,

We have scenarios where we create Shipment document (VT01n) using BAPI. Before this, we use to add test using standard BAPI structure and shipment and Text 1-4 was getting created in single LUW. IDOC is setup as output causing IDOC to trigger

In the change scenario, we have to add more texts  so we have created Z text ( 12 of them) and now working on the code to add it

Using FM Create text requires, shipment no so i am calling this FM after the BAPI and commit work.

However, i am noticing that this treated as change in Shipment document and every text addition ( ZText1-12) is causing one idoc to trigger.

So lets say we have 12 Z text, it causes 12 idoc to create.

Can you advice, if we can advice Z text before the Shipment of if we have to do how to avoid multiple IDOC creation

Thxs!

Hi,

We have scenarios where we create Shipment document (VT01n) using BAPI. Before this, we use to add test using standard BAPI structure and shipment and Text 1-4 was getting created in single LUW. IDOC is setup as output causing IDOC to trigger

In the change scenario, we have to add more texts  so we have created Z text ( 12 of them) and now working on the code to add it

Using FM Create text requires, shipment no so i am calling this FM after the BAPI and commit work.

However, i am noticing that this treated as change in Shipment document and every text addition ( ZText1-12) is causing one idoc to trigger.

So lets say we have 12 Z text, it causes 12 idoc to create.

Can you advice, if we can advice Z text before the Shipment of if we have to do how to avoid multiple IDOC creation

Thxs!

1 REPLY 1
Read only

Former Member
0 Likes
439

Hi

Can you write the name of BAPI being used .. there may  be alternative BAPI's which you should be using like Update .Save etc .. see if that works and Add all the text in a loop ?

Regards

Vinita