SUBMIT via selection screen and return gives dump
Hi Guys,
When i have used SUBMIT via SELECTION SCREEN and RETURN, it gave me the selection screen and subsequent report is executed properly without an error and when i pressed back button, it went to selection screen without any issues but the problem is when i press back from the selection screen it gives me a dump. Could you guys think of what would be the probelm.
Thanks in Advance.
Santosh.
Hi Santhosh,
What is the dump u r getting? I tried like this and is working file.
Report1
REPORT Z75694TEST1.
PARAMETERS po_1 TYPE c.
WRITE po_1.
SUBMIT Z75694_TEST VIA SELECTION-SCREEN AND RETURN.
Report2
REPORT Z75694_TEST .
PARAMETERS: po_2 TYPE c.
WRITE po_2.
Thanks,
Vinod.
Similar Messages
-
SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN
SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN
and it's dont make f8 whywa_rspar-selname = 'P_DEALNO'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = T_FORDER-DEAL_No.
APPEND wa_rspar TO rspar.
Submit ZSDR_SALESORDER_DISPLAY
using Selection-screen '1000'
WITH SELECTION-TABLE rspar.
orelse
*submit RSEIDOC2 with docnum-low = docnum with
credat-low = credat
and return. -
Problem in Submit via selection screen statement
Dear Experts,
I have designed selection screen and a dialog screen 100. I am passing the selection screen values to dialog screen using Selection screen via selection screen statement. When i tried to change the values in dialog screen, it is not allowing me to do so and the values are not refreshed.
I have searched the SDN Forum, but not able to find the suitable thread.
Regards,
Ramesh Manoharan
Edited by: ramesh.manoharan on Mar 17, 2010 1:03 PMHi,
I have used the below statement to pass values the values from selection screen to dialog screen (Created as an Executable program)
Submit <pgm> via selection screen
with ...... .
Dialog screen is created as an executable program where i have created two subscreen area and populating the Selection Screen as subscreen by using the below statement:
selection-screen begin of screen <subscreen no.> as subscreen.
selection-screen end of screen <subscreen no.>.
The problem i am facing is that the values of selection screen are getting populated in the dialog screen. But when i tried to change the input values in the dialog selection screen. I am unable to do that and it is not showing the new entered values. Only the previous values are shown (got from selection screen from Submit via selection screen statement).
Kindly let me know where i am going wrong ? Kindly help me to overcome the problem .
Regards,
Ramesh Manoharan -
How to set cursor after submit via selection-screen
hi guys,
i would like to set cursor to certain field, after submit via selection-screen.
eg.
SUBMIT z_mm_kbr_gr_label_01
VIA SELECTION-SCREEN
WITH p_mblnr = p_mblnr
WITH p_zeile = p_zeile
WITH p_gjahr = p_gjahr
WITH p_ccode = p_ccode
WITH p_dcode = p_dcode
WITH p_crt = p_crt
WITH p_print = p_print.
i want to set cursor field 'p_ccode' after going back to
z_mm_kbr_gr_label_01. the program always go to the first field on the screen whatever i do.
may i know how to do this?
thanks.Hi,
Please try like below .
at selection-screen output.
SET CURSOR FIELD 'P_CCODE' . -
Submit via selection-screen - Return automatically
Hello so far I have a code ....
<b> SUBMIT (p_pname) EXPORTING LIST TO MEMORY AND RETURN
USING SELECTION-SET p_vname.</b>
Now what this does is self explanatory. Afterwards I just write the list to the program with the submit statment.
However, instead of using a variant. I would like to have an option that it goes to the selection-screen where the user can input the parameters and return back to the original program afterwards.
When I tried this ...
<b>SUBMIT (p_pname) VIA SELECTION-SCREEN
EXPORTING LIST TO MEMORY AND RETUR</b>
What happens is that it goes to the selection-screen, but stays in that program which I submitted and sends the report there. Its only when I press the back button is when it Exports list to memory.
As mentioned my desired process is that after the selection-screen process is done. You return back and the report is generated there. Thank you every one and good day.Chad,
As you need the selection screen of the calling program, unless you exit out of the report, its not going to come out of the program. Once the program is displayed, you will hav explicity come out of it.
Regards,
Ravi
Note : Please mark the helpful answers -
Prob in Submit Report via Selection screen.
Hi,
I have to submit a report via selection screen.
The report name is detemined at run time.
This i am able to handle easily as we can use SUBMIT (V_PROG)...
WHERE V_PROG contains the name of the report that i get at runtime...
Now the issue :::::::
I have to also populate a select-options on the called report on submit.
usually this is done by :
SUBMIT (V_PROG)
name of select-option in itab...
However in my case the name of the <name of select-option> is also detemined at runtime say PNPPERNR.
Now if i use any variable / field symbol for the name of the select - option (like for the called program), it does not work (the called report does not have the values i populate in ITAB for the particular select-option)
I have also tried Macro but cant find solution...
ANY IDEAS ??Hi Anuj,
When you are getting the report name in runtime, you can also get the report selection screen information during runtime.
Now how are you going to decide which values you will move to which selection screen variables of which report? If you have a way to determine this, then here is a program that works on that assumption.
REPORT ztest1 .
DATA: i_seltab TYPE TABLE OF rsparams WITH HEADER LINE,
i_selections_info TYPE TABLE OF selinfo WITH HEADER LINE.
DATA: v_report LIKE sy-repid,
v_matnr LIKE mara-matnr.
PARAMETERS: p_rep1 RADIOBUTTON GROUP rad DEFAULT 'X',
p_rep2 RADIOBUTTON GROUP rad.
SELECT-OPTIONS: s_matnr FOR v_matnr.
START-OF-SELECTION.
IF p_rep1 = 'X'.
*-- some criteria to determine the name of the report
v_report = 'ZTEST2'.
ELSE.
v_report = 'ZTEST4'.
ENDIF.
*-- get the parameters for the report
CALL FUNCTION 'RS_SELECTIONS_DESCRIPTION'
EXPORTING
report = v_report
TABLES
selections_info = i_selections_info
EXCEPTIONS
no_selections = 1
report_not_existent = 2
subroutine_pool = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_selections_info WHERE name = 'S_MATNR'.
*-- some criteria based on which, move the values from this program
* to the called program
CLEAR i_seltab.
i_seltab-selname = i_selections_info-name.
i_seltab-kind = i_selections_info-kind.
i_seltab-sign = 'I'.
i_seltab-option = 'EQ'.
i_seltab-low = s_matnr-low.
i_seltab-high = s_matnr-high.
APPEND i_seltab.
ENDLOOP.
IF NOT i_seltab[] IS INITIAL.
SUBMIT (v_report) VIA SELECTION-SCREEN
WITH SELECTION-TABLE i_seltab .
ENDIF.
If this works for you, please reward and close the post.
Regards,
Srinivas -
SUBMIT RPCDTCU0_CE VIA SELECTION-SCREEN just wont work
Hi all,
I use SUBMIT RPCDTCU0_CE VIA SELECTION-SCREEN
with PNPTIMED = '1'
with PNPXABKR = 'US'
with PNPPABRP = '8'
with PNPPABRJ = '2009'
with PNPPERNR-LOW = '73265'
with PNPABKRS-LOW = 'US'
with ZLSCH-LOW = 'C'
with TEST = 'X'
with UPD_PCL2 = 'X'
with SW_ADV1 = 'X'
with NEWLOG_D = 'X'.
The moment I run the progrm, it receive "program terminated message"
Any other idea on how I should run the program and get to pass the value into the program?Hi,
Try using extension of selection table instead of wtih parameters..
[WITH SELECTION-TABLE rspar]
Nag -
How to catch errors in calling program when using SUBMIT ... AND RETURN ?
Hi ,
I am calling a report using submit and return statement from a function module. The report has select-options field for a date field. If user enters a date in low, which is greater than high, getting error message "Lower limit is greater than upper limit".
How to catch this error without endup stoping on selection screen of the report?
In the documentation, I read :
Programs called with SUBMIT ... AND RETURN or CALL TRANSACTION cannot propagate exceptions to the caller, because exception objects are bound to the internal mode of a program.
Is there any way to overcome this?
Also my aim is to write a validation on the date selection-option to have the date range not more than 20 days.
I am not sure of how to achieve this.
Is there a way to do validation of select-options data before submiting to the report ?
Is there any standard FM to achieve this task?
Thank you,
Surya.
Edited by: Surya on May 24, 2009 6:08 PMHi Surya ,
In your function module's code validate the date .
If the low value of the date less than high and date period is not more than 20 then
call transaction and in else condition raise exception.
In your FM write like that - -
IF date-low LT date-high AND
date_difference LE '20' .
CALL TRANSACTION 'transaction'.
ELSE.
RAISE ........... " Raise the invalid date exception
ENDIF.
Regards
Pinaki -
Selection screen and smartforms
Hi,
Can somebody share with me simple eg to
enter data via the selection screens and then pass those values to smartform.
i have used the following code.But whenever i execute it the smartform opens first. i want to open the selection screen first.Then after entering the data there ,the smartorm must open up with the entered values.
PARAMETER P_PARAM1 TYPE MYTABLE-COL1.
PARAMETER P_PARAM2 TYPE MYTABLE-COL2.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION '........................................'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
PARAM1 = P_PARAM1
PARAM2 = P_PARAM2
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks & Regards
JayHi,
As asked I am sending this piece of a code so that you can get a clear idea for the same.If you face the difficulty again please let me know.
selection-screen begin of block b1 with frame title text-001.
parameters :
p_carrid type spfli-carrid. " Carrier Id.
selection-screen end of block b1.
Working variable
data:
f_name type rs38l_fnam. " function module name
start-of-selection.
perform open_smartforms.
form open_smartforms .
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = '<formname>''
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = f_name
exceptions
no_form = 1
no_function_module = 2
others = 3
if sy-subrc <> 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc ne 0
call function f_name
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
p_carr = p_carrid
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5
if sy-subrc ne 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc ne 0
endform. " OPEN_SMARTFORMS
Regards,
Suvajit. -
Need to have pop up window in selection screen and capture the user action.
Hello Friends,
I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
I create a selection screen and a sub screen as window.
After user execute from the selection screen, I am popping up this window.
Window contains some input values to be entered and push button to identify the user action.
I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
How to overcome this issue.
Here is the definition of the window.
Pop Up Window for getting values
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
PARAMETER : p_vdate LIKE t9aa01-validfrom,
p_dcggt LIKE t9aa01-hkont,
p_dcgst1 LIKE t9aa01-hkont,
p_dcgst2 LIKE t9aa01-hkont,
p_na LIKE t9aa01-hkont.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 500.
Cheers,
Senthil
Edited by: Senthil on Jan 7, 2008 11:03 AMHi,
Try using the below code.
data : w_var type string.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'Y'
textline1 = 'test '
TEXTLINE2 = ' '
titel = 'check'
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = w_var.
if w_var = 'J'.
else.
endif.
Comments : J indicates Yes and N indicates No
Regards,
Jeswanth -
Background Processing, Selection Screens and Variants
Hi All,
I am having a little trouble Background Processing with Selection Screens and Variants.
When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
FORM START_BACKGROUND_PROCESSING.
CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
EXPORTING
TITLE_NAME = 'End Customer Report '
JOB_NAME = 'customer_report'
PROG_NAME = 'ZSE_SD_SALES'
EXCEPTIONS
NO_SUCH_PROGRAM = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "START_BACKGROUND_PROCESSING
After the background process is started, all teh data is collated then written to the app server. this is the order
ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
PERFORM INITIALIZE_DATA.
PERFORM SELECT_DATA.
PERFORM PROCESS_DATA.
PERFORM GET_END_CUSTOMER_DATA.
PERFORM WRITE_TO_APP_SERVER.
Any ideas? Points given to those who are helpfuldone myeslf
-
Hi all,
in my program i use PNP logical database, so system create automatically selection screen. Nice.
When user fill selection screen event start-of-selection is launched and i do GET PERNR for read data from PNP.
But my customer want to add field in selection screen. Ok, i did that. Well, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched, so i my program i write this :
if myfield is initial.
GET PERNR.
else.
PERFORM get_data.
endif.
But when i compile program i can't do that and i don't know how to make this and if it's possible.
Regards,Hi tafkap,
1. u have created a z report and
u are using PNP logical database.
2. u say,
, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched
suppose this is achieved, then how
are u going to fetch the data
and show the report ?
3. If u already have the logic for
getting information from database and showing
to the user,
then do not use GET event.
(It is not compulsory in a ldb)
4. Instead use START-OF-SELECTION
event
and do the normal programming.
5. In such case,
the selection screen (and ur extra field(s))
will be displayed as usual
and your own code will get triggered
at start-of-selection.
I hope it helps.
regards,
amit m. -
What is a Selection Screen and how to make it ?
What is a Selection Screen and how to make it ? Please explain the process.
Best regards,
RyanSelection Screen are used for the program reports. These allows you to input some values that are required to show the desired output.
for example : you want to show the list of sales orders between 1000 to 1999, you would write a select query as this (to make u understand better)
select vbeln from vbak into it_vbeln
where vbeln GE 1000 " greater than or equal to
and vbeln LE 1999. " less than or equal to
now if you wnat to do it dynamically, you need a selection screen
tables : vbak. " declaration
selection-screen : begin of block block1 with frame title text-003.
select-options : so_vbeln for vbak-vbeln. " selection range from __ to __
selection-screen : end of block block1.
now you can write the same select query as
select vbeln from vbak into it_vbeln
where vbeln in so_vbeln.
Hope this is clear now
Regards
Gopi -
TO display pop_up on selection screen And chosse that field in 'SELECT' sta
Hello,
I want a pop up on selection screen when user clicks the push button on selection screen pop up should come on selection screen and display the all field of YTLEA table. when user checks few or all field from pop up then data for that field is selected from the YTLEA table.DDIF_TABL_GET
-
Using Selection screen and selection screen output
Hi All,
I am trying to execute AT SELECTION-SCREEN and AT SELECTION-SCREEN output. Both the para's working fine seperately. But when I execute them together AT SELECTION-SCREEN output is not working. Please let me know how to solve this problem. Please see below for the code.
PARAMETERS: p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
p_lgort LIKE mard-lgort OBLIGATORY,
p_rlgort LIKE mard-lgort OBLIGATORY.
PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
SELECTION-SCREEN: END OF BLOCK b1.
*SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
p_verid type afpo-verid MODIF ID cp1,
p_labst type mard-labst MODIF ID cp1.
SELECTION-SCREEN: END OF BLOCK b2.
PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF p_boml <> 'X' AND
screen-group1 = 'CP1'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
IF p_cmpl <> 'X' AND
screen-group1 = 'CP2'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN.
IF p_boml EQ 'X'.
IF p_AUFNR EQ space.
MESSAGE e000(z1) WITH 'Please fill Production Order.'.
ENDIF.
endif.
IF p_cmpl EQ 'X'.
IF p_MATNR EQ space OR p_verid EQ space OR p_labst EQ space.
MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
ENDIF.
endif.
Thanks,
SenthilHi Senthil,
As far as my knowledge is concerned AT Selection-Screen output and AT Selection-Screen wont work together.In this code you are trying to do the validation in AT Selection-Screen. Instead of that try doin your validations in Start-of-selection Event.
i,e., modify your code as follows:
PARAMETERS: p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
p_lgort LIKE mard-lgort OBLIGATORY,
p_rlgort LIKE mard-lgort OBLIGATORY.
PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
SELECTION-SCREEN: END OF BLOCK b1.
*SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
p_verid type afpo-verid MODIF ID cp1,
p_labst type mard-labst MODIF ID cp1.
SELECTION-SCREEN: END OF BLOCK b2.
PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF p_boml <> 'X' AND
screen-group1 = 'CP1'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
IF p_cmpl <> 'X' AND
screen-group1 = 'CP2'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
START-OF-Selection.
Perform validation.
form validation.
IF p_boml EQ 'X'.
IF p_AUFNR EQ space.
MESSAGE e000(z1) WITH 'Please fill Production Order.'.
ENDIF.
endif.
IF p_cmpl EQ 'X'.
IF p_MATNR EQ space OR p_verid EQ space OR p_labst EQ space.
MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
ENDIF.
endif.
endform.
Kindly reward if useful.
Thanks,
pavithra
Maybe you are looking for
-
User showing locked in SU01 but not in BP-Internet User and vice versa
Hello, Why is it when when a user is locked in their CRM SU01 it won't show that that same user is locked on their BP-Internet User Tab and vice versa. We are eexperiencing issues where our web users are getting locked out. Are support team only has
-
HP G62-144DX Refuses to power on
Hi I have the same model G62-144DX notebook with a similar problem (refuses to power on) although I have no lights whatsoever and was hoping you could help! I'm looking for the RTC battery, so I can remove it and reset the unit, but can't find it. Th
-
BPM waits longer than it should
Greetings Im having a problem with a BPM.This BPM waits for two idocs, its configured to wait for the second idoc 1 minute, and It does, but when I transported it to the production server it takes 45 minutes. do you know how come the 1 minute time ou
-
Imac won't recognize all files on external.....
Hi guys, fairly new to apple here so this is prolly an easy fix. I have a late 06 early 07 17 in imac running 10.4.11 Problem is, i recently purchased a seagate 1TB external hard drive. Well, Mac reads all of my pictures, folder with audio books.....
-
Hi, I have a scenario where shipment information is sent to TMS via SAP PI and cost is got based on which the shipment cost document is created in SAP ECC. The connectivity path is ECC (Dev Box) - SAP PI (Dev box) - TMS (production) Now when the chan