Pass structure of values for Job submit
Hi,
I need sytax to submit a job
Right now I am using this code to send 4 parameters.
I need to send these 4 in a structure.
<b>submit Ztestjob USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.</b>
So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
I need the syntax for submit .
I also need to know how to catch the structure with values in the BGPROGRAM.
Anyone please answer ASAP
Message was edited by:
ramana peddu
Message was edited by:
ramana peddu
Message was edited by:
ramana peddu
Message was edited by:
ramana peddu
Hi,
If want to pass an internal table...
Then create a dummy select-options...
And then pass the values in the select-options..
Then in the submitted program you can use the select-options internal table..
Thanks,
Naren
Similar Messages
-
Unable to pass comma separated values for in clause
I have the following query : for :P_LEG_NUM Parameter when i am passing values like 1,2,5 as string type i am getting invalid number error... I have defined in clause for it but still it does not work.. For individual values like 2, etc it works... how can i pass comma separted values for this bind variable
select trip_number as prl_trip_number,
flight_number as prl_f_number,
trip_leg_id as prl_trip_leg_id,
leg_number as prl_leg_num,
dicao as prl_dicao,
etd_zulu as prl_etd_zulu,
aicao as prl_aicao,
eta_zulu as prl_eta_zulu,
to_char(etd_zulu,'DD-Mon-YYYY HH24:MI') as prl_cb_etd,
to_char(eta_zulu,'DD-Mon-YYYY HH24:MI') as prl_cb_eta,
diata as prl_diata,
aiata as prl_aiata,
(select client_name
from xxwfs_trip_header_details t_h
where t_h.trip_number = t_leg.trip_number) as prl_client_name,
(select to_char((select systimestamp at time zone 'GMT' from dual),'YYYY-MM-DD-HH24MI')
from dual) as prl_curr_zulu_date
from xxwfs_trip_leg_details t_leg
where 1=1
and t_leg.leg_number in nvl(:P_LEG_NUM,t_leg.leg_number)
and t_leg.trip_number = :P_trip_noThis is the problem know as <tt>'Varying IN List'</tt> issue.
Check this - SQL and PL/SQL FAQ -
In Report Builder 3.0, I have made a main report in which the user can filter the underlying dataset using three parameters (all multi-value). The report shows totals grouped by these three parameters, as well as a grand total. What I want is to click
on a total, which then opens the drill-through report for the corresponding records. I have achieved this for the grand total; the action in the corresponding text box passes all selected values of the parameters to the drill-through report.
What I cannot figure out is how to make this work right when clicking on a subtotal. When I use the same expression as for the grand total, the same values for the parameters are passed, instead of the subset that apply to the corresponding text box in the
main report. I expected this to work, because Report Builder /does/ correctly calculate the SUMs for the different levels, even though the expressions are the same.
My question is: how do I pass different drill-through (multi-) values for parameters, corresponding to the respective subtotals in the main report?
(FYI: I am using Microsoft SQL Server 2008 R2 and Report Builder 3.0 .)Hello Katherine,
Thanks once more for your quick reply.
I was aware of the textbox action "Go to report", and how to pass parameters in general. My question concerned how to determine the scope of the passed multi-value parameters (to the values that apply to the respective group/subtotal). The article you linked
to is informative, but not a solution to my problem.
A colleague of mine came up with a pragmatic solution: instead of trying to determine the scope of the parameter values, now I "look to the left in the results table". The two screenshots below should illustrate this. (Screenshots are in Dutch. Specific information
is pixelated.)
Unfortunately, I am not able to post images. Once my account is verified, I will edit them in. For now, I hope the text speaks for itself enough.
[Screenshot: Drill-through parameters - 01: Report Builder tablix with subtotals]
[Screenshot: Drill-through parameters - 02: Textbox properties (selected in screenshot 01) - Action - Go to report]
The first screenshot shows the tablix in the Report Builder. The second screenshot shows the properties of the textbox selected in the first.
Notice that I do not pass parameters for the first two columns, but the actual values. I only pass the parameter (containing /all/ user-selected values) for the third column. In the textbox below the selected one, I pass the actual values for the first column,
and parameters for the last two. In the textbox above the selected one, I pass the actual values for all three columns.
The only (cosmetic) flaw this approach has is that in the drill-through report, the list of selected parameters might show values that do not occur in the (corresponding part of the) results, and only for those parameters for which the main report passes (all
user-selected) parameter values, and not the actual values in the results. The results are correct, though.
If there is a way to directly determine the scope of multi-value parameters for passing to a drill-through report, I would still like know. But for now, this seems to work. -
Code to write syntax for JOB submit ( Please answer ASAP)
Hi,
I need sytax to submit a job
Right now I am using this code to send 4 parameters.
I need to send these 4 in a structure.
submit Ztestjob USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.
So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
I need the syntax for submit .
I also need to know how to catch the structure with values in the BGPROGRAM.
Anyone please answer ASAP
Message was edited by:
ramana peddu
Message was edited by:
ramana pedduHi,
<u>SUBMIT</u>
Calls an executable program of type 1.
Syntax
SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>]
[LINE-SIZE <width>]
[LINE-COUNT <length>].
Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
Regards,
Bhaskar -
How to pass multiple MDX values for a single parameter into a drill-through report?
I'm thinking this will be an easy question for any experienced SSRS/MDX developers, at least I hope so! I've created a report that gives the user the option to choose viewing data for the current/active week, or YTD. Depending on which link the
user selects, the report simply calls itself and needs to pass in the parameter value for Active week. If it's active week, the parameter value will simply be "true". If it's YTD, the parameter value needs to be both "True" and "False" so the current
week's data is accounted for as well. I've set everything up except for the final step, and I have no idea what to type into the Value field below. I've tried different things: false, as you see below (it errors saying I'm missing the parameter
value), the value in MDX format: =[School Dates].[Active Week].&[True] (it said I was missing a bracket), a 1 instead of the word true (again, missing a parameter value). Nothing is working.
So my question is kindof two-fold: 1) how do you pass in the value at all and 2) more specifically, how do you pass in multiple values (both true & false) ??I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
To answer your initial questions, you are correct with both your assumptions:
1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
So in following your instructions, well that's the problem I'm not quite following :)
1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden? If so, I've done this.
2) I'm not quite sure where to use the statement you provided me. You said to put it in the dataset, but I don't know which dataset. I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
as a parameter). If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties. I tried this, and it did not generate any errors, but it also kept my report groups from displaying
-- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there. When I did this and ran the report, I would get the following error:
The 'SchoolDaysActiveWeek' parameter is missing a value
So what am I missing!?
Also, thanks for taking the time to respond!! -
Hi ,
I am trying to write code for open job , submit & close job.
I need to send 4 fields as parameters from program1 to the BGprogram.
Anyone please tell me the syntax for submit.I cun't find any syntax for this.
Thanks in advance,..Create new job
CONCATENATE lc_job_prefix l_pr_count
INTO l_job_name SEPARATED BY '_'
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_job_name
IMPORTING
jobcount = l_job_count
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4
IF sy-subrc <> 0.
....Error creating job
IF NOT sy-msgid IS INITIAL.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE s000(zz) WITH
'Failed to create job'(021)
l_job_name
ENDIF.
ELSE.
....Submit job {
MESSAGE s000(zz) WITH
'Creating job'(022) l_job_name l_job_count '...'
INTO l_msgtx
PERFORM show_progress USING l_msgtx 0 1.
IF v_sort = 'X'.
SUBMIT (sy-cprog)
WITH s_pernr BETWEEN l_pernr_min AND l_pernr_max
WITH s_g_ctrl IN r_cs_ctrl
WITH s_g_land IN r_cs_land
WITH s_g_gs IN r_cs_gs
VIA JOB l_job_name NUMBER l_job_count
TO SAP-SPOOL SPOOL PARAMETERS l_print_parm
ARCHIVE PARAMETERS l_archive
WITHOUT SPOOL DYNPRO
AND RETURN
ELSE.
SUBMIT (sy-cprog)
WITH s_pernr BETWEEN l_pernr_min AND l_pernr_max
WITH s_g_lub IN r_cs_lub
WITH s_g_pro IN r_cs_pro
WITH s_g_pub IN r_cs_pub
VIA JOB l_job_name NUMBER l_job_count
TO SAP-SPOOL SPOOL PARAMETERS l_print_parm
ARCHIVE PARAMETERS l_archive
WITHOUT SPOOL DYNPRO
AND RETURN
ENDIF.
....Start immediately
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_job_count
jobname = l_job_name
strtimmed = true
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8
IF sy-subrc <> 0.
IF NOT sy-msgid IS INITIAL.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE s000(zz) WITH
'Error releasing job'(023)
l_job_name
l_job_count
ENDIF.
ELSE.
MESSAGE s000(zz) WITH
'Job released'(024) l_job_name l_job_count
INTO l_msgtx
PERFORM show_progress USING l_msgtx 0 1.
ENDIF.
....} Submit job
ENDIF.
..Increment process count
ADD 1 TO l_pr_count.
ENDDO.
MESSAGE s000(zz) WITH l_pr_count 'job(s) created.'(025). -
How can i pass the one value for two bind parameters
hi All,
i have a search Query
select Distinct CONSOLIDATION_SUMMARY_ID,CREATION_DATE,CREATED_BY,BATCH_ID,PROCESS_FLAG,ERROR_MESSAGE,CUSTOMER_ID,BILLING_FREQUENCY
,CONSOLIDATION_LEVEL,SOLD_TO_ORG_ID ,SHIP_TO_ORG_ID ,TRANSACTIONAL_CURR_CODE ,INVOICE_TO_ORG_ID ,PRICE_LIST_ID
,ORIG_SYS_DOCUMENT_REF,INVENTORY_ITEM_ID ,ORGANIZATION_ID ,ORDERED_ITEM ,ORDERED_QUANTITY ,UNIT_LIST_PRICE
,UNIT_SEELING_PRICE,ORDER_QUANTITY_UOM,ORDER_NUMBER ,ORDER_DATE ,INVOICE_NUMBER ,INVOICE_DATE
,FEE_CALCULATION_WORKSHEET_PDF ,TRADE_DETAILS_PDF ,INVOICE_REPORT_PDF ,PRICING_ATTRIBUTE_CONTEXT
,PRICING_ATTRIBUTE ,PRICING_ATTR_VALUE_FROM
from xxcurrnx.xxcur_trade_consol_summary XXSTR
WHERE XXSTR.BATCH_ID=NVL(:1,XXSTR.BATCH_ID)
and XXSTR.CUSTOMER_ID=nvl(:2,XXSTR.CUSTOMER_ID)
But i need to pass only one value to this query: throw the below code
public void passTocusttrxn(String vcustid)
System.out.println("The customer id in trxn vo:"+vcustid);
XxcurtradeconsummaryVOImpl vOrdnumb=getXxcurtradeconsummaryVO1();
vOrdnumb.setWhereClauseParam(0,vcustid);
vOrdnumb.setWhereClauseParam(1,null);
vOrdnumb.executeQuery();
System.out.println("The executed query After is :"+vOrdnumb.getQuery());
But it throws the below exception.
java.sql.SQLException: Missing IN or OUT parameter at index:: 1
could you please tell me how can i achieve this.
Thanks,hi Meher,
i need to pass this value throug the Spell Parameter.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
XxcustdtlsmainAMImpl am=(XxcustdtlsmainAMImpl)pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("PCustID")!=null) // PCustID is the Spell parameter here
if(pageContext.getParameter("PbtchID")!=null)
if(pageContext.getParameter("PordNum")!=null)
String vcustID=pageContext.getParameter("PCustID");
String vOrdNum=pageContext.getParameter("PordNum");
System.out.println("The cust id in PR:"+vcustID);
System.out.println("The cust id in PR:"+vOrdNum);
am.passTocustlinetrxn(vcustID);
how this vcustID value will passed to the search Code.
if(pageContext.getParameter("BatchID")!=null && !pageContext.getParameter("BatchID").equals(""))
String BchID=pageContext.getParameter("BatchID");
int vInBtchID=Integer.parseInt(BchID);
srchVO.setWhereClauseParams(null);
srchVO.setWhereClauseParam(0,vInBtchID);
System.out.println("The Batch ID is :"+vInBtchID);
f=1;
}else
srchVO.setWhereClauseParam(0,null);
if(pageContext.getParameter("CustmeCode")!=null && !pageContext.getParameter("CustmeCode").equals(""))
System.out.println("i am im customer code ");
String vCustID=pageContext.getParameter("CustmeCode");
srchVO.setWhereClauseParams(null);
srchVO.setWhereClauseParam(1,vCustID);
System.out.println("The customer code is "+vCustID);
f=1;
}else
srchVO.setWhereClauseParam(1,null);
if(f==1)
srchVO.executeQuery();
Regards, -
How to pass the standard value for the entire datapackage in the routine
Hi Gurus,
I have timestamp field in the target. In endroutine , i assigned system date to the tiemstamp field . If i assign sy-datum to that field, if i get 4 datapackage im getting 4 different timestamp for each of the datapackage...
But my requirement is the timestamp should not vary for each of the datapackage.
For eg.
Timestamp
20111212060205 - Datapackage 1
20111212060602 - Datapackage 2
But i need as
Timestamp
20111212060205 - Datapackage 1
20111212060205 - Datapackage 2
How to pass it?
Thanks in advanceyou can use tvarv table.
if the datapackage number = 1,
use the current timestamp
overwrite the existing entry in tvarv.
else
use timestamp of tvarv -
How to pass Presentation Variable Value from Main Report to Detail Report
Hello,
I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
"ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
I just cant pass the written values for presentation variable prompts to detail report..
Please help :)Hi,
What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
Hope this helps.
Regards
MuRam -
Passing multiple single values to a Planning Sequence
Hi All,
We are using BEx Analyzer for planning. We are passing multiple single values for a single variable , to a IP-planning sequence. Planning sequence is only taking the last value passed and ignoring the rest.
Multiple variable values are passed as below:
Name Index Value
VAR_NAME_1 1 ZCC
VAR_LINES 1 5
VAR_VALUE_1 1 A10000001
VAR_VALUE_1 1 A10000002
VAR_VALUE_1 1 A10000003
VAR_VALUE_1 1 A10000004
VAR_VALUE_1 1 A10000005
These cell references are passed to "command button" through the "Command Range" property.
The values are calculated correctly but for only one Cost center (last one in the list) , In this case only data for the Cost Center "A10000005" is processed and rest of the cost centers are ignored.
What am I missing here? I appreciate your help.
Patch Levels:
SAP GUI 7.10 (Patch 16)
BEx Analyzer 7.X SP 12
Thank you,
MathHi Indu Sharma - I have tried several combinations, but did not work.
VAR_VALUE_1
VAR_VALUE_2
VAR_VALUE_3
VAR_VALUE_4
VAR_VALUE_5
VAR_VALUE_1
VAR_VALUE_1
VAR_VALUE_1
VAR_VALUE_1
VAR_VALUE_1
VAR_VALUE_EXT_1
VAR_VALUE_EXT_2
VAR_VALUE_EXT_3
VAR_VALUE_EXT_4
VAR_VALUE_EXT_5
Thank you,
Math -
How to execute two structure type values
How to execute two structure type values for HWC app in SUP 2,2 ? Added is the screenshot, with the structure and values to be executed. Trying in the preview works fine , but how to process in the application ?
Thanks Midhun VP i came across result checker , but still checking if there is any work around without result checker. , Will a HTML view with some Success status work in this scenario .
Correct me if i am wrong, as per my understanding , Result checkers checks the error code return value from BAPI and shows the respective message.
If so, what are the Pros and Cons of using Result checker.
Is it suggested to use Result checker for read only operations applications i,e which does nt involve operations( CUD) -
Default values for standard quote fields?
Hi all,
Is it possible to pass a default value for the quote screen/document, to be more specific, the payment terms field?
Can i use the BBP_DOC_CHANGE_BADI~BBP_QUOT_CHANGE? I have reviewed the signature but i can't find the payment term field...
How can i achieve this?
Best regards,
Gerardo.Hello Gerardo,
When do you want to set the default value ? If you need it in the initial screen please try BBP_F4_SAVE_DB BADI.
Regards,
Masa -
Safara 5.1.5 pass old value for a hidden field with new values
Hi
I have the JSP pages which used to be working in Safra 5.1.3. There is a hidden field: mac, submitted to and from this JSP page.
Page A submits "mac" with value1, backend a java action received this value and change it to value2 after some calculation, value2 is set to page B. I can see the hidden field "mac" contains value2 in page B. But when I submit page B, the value being transmitted is still value1.
I tested to change this field to a visible text field rather a hidden one. The value being passed will be the correct one: value2.
Other browsers except Safari 5.1.5 do not have such strange behavior.
Is there any solution for this problem apart from changing my form filed names?
Thanks.you can only list what was stored.
changes in values for a characteristic can be monitored in CL20N via menu Environment > Change documents
change history for classification is only stored if you activated this.
maybe it is not set active in your system, then see SAP Note 943559 - FAQ: Frequently asked questions about the classifctn. system -
How To Pass Oracle Procedure Value using Tidal Oracle Database Job Definition to Tidal Variable
how do i pass the parameter value from an oracle database tidal job to a tidal variable? for example i have this oracle db job that is defined to execute an oracle database procedure and i need to pass the parameter value to the tidal variable.
SQL tab:
begin
procedure_get_user_info(<OracleUserVariable.1>);
end;
thanks,
warrentesmcmd is a binary that sits in your TIDAL master installation bin directory. It takes options, one of which is varset which let's you set variable values.
So you can run a system level script ( a unix example is given below) which can set values for group variables.
Looking at your example you need to find a way to define OracleUserVariable.1
Where does the value for this variable come from?
Sample variable set script:
GROUP_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xml/'`
tesmcmd varset -i $1 -n GROUP_FILE_XML -v $GROUP_FILE_VAR
XSD_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xsd/'`
tesmcmd varset -i $1 -n GROUP_FILE_XSD -v $XSD_FILE_VAR
And we call the job using
setvar.sh <JobID..p> <Group.REQUEST_FILE>
which are overrides from a file event. -
Passing a value for date parameter from Oracle Forms to BIP
Hi
I have created a report with the following SQL query:
select
d_tables.d_seq,
to_date(d_tables.d_created) creation_date,
d_tables.d_created_by created_by,
d_tables.d_pk,
d_tables.table_name,
d_tables.comments
from
d_tables, d_applications
where
d_tables.d_ppk = d_applications.d_pk
and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
The report works fine when launched in BI Publisher.
I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
Does it have to do with datatype? Does anyone know a solution for this?
Kind regards,
AparnaThanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.
Maybe you are looking for
-
I am haveing probs trying to download and install flash player 10.3
I am trying to download and install flash player 10.3, but I can't, I dont get told why, all I get at the top of my screen is that the system is not working, I have turned off all protection to pc, but that doesn't help any, so what is wrong? I don't
-
Font changes in PDF form fields created in InDesign
I wasn't sure where to post this -- InDesign or Acrobat forum -- I created a lot of form fields in InDesign and when I exported to PDF, some of the form fields ended up using Times and some using Helvetica. When creating the fields in InDesign, I cop
-
Unexpected end of ZLIB input stream.
Hello everyone. I have a problem which I was unable to solve so far. Any suggestion is very welcome. The scenario. My process worked on a previously installed default install 10.1.3.1 platform. I installed the SOA Suite (same, very default set with o
-
Release Strategy @ Company Code Level
Hi Guys: We have a two plants under one compant code, when we issue PO to the vendor it consists quantities that are required for both plants ( Central purchasing org). Release strategy for PO is at header level , I.e Total PO Value can we release st
-
Colour change when opening LTRM image in PS
My question is as simple as this: In Lightroom my RAW (NEF) image looks like this: After conversion in LTRM from RAW to PSD, it looks like this See how greyish the PSD version is. Just like if someone had cranked the saturation slider down before the