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: 

SCREEN field values

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

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,

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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

dani_mn
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi

u can use ur screen field name in ur program for passing screen field value.

chetan vishnoi