Skip to Content
avatar image
Former Member

table control

hi gurus,

in dialog module i want to display one input box,button for display and table control.

when i enter the vendor no in input box i want to display the fields from ekko table after click the display button.help me please.

thank you.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Aug 17, 2007 at 11:13 AM

    Hi..

    This is the Sample code for ur Req:

    Screen Flow Logic:

    PROCESS BEFORE OUTPUT.

    LOOP AT IT_EKKO INTO WA_EKKO WITH CONTROL TABCON1 .

    MODULE COPY_TO_TABLE_CONTROL.

    ENDLOOP.

    PROCESS AFTER INPUT.

    LOOP AT ITAB INTO WA_EKKO.

    ENDLOOP.

    MODULE USER-COMMAND .

    Module Pool Logic:

    MODULE COPY_TO_TABLE_CONTROL OUTPUT.

    MOVE-CORRESPONDING WA_EKKO TO EKKO.

    "Assuming Your Table control fields are from Workarea EKKO

    ENDMODULE.

    MODULE USER-COMMAND INPUT.

    SELECT * FROM EKKO INTO TABLE IT_EKKO

    WHERE LIFNR = LFA1-LIFNR. "LIFNR FIELD in your Screen

    TABCON1-LINES = SY-DBCNT.

    ENDMODULE.

    Try to use this code.

    <b>Reward if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded