Job creation with variable variant parameters

Hi,
Is it possible from a FM to start a job using a program where one sends the selection screen parameters with?
As the called FM calls the program with different parameteres each time.
If it is possible can someone please assist by giving an exsample?
Thanks in advance.
Best regards

Hi,
Check this eg.
This program will submit an another program in background mode as a job.
REPORT  ZACE1031_ROUTING_CONV_TRG NO STANDARD PAGE HEADING
                                LINE-COUNT 255(1)
                                LINE-SIZE 255.
TYPES: BEGIN OF x_mat,
       werks TYPE mast-werks,
       matnr TYPE mast-matnr,
       stlal TYPE mast-stlal,
       stlnr TYPE mast-stlnr,
       stlan TYPE mast-stlan,
       END OF x_mat.
DATA:  v_params    TYPE pri_params,
       v_jobname   TYPE tbtcjob-jobname,
       v_jobcount  TYPE tbtcjob-jobcount VALUE 1,
       v_stringlen TYPE i VALUE 0,
       v_msg_string(50) TYPE c,
       v_prog(30)  TYPE c,
       c_cross(1)  TYPE c VALUE 'X',
       c_01(2)     TYPE c VALUE '01',
       c_trg(1)    TYPE c VALUE 'X'.                "CCT51576
DATA : it_mat TYPE TABLE OF x_mat,
       wa_mat type x_mat.
DATA : v_werks TYPE mast-werks,
       v_pre_werks TYPE mast-werks.
RANGES: r_matnr FOR mara-matnr.
TABLES : mkal,mast.
SELECTION-SCREEN BEGIN OF BLOCK matnr
                          WITH FRAME TITLE text-001.
SELECT-OPTIONS : so_matnr FOR mast-matnr.
SELECTION-SCREEN END OF BLOCK matnr.
SELECTION-SCREEN BEGIN OF BLOCK plant
                          WITH FRAME TITLE text-002.
SELECT-OPTIONS : so_werks FOR mast-werks OBLIGATORY .
SELECTION-SCREEN SKIP.
PARAMETERS     : p_date TYPE datuv OBLIGATORY.                        "CCT51576
SELECTION-SCREEN END OF BLOCK plant.
INITIALIZATION.                                                        "CCT51576
CONCATENATE sy-datum+0(4) c_01 c_01 INTO p_date.
AT SELECTION-SCREEN.
START-OF-SELECTION.
  SELECT bwerks bmatnr  bstlnr bstlal b~stlan
  INTO CORRESPONDING FIELDS OF TABLE it_mat
  FROM mara AS a
  INNER JOIN mast AS b
  ON bmatnr = amatnr
  WHERE a~matnr IN so_matnr
  AND b~werks IN so_werks
  AND  ( a~mtart = 'FD')
AND b~stlan = 1.        "CCT53428
  AND b~stlan IN (1,2).    "CCT53428
  IF sy-subrc = 0.
   SORT it_mat by werks matnr.                                  "CCT53428
   DELETE ADJACENT DUPLICATES FROM it_mat COMPARING werks matnr."CCT53428
  SORT it_mat BY matnr werks stlan stlal  ASCENDING.                  "CCT53428
  DELETE ADJACENT DUPLICATES FROM it_mat COMPARING matnr werks stlan. "CCT53428
  SORT it_mat BY matnr werks stlan DESCENDING.                        "CCT53428
  DELETE ADJACENT DUPLICATES FROM it_mat COMPARING matnr werks.       "CCT53428
    SORT it_mat BY werks.
    LOOP AT it_mat into wa_mat.
      CLEAR : r_matnr.
      r_matnr-sign = 'I'.
      r_matnr-option = 'EQ'.
      r_matnr-low = wa_mat-matnr.
      APPEND r_matnr.
      AT END OF werks.
        CLEAR v_werks.
        v_werks = wa_mat-werks.
        CLEAR v_jobname.
        CONCATENATE 'WWACSD12' '_' v_werks INTO v_jobname.
        PERFORM f_open_job USING v_jobname.
        PERFORM f_submit_job.
        PERFORM f_job_close.
        REFRESH r_matnr.
      ENDAT.
    ENDLOOP.
  ELSE.
    WRITE / text-017.
  ENDIF.
*&      Form  f_open_job
Form to open the job with the particular job name
FORM f_open_job USING v_jobname TYPE any.
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname  = v_jobname
    IMPORTING
      jobcount = v_jobcount
    EXCEPTIONS
      OTHERS   = 8.
  IF sy-subrc NE 0.
    WRITE: /3 v_werks,
            11 text-008, v_jobname.
  ENDIF.
ENDFORM.                                                    " f_open_job
*&      Form  f_submit_job
Form to submit the program (ZACC0014_COST_COLLECTORS_BDC) as job
FORM f_submit_job.
  v_prog = text-016.
  SUBMIT (v_prog) WITH so_matnr IN r_matnr
                  WITH p_werks EQ v_werks
                  WITH p_date   EQ p_date                 "CCT51576
                  WITH ck_trg   EQ c_trg
                  TO SAP-SPOOL
                  SPOOL PARAMETERS v_params
                  WITHOUT SPOOL DYNPRO
                  USER sy-uname VIA JOB v_jobname NUMBER v_jobcount
                  AND RETURN.
  IF sy-subrc > 4.
    WRITE: /3 v_werks,
            11 text-009, v_jobname.
  ENDIF.
ENDFORM.                    " f_submit_job
*&      Form  f_job_close
Form to close the job
FORM f_job_close.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount             = v_jobcount
      jobname              = v_jobname
      strtimmed            = 'X'  "start immediately
    EXCEPTIONS
      cant_start_immediate = 1.
Process various error conditions
  CASE sy-subrc.
    WHEN 0.
      MOVE v_jobname TO v_msg_string.
      CONDENSE v_msg_string.
      v_stringlen = STRLEN( v_msg_string ).
      WRITE ' created.' TO v_msg_string+v_stringlen.
      WRITE :/3 v_werks,
              11 v_msg_string.
    WHEN OTHERS.
      MOVE v_jobname TO v_msg_string.
      CONDENSE v_msg_string.
      v_stringlen = STRLEN( v_msg_string ).
      WRITE 'create failed.' TO v_msg_string+v_stringlen.
      WRITE :/3 v_werks,
              11 v_msg_string.
  ENDCASE.
ENDFORM.                                   "f_job_close

Similar Messages

  • BOM creation with variable size item

    Dear Experts,
    I want to create BOM with 'R'-Variable size item, Can U tell me exact procedure step by step to How to create BOM with R- Variable size item?
    Regards,
    Shivkumar Dachawar

    Hi,
      T-Code-CS01
    1. Enter the material for which you want to create BOM, Plan and BOM usage.
    2. Select the item category "R", enter the component. Now you will be taken to the "Variable item data" screen.
    3. Enter the datas of Size 1, 2 & 3 (as required) and the unit of the size & number. System will calculate the "Qty of var- size item" in the unit assigned to the basic data of the material master of the component.
    4. Save
    Note: You can change the unit of the variable size item as per your requirement in OS28
    Hope this helps.
    -Thaila Shree

  • Problem with IN OUT parameters whiloe calling procedure from Form 6i

    Hi
    Could some help please? I have the following scenario.
    I am calling a stored procedure from form 6i by pressing a button on the form. Procedure has two IN OUT parameters, and I am passing these two IN OUT parameters and have declared them the way they are declared passed to the procedure. But I get an error when calling that procedure with these IN OUT parameters. the procedure works fine if parameters are IN only. The error says:
    PLS:00363: Expression '1' cannot be used as an assigment target.
    NO matter I pass some value or leave it blank, I get the same error message persistenetly.
    Please help.
    Thanks

    make sure you are calling your procedure with variables as parameters,
    i.e.
          l_v1 := 1 ;
          l_v2 := 'hello world' ;
          your_proc(l_v1, l_v2)
    not
          your_proc(1,'hello world')

  • Background Job assigment with variant in SM37 , for Textfile uploading

    Dear all,
    Im using the BAPI_PO_CHANGE to update the existing schedule dates in Purchase Orders,
    for this the po's , item, schedules, delivery dates(Need to update) from a Textfile into the internal table
    and passing that data to bapi function module, it works fi9 in foreground and the output is a classical report
    with Corresponding messages through RETURN.
    i need the same to run in background with a variant, but after assigning the background job in SM36,
    i found that the job assigned got CANCELLED in SM37.
    I hope everything is clear, so kindly revert back with solution.
    Regards,
    Niranjan.G

    Hi,
    You should understand that background job will be executed in application server and there will be no gui or access to presentation server available.
    You should upload your file to application server through tcode CG3Z.
    See F1 help for OPEN DATASET / Search SCN for sample codes for OPEN DATASET.
    You should change the code so that it can be run in both modes using the system variable SY-BATCH.
    If it is space use GUI_UPLOAD, if it is X use OPEN DATASET.
    Regards
    Karthik D

  • How to create variant with  variable field

    i want ot creat a variant ..when selected  will  fill up the  last date of the  previous month in one  of the fields.This  will be the variant the user will  using always.I can't code in intialization part Because they have given the variant name. and don't want to see any initail value before entering the values

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • Job with multiple variant

    Dear Friends,
    I have some jobs which has many variants. So it possible to create a job with multiple variants or only option is to create job chain.
    Please suggest.
    Thanks in advance.
    Regards,
    Jiggi

    Hi,
    You can submit the same job with different variant, but that is your runtime.
    Limitation is that you can't migrate all these runtime jobs.
    It is better you create different jobs with different variants, so that you have frexibility to run them independently, monitor and troubleshoot them, also migrate them to next environment (QA or PRD). And you can still create a job chain using all these independent jobs if require.
    Only creating Job Chain would be useful only if you want to run them in parallel or in sequence. (Not if you want to run them independently).
    Hope this help.
    regards,
    Sunil Rohit

  • Running job along with variant programatically

    Hai,
    I have to run a report (which have selection screen) through job from the module pool program.
    that is the user will click on a button which triggers the execution of the report in back ground.
    this report have a selection screen.I am creating the variant programatically & I have to use the same varinat in the job.But when I checked the job_open fm , it is not taking any input parametrs for variant.
    please note creating the variant & job before the execution of the module pool program is not possible because I have to ceate the variant with the values from the module pool screen & I need to use the job
    because the foreground process takes huge amount of time hence going for back ground.
    can any one please tell how to cretae a job with varinat programatically?
    creating a job with out variant is possible through job_open but I want to create a job with variant so that I can run the repor from module pool.
    please give your ideas.
    Regards,
    Bhaskar.

    Hello,
    after the function JOB_OPEN you could use the submit_statment.
    submit <Reportname> user <user> via job <jobname> number <jobnumber> using selection-set <variant>.
    the jobname and jobnumber you would get from the JOB_OPEN-Function.
    At last there would be a call function JOB_CLOSE or JOB_SUBMIT.
    Regards Wolfgang

  • Problem in calling of stored procedure with variable parameters

    Hello!
    When we try to call our stored procudure with variable parameter (year and month) we receive various errors.
    Here's the dynamic package script code:
    DEBUG(ON)
    PROMPT(SELECTINPUT,,,"Please select time for restatement",%TIME_DIM%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\zbpc_to_fm.lgx)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,SIMULATION,1)
    TASK(Execute formulas,CHECKLCK,0)
    Our logic script file (zbpc_to_fm.lgx) code is:
    *RUN_STORED_PROCEDURE=ztest('%TIME_SET%')
    *commit
    The problem occures while transferring the variable parameter %TIME_SET% value.
    How can we correctly transfer the selected value of TIME_SET into the procedure?

    Everything in the debug log looks correct -- the most important lines are the ones indicating the values passed from the user's response to the PROMPT(SELECTINPUT...)
    INFO(%CATEGORY_SET%, BUDGET)
    INFO(%ENTITY_SET%, 1733)
    INFO(%FUND_SET%, )
    INFO(%PROJECT_SET%, )
    INFO(%TIME_SET%, 2008.NOV)
    Are you certain that the stored proc is processing the input parameter for time correctly, when you run it directly in MS Mgmt Studio?
    What error messages do you see running it from BPC?
    By "customized user authorities" do you mean that the time dimension is secured, and this user has access only to 2008.total and its descendants? If that's the case, the user should be able to see only those members in the action pane / current view, but the SELECTINPUT prompt should only show the base members (and not the year total and quarters). I'm still confused as to why all 12 + 4 + 1 members are passed through to the stored proc.

  • Changing Variant Parameters Programmatically

    Hi Guys/Dolls
    I've developed a program that has a user selection date range on it and I have saved this program as a variant. I submit this program has a batch job on a monthly basis but need to change the dates on the variant each month to be the start and end date of the previous month.
    I believe I need to use the following Function Modules; please correct me if I am barking up the wrong tree. Unfortunately I have absolutely no idea how to use them within ABAP. Do I need anything else to change my variant parameters?
    RS_VARIANT_CONTENTS
    RS_CHANGE_CREATED_VARIANT
    Does anybody have a very small snippet of code that will allow me to change the date of the variant.
    Many thanks in advance.
    Raj

    Ok Guys/Dolls
    I've managed to hack a solution and have posted this for reference.
    The code is as follows:-
    FORM change_variant .
      DATA: h_rc LIKE sy-subrc.
      DATA: ival TYPE STANDARD TABLE OF rsparams WITH HEADER LINE.
      DATA: ls_variantdesc LIKE varid.
    *1st check to see that the variant exists.
      CALL FUNCTION 'RS_VARIANT_EXISTS'
        EXPORTING
          report              = sy-repid
          variant             = variant_name
        IMPORTING
          r_c                 = h_rc
        EXCEPTIONS
          not_authorized      = 01
          no_report           = 02
          report_not_existent = 03
          report_not_supplied = 04.
    * If variant exists then obtain the contents of the variants.
      IF h_rc = 0.
        CALL FUNCTION 'RS_VARIANT_CONTENTS'
          EXPORTING
            report                      = sy-repid
            variant                     = variant_name
            move_or_write               = 'W'
    *   NO_IMPORT                   = ' '
    *   EXECUTE_DIRECT              = ' '
    * IMPORTING
    *   SP                          =
          TABLES
    *   L_PARAMS                    =
    *   L_PARAMS_NONV               =
    *   L_SELOP                     =
    *   L_SELOP_NONV                =
            valutab                     = ival
    *   OBJECTS                     =
    *   FREE_SELECTIONS_DESC        =
    *   FREE_SELECTIONS_VALUE       =
    * EXCEPTIONS
    *   VARIANT_NON_EXISTENT        = 1
    *   VARIANT_OBSOLETE            = 2
    *   REPORT_NOT_EXISTENT         = 3
    *   OTHERS                      = 4
        IF sy-subrc = 0.
    *     Change value of the variants to what you want it to be.
          LOOP AT ival WHERE selname EQ 'PNPBEGDA' OR
                             selname EQ 'PNPBEGPS' OR
                             selname EQ 'PNPENDDA' OR
                             selname EQ 'PNPENDPS'.
            ival-low = ''.
            MODIFY ival.
          ENDLOOP.
          LOOP AT ival WHERE selname EQ 'P_CNGDAT'.
            ival-low  = '20000201'.
            ival-high = '20001231'.
            MODIFY ival.
          ENDLOOP.
    *   Now re-save the variant with the appropriate changes.
    *     Clear and re-populate the variant description.
          CLEAR ls_variantdesc.
          ls_variantdesc-aename   = sy-mandt.
          ls_variantdesc-aename   = sy-uname.
          ls_variantdesc-aedat    = sy-datum.
          ls_variantdesc-aetime   = sy-uzeit.
          CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
            EXPORTING
              curr_report                     = sy-repid
              curr_variant                    = variant_name
              vari_desc                       = ls_variantdesc
    *   ONLY_CONTENTS                   =
            TABLES
              vari_contents                   = ival
    *   VARI_TEXT                       =
    *   VARI_SEL_DESC                   =
    *   OBJECTS                         =
           EXCEPTIONS
             illegal_report_or_variant       = 1
             illegal_variantname             = 2
             not_authorized                  = 3
             not_executed                    = 4
             report_not_existent             = 5
             report_not_supplied             = 6
             variant_doesnt_exist            = 7
             variant_locked                  = 8
             selections_no_match             = 9
             OTHERS                          = 10.
          IF sy-subrc = 0.
            PERFORM set_pnp_default.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " change_variant
    FORM set_pnp_default.
    * The following 2 statement will set Today as the default on the PNP
    * selection and also move the cursor to that field.
    * IMPORTANT NOTE - you must have 'PNPTIMR1' in capitals otherwise it
    * doesn't work.
      pnptimed = 'D'.
      SET CURSOR FIELD 'PNPTIMR1'.
    ENDFORM.                    " set_pnp_default

  • Bakcground Job Creation

    Hello everybody,
    I have the next requirement, I need an option in the menu in a Z dynpro program to execute the transaction in a background job, the problem is that i need it to work just like this option works with selection screens, that in the Program option in the menu it has the Execute in background, so it generates automatically the job, I've seen the functions JOB_OPEN, JOB_SUBMIT and JOB_CLOSE they will work the problem is with the variant cause there is no variants and i don't know how the system generates some kind of temporal variant with a name such as &00000000054 and so on, does anyone know how can i do this, thanks in advance.
    Regards,
    Julio Cesar

    You don't need a temporary variant for this.  Just use the SUBMIT statement and pass your data(captured in the screen) to another "Z" program using the WITH statement.  Problemm solved.
    data:   l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'Z_SUBMITTED_PROGRAM'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit z_submitted_program
           with P_parm1 = <some_value>
           with P_parm2 = <some_value>
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X'.
    Regards.
    Rich Heilman
    Edited by: Rich Heilman on May 21, 2008 3:51 PM

  • Variable Variant

    Hi Everyone,
    I have below mentioned requirement, in which i have to use variable variant,
    Requirement:
    There are 5 fields on selection screen.
    1) Customer Number
    2) Unloading Point
    3) Partner Description
    4) Vendor
    5) PO Number
    now it is required that there are variants for every customer number, which can be more than one also for one customer no, and when i input customer number, It should show me the variants for particular customer no. and after selecting the particular variant, all other fields get populated.
    please help me know if there is any way i can select the particular variant based on the Customer Number.
    If you have any sample code, pl pass it on to this mail ID, [email protected]
    Regards
    Ashish Rawal
    Bangalore.
    Message was edited by:
            Ashish Rawal

    Hi Soniya,
    <li>check the below program.
    REPORT ztest_program.
    PARAMETERS p_char TYPE char5.
    PARAMETERS p_date TYPE sy-datum.
    AT SELECTION-SCREEN OUTPUT.
      p_date = sy-datum.
    START-OF-SELECTION.
      WRITE:/ p_char,
              p_date.
    <li>I have create variant ztest_var1 with values p_char = 'test1' and p_date = '29.09.2009'.
    <li>I have create variant ztest_var2 with values p_char = 'test2' and p_date = '01.10.2009'.
    <li>As I have filled p_date with sy-datum in PBO of the selection-screen.I am getting outputs like below.
    TEST1 30.09.2009
    TEST2 30.09.2009
    So try that way. I think that it works.
    Thanks
    Venkat.O

  • Report Builder Wizard and Parameter Creation with values from other data source e.g. data set or views for non-IT users or Business Analysts

    Hi,
    "Report Builder is a report authoring environment for business users who prefer to work in the Microsoft Office environment.
    You work with one report at a time. You can modify a published report directly from a report server. You can quickly build a report by adding items from the Report Part Gallery provided by report designers from your organization." - As mentioned
    on TechNet. 
    I wonder how a non-technical business analyst can use Report Builder 3 to create ad-hoc reports/analysis with list of parameters based on other data sets.
    Do they need to learn TSQL or how to add and link parameter in Report Builder? then How they can add parameter into a report. Not sure what i am missing from whole idea behind Report builder then?
    I have SQL Server 2012 STD and Report Builder 3.0  and want to train non-technical users to create reports as per their need without asking to IT department.
    Everything seems simple and working except parameters with list of values e.g. Sales year List, Sales Month List, Gender etc. etc.
    So how they can configure parameters based on Other data sets?
    Workaround in my mind is to create a report with most of columns and add most frequent parameters based on other data sets and then non-technical user modify that report according to their needs but that way its still restricting users to
    a set of defined reports?
    I want functionality like "Excel Power view parameters" into report builder which is driven from source data and which is only available Excel 2013 onward which most of people don't have yet.
    So how to use Report Builder. Any other thoughts or workaround or guide me the purpose of Report Builder, please let me know. 
    Many thanks and Kind Regards,
    For quick review of new features, try virtual labs: http://msdn.microsoft.com/en-us/aa570323

    Hi Asam,
    If we want to create a parameter depend on another dataset, we can additional create or add the dataset, embedded or shared, that has a query that contains query variables. Then use the option that “Get values from a
    query” to get available values. For more details, please see:http://msdn.microsoft.com/en-us/library/dd283107.aspx
    http://msdn.microsoft.com/en-us/library/dd220464.aspx
    As to the Report Builder features, we can refer to the following articles:http://technet.microsoft.com/en-us/library/hh213578.aspx
    http://technet.microsoft.com/en-us/library/hh965699.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Job Cancelled with an error "Data does not match the job def: Job terminat"

    Dear Friends,
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job   Started                                                                               
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)                           
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.                                   
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.                                    
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)  
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)    
    8.Job cancelled after system exception
    ERROR_MESSAGE                                                
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised. 
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?
    Edited by: dharmendra gali on Jan 28, 2008 6:06 AM

    Dear Friends,
    _Urgent : Please work on this ASAP _
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job Started
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)
    8.Job cancelled after system exception
    ERROR_MESSAGE
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised.
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

Maybe you are looking for

  • Open a pdf in Photoshop CS5 shows jpg - but no grafic

    I have a handbook opened in Photoshop CS5 and I can see the jpg images of the handbook. But not the grafic scematic images. I am not aware if these are in svg or whatever. How can I get access to those grafics? Yes, I may open a page and copy a grafi

  • "The iPod ... could not be updated because it could not be found" on Mac?

    I just updated to the latest version of QuickTime and was notified that there was a new iPod update but when I try to update it I get the message: "The iPod "My Name's iPod" could not be updated because it could not be found." I tried to remove the i

  • Adobe Reader Print Window not legible

    Adobe Reader (free) works just fine until I want to print a document. For some years now, whenever I want to print the print window comes up looking like this: It has occurred to me that my custom color scheme may have something to do with this (but

  • W540 - 4k monitor at 60hz without dock possible?

    Hi, I am having issues using my Phillips 288p 4k monitor with my W540.  It runs at 4k resolution, but only at 30hz.  I have read a few threads on the forums which suggests it will display 4k at 60hz using the Ultra Dock, but I was wondering if there

  • Upgrade to version 6.2 how do I get back my calander and contacts from version 4.2?

    I upgraded to version 6.2 and I have lost my contacts and my calander info in the process, where might I look to get this information back? Post relates to: Tungsten E2