Set the parameter in the selection screen of a program from another program
Hi ALL,
I need to call the program RHALESMD from another program and the program RHALESMD takes from date as one of the input parameter.how do i set the from date from the calling program and call RHALESMD
Thanks
Bala Duvvuri
i got the answer
Program accessed
REPORT report1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Thanks
Bala Duvvuri
Similar Messages
-
How to maximise the length of the Parameter text on Selection screen
Hello,
I am putting the text in the selection screen for a Parameter.
Its text is long and it is not letting me to put the whole text in Text Symbol.
In the report
When I click on GOto--> Text Elements --> Selection Texts
I am sure there is a way we can maximise this...
ANy suggestions will be apprecaiated.
Regards,
KittuHello,
Thank you for all your response!
Here is my code :
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
PARAMETERS : BOTH RADIOBUTTON GROUP RG1,
EXICLASS RADIOBUTTON GROUP RG1.
SELECTION-SCREEN END OF BLOCK B2.
Here for Both, I need to add the selction text as 'BOTH Existing and Non-existing Classifications'
This is a parameter, can any body explain me how to do it with the Parameters.
Any suggestions will be appreciated.......
Regards,
Kittu -
Call Program from another Program using varient via Selection Screen
I am calling a standard report from my Z Program via Selection screen.
Is there any way to hide the Execute button that is seen when we see the called program selection screen?Hi Shyam,
Thanks for the quick reply.
But my requirement is to show the selection screen of called program as i need to make some values changes in the selection Screen.
However, the user can accidently click the execute button which i dont want thats why i need to hide the execute button.
My aim is to change values of selection screen but nto execute it.
Is it possible? -
How to get two parameters in the same line of selection screen?
hello
i need to get my selection csreen like bellow.
r1 radiobuttion -some space --p1 parameter
i should not get the parameter in the next line of radiobuttion.
how to get two parameters in the same line of selection screen?hi....
modify the following code
it will work
SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(15) TEXT-001
FOR FIELD P1.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS : P1 TYPE C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
P2 TYPE SCARR-CARRNAME,
P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK SL1. -
Dynamic Data selection for the Filed entered in Selection Screen.
Hi All,
My requirement is as follows.
1 select options in Selection Screen for MATNR (SO_MATNR)
1 parameter field in Selection Screen for entering a MARC field name. (P_FIELD)
Now the Program has to display the values of this Field (Entered by the user as P_FIELD) from MARC table, where MATNR is in SO_MATNR.
I understand that this would require a dynamic select statemant but could not figure out the correct way.
Please help me with the code for this requirement
Regards,
SunilNot sure If I understand correct, but here's an example on what I think you are looking for. I don't have an ECC system here (we're on CRM), but you should adept it to your tables and fieldname.
TABLES: but000.
DATA: lt_feld TYPE TABLE OF name_feld,
lw_feld LIKE LINE OF lt_feld.
SELECT-OPTIONS: so_part FOR but000-partner.
PARAMETERS: field TYPE name_feld DEFAULT 'MC_NAME1'.
SELECT (field) FROM but000
INTO TABLE lt_feld
WHERE partner IN so_part.
LOOP AT lt_feld INTO lw_feld.
WRITE:/1 lw_feld.
ENDLOOP. -
How to set UTL_FILE parameter in the INIT.ORA file
Dear all,
How can i set UTL_FILE parameter in the INIT.ORA file.
Also let me know how to create a directory over there.I am new to this area.
Where exactly i can locate these details and create directory.
Regards,
Bala.post this in database forum
-
How to Improve the performance in Variable Selection Screen.
Hi,
In Query Level we have Variable " User entry Defalt Valu". User want select particular value when he press "F4" it's take hours time how to improve the performance in Varaible Selection Screen.
Thanks in Advance.
Regards,
Venkat.Dear Venkat.
You please try the following steps:
1. Say the InfoObject is 0EMPLOYEE against which you have created the variable, which user is trying to select value against, when they execute the report.
2. Goto RSA1-> InfoObject tab-> Select InfoObject 0EMPLOYEE.
3. Selcet the following options:
Query Execution Filter Val. Selectn - 'Only Posted Value for Navigation'
Filter Value Repr. At Query Exec. - 'Selector Box Without Values'
Please let me know if there is any more issue. Feel free to raise further concern
Thnx,
Sukdev K -
How to make the obligate field in selection screen
Hi ,
In my report two radio buttons and two bloc selection screens are there.When we select the first radio button first screen will be editable second screen will be non-editable vice-versa.
but the problem is in each selection screen one mandatory field is required suppose if i give the one field obligatory in first block screen it is not allowing the second readout please help me regarding this how i will make the mandatory field in both screens.
Thanks,
HarinathHi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b> -
How to color the text element in selection screen
hi,
i am going to pass some text element in selection screen output and my requiremnt is text element should be given some colour.
plz guide me.
regards
muthuraman.dHi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b> -
How to set a field inactive at selection screen?
Hello, here is the definition of my selection screen.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_typcmd FOR EKKO-BSART DEFAULT text-003, "Type de commande
s_grpe FOR EKPO-MATKL ,
s_ebeln FOR EKPO-EBELN. "Numéro de commande
SELECTION-SCREEN END OF BLOCK b1.
I want to set s_grpe to inactive.thxStatic
Add the NO-DISPLAY option.
PARAMETERS: pxxxx TYPE xxxx NO-DISPLAY.
The parameter will only be reachable by SUBMIT WITH.
Dynamically
assign a MODIF ID xxx to the parameter, and in PBO (AT SELECTION-SCREEN OUTPUT) do a
PARAMETER param TYPE xxxx MODIF ID XXX.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'XXX'..
IF <test>.
screen-active = '0'.
ELSE.
screen-active = '1'.
ENDIF.
So you can choice when to display or not the parameter.
Regards -
How can i set dynamice for week on Selection screen..pls help me..Urgent
Hi..All
please Help me .. i am very confused..
i need to set a varient for week which is dynamic on selection screen.
b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
pls help me..urgent
thamks in advance.
mayukhHi,
I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
option and then choose current days + or - option from there.
Rgds,
HR -
Report - parameter name in selection screen
Hi,
I am working with a report and in that I am using a parameter for my selection screen.
Parameter : lifnr like lfa1-lifnr.
My question is: when i execute the program i see in the selection sreen 'Lifnr'. How to get a text say 'Vendor no.' instead of LIFNR in selection screen.
ThanksHi,
Go to the TEXT ELEMENTS of the program from the SE38 screen. Click on the SELECTION TEXTS tab, and you can give whatever desription you want for the selection screens here.
If you want the description from the data dictionary just check the check box on the right hand side.
Regards,
Ravi
Note : Please mark the helpful answers -
How to pass wild card '%' value from the parameter to the query
Hello everyone,
I have following 2 problems
1) I was trying to do some thing like below
select * from emp
where ename like 'J%'
for this i have used the following code
select * from emp
where ename like :P_ENAME
and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
user should be able to enter
a) JASON, SMITH, JOHN OR b) J%
I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
Can anyone please help me with these things?????
Thanks in advance!!
RaghuHi Raghu,
I guess you are in older version, You have to get into latest version to use %, it should work well
you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy. -
Why does the parameter of the paintComponent method have....?
Why does the parameter of the paintComponent method have type Graphics and not Graphics2D?
masijade. wrote:
Additionally, it is, however, normally, a Graphics2D object's reference value that is passed around....which means most painting code starts out by casting the Graphics object to Graphics2D. You know what they say: death, taxes, and cruft... :P -
Displaying selection screen as pop-up from dialog box
Hi,
I have a screen which is of dialog-box type. This dialog screen shows an ALV and has a button in the ALV toolbar. On pressing this button, a pop-up screen is to be displayed. This pop-up screen is designed as a selection-screen. Is it possible to display this selection screen as a pop-up from a dialog box screen?
Regards,
SuhasHi Suhas,
Its possible to display selection screen as pop-up from dialog box.....Check the code below...copy paste and execute...
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE text-001.
PARAMETER p.
SELECTION-SCREEN END OF SCREEN 123.
CALL SELECTION-SCREEN 123 STARTING AT 20 5
ENDING AT 80 15.
The below code might help u to add a button in alvgrid's toolbar......
* CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
DATA: wa_toolbar TYPE stb_button,
calc TYPE REF TO cl_gui_frontend_services.
METHODS : toolbar_handle FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
ucomm_handle FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD toolbar_handle.
MOVE 3 TO wa_toolbar-butn_type.
APPEND wa_toolbar TO e_object->mt_toolbar.
MOVE : 0 TO wa_toolbar-butn_type,
'CALC' TO wa_toolbar-function,
'@0M@' TO wa_toolbar-icon,
'Calculator' TO wa_toolbar-quickinfo.
APPEND wa_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "toolbar_handle
METHOD ucomm_handle.
IF e_ucomm = 'CALC'. " When button added in toolbar is clicked
IF calc IS INITIAL.
CREATE OBJECT calc.
ENDIF.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'CALC'.
ENDIF.
ENDMETHOD. "ucomm_handle
ENDCLASS. "lcl_event_handler IMPLEMENTATION
DATA : container TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid,
event TYPE REF TO lcl_event_handler,
it_display TYPE TABLE OF mara,
wa_display TYPE mara.
START-OF-SELECTION.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'BASIC'.
PERFORM build_it_display.
PERFORM create_objects.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'CANC'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form build_it_display
* text
* --> p1 text
* <-- p2 text
FORM build_it_display .
SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
ENDFORM. " build_it_display
*& Form create_objects
* text
* --> p1 text
* <-- p2 text
FORM create_objects .
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT event.
CREATE OBJECT grid
EXPORTING
i_parent = container.
SET HANDLER event->toolbar_handle FOR grid.
SET HANDLER event->ucomm_handle FOR grid.
CALL METHOD grid->set_table_for_first_display
EXPORTING
i_structure_name = 'MARA'
CHANGING
it_outtab = it_display.
ENDIF.
ENDFORM. " create_objects
Cheers,
Jose.
Maybe you are looking for
-
Excel 2013 VBA formatting Listbox 2 columns
Have 2 listbox - Listbox 1 has 9 columns and is populated by Excel Worksheet Range. Listbox 1 shows formats correctly. User selects multiple items from Listbox1 and click a command button to inserts into Listbox2. In Listbox2 the 5th column should sh
-
HOW can I reduce space at top/bottom of inline or floating objects in text?
To fit space horizontally (left and right) works fine, but vertically (top and bottom of object) does not do much to match (text is 10-on-11pt, object abt. 2 x 1 ins).
-
What's the trigger of the FDM Task Manager
I need help on that one. I'm not too familiar with FDM Task Manager. One thing about our process. The FTP process copy the files to the \Inbox\Batches\OpenBatch. The copy process of a file is done when it's got the extension .txt instead of the .dat.
-
Hi In development environment I have many branches(copies) of a database. For every change (ddl, dml) i have to login every database manually to execute statements, Is there a client tool that support multiple database update or if any expert ever ma
-
HP 2575 Photosmart on Windows XP will not printing
The printer will not print documents saved on my computer but will print emails. When the print screen appears it says UBS001 in the "Where" when trying to print documents saved on the computer but this is blank printing emails. Don't know if this is