Skip to Content

Table control cursor issue

Dear Experts,

I have been given with a task regarding Module pool programming.I have created one table control ,where i will give input as material number then it should populate other details in remaining fields of the row.What my issue is,for the first record it is giving correct values,but if i enter next value in table control, it is doubling up.After debugging i came to know that,cursor is always pointing to the first record only.so it is taking work area of first record.I tried changing my cursor position useing SET CURSOR FIELD.But no use.Here i have attached my test case screen shots .please help me out.

Flow logic:

PAI module:(process)

Ouput one:

output two:

flowlogic.JPG (27.6 kB)
PAI-module.JPG (33.3 kB)
op1.JPG (22.4 kB)
op2.JPG (23.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 26, 2012 at 06:54 PM

    Hi NAresh,

    In the PAI, change the blank LOOP..ENDLOOP to

    LOOP at LT_MARA into LS_MARAchainadd all your fields of table controlmodule process on chain requestendchainendloop

    MODULE PROCESSMODIFY IT_MARA  FROM LS_DISP    INDEX TC_DISP-CURRENT_LINE.IF subrc <> 0 APPEND IT_MARA   

    Check out the Table control documentation for more details on how the cursor is controlled and other fields to manipulate the behavior.

    -Puneet

    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.