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

Program with Multiple Screen/User Inputs

Former Member
0 Likes
2,407

Hi Experts,

I need help in writing a report to update a transparent table.

First Screen should have option to select:

Create the entry in table  OR Modify the Entry in Transparent Table

Logic of table update/modify: Say I have a z transparent table with key KEYFLD (Just one field). I need to insert a new row or modify the table's data fields DATAFLD1 or DATAFLD2 or DATAFLD3 (User will choose which field needs to be updated)  based upon given Key value in the program.

So on this first selection screen of my program, I need to provide user a selection field to give value of KEYFLD (it will decide which data record needs to be updated in table) ..and to choose which data field he wants to update. This seems to be easy part.

Say user choose KEYFLD= ABC_100....and he choose DATAFLD1 to update; then program should update value of DATAFLD1 as FLD1_100 ( String "_100" should come from KEYFLD value).

If the above update for one KEYFLd is successful in table, I need to display a success message. After a success message, I need to provide another selection screen where user could select multiple values of KEYFLD (say ABC_200 to ABC_250) and update the DATAFLD1 as FLD1_200,FLD1_201,..FLD1_250.


The complexity is to have 2 selections screens in the program and to have dependency of both of them. If first screen result is successful, then only go to next selection screen for next activity. Also in the second screen the value to be updated has to be decided based upon key field value.

Please assist.

Thanks

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,016

Hi

You can create a modulew pool program for the same with two screens.

Nabheet

Read only

former_member219762
Contributor
0 Likes
1,016

Hi,

You can define second selection screen with dynamic select-options as shown in this link http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+Program+to+generate+select-options+dynamically

Regards,

Sreenivas.

Read only

Former Member
0 Likes
1,016

Hi Experts,

Could anyone share sample code for this please..

Thanks

Read only

0 Likes
1,016

Please first search and try to do it...create two screens and work