Skip to Content
author's profile photo Former Member
Former Member


Hi All,

Can any one give me logic to do the following:

I have item text(boxno,boxqty)

item 10

p_box_qty[] = 1,1

p_box_num[] = 1,2

I am reading the same structure using READ_TEXT function module into a internal tabel t_lines like lines.

for a perticuler delivery no for perticular item.

that means for boxnum 1 qty 1

boxnum 2 qty 1


p_box_qty[] = 1,1

p_box_num[] = 1,2

in above structure only ihave to take 1,1 for qty and 1,2 for boxnum .i need to pass these values to a final internaltable .

Please suggest me.

Thanks in Advance.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 23, 2006 at 08:47 AM

    Hi ramu,



    lt_qty type table of i with header line,

    lt_boxnum type table of i with header line,

    begin of ls_box_qty,

    box type i,

    qty type i,

    end of ls_box_qty,

    lt_box_qty like table of ls_box_qty.

    loop at t_lines.

    if t_lines(13) = 'p_box_qty[] ='.

    split t_lines+13 into table lt_qty.

    elseif t_lines(13) = 'p_box_num[] ='.

    split t_lines+13 into table lt_boxnum.



    loop at lt_boxnum.

    ls_box_qty-box = lt_boxnum.

    read table lt_qty index sy-tabix.

    if sy-subrc = 0.

    ls_box_qty-qty = lt_qty.


    append ls_box_qty-qty to lt_box_qty-qty.



    Hope it helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.