SAP BODS XI 3.2 - batch job, global variable, name includes apostrophe - why failing?

Global Variable in batch job used to define user access (add/update/remove) - how do we handle the inclusion of an apostrophe in a name?
Tested with wildcard prior to apostrophe, still failing.
Any clues, please?
Thank you.

I believe you can not use any special characters in global variables name.

Similar Messages

  • Batch job with user name

    Hi,
    Is it possible to create a batch job with another user name using JOB_OPEN?
    and what is the use of JOB_GROUP option??
    Thx in advance.
    PRa

    use:
    CALL FUNCTION 'JOB_OPEN'...
    *--create Step
        SUBMIT RFBIBL00 AND RETURN
               USER SY-UNAME VIA JOB JOBNAME NUMBER JOBCOUNT
               WITH DS_NAME = FILE
               WITH CALLMODE = 'B'.
    greetings

  • BODI XI R2: downgrade batch job from 11.5.x to 11.0.x

    Situation:
    Job with similar required functionality is in a repository with version 11.5.x
    Same functionality is required in a different project with repository version 11.0.x
    Technical build, political reasons and split in organisation divisions prevents from using the 11.5.x repository. Upgrading to the newest environment (11.7.3.x) is not possible as not all jobs are signed off.
    Due to the complexity of the job it is not really preferred to manually recreate the job in the 11.0.x environment. Estimate is at least 3 build days and the risk at mistakes.
    Preferred is the same trick as upgrading jobs in a repository, but now to downgrade. But that seems not possible.
    Any clues if there is a possibility to do this?

    Kick.
    As we progress we are going to recreate the interface in the 11.0.x environment.
    I have not found any resolution to downgrading BODI code.
    ATL files do have the version number listed, but also the content of the ATL file is different between the versions.

  • Batch printing with file name included on print

    I have about 3,000 images to print.
    Some are .psd, some are .ai
    I understand how to create an action in photoshop/illustrator and use Bridge to batch process them... however...
    I really need to have the image name printed as well, so that we can refer back to the correct files.
    Is this possible?

    I have a Photoshop script here that will put the filename on the pictures..
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3409&sid=fffc5a17c161b5870d157d5903864e5 6
    Get the last one as it is the most upto date.

  • How can we stop generating spools for some batch jobs?

    HI guys,
    Is memory will be occupied in SAP  during spool generation from batch jobs ?
    If yes, to reduce occupied memory, we want to stop generating spools for few batch jobs. Please suggest me the way how we can acheive this.(Step details)
    Please help me.
    Thanks in Advance.
    Regards,
    Sahil

    Stopping the spool generation for background jobs will not help you to reduce the memory load.
    First check what is the total memory utilization and type of processes where the memory is being utilized more.
    EWA can give you better idea to get the above details.
    Spooling concept doesn't eat that much of memory what you are expecting.
    Regards,
    Nick Loy

  • Web Services: runBatchJob and global variables

    Dear all,
    I'm facing a problem when I try to call web method runBatchJob defined by port BatchJobAdmin of the Web Service interface published by DS. 
    I have defined a job TestWSCall characterized by global variable $G defined as varchar(50) and I have written the following code to invoke job  TestWSCall with variable $G set to a given value (e.g. u2018Testu2019):
    RunBatchJobRequest runBatchJobRequest = new RunBatchJobRequest();
    runBatchJobRequest.setJobName(jobNameCall);
    runBatchJobRequest.setRepoName(repoName);
    GlobalVariables variables = new GlobalVariables();
    Variable gvariable=new Variable();
    gvariable.setName(varName);
    gvariable.setValue(varValue);
    variables.getVariable().add(gvariable);           
    runBatchJobRequest.setGlobalVariables(variables);
    BatchJobResponse res = batchJobAdmin.runBatchJob(runBatchJobRequest);
    After running this code, the job is executed with the default value and not with value u2018Testu2019. Since the variable type is varchar, I've also tested with value Test written between '', but it is ignored as well.
    When I check the XML generated by my call, I obtain the following XML code:
    <globalVariables><variable name="$G">'Test'</variable></globalVariables>
    or without ''
    <globalVariables><variable name="$G">Test</variable></globalVariables>
    which seems to comply with the description provided by the WSDL.
    Notice that job TestWSCall (and in particular the value of variable $GVAR) works as expected when I launch it from Designer or the web interface.
    Any idea?

    Hi,
    I have done the same scenario as you.
    For e.g.
    If your global variable is $gv, then your java code would be use gv as the global variable name (without the $)
    You would also emit the '' from the value in the global variable text.

  • What's the difference between global variables and instance variables?

    hi im just a biginner,
    but what is the difference between these two?
    both i declare them above the constructor right.
    and both can access by any method in the class but my teacher said
    global variables are not permitted in java....
    but i don't know what that means....and i got started to confuse these two types,,
    im confusing.......
    and why my teacher said declaring global variables is not permitted,,,,,,
    why.....

    instance variables are kindof like Global variables. I'm not surprised you are confused.
    The difference is not in how they are declared, but rather in how they are used.
    There are two different "styles" of programming
    - procedural programming.
    - object oriented programming.
    Global variables are a term from Procedural programming.
    In this style of programming, you have only one class, and one "main" procedure. You only create one instance of the class, and then "run" it.
    There is one thread of control, which goes through various methods/procedures to accomplish your task.
    In this style of programming instance variables ARE "global" variables. They are accessible to all methods. There is only one instance of the class, and thus only one instance of the variables.
    Global variables are "bad" BECAUSE you can change them in any method you like. Even from places that shouldn't have to. Also if you use the same name as a global variable and a local variable, you can cause great trouble. This can lead to very subtle bugs, as the procedures interact in ways you don't expect.
    The preferred method in procedural programming is to pass the values as parameters to the methods, and only refer to the parameters, and local variables. This means that you can track exactly what your method is doing, and what it affects. It makes it simpler to understand. If you use global variables in your methods, it becomes harder to understand.
    So when are instance variables not global variables?
    When you are actually using the class as an Object, rather than just a program to run. If you are creating multiple instances of an object, all with different values for their instance variables, then they are not global variables. For instance you declare a Person object with an attribute "firstname". Your "main" program then creates many instances of the Person object, each with their own "firstname"
    I guess at the end of all this, it comes down to definitions.
    Certainly you can write procedural code in java. You can treat your instance variables, for all intents and purposes like global variables.
    I can only think to show a sort of example
    public class Test1
       User[] users;
       public void printUsers(){
         // loop through and print all the users
         // uses a global variable
          for(int i=0; i<users.length; i++){
            users.printUser();
    public void printUsers(User[] users){
    // preferred method - pass it the info it needs to do the job
    for(int i=0; i<users.length; i++){
    users[i].printUser();
    public Test1(){
    User u1 = new User("Tom", 20);
    User u2 = new User("Dick", 42);
    User u3 = new User("Harry", 69);
    users = new User[3];
    users[0] = u1;
    users[1] = u2;
    users[2] = u3;
    printUsers();
    printUsers(users);
    public static void main(String[] args)
    new Test1();
    class User{
    String firstName;
    int age;
    public User(String name, int age){
    this.firstName = name;
    this.age = age;
    public void printUser(){
    // here they are used as instance variables and not global variables
    System.out.println(firstName + " Age: " + age);
    Shit thats a lot of typing, and I'm not even sure I've explained it any good.
    Hope you can make some sense out of this drivel.
    Cheers,
    evnafets

  • ABAP Program global variable print at runtime

    Hi,
      I have an abap program with more than 1000 global variables. I want to run the program and at a specific point show a report with names and runtime values of all the global variables in the program. Is there some system table which stores all the global variable names and source code? Kindly help.
    Satya

    Hello Satya,
    You can store all your global variables in one internal table.
    let's say your Itab contains 1000 fields. Now, if you want to retrive the name of the itab, you can use the system call.
    DATA: IT_COMP LIKE RSTRUCINFO OCCURS 0 WITH HEADER LINE.
    *-- Getting fields of internal table
      CALL 'AB_STRUC_INFO'
        ID 'PROGRAM'   FIELD SY-CPROG
        ID 'STRUCNAME' FIELD P_ITAB
        ID 'STRUCINFO' FIELD IT_COMP-SYS.
    After getting all your fields in it_comp table you can use field symbol to get the values of your fields.
    Regards,
    Reward points, if it is useful...!

  • Icon name as Global variable

    Hi,
    In my forms i can set a single static icon name for a button. Is it possible to give the icon name as global variable name to change the icon of the button dynamically by changin the value of the global variable.
    Using set_item_property i can change. But it seems tough to implement in my forms.
    Please Help!
    Balaji.M

    What's the problem with set_item_property??
    You can use the global variables to store the name of icon file to associate with the button.
    But, ultimately you'll have to use the set_item_property to reflect the changes dynamically.
    set_item_property(<block.item name>,ICON_NAME,:global.<icon file name>);
    I don't think, by just setting global variables you can get your requirement to work.
    You'll have to use set_item_property, if you want to change the icon file name dynamically.
    Please mark answer as helpful / correct, if it helps you
    Navnit

  • Can someone explain the following: SID, Instance, Global Database Name?

    Im new to Oracle8i and Im getting confused about certain Oracle terms.
    1) What is the difference between an SID and a Database Instance?
    2) Oracle says a Global Database Name includes: db_name.domain_name. What is the difference between the db_name and the name of the Database Instance?
    Thanks, Andrew
    null

    Im new to Oracle8i and Im getting confused about certain Oracle terms.
    1) What is the difference between an SID and a Database Instance?
    2) Oracle says a Global Database Name includes: db_name.domain_name. What is the difference between the db_name and the name of the Database Instance?
    Thanks, Andrew
    null

  • How can I programmatically create and use a global variable?

    I have an app where the number of AI DAQmx tasks I create are specified in a config file.  I have a monitor task that periodically looks at the latest values from all DAQ tasks.  I've been doing this with a set of global variables because it was the simplest way to do it.  But to do this, I have to explicitly create a separate AI task that uses the hard-coded global variable name for the DAQmx samples.  I would prefer to only write one VI for the DAQ loop that writes to a global variable that I programmatically create based on the config file.  The only solution I can think of is to use a global variable "pool" that is sized bigger than I expect to need, and then have a big switch case to select which one I want based on the task index.  But this sounds pretty silly.

    I tend to agree with Ben. I don't buy the concept of taking the asy way out (globals) because it very rarely will things remain static. You almost always have to extend the features and functionality of an application and then you will run into issues with sloppy and lazy implementations. The solutions offered may require a little time to learn but once you do it doesn't really require any extra effort.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Change source path in batch Job in global variable in data services

    Hi Experts,
    my organization has created job in data services 3.2 to cleanse the data reading from excel flat files. the folder path was store in the global variable(I think) and now they have changed the directories hence is it throwing me below error.
    Error, Input file  does not exist please confirm existence and restart job, 16 ) >
    failed, due to error <50316>: <>>> Error, Input file  does not exist please confirm existence and restart job>. I want to update the folder path. I am sure it would be easy but I am very new to BODS.
    (12.2) 07-15-14 16:10:08 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> Sleeping for 35.000000 seconds...  '
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> Waking up......  '
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : 'Starting the timer loop number 6...'
    (12.2) 07-15-14 16:10:43 (14232:12656) WORKFLOW: Work flow <WF_Metadata_Files> is started.
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> $G_FILENAME_IN : ALL_Metadata_SALES.xls...'
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> looking for input file name
                                                     \\infra\finance\production\sales\Metadata\ALL_Metadata_SALES.xls'
    (12.2) 07-15-14 16:11:08 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>>  Input file Name is '
    (12.2) 07-15-14 16:11:08 (14232:12656)  PRINTFN: > 'JOB ERROR' : '>>> Error, Input file  does not exist please confirm existence and restart job'
    I want to update the folder path\\infra\finance\production\sales\Metadata\ALL_Metadata_SALES.xls to \\Home\BIData\finance\production\sales\Metadata\ALL_Metadata_SALES.xls
    when i investigated WF_Metadata_files i saw there is a global called INPUT_DIR i assume I have to change the path there. I tried to find old directory in the batch job but i cant find it and even When i give value to global variable it is still pointing to old path.
    Can anybody please help me.
    Thanks
    Tim

    Hi Tim,
    If having specified the value in the global variable it is still pointing to the old path there can be a couple of scenarios applicable
    1. There is a different global varaiable being used for the file path
    2. The filepath is hardcoded in the file-format or Excel file definition despite the declaration of the global variable.
    Are you getting this error when running a dataflow within this workflow or in a script? It will be better to run the workflow in debug mode and look through the stages to find out where exactly in the workflow it fails.
    kind regards
    Raghu

  • SAP threading-how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Passing Data Between Programs
    [http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

  • SAP- PM workorder printing - batch job

    Hello Friends,
    Does anybody know the process of SAP- PM work order printing in batch job?
    Please help.
    Thanks & Regards,
    Vaibhav

    Thnaks for your suggestion we checked the program as per your suggestion but we are not getting the prints of PM orders. We think that program is for PP orders as it is selecting the PP orders only after some modification. Do you implemented that if yes then could provide some tips to execute that program.
    BR,
    Vaibhav

  • Batch Jobs fail because User ID is either Locked or deleted from SAP System

    Business Users releases batch jobs under their user id.
    And when these User Ids are deleted or locked by system administrator, these batch jobs fail, due to either user being locked or deleted from the system.
    Is there any way that these batch jobs can be stopped from cancelling or any SAP standard report to check if there are any batch jobs running under specific user id.

    Ajay,
    What you can do is, if you want the jobs to be still running under the particular user's name (I know people crib about anything and everything), and not worry about the jobs failing when the user is locked out, you can still achieve this by creating a system (eg bkgrjobs) user and run the Steps in the jobs under that System User name. You can do this while defining the Step in SM37
    This way, the jobs will keep running under the Business User's name and will not fail if he/she is locked out. But make sure that the System User has the necessary authorizations or the job will fail. Sap_all should be fine, but it really again depends on your company.
    Kunal

Maybe you are looking for

  • Sharing music between different user (parent - children)  on 1 iMac

    Hello, I have my mac since sept 2005, and I'm very pleased with it. Now my 17 year old daughter loves most of the music I bought on iTunes. Problem. Even when I share my total library, she can't play these songs or put them in her librariy. Except 2

  • Migration woes (mail in particular) PPC iMac w/ 10.3.9 to new Mini w/10.5.4

    Me: mac user for 20 years.. web master, and unix not-quite-guru .. so don't be shy and no need to use small words in suggesting a remedy.. at this point I'll hexedit raw HD sectors if I have to... Mother has an aging iMac, Power PC, one of the "lamp"

  • Mac mini thunderbolt port stop working

    Good night. First, I apologize for my English. I have a mac mini (2011 model). Two days ago there was a power outage and the mac shut down. After turning it on, it failed to recognize my TV connected through the Thunderbolt port (with a adapter THUND

  • Can't drag and drop a file into Photoshop for some reason?

    I don't know what made it stop but at this point it's beginning to bug me to no end. I can no longer simply drag a file into Photoshop. I now have to go to "file --> open" in order to get anything into. Is there anything I can do to restore the abili

  • The colors appear more vibrant and redder ONLY on Photoshop

    Hello! For a long while I've had a problem with my Photoshop CS5. I had bought Photoshop CS5 and using it on two computers, the older one I usually use more often, it works about perfectly. But on my working laptop my Photoshop shows the colors diffe