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

Wait batch-input process

0 Likes
925

Hi,

Has someone knows, a way for wait the Batch-input process don´t excute completly sincec every entries be correct ?

Exemple:

I got a file with 10 entries:

And i will do a Bi from F-02.

Loop

CALL TRANSACTION 'F-02' USING it_bdctab

OPTIONS FROM t_options

MESSAGES INTO tabmess.

endloop.

IF my third entrie got a error , the BI don´t process the first and second or go back the process of this entries .

I know it´s is very simple, but i am not remeber how to do..!!

Many thanks.

3 REPLIES 3
Read only

brad_bohn
Active Contributor
0 Likes
685

Each transaction is independent. Why do all of them need to process successfully together? Don't your transactions have a unique Reference where you can verify existence and re-process the file as many times as you like?

Read only

0 Likes
685

You are right, But in F-02 if you try to process the same entrie 2 times , SAP will process and duplicate it, but with diferent documents number.

I need do a consistancy if every entrie is correct before process BI.

I though do it manually, but if exist a way to do it through BI is much better.

Thank you .

Read only

brad_bohn
Active Contributor
0 Likes
685

Like I said, you need to put a unique identifier on the document, whether that's in the Reference field or another field, and check for the existence of that value on a document before posting. Normally, a good programming practice is that you don't convert documents from another system without it.