Submit syntex doubt
hi,
what is the purpose of this syntex could u plz explain
SUBMIT zreport USING SELECTION-SET 'VARIANT1'
hi,
The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which calls another report. Can only execute reports of type '1'.
<b>
SUBMIT zreport USING SELECTION-SET 'VARIANT1' </b>
USING SELECTION-SET <var>This option tells the system to start the called program with the variant <var>.
follow this link for more information along with sample code...
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
regards,
AshokReddy
Similar Messages
-
Hi all,
I am confused in one scenario while using submit statement..
In my requirement i have two report programs say "X" and "Y".
X calls the report Y with some inputs .......and X is scheduled as a job.
Y calls a standard SAP program with some inputs and that output is what actually needed....
so my doubt is if i schedule X as job will the outpur from srandard sap program will be available in spool or should i schedule a job for Y also.
If i need to schedule a job for both x and y shud i use the same job name.
Please help!!!Hi people,
Thanks for your reply.
But i checked it is not working .i mean i am not getting the spool output .
for your reference i will give sample code
<b>ZCALLMARK</b>
DATA: jobname LIKE tbtcjob-jobname VALUE 'hemajob4',
jobcount LIKE tbtcjob-jobcount VALUE 1,
start_time LIKE sy-uzeit,
params LIKE pri_params,
w_prog(30),
v_commit TYPE c,
variant_name(14) type c,
stringlen type i value 0,
temp_string(18) type c,
msg_string(50) type c.
move 'ZCTE0010_MARK' to w_prog.
perform open_job using jobname.
perform submit_job.
perform job_close.
Form open_job
FORM open_job using jobname.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
others = 8.
IF sy-subrc NE 0.
WRITE: /1 'Error Opening Job ', jobname.
ENDIF.
ENDFORM. " open_job
Form submit_job
FORM submit_job.
SUBMIT (w_prog) TO SAP-SPOOL
WITH crun = 'TEST4000'
WITH cdate = '20070701'
WITH rb1 = 'X'
SPOOL PARAMETERS params
WITHOUT SPOOL DYNPRO
USER sy-uname VIA JOB jobname NUMBER jobcount
AND RETURN.
if sy-subrc > 4.
WRITE: /1 'Error Submitting Job ', jobname.
endif.
ENDFORM. " submit_job
Form job_close
FORM job_close.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X' "start immediately
EXCEPTIONS
cant_start_immediate = 1.
<b>ZCTE0010_MARK</b>
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
PARAMETERS : crun TYPE kala-kalaid OBLIGATORY,
cdate TYPE kala-kaladat OBLIGATORY.
PARAMETERS : rb1 RADIOBUTTON GROUP rb USER-COMMAND rbut,
rb2 RADIOBUTTON GROUP rb .
SELECTION-SCREEN END OF BLOCK b1.
SUBMIT saprck23
USING SELECTION-SET 'SAP&15'
WITH p_buper = '10'
WITH p_gjahr = '2007'
WITH kaladat = cdate
WITH kalaid = crun
WITH p_ckvo = 'X'
WITH p_test = ' '
WITH p_listau = 'X'
WITH p_batch = ' '.
Please refer this and tell me where i am going wrong!!! -
Doubt in Submit...return
Hi all,
i am trying a simple program .See below
REPORT Ztest.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
export itab[] to memory id 'ZPARA'.
submit ztestcall and return.
write:/ itab-za.
In the pgm ztestcall, i have written,
report ztestcall.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
itab-za = 'ABC'.
append itab.
itab-za = 'XYZ'.
append itab.
import itab[] from memory id 'ZPARA'.
Now, when i execute the first pgm ztest, the contents of itab is not getting populated...
It will be very helpful if u help me out in this.
TIA,
sinthuHi,
REPORT Ztest.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
export itab[] to memory id 'ZPARA'. <u><b>==> here u r exporting empty records.</b></u>
submit ztestcall and return.
write:/ itab-za. <u><b>==> Use READ TABEL ITAB or LOOP AT ITAB. after that u display the records</b></u>
In the pgm ztestcall, i have written,
report ztestcall.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
itab-za = 'ABC'.
append itab.
itab-za = 'XYZ'.
append itab.
import itab[] from memory id 'ZPARA'. <u><b>==> Here u import the empty records from itab using Memory ID 'ZPARA'</b></u>
Thats why u are not getting any value.
May be u can try this program:
REPORT Ztest.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
itab-za = 'ABC'.
append itab.
itab-za = 'XYZ'.
append itab.
export itab[] to memory id 'ZPARA'.
submit ztestcall and return.
In the pgm ztestcall,
report ztestcall.
data: begin of itab occurs 0,
za(3) type c,
end of itab.
import itab[] from memory id 'ZPARA'.
loop at itab.
write: / itab.
endloop.
- Selvapandian Arunachalam -
Doubt reg submit in a program and transportation.
Hi Folks,
I have a report XYZ in which 2 other reports named ABC and DEF
were submitted using SUBMIT.
I had made some corrections in the report DEF and duly transported
the same DEF to Quality and prodcution.
My question is, do I need to transport the program XYZ too as it
is using this program DEF(for which the corrections were made) again
to quality and production.
Kindly let me know.
Thanks,
K.Kiran.Amit,
The submit is like this
SUBMIT zmm_rept_rg1_det_003_new WITH
SELECTION-TABLE fp_it_rsparams AND RETURN.
And in the above submit program there is a date field in the selection-screen.
and we have done a minor change in the where clause of this program
SELECT * FROM z2irg1bal
APPENDING CORRESPONDING FIELDS OF TABLE it_bal1
WHERE matnr = itab6-matnr
AND datum LE p_stdate
<b> AND datum < p_stdate</b>
AND exgrp = itab6-exgrp.
earlier it used to be EQ.
So, you mean to as the submit done with the selection screen I need to transport even the program which is using this program.
Am I getting you right?
Thanks.
K.Kiran. -
Doubt in using Submit ....
Hi gurus............
For minimizing the time, i have suggested to use SUBMIT for FBL5N transaction, this fbl5n has been made in z, previously i used BKPF and BSEG table,
my problem is that i am new to this submit concept and i found that all the field which i used for bseg and bkpf is available in the structure RFPOSXEXT but some field are not used in the program which is made z for the tcode fbl5n....
i want to add blart xreversal bldat budat xblnr dmbtr zuonr sgtxt which is not in the z made for fbl5n but i want to add this...how to do???
pls help me out
submit z_rfitemar1
with dd_kunnr in so_kunnr
with so_budat in so_budat
with dd_bukrs = pr_bukrs
with x_aisel = 'X'
with x_norm = 'X'
and return.Hi Beginers,
SUBMIT ZMY20DDSB
WITH MATNR = I_LINE-LINE+0(18)
WITH WERKS = PLT1
AND RETURN.
IMPORT ITAB FROM MEMORY ID 'ABCD'.
this is a example of Submit
After submit,
Import the data from your submit..
Thanks & regards,
Dileep .C -
Hi Experts
i am doing a report where i have been asked to
use SUBMIT for tcode (FBL3N)
my inputs are
company code(Bukrs)
Posting date(Budat)
station
username
vendor no (Lifnr)
Now what i want to know is.....
i can take company code posting date but how can i restrict the
other 3 fields using submit ....
how can i do it ??? Pls suggest me something how to proceed further
Thanx in advance
Rachelsorry if i have confused .....and not clear..... but wat i meant was that
only lifnr (vendor doc) bukrs( company code) date is available in submit
but i need to use the other two inputs to restrict which is not in fbl5n ....so how can i do was my question ????
but now i myself tried and found that after restricting these 3 fields using submit i can restrict with another select with that submit above .......not necessarily i shud filter all the fields with only using submit ( since i was new to this submit i thot watever fields we use shud be used in submit)
thanks for the responses -
Hi,
I am calling rvv50r10a program in my report using submit command. I created a variant in the selection screen of rvv50r10a. Now I want Deliv.creation date to have space for both low and high value. Am not able to save the high value as SPACE in the variant. How to make the high value as space.
Please advice.
Regards,
VanathiHave a look at the following code and put space as high and low value in the range table for delivery creation date. Instead of creating a variant try doing it as in the following code.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME1
IMPORTING
JOBCOUNT = JOBCOUNT1
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 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.
ELSE.
SUBMIT RHALEINI
WITH SELECTION-TABLE RSPAR_TAB1
WITH PCHOTYPE EQ 'P'
WITH PCHPLVAR EQ '01'
WITH PCHZTR_D EQ 'X'
WITH RCVPRN EQ S_PART
VIA JOB JOBNAME1 NUMBER JOBCOUNT1
AND RETURN.
IF SY-SUBRC EQ 0.
WRITE / TEXT-A00.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBCOUNT1
JOBNAME = JOBNAME1
STRTIMMED = 'X'
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Need to submit custom report when email option chkd and po approved
Hi All,
We use R12, our requirment is to submit a custom report when PO is approved.
Not in all cases we need this. when user select 'Approve' option for a Manually created PO,
and in the Approval form, when the User selects 'Email' check box and approves it.
Irrespective of value that is given in email field, when that Email check box is checked and PO is approved, then the custom report should get submitted.
For this our funtional team is requesting to copy the PO approval Workflow and write a event there.
But I feel this can be achived in much easier way. But not getting any ideas.
Can anyone let me know what could be the best and effective way than modifying Workflow.
Can we do with custom.pll.
where I would check if the email check box is checked in the box and if the approve button is pressed then to launch the custom report.
One more doubt, can we get the values that are being enterd in the form. I mean, if the po number is 55, in the custom.pll
can we get that value into our custom.pll code, which i need pass as a prameter to the report.
Please through any ideas. Thanks
Edited by: 834095 on May 4, 2011 9:05 PMPl do not post duplicates - Submit Custom Report in PO Approval Process
Srini -
How to pass Internal table in submit
Hi Friends-
i have a internal table with two fields it is like
begin of error occurs 0,
num(8) type n,
msg(50) type c,
end of error .
now this table i have to submit in another report and i have to use this table in that other report
but how i can pass this in submit pls guide me.
Regards
MeetaHi ,
I am writing the 2 options that I know of my knowledge:
OPTION 1 :
in prog1
loop at itab.
r_matnr-sign = 'I'.
r_matnr-option = 'EQ'.
r_matnr-low = itab-matnr.
append r_matnr.
clear r_matnr.
endloop.
submit prog2 via selection-screen
with s_matnr in r_matnr and return.
in prog2
select-options: s_matnr for mara-matnr no-display.
loop at s_matnr.
itab-matnr = s_matnr-low.
append itab.
clear itab.
endloop.
OPTION 2:
report zashish_1.
data: imara type table of mara with header line.
start-of-selection.
select * into table imara from mara up to 10 rows.
export imara to memory id 'YOURID'.
submit zashish_2 and return.
The submitted program.
report zashish_2 .
data: imara type table of mara with header line.
import imara from memory id 'YOURID'.
loop at imara.
write:/ imara-matnr.
endloop.
Hope these option might have clarified most of your doubts.
Regards,
Ashish Arora -
Combox interaction with submit button
Hi i have a university project, where i have to create an
flash file that letes 7-11 year old kids to write a story.
i have desgined it so that i have written most of the story
but the user can sellect say for example the name for the character
by selecting a comobox.
i now need to create a submit button that will store their
choices, and it anther use them in another frame. to basically to
show the user their finished story.
can anybody help me, and tell me how can i can do this, im
not very good with flash or action script,
i will paste my code onto here. note the options for
combo-boxes are loaded from a simple xml file.Well, I doubt anyone will have time to write whole thing for
you but, conceptually what you can do is;
1. Create their choices holder. It can be either an array or
an object. I don't know what is the best because I am not sure how
you are going to use these choices - in particular you need to
decide how you will match the choices with whatever you use them
for:
var userChoices:Array = new Array();
2. Add a listener to you submit button:
submitButton.addEventListener(MouseEvent.CLICK,
submitListener);
function submitListener(e:MouseEvent):void{
// here retrieve the current drop down choice and add it to
array
// again, what you add - index of choice or the value of it
depends on further usage
return;
3. Create a listener function that will retrieve the info
from your array or object and does whatever:
populateButton.addEventListener(MouseEvent.CLICK,
populateListener);
function populateListener(e:MouseEvent):void{
// get info and continue
return;
This for starter.
Let us know if you have any particular problem. -
In RFC can we use SUBMIT satement?
Dear all,
Thank u vvery much for ur response,
In RFC can we use SUBMIT statement?
I had a doubt Please clarify me.
Thanks and Regards,Hi Lakshman,
I am facing similar situation like Ravi.
I am using Submit program inside RFC function module in BW.
And one point here, I am using EXPORT and IMPORT memory IDs in the same RFC to retrive data in BW.
I am calling this from R3.
In BW it is working fine, where as in R3 nothing is coming.
Please help me.
Thanks,
Veerendra. -
Last spring I created a 6 page interactive pdf form to email my clients. At the end of the form, I designed Print and Submit buttons. I tested it in Reader and both buttons worked. However, now after revising some of the fields in the same form, the Submit button isn't working in Reader. A message pops up stating that only a data file will be sent, rather than the form. After clicking OK on that (although I do want entire form to be returned via Submit), an error pop-up states "This operation is not permitted."
What do I need to do to correct this problem so that clients can receive this form via email attachment, open in Reader and then return completed form via email submission? Do I need to open the pdf in Acrobat after converting from InDesign, and edit some feature there? Again, it is essential that my clients can open it in Reader. I have Googled this question but so far not found help.
Thanks for your assistance!HI oliviat38527079
Seems that the hyperlink you created on the button to move to the next PDF is not working once it gets moved to a different computer via email, this happens when there is a change in the file path. It works fine when its on our Mac Computer as the path is fixed because the PDF was created on the same computer, however the path gets changed once it is mailed to a different computer.
I would recommend you check the path of the hyperlinks & make sure they are fixed.
Suppose the path set in the hyperlink is C:\Users\NewFolder\PDF\file1.pdf , then the path of the file on the computer to which you have mailed it should be arrange in same manner so that the hyperlink works.
If its possible for you to share the PDF file then please do, so we can have a closer look & try to resolve your issue.
In case you any doubts please reply.
Regards,
Aadesh -
Web Dynpro Display PDF on Submit
Friends,
I have a requirement where I need to fetch PDF stored in table as RAWSTRING and display in Web Dynpro ABAP IFRAME container on the View
Basically user access this application , from the drop down select the value and click submit, now it should read the PDF rawstring from the table and display on the same View as a PDF. Please let me know how to proceed with it , and what is the best way to handle this.
Thanks
KrishHi Krish,
You can use interactiveform UI element to achieve your requirement.
Step1. Create UI element called interactiveform in ur VIEW ( may be in ur case below the dropdown and submit button ).
Step2 : On click of submit button read the selected pdf file from DB and supply it to the context node element of type XTRING ( which is mapped with the interactive form UI element of the view )
Refer wiki article in case of doubt :
http://wiki.scn.sap.com/wiki/display/WDABAP/A+Simple+Web+Dynpro+Application+to+display+a+pdf+file+in+the+browser+window
Regards,
~Raj -
Some doubts regarding sorcing cockpit in EBP
Hi all,
This is sankar bhatta , working in IBM . I am new to the EBP module. I got few doubts regarding the sourcing cockpit.
When a shopping cart comes to the sourcing cockpit of the purchaser. I mean in what cases??
i am listing some of the cases where i have doubts.
1) A user creates a SC , but he doesn't assign any vendors. in that case it comes to the sourcing cockpit of the Purchase . is it right??
2)A user created a shopping cart ( with more than one item) without vendor and it has gone to SOCO of purchaser . he has assigned the vendor and orders it. the PO is created in the Backend. now because of some reason ( for example the vendor is not able to supply the item ) the purchase deletes one item from the PO in EB. In this case is the SC comes again to SOCO of the Purchaser???
3) the user created the SC without vendor.The SC goes to the SOCO of the purchaser. The SC is in approval process. Now the user deletes one item and orders it again. In this case whether the SC goes to the SOCO again???
4) User created a SC ( with more than one item) and approval is over. PO is created in the backend. Now, if the user or somebody who has the authorisation deletes the item in SC , does the SC goes to the SOCO of the purchaser??
5)According to SAp standard functionallity, PO can be deleted only by one in purcasing organisation. Is this person person csn be a purchaser (or) some other person in the Purchasing organisation??
Please answer these questions and if you know any other case where a SC comes to the SOCO of the Purcher please include that also.
Thanks and regards
Sankar Rao Bhatta.Hi Sankara,
The Sourcing cockpit is much more simple than that. Your questions show you'rre very confused in this.
There is only one customizing point used : SAP Reference IMG -> SAP Implementation Guide -> Supplier Relationship Management -> SRM Server -> Sourcing -> Define Sourcing for Product Categories
If Sourcing for Product Categories is not configured, the system creates purchase orders in the local scenario for all requirements; these are incomplete if the source of supply is missing. If you require additional control options, for example, the facility to control processing at product level, you can use the following BAdI: Define Execution of Sourcing.
The diferent options you have in the customizing point are:
-Sourcing is never carried out: This is the default setting. Enterprise Buyer does not transfer any items to the purchaser's sourcing application ¨C independent of the status of the shopping cart.
-Sourcing is always carried out: Enterprise Buyer transfers each item to Sourcing ¨C independent of the status of the shopping cart.
-Sourcing is carried out for items without a source of supply: Enterprise Buyer transfers all requirements that have multiple sources of supply of which none is assigned, or if there is no source of supply for the requirement, to Sourcing.
-Automatic requirement grouping; sourcing for items without assigned source of supply:
If a source of supply is assigned to a requirement, the report BBP_SC_TRANSFER_GROUPED automatically groups requirements together for the creation of a PO. If the requirement does not have a source of supply, it appears in the work list of the sourcing application for manual assignment. Once you have assigned a source of supply, you can submit the requirement to the report.
-Automatic grouping; sourcing is never carried out: If a source of supply is assigned to a requirement, the report BBP_SC_TRANSFER_GROUPED automatically groups requirements together for the creation of a PO. If the requirement does not have a source of supply, an incomplete PO is created.
-Automatic bid invitation for items without a source of supply: Enterprise Buyer creates a bid invitation for all requirements that do not have any source of supply.
So for your questions:
1)depending on your customizing, this SC will lead to:
-Backend PR (classic scenario)
-Local incomplete PO (standalone or extended classic without soircing)
-Requirement in the Sourcing cockpit (if customized)
2)The modification of a PO will never change the initial document (SC and/or requirement), nothing 'comes back' into the sourcing cockpit
3)If you customized the sourcink cockpit, the SC line goes into it only after the approval process
4)This has nothing to do with the sourcing cockpit
5)The POs can be deleted by people who have correct authorizations (that is purchasers of the document purch. org. in standard). Be careful the POs cannot be deleted as soon as they have been edited (as of R/3).
Regards.
Vadim
PS: Please don't forget to reward points for helpful answers on your threads. -
Cannot submit CD titles to CDDB: an error occurred in the query subsystem
Ever since I updated to Mountain Lion, I cannot submit CD titles to CDDB/ Gracenote through iTunes. I get the error:
an error occurred in the query subsystem
This is on two different computers, both on OS X 10.8.4. One computer is running iTunes 11.0.4, the other is sunning iTunes 10.7. Same error in both cases.
Help?I'd make an educated guess, based on the error message, that the problem lies in the PHP/MySQL on the Gracenote site and it ISN'T an iTunes or Apple problem. What you're seeing is similar to a 503 error in a web browser. That's ALWAYS on the server end. Gracenote may work it out or not, but I doubt it's anything you (on your end) or Apple can fix.
Maybe you are looking for
-
I recently purchased the iPhone 5 and my itunes account on my iMac 7,1 will not recognize it as a device. My imac has stopped downloading new updates, it says it is up to date with iTunes 9.2.1. My imac will not run the newest 10.7 itunes either. All
-
ScrollBars are not appearing on my JScrollPane
I have a JPanel which I add a JScrollPane to - controlPanel = new JPanel(); controlPanel.setPreferredSize(new Dimension(900, 100)); JScrollPane cpScroll = new JScrollPane(controlPanel);I have added this JScrollPane to my Frame - frame.add(cpScroll, B
-
I have say three columns in a report, Col A that aggregates by SUM, Col B that also aggregates by SUM and Col 3 that aggregates by Avg Col A Col B Col C Amount Qty Avg price 10 3 3.33 20 4 5 30 7 ? Grand Total (use of report total) I want to see Sum
-
Map drive in NT to a file column
Would anyone please tell me how could I upload a file into oracle? What type should I use to store the files? After uploading the files, how could I map a drive in NT Server to the column that stored the files? I would like to browse the files using
-
About the smartforms in hr-abap
hi board, i need a smartforms in hr-abap... i know the tcode for the smartform............but the problem... i need a standard smartfoms in hr-abap.. tcode will be : hrforms................................