‎2009 Sep 17 2:54 PM
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,
‎2009 Sep 17 3:49 PM
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
‎2009 Sep 17 3:49 PM
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
‎2009 Sep 17 4:04 PM
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