Submit and return
I am calling Report1 from Report 2.
I am using SUBMIT REPORT1 AND RETURN.
Call transaction method is used in report 1 to make some changes on a screen . have code for saving it.
This part is processed well. When the control gets back to report2(i have to do something else on the same screen) and when I see the screen... the changes made with report1 are not seen. It reflects the old data itself.
Do I need to use Commit stmt after submit? to retain the changes.
Plz help.
thanks
hi alchemi,
Here you do not need to specify a destination. ... If the update is triggered locally because of the COMMIT WORK statemen
pls see the below links they may help yout
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=doIneedtouseCommitstatementaftersubmit+++&adv=false&sortby=cm_rnd_rankvalue
www.geocities.com/sapcircle/questions2.
www.geocities.com/sapcircle/questions2.
thanks
sagar
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 30, 2008 3:42 PM
Similar Messages
-
Issue with Submit and Return in passing string/values of longer length.
Hi,
I have a FM which has to submit a report as a job.
I am required to send a string( length could be close to 1024 characters or more than that) to the report as the parameter.
I am using Submit with Return.
1.When I pass my string as parameters, in the report it gets truncated at 60 chars.( though i have defined the parameter of type char1024)I lose the data.
2.When I split my string(aflter logical splitting the lenght is still equal to about 200 chars) and then pass as select options it gets truncated at 45 chars in the report ( though i have defined the parameter of type char1024)and i lose my data.
3.I cannot use Export/Import as I found that it does not work with jobs.
Please let me know how can i sumbit the report as a job while passing it a string of length 1024 characters.
Regards,
Sulakshana
Edited by: Sulakshana Shinde on May 21, 2009 2:44 PMOption 3 should work, unless you are not using the EXPORT/IMPORT correctly. I believe that you are going across work processes, which means you may need to use the shared buffer or shared memory when using the export/import statements.
Something like this.
Data: lv_value type string.
lv_value = 'SomeValue'.
EXPORT lv_value = lv_value
TO SHARED BUFFER INDX(ST) ID 'SomeUnigueKey'.
See this.
http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm
Regards,
Rich Heilman -
SUBMIT and return the value of that report into internal table
Dear all,
I have a requirement. I want to submit a report and return the value of that report into my internal table.
How to do this.
Pl. guide.Hi Vidhya,
Below links from SAP help will resolve your issue.
http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/content.htm
Edited by: Harsh Bhalla on Jan 2, 2010 11:54 AM -
Submit and return and after that what?
Hi all,
Iam successfully submitting a standard program.My problem is what I want is the final internal table values,how can i get that?
Here is my code :
tables : mseg,ioheader,IOITEM.
DATA : IT TYPE STANDARD TABLE OF ABAPLIST WITH HEADER LINE.
*DATA : IT TYPE STANDARD TABLE OF IOMAMO WITH HEADER LINE.
select-options : s_aufnr for mseg-aufnr,
S_PAUFNR FOR ioheader-aufnr,
S_PLNUM FOR ioitem-plnum.
PARAMETER : P_PROFID LIKE tcoad-profid.
initialization.
s_aufnr-low = '1000560'.
append s_aufnr.
S_PAUFNR-LOW = '1000'.
APPEND S_PAUFNR.
S_PLNUM-LOW = '40070110803312'.
APPEND S_PLNUM.
P_PROFID = '000001'.
*SUBMIT PPIO_ENTRY WITH S_AUFNR = s_aufnr
*WITH PPIO_ENTRY_SC1100-PPIO_LISTTYP = 'PPIOD000'
*EXPORTING LIST TO MEMORY AND RETURN.
SUBMIT PPIOD000 WITH S_AUFNR = s_aufnr
WITH S_PLNUM = S_PLNUM
WITH S_PAUFNR = S_PAUFNR
WITH P_PROFID = P_PROFID
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = IT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = IT.
ENDIF.
Hope Iam clear in my questian.
Thanks & Regards,
Rock.Thanks all of u for the reply,
but when I use FM LIST_FROM_MEMORY it is getting short dump.
See the code :
tables : mseg,ioheader,IOITEM.
DATA: INT_S000 LIKE IOMAMO OCCURS 100 WITH HEADER LINE.
DATA : IT TYPE STANDARD TABLE OF ABAPLIST WITH HEADER LINE.
*DATA : IT TYPE STANDARD TABLE OF IOMAMO WITH HEADER LINE.
select-options : s_aufnr for mseg-aufnr,
S_PAUFNR FOR ioheader-aufnr,
S_PLNUM FOR ioitem-plnum.
PARAMETER : P_PROFID LIKE tcoad-profid.
initialization.
s_aufnr-low = '1000560'.
append s_aufnr.
S_PAUFNR-LOW = '1000'.
APPEND S_PAUFNR.
S_PLNUM-LOW = '40070110803312'.
APPEND S_PLNUM.
P_PROFID = '000001'.
*SUBMIT PPIO_ENTRY WITH S_AUFNR = s_aufnr
*WITH PPIO_ENTRY_SC1100-PPIO_LISTTYP = 'PPIOD000'
*EXPORTING LIST TO MEMORY AND RETURN.
SUBMIT PPIOD000 WITH S_AUFNR = s_aufnr
WITH S_PLNUM = S_PLNUM
WITH S_PAUFNR = S_PAUFNR
WITH P_PROFID = P_PROFID
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = IT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = IT.
ENDIF.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = -1
* WITH_LINE_BREAK = ' '
* IMPORTING
* LIST_STRING_ASCII =
* LIST_DYN_ASCII =
TABLES
LISTASCI = it
LISTOBJECT = INT_S000
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The internal table INT_S000 is of same type of that programs final internal table.
What might be the problem? -
How to execute the first program without using SUBMIT and RETURN
Hi Experts,
My requirement is , I need to select thet value from VA02 at runtime and need to pass that value to VF01 transaction and press save then it creates proforma document.The created document we can see in VA02 by clicking on document flow.
My program is processed through OUTPUT TYPE.
To get this functionality i written coding like this.
1) i am selecting the value at runtime from VA02 using FORM ROUTINE.Now iam passing this selected value to VF01 for
genarate proforma document using BDC.Here the problem is,first time when i am selecting the value form VA02 at runtime it is in open status,now my BDC code need to update the value in VA02 only.so locking problem occurres the document is not getting updated.
To overcome this problem i have done changes like this......
2) i splited my program into two parts, that is into two programs.
a) In first program i am only selecting the value form VA02 at runtime using FORM ROUTINE and in this program i have written SUBMIT statement to call another program there my BDC code will create documet and update in VA02,upto here everything is doing fine,
But here again the problem is when i process OUTPUT type my program is triggering and giving correct result but the status is not changing form YELLOW to GREEN.Why means when SUBMIT statement trigger, control is going to second program and creating a new document,but not coming to first program so the status is not changing as the first prohram is still processing. .If i write RETURN along with SUBMIT the VA02 is in open STATUS only, till control comes to first program.so it will not uodate document in VA02.
If i execute all line in my program status will automatically change from YELLOW to GREEN how to acheive this
please suggest me the solution.I would do 2 things:
1) be sure to do a COMMIT WORK AND WAIT
2) refresh your display in calling program
the point 2) can be done by submitting the program again (or the transaction) with the same parameters -
Submit and return exporting list to memory is not working in background
Hi gurus,
i am using submit statement and exporting list to memory. it works fine in foreground and i am able to get the output. but in case of background , it is not exporting the list.PLease help me on this.
Thanks and regards,
RajeshwarHello Rajeshwar,
This is a duplicate thread. You have a thread with the same question.
[list_to_memory is not working in background;
Jayant Sahu -
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 -
Call program and return with data
Hi, Experts,
I have called a program from my main program using SUBMIT
and return.
I need to get data back from called program in table format.
Is there any way to fullfill such requirement.
Regards
Rajiv singh.if the program is custom , then you can use import and export option. you can export the data to memory in the submit program, and import from memory after submit call.
if it Standard program , in some standard programs also will export data to memory , so check in inside the program. -
SUBMIT and RETUTN with ALV output
Hello Friends,
I have one standard program (RSVTPROT) which returns ALV output.
I want this output as internal table into my Zreport.
I used SUBMIT statement with RETURN but not working.
can anybody tell me what I missed?
Regards,
RHHi Ronny,
ALV output of called Program will not displayed when you use Submit and Return.
if you want to get the output of it . Identify the final Internal table where all the output of program RSVTPROT will be collected.
i guess its <gtab> ( Field symbol Table ) . try to get the same. -
I need to pass multiple select options using submit and reutrn
dear all,
my requirement is i need to pass multiple values for work center like(biw01,biw02,biw03 etc) for this iam giving as biwl* and biot* for the tcode zpp_hmm ,using this i am going to get total working hours of perticular equiment.
for this iam using submit and return query but iam unable to pass multiple work centers as input.
my code is
DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
wa_budat-high = '20111031'.
APPEND wa_budat TO z_budat.
CLEAR wa_budat.
*wa_budat-High = '20111031'.
*wa_budat-sign = 'I'.
*wa_budat-option = 'BT'.
*append wa_budat to z_budat.
DATA : z_arbpl TYPE RANGE OF arbpl,
wa_arbpl LIKE LINE OF z_arbpl.
wa_arbpl-low = 'BIWL*'.
wa_arbpl-sign = 'I'.
wa_arbpl-option = 'EQ'.
APPEND wa_arbpl TO z_arbpl.
CLEAR wa_arbpl.
wa_arbpl-high = 'BIOT'.
*wa_arbpl-sign = 'I'.
*wa_arbpl-option = 'BT'.
*APPEND wa_arbpl TO z_arbpl.
SUBMIT zpp_rep_hemm_perf WITH s_bukrs = '1004' WITH s_budat IN z_budat WITH s_werks = 'SMJT'
with S_ARBPL IN Z_ARBPL USING SELECTION-SCREEN '1000' AND RETURN.
but my doubt is whether it is corect or wrong what ever i am passing inputs for arbpl.
thanks in advance.You can pass all parameter (rsparams-kind = 'P') and select-options (rsparams-kind = 'S') as a single internal table of type RSPARAMS. Go on appending the field names and values as rows and pass using SELECTION-TABLE parameter of SUBMIT command.
I gave appending one set of selection values for s_budat field but you can go on appending more values for s_budat and other fields.
DATA: lt_rsparams TYPE TABLE OF rsparams,
ls_rsparams TYPE rsparams.
CLEAR ls_rsparams.
ls_rsparams-selname = 'S_BUDAT'.
ls_rsparams-kind = 'S'.
ls_rsparams-sign = 'I'.
ls_rsparams-option = 'BT'.
ls_rsparams-low = '20111001'.
ls_rsparams-high = '20111031'.
APPEND ls_rsparams TO lt_rsparams.
SUBMIT zpp_rep_hemm_perf WITH SELECTION-TABLE lt_rsparams
USING SELECTION-SCREEN '1000'
AND RETURN. -
Callling an standard program and return back
Hi all,
I am coding an Zprogram in that i have to call an Standard Program ( ex:- SAPMF02K) and after executing that standard program again i have to come back and execute my remaining Zprogram .
How can i do this.
Regards
AjayHi,
Use SUBMIT AND RETURN
That is , u can do...
SUBMIT SAPMF02K AND RETURN.
Chk the following link.....
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
Regards.
Edited by: Iyswarya Godi on Jul 9, 2008 7:16 AM
Edited by: Iyswarya Godi on Jul 9, 2008 7:16 AM -
Submit ALV report in Background & exporting list to memory and return
Dear all,
I created one Z program (ZPROGRAM2).
Here i use SUBMIT ZPRORAM1_ALV exporting list to memory and return.
call function 'LIST_FROM_MEMORY'.
call function 'TABLE_COMPRESS' .
ZPRORAM1_ALV output i send mail.
This all are working in foreground.
If i schedule ZPROGRAM2 in background. that SUBMIT ZPRORAM1_ALV statement not working.
Please give me the Solution.
Thanks,
Durai.VIt is because of the ALV output that you are using. Check the condition sy-batch = 'X' (background processing) and then display a classical report. It will work then.
Thanks,
Jayant -
Submit program exporting list to memory and return in background
Dear Experts,
I am using the following code in one of my program to get opening and closing stock of a material.
SUBMIT RM07MLBD
WITH MATNR IN LOC_R_MATNR
WITH WERKS IN LOC_R_WERKS
WITH DATUM IN LOC_R_DATE
WITH PA_SUMFL = WL_X
AND RETURN
EXPORTING LIST TO MEMORY.
The program is working fine when executed in foreground. however when executed in background the job is cancelled. I tried to debug in background through SM50 and found that the program is terminated(No short dump but debug screen is closed and i dont see this program running in SM50) when the above code is executed.
I found in the forum that when an ALV report is submitted in background it does not work. In my case the standard program is producing an ALV list (not ALV grid though).
How would i avoid this situation because the program i am submitting is a standard program.
What is the best solution to avoid from background jobs being cancelled when the above code is executed. Is there an alternate way that i can use to submit the program and get data.
Thanks in advance.
Rajesh.Hi Rajesh,
Just excute your standard program with the same input in back ground mode and check
out put is coming or not .
If output is not coming search by sy-batch and make the break points there and Ideantify
the problem.
When you execute the standard program in back ground mode If the output is come it should in your Zreport also.
I tried in my system in background mode also the output is coming for me.
Thnx,
Sam. -
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. -
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.
Maybe you are looking for
-
can someone recommend a free java to uml plugin thanks miki
-
Why does my ipod screen make a cracking sound but there are no cracks?
i need help!!!!
-
SQL query to get a list of relations between workitems
How can I create a SQL query to get a list of all problems with related changes? And all problems with related incidents? I have tried to join the tables RelationshipTypeDim with ProblemDimKey and ChangeRequestDim, but the results are not correct.
-
Getting Security Error when trying to use bitmapdata.draw method on youtube videos
Hi All , I am playing youtube videos in UIComponet of flex, but when I trying to capture the image using bitmapdata.draw() method it gives me an secutity error on server , It works well locally in flex editor. Is any one knows how to resolve this bu
-
Hi, I am trying to copy the formfields from a document to a new blank document of the same size. The existing document is 11"x8.5". I can create a new blank document and rotate the page but then when I copy the formfields they are vertical rather tha