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: 

Table Control and Buttons

Former Member
0 Kudos
127

Hi Experts,

This is my scenario:

1. I have a table control ready with me, which contains 6 fields, 2 radio buttons and 1 push button.

This is for 'N' number of rows.

2. The position of the radio buttons is in between these 6 fields, exactly at the center.

The position of the push button is at the end of the row.

These are my requirements:

1. All the push buttons for all rows should be in disable mode.

2. After the user has entered data in first 3 fields, the radio buttons come into picture.

3. If rad1 = 'X', then the user continues entering data for remaining 3 fields and goes

to the next row to the next row to enter more data or else he/she presses save and

the data is saved in the Internal Table.

If rad2 = 'X', then the push button for that row gets enabled.

4. When the Push button is clicked, a pop-up screen is populated and the

user enters more info for that row.

5. After entering data in the pop-screen , the user presses enter and the data is saved for that row.

6. Like this the process has to continue as long as the user wants to enter data for each row.

7. Please do stress on how to save the data from screen to Internal table.

I am really facing lot of problems and I need solution desperately.

Please help me asap.

Thanks

Chandan

Edited by: chandan sinha on May 13, 2009 7:48 AM

4 REPLIES 4

Former Member
0 Kudos
78

I really need your help guys, there is no one who can help me ??

Former Member
0 Kudos
78

Hello Chandan,

Soluton to Question 1.

In PBO Module loop and check the tablecontrol is having data or not if its initial loop at screen and disable the push button.

ex. let GT_NEW_ABAN be your tbcl Variable.

loop at GT_NEW_ABAN

into GT_NEW_ABAN_WA

with control TAB_FAC_ABAND

cursor TAB_FAC_ABAND-current_line.

module hide_buttons.

endloop.

MODULE hide_button.

if GT_NEW_ABAN_WA is initial.

loop at screen.

hide the corresponding button.

modify screen

endloop.

ENDMODULE.

4. Scenario you can use a MODAL SCREEN which works as a popup.

for all the push buttons you need to have same function code.

just need to clear the popup screen everytime.

5. in PBO of the modal screen you acn put the codes to save the data to your database.

FOR saving the data from screen to internal table you need to transfer the screen data to internal table inside the LOOP of PBO.

ex.

loop at GT_NEW_ABAN

into GT_NEW_ABAN_WA.

MODULE capture_data_from_screen.

ENDLOOP.

MODULE capture_data_from_screen.

move-corresponding GT_NEW_ABAN_WA to wa.

append wa into itab.

ENDMODULE.

Hope you will get some idea from the above discussion.

Warm Regards,

Suvendu

0 Kudos
78

Hey Suvendu,

if u dont mind, can u please share your email address, where I can reach u immediately ?

Please this is a high priority case for me.

I need ur help mate.

Thanks

Chandan

Former Member
0 Kudos
78

solved