Application Development 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: 

Need some information module pool programming table control.

Former Member
0 Kudos

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.

10 REPLIES 10

Former Member
0 Kudos

On the screen painter have you assigned the fields of the internal table/work area to the table control fields?

Vikram.M

0 Kudos

hi, vikram

Thanks for your reply.

yes i assigned..

i assigned  to wa_table-fieldname

for four columns.

Small questin While creation the transaction code for module pool programming it will ask the

tcode and program name and screen name it will ask.

my doubt is in my programming i am having 2 screens first screen is giving the input and

second screen is show the result i was given first screen ...

i dont think this is the problem..

may i know what are the reasons are behind..i am not getting the output....

Requesting for valuable suggestions...

0 Kudos

Can you try the below:

PBO:

LOOP AT IT_EKPO INTO WA_EKPO WITH CONTROL TBC

  MODULE put_data.

ENDLOOP.

module put_data_9002 output.

   data: lv_lines type i.

* Display entries tab

   describe table gt_xyz lines lv_lines.

   tc1-lines = lv_lines.

   read table gt_xyz index tc1-current_line into wa_xyz.

endmodule.  


PAI.

loop with control tc1.

endloop.

0 Kudos

hi..

thanks for u r reply i will try it..

give me some time.......

0 Kudos

hi, vikram i tried your code but not working..

it is telling that cursor is expecting in loop. showing error message...

Any information please update me..

prad_k
Explorer
0 Kudos

Check Screen Painter Attributes. The Format of the table control screen fields and workarea fields should be same.

Former Member
0 Kudos

hi,

pradeep thanks for your reply...

Please have a look on below attached files.

one is for tbc control and other for tbc filed...

tab control does not have the attribute like char.

Any information please update me..

0 Kudos

A picture is worth a thousand words, Please check

Former Member
0 Kudos

hi, pradeep thanks for your rpely..

Give me some time i will check it. and i will update to u...

Former Member
0 Kudos

hi, pradeep.

I am not able to select the  format of the type char to any other type like curr, numeric.

i checked existing one and also

again new one i try to create it.

i took tab control then  at screen painter header i selected the dictionary then i pick the fields from ekpo then i darg it on tab control.

then also i checked...

same problem...

can u plz guess what is the problem.....