‎2006 Jun 10 10:10 AM
hi all,
I have implemented BADI MB_MIGO_BADI for MIGO.
One requirement I have done successfully.
Now second reqd. is I want to generate the file with Document number which is flowing in IT_MSEG.
I want to generate the file when the movt. type is 103.
But I m not able to capture the IT_mseg-bwart field.
It is giving the error like the it_mseg doesn't have header line and does't have component bwart.
How to handle the internal table without header line?
So that I will be able to check the value of field bwart.
Thanks in adv.
- USL
‎2006 Jun 10 10:21 AM
Umesh,
Declare a structure and use
Loop at itab into wa_structure.
endloop.Refer to this link. This might help you.
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/frameset.htm">Processing Table Entries in Loops</a>
Regds
Manohar
‎2006 Jun 10 10:33 AM
Hi Umesh,
You can also use the ASSIGNING option of the LOOP statement to have a better performance. While using ASSIGNING option the internal table need not have a header.
Take a look at the useful weblog from Rich.
/people/rich.heilman2/blog/2006/03/07/using-field-symbols-in-loop-statements--performance-boost
Cheers
VJ