ā2013 Nov 07 11:38 AM
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
ā2013 Nov 07 12:09 PM
Hi
You can create a modulew pool program for the same with two screens.
Nabheet
ā2013 Nov 07 5:26 PM
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.
ā2013 Nov 08 10:19 AM
Hi Experts,
Could anyone share sample code for this please..
Thanks
ā2013 Nov 08 10:24 AM
Please first search and try to do it...create two screens and work