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

BADI implementation

Former Member
0 Likes
377

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

2 REPLIES 2
Read only

Manohar2u
Active Contributor
0 Likes
343

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

Read only

Former Member
0 Likes
343

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