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

Regarding row method

Former Member
0 Likes
491

Hi

Any body can send the sample program for row method.

Thanks

Maheedhar.T

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
468

Hi Maheedhar,

Please elaborate your requirement.

Regards,

Saurabh

4 REPLIES 4
Read only

Former Member
0 Likes
469

Hi Maheedhar,

Please elaborate your requirement.

Regards,

Saurabh

Read only

0 Likes
468

i have the function module to create the assortment module i have to write a wrapper program that will accept the data from the file and create and change the assortment module using this function module.

The file can have the data for multiple assortment modules. here i have to use the technique of row type where the first character of each row in the file tells you whether it is a header record or material record or comment text..

Thanks

Maheedhar.T

Read only

0 Likes
468

You will need to create an internal table which holds the data fed to the program by the file. In this internal table, I guess the first field would tell you whether the record is a header or not. Use this code to find out:

LOOP AT itab.

IF itab-field1+0(1) = 'H'.

  • row is a header, do something..

...

ELSEIF itab-field1+0(1) = 'I'.

  • row is an item, do something else..

ENDIF.

ENDLOOP.

Is this what you are looking for?

Sudha

Read only

Former Member
0 Likes
468

can u plz send me the sample program so i can implement the logic ......

Thanks,

Maheedhar.T