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: 

Regarding Module pool programming

Former Member
0 Kudos

Hi All,

I am having a issue in Dialog programming.

At present i am having a an element in <b>'Company Code'</b> in my screen as parameter. I want to Replace that single value entry field for <b>‘Company Code’</b> with a range or multiple values. How can i achieve it.

Without creating another same dictionary field side of company code directly can we make <b>company code</b> field Select-option.

Please clarify.

Thanks in advance.

Thanks & Regards,

Rayeez.

2 REPLIES 2

Former Member
0 Kudos

Hi Shaik.

First don't forget the reward if my answer helpd

The easiest way is to defined a select option in your dialog screen !!!!

All info here : http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm

I suggest you defined in the program a selection screen.

TABLES PA0001-BUKRS .

SELECTION-SCREEN BEGIN OF SCREEN 500 as subscreen.

select-options : Ccoce for BUKRS

SELECTION-SCREEN END OF SCREEN 500.

Then in your dialog screen you defined a subscreen area ...

Then within the PBO of the dialog scree: CALL SUBSCREEN area INCLUDING sy-repid number.

Message was edited by: STEPHAN KAMINSKI

Message was edited by: STEPHAN KAMINSKI

Message was edited by: STEPHAN KAMINSKI

Former Member
0 Kudos

HI Shaik,

Its simple. First declare an internal table with company code (Bukrs most probably) as a field. Now in the screen create a table control on this internal table, and makes the fields input enable..thats it.

Once the user enter value in the table, you just loop into that internal tabl and get the vales..

Is it ok?