‎2009 Dec 09 4:51 AM
hi screen masters,
i have screen with 12 input and output fields
1st 3 fields come from dictionary where i dont have any problem when i displa the data.
but other 9 screen fields do not come from any dictionary but as a result of my select statements.
for ex : i have : field : kna1 -kunnr = 100 i display it on the screen output.
mara-meins = KG i display it on the screen output.
NOW :
GROUP = I1 where it is not coming from any of the tables
GROUP TYPE = I009 where it is not coming from any of the tables
i have those two values on : variables ex : GROUP = I1 and GROUP TYPE = I009.
so in this case how can i display GROUP and GROUP TYEP on the output of the screen?
i hope you understand my explanation. THANKS IN ADVACE,
thank you all,
pasala.
‎2009 Dec 09 5:00 AM
Hi,
If i understand your query correctly.. YOu want to group the fields on O/p to 2 section.
For the same you can use "Group" (you can specify upto 4 groups for variable) on the field.
Just double click on field/variable and assign group.
Let me know if i am not clear or if u need more info..
Nag
‎2009 Dec 09 5:08 AM
hi Naga,
can you please be little more clear please?
because i have never done befor like this so your brief explanation will help me alot.
thank you for your valuble time.
pasala.
‎2009 Dec 09 5:17 AM
Hi Pasala,
We can use "Groups" option in screen attributes to combine/group the fields on Screen.
Select the varibale and Go to its attributes (Double Click on The Variable)
You will see option like Groups -- Just below Height.
There are 4 fields - Neter G1 on first... and Do the same for all the first 3 fields u want to group.
lly add G2 for rest of 9 fields.
Thats all from screen side.
Coming to Coding .
In LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'g1'
you can hide or display the variables
ENDIF.
Hope this is clear.. Let me know if u need more info..
Nag
‎2009 Dec 09 5:24 AM
‎2009 Dec 10 6:24 AM
hi nag,
i have sorted the issue... where am displaying the values on the output screen. thank you so much for your input.
another problem which am facing is.....
in screen am using a FM Where am getting the data from a Classification.
this is how i get the valus using the FM
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASSTYPE = '001'
OBJECT = OBJECT
TABLES
T_CLASS = T_CLASS
T_OBJECTDATA = OBJECT_data
So now i have data in OBJECT_DATA :SO
*---->get the group type
READ TABLE OBJECT_data INTO WA WITH KEY ATNAM = 'CC-GROUPTYPE'.
IF sy-SUBRC eq 0.
var3 = wa-ausp1.
endif.
When i have value in WA-AUSP1 i move to VAR3 and display it.
now my reqirment is that
if user on the screen changes some value for VAR3 it has to be UPDATED or MODIFED.
SO how can i do this is there any FM which updates the values?
can i please have some info pls?
thank you,
pasala.
‎2009 Dec 09 12:54 PM
Hi Pasala,
Check this example: DEMO_DYNPRO_MODULE
Regards,
Swarna Munukoti
‎2009 Dec 10 6:17 AM
‎2009 Dec 18 9:26 AM