‎2006 Jul 06 6:44 AM
Dear Sir,
Can any body pls tell me how to pass screen field values generically in dialogue programming...the screen field values like input,output, group...
Can we use the table 'SCREEN' in dialogue programming..?? & how???
Regards,
Rushikesh
‎2006 Jul 06 6:50 AM
Hi,
Following links might help,
1.http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba70535c111d1829f0000e829fbfe/frameset.htm
2.http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm
Rgds,
‎2006 Jul 06 6:50 AM
1) Just check out with IMPORT/EXPORT option if the flow is comming in same session. There is an option for importing DYNPO also. Check it out.
2) If not you can use SET/GET PARAMETER.
3) Regarding the table SCREEN, I believe you can make use of that in the module program of the screen.
rgds,
TM
Please mark points if helpful.
‎2006 Jul 06 6:51 AM
Hi,
See wht u can do is just take the similar names which u have used in ur prog if u take the same names data will be automatically transferred.
Hope this helps u.
Seema.
‎2006 Jul 06 6:52 AM
Hi Rushikesh,
What exactly is your requirement....?
You can use the table SCREEN for modifying the screen element attributes at runtime...
Suppose for example , when I click on a button, I want a button to be displayed...It can be done , but only in the PBO event....
Initially , go to the screen attributes and make it invisible...
Now in the program, you can do like this
1) Declare a global variable (say flag initialized to zero).
2) In PBO event
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD1' and FLAG = 1.
screen-invisible = 0.
modify screen.
endif.
endloop.
3) In PAI event.
case sy-ucomm.
when 'CLICK'.
flag = 1.
endcase.
This is one example , you can have any number of situations.
Regards,
SP.
‎2006 Jul 06 7:11 AM
Hi SP,
actually i am trying to generically enable/disable a tablecontrol field. hence i am already using
loop at tctrl with control tctrl.endloop. statement....
so can u pls tell me where exactly i have to use the
Loop at SCREEN statement and how???
Regards,
Rushikesh
‎2006 Jul 06 7:18 AM
Hi Rushikesh,
Haven't worked with that ... But I think you can do that...
Why don't you refer to this link... I think it is related to your question.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm
Regards,
SP.
‎2006 Jul 06 7:23 AM
Hi,
if you want to change the properties of table control fields , you need to use the LOOP AT SCREEN in table contol loop statement like :
loop at tctrl with control tctrl.
perform screen_changes.
endloop.
form screen_changes.
Loop at SCREEN.
if screen-name = 'FLD1'.
screen-input = 0.
endif.
endloop.
endform.
Laxman
‎2006 Jul 06 6:53 AM
Hi,
Use loop at screen in PBO. to change the properties of fields dynamically.
Like.
LOOP AT SCREEN.
IF screen-name = 'field1'
screen-input = 0
MODIFY screen.
ENDIF.
ENDLOOP.
Regards,
Wasim Ahmed
‎2006 Jul 06 7:00 AM
hi
u can use ur screen field name in ur program for passing screen field value.
chetan vishnoi