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

select-options in subscreen

Former Member
0 Likes
595

Hi people!

I've got a subscreen with an I/O field and a subscreen. In that subscreen I load a select-option, but when I put data on the fields, I realize the I/O field keeps the data but my select-option is 0, there's no data on it. I'm sure the answer must be really simple but I can't find it and it's driving me nuts. Thanks in advance for your help.

Zigor.

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
562

Are you clearing the select-option somewhere? I assme this SELECT-OPTION is being defined in a SELECT-SCREEN as a SUBSCREEN and then you are then embeding this into a subscreen container in your dynpro?

REgards,

Rich Heilman

Read only

0 Likes
562

Exactly. I've got a subscreen in a dynpro and in the main program I've defined it like this:

SELECTION-SCREEN BEGIN OF SCREEN 0610 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS n_matnr FOR ekpo-matnr.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 0610.

but I'm not clearing it. I debug just after i write the data on it but nothing.

Read only

0 Likes
562

Well, I've finally used the FM 'COMPLEX_SELECTIONS_DIALOG' to do it, altough I'd still like to know what's wrong, why the select-options don't keep the data. Thanks for eveything.

Read only

Former Member
0 Likes
562

Hello,

today i had the same problem with I/O fields. The solution is written in the SAP Help:

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/frameset.htm

You also have to call the subscreen in the PAI of the Dynpro.

Call subscreen sub.

Greetings,

Bernhard