I am working on Inbound interface using IDoc (ORDERS05); during Idoc process IDOC_ORDERS_INPUT; i have to take segment value and need to populate at order items level; in custom field (in additional tab B).
For that i am using FM (Customer exits) :
Step 1- EXIT_SAPLVEDA_001 (Getting segment value and passing to XVBAP-Zfield).
Step 2- EXIT_SAPLVEDA_002 (Passing Value to respective screen using BDCDATA table).
Due to unable to find where i have to set flag and how ?; To avoid multiple record to append ; BDCDATA Table with same screen.
As mention in this link for Header level additional tab B : http://www.sapfans.com/forums/viewtopic.php?f=21&t=62945#p1025880.
They are using my_flag to avoid ,issue as i mention in above step.
Step 3 - At last they are deleting my_flag in FM : EXIT_SAPLVEDA_003. (find in above link)
Thanks in Advance