Application Development and Automation 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: 
Read only

Table control probelm

Former Member
0 Likes
400

hi,

My screen having header and detail inf, detail is table control

When i press one field of header get line items in detail table.

for that

I created subscreen with 200 and called in main screen 100.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0200.

CALL SUBSCREEN sub including SY-REPID '0400'.

PROCESS AFTER INPUT.

CALL SUBSCREEN sub.

MODULE USER_COMMAND_0200.

Here my req is , when i enter value in field and press button automatically lineitems displayed in detail.

any sample code, could you paste it.

thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

Hi ,

you can populate the Table control in PBO of the subscreen


PROCESS BEFORE OUTPUT.
MODULE getdata.
  MODULE tc_data_change_tc_attr.
  LOOP AT   it_bapi3008_2
       INTO lw_bapi3008_2
       WITH CONTROL tc_data
       CURSOR tc_data-current_line.
    MODULE tc_data_get_lines.
  ENDLOOP PROCESS AFTER INPUT.
  LOOP AT it_bapi3008_2.
    CHAIN.
      FIELD lw_bapi3008_2-sp_gl_ind.
      FIELD lw_bapi3008_2-doc_no.
      FIELD lw_bapi3008_2-doc_date.
      FIELD lw_bapi3008_2-lc_amount.
      MODULE get_cursor.
    ENDCHAIN.
  ENDLOOP..

with regards

Nilesh

2 REPLIES 2
Read only

Former Member
0 Likes
374

Hi ,

you can populate the Table control in PBO of the subscreen


PROCESS BEFORE OUTPUT.
MODULE getdata.
  MODULE tc_data_change_tc_attr.
  LOOP AT   it_bapi3008_2
       INTO lw_bapi3008_2
       WITH CONTROL tc_data
       CURSOR tc_data-current_line.
    MODULE tc_data_get_lines.
  ENDLOOP PROCESS AFTER INPUT.
  LOOP AT it_bapi3008_2.
    CHAIN.
      FIELD lw_bapi3008_2-sp_gl_ind.
      FIELD lw_bapi3008_2-doc_no.
      FIELD lw_bapi3008_2-doc_date.
      FIELD lw_bapi3008_2-lc_amount.
      MODULE get_cursor.
    ENDCHAIN.
  ENDLOOP..

with regards

Nilesh

Read only

0 Likes
373

can i have cde form endform of MODULE tc_data_get_lines.

here my req is how to trigger subscreen,

when i enter some value header field, based on that line items should trigger in table control of subscreen

in main screen (100).

PAI Event.

when i press 'PULL' button.

How it fill values in table control of subscreen.

Thanks