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

Creating custom_container variable without using screen-painter

Former Member
0 Likes
655

Hi guys,

I'm not quite sure if it is possible, but one thing I've learned is, Everything is possible in Computer Science.

So my question is, Can I create a custom container variable in a selection screen, without using screen painter?

Well, my guess is yes, if we can using screen-painter why not using abap commands.

Imagine the first selection-screen from a report, a simple one....I want(better...i need ) to create an container variable there, so that after I can load a logo image to it, but I can't use screen-painter.... How can I do that...?

Example...

SELECTION-SCREEN SKIP 1.

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

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: RB1 RADIOBUTTON GROUP G1 MODIF ID GR1.

SELECTION-SCREEN POSITION 5.

SELECTION-SCREEN COMMENT 5(32) TEXT-033.

SELECT-OPTIONS: p_num FOR ZTESTE-NUM no intervals.

'How can I place a container variable here '

SELECTION-SCREEN END OF LINE.

After creating the variable there I can load an image in a simple way to the variable, the problem is creating the variable...

Message was edited by:

Gonçalo Mouro Vaz

null

2 REPLIES 2
Read only

Former Member
0 Likes
489

Please go through this code sample. It might be helpful for your problem,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ec457c4-0a01-0010-2bbc-c6e03a4a...

Regards

Kathirvel

Read only

Former Member
0 Likes
489

Hi

Probably all is possible in another world....not here.

No! I don't believe you can't do it without using the screen painter and you should consider it's not good idea to change the screen generated for the selection-screen manually because it's generated every time something is changed so it can risk to loose own modifications.

Max