Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need some information module pool programming table control.

hi,

i need small information.

i am copying purchase order row level data into table control

Two screen are i  was designed  first one input screen  i am giving the doc no ekpo-ebeln.

then i am  filling   the second  screen..

but after i press the display tab control screen i am able to calling.

but it's not filling..

i checked sy-subrc = 0 it is having data sure. no doubt..

i am giving the correct input only......

I need your valuable suggestions.

zse38 program

==============

PROGRAM  ZMODULE5.

DATA A TYPE EKKO-EBELN.

CONTROLS TBC TYPE TABLEVIEW

USING SCREEN '0500'.

DATA: BEGIN OF WA_EKPO,

  EBELN TYPE EKPO-EBELN,

  EBELP TYPE EKPO-EBELP,

  MENGE TYPE EKPO-MENGE,

  MEINS TYPE EKPO-MEINS,

  NETPR TYPE EKPO-NETPR,

  END OF WA_EKPO.

  DATA IT_EKPO LIKE TABLE OF WA_EKPO.

  MODULE USER_COMMAND_1000 INPUT.

     IF SY-UCOMM = 'DIS'.

       SELECT EBELN EBELP MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO WHERE  EBELN = A.

         CALL SCREEN  0500.

         ELSEIF SY-UCOMM = 'BACK1'.

           LEAVE PROGRAM.

           ENDIF.

           endmodule.

         MODULE USER_COMMAND_0500 INPUT.

           IF SY-UCOMM = 'BACKP'.

             LEAVE TO SCREEN 0.

             ENDIF.

             ENDMODULE.

==============

flow logic of tab control

PROCESS BEFORE OUTPUT.

*MODULE STATUS_0500.

LOOP AT IT_EKPO INTO WA_EKPO WITH CONTROL TBC

  CURSOR TBC-CURRENT_LINE.

  ENDLOOP.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0500.

  LOOP.

  ENDLOOP.

Former Member
Not what you were looking for? View more on this topic or Ask a question