To Run GPS by changing variable in UPSPL transaction automatically??

Can somebody tell me if it is possible through an ABAP code to run global Plannig Sequence by changing variable value automatically by just a single click of button. (for eg. If i have a variable which can be given 5 different values, and i want to run a Global Planning Sequence for each variable value. Then can i write a ABAP code so that on just a single click of botton this is possible.) It would be helpful if somebody can send me a demo code also. My email id is [email protected]
Regards
Rishi

Hi Rishi,
To Answer, How to run GPS through ABAP code -
i do not know a planning function to run a GPS, but i have written an ABAP code thought with i'm executing 3 planning functions one after another using function module UPC_FUNCEXE.
CALL FUNCTION 'UPC_FUNCEXEC'
  EXPORTING
    I_AREA                =
    I_PLEVEL              =
    I_PACKAGE             =
    I_METHOD              =
    I_PARAM               =
IMPORTING
  ET_LOG                =
  E_ERROR_OCCURED       =
you can call this function module multiple time in your ABAP code. it will work same as a Global Planning Sequence.
Can you explain more about how do you want to execute a planning sequence on the change of variable value.
Regards
Tarun

Similar Messages

  • BEx Analyzer Not showing report result in canceling "Change variable Icon"

    Hi Experts,
    Do we have any settings in BEx Analyzer for retrive the Result set even after I click 'Change variable Icon' in Toolbar and cancel the variable pop-up window??
    Eg: My query Result is displayed in Analyzer selecting some vaues in Selection screen.And when I click the Change Variable Icon from 'Analyzer Toolbar' its showing me 'Select values for variable' window.If I select the cancel button in it, then Query result becom blank showing the message "There are variables; change variable values". Do Analyzer having an option or settings to keep the result even if i cancel the variable selection from "change variable icon".
    Thanx in advance..

    Sari-
    If SAP provides such a function, I have not found it. The way I understand it., the change variable value initiates the OLAP back end. This clears the Presentation Manager front end, and clears the 'results' that are displayed on your workbook. If you cancel the OLAP run, the front end clear still executes.
    HOWEVER... if you turn OFF Automatic Refresh before clicking on Change Variable Values and then clicking on Cancel, the presentation manager will not write any changes to your workbook. So that is your best solution.

  • How to define a changing variable in Broadcasting.

    I would like to run bex web report in background using information broadcasting in bw 3.5. I setup all required settings and it is running fine. But I would want the broadcaster should take changing variable (example: date or fiscal period etc) based on the execution date or other condition. (please note that this is not for including date and  time etc in description).
    I want broadcaster should take current date  or date range or fiscal period as variable (selection screen) while running the report. I have tried using filter variable tab in broadcaster. But it was taking only static dates.
    pls suggest.
    Thanks in advance.

    Could you please tell me in detail. Which user exit variable you have mentioned? I am already using user exits (code in CMOD) for variables in query and it is working fine.
    Now, I want to run the same query in background using information broadcasting. When i run the query it asks for user input (for example: date etc). I enter the current date and execute the report. But I dont want to enter current date each time. Instead i want to execute them in backgroun and system should take values by itself.
    Correct me if I am wrong. For this you suggested me write one more user variable where it will populate variable values for backgroun (not used in query)? pls reply.
    Thanks, points assigned.

  • 5230 fails to run gps

    Hello,
    I've had the nuron 5230 for about 6 weeks now.  I've had no problems up until now.
    When I try to start gps the phone restarts.
    Originally GPS ran fine.
    The only gps related change I've made is to add a voice.  After the install it worked fine.  Then I didn't use it for a couple weeks, now it won't run.
    Any advice at this point?

    It could be corurpted data in the internalm files of Maps. In case the problem lies n the extra voice pack you installed, try deleting it - use the phone's FIle Manager to go to the memory card, open the Cities folder then Diskcache then Voices, and once there delete the folder corresponding to your added language pack.
    If you still have the problem after doing this, then it is not really possible to search for the data that is causing the issue so the best way out is to delete the Cities folder altogether and the QF file (also from the roor folder in the memory card. After this you need to start Maps again so that it can recreate its internal file structure, then close it down and reload your map and voice data.

  • Running SAPF101 after changing reconciliation accounts

    When I run SAPF101 after changing reconciliation accounts in Customer masters should  see the following adjustments:
    Cr old reconciliation account
    Dr adjustment account
    Cr adjustment account
    Dr new reconciliation account
    this then corrects the balances in the reconciliation accounts for the period end
    and then reverses on the first working day of the next period.
    Is my understanding correct?
    what I am actually seeing is:
    Cr adjustment account
    Dr adjustment account
    and reverse on the first working day of the next period
    My posting results make the exercise meaningless.
    Am I missing some config to complete this exercise in full?
    Help would be appreciated

    After going through this <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/96/8b335343ce11d189ee0000e81ddfac/frameset.htm">Documentation</a> I realize that your understanding is different from what is described. The recon account will not be invoked in the entry.
    Since we cannot post to a recon account directly, the line items are posted to the adjustment acccount. So, only adjustment accounts will be involved.
    Let's assume there ten line items in a customer account. If four line items have gone to original recon account  and the remaining six line items have gone to new recon account. When you run this program, the line items of original recon account are posted to the adj account of both the recon accounts. The postings to the adj account of the original recon account will negate the effects of the original postings. Therefore both the adj account of the original recon account and the original recon account shall be grouped together, in the financial statements.
    Similarly,  the adj account of the new recon account and the new recon account shall be grouped together in the financial statements.
    Once the P&L and B/S are made, you reverse the above entries. The reversal information is included in the program parameters.

  • Change variable from negative to postive

    hallow
    i wont top now how i change variable from negative  to postive
    like change -5 to 5
    thankes

    Hi Shnya,
    You just multiply with " -1", it wil get converted from Positive to negative or vice versa.
    Hope I answered your query.
    Regards,
    Sujatha

  • Automatic run for PRAA change

    Hi,
    I want to change the employee vendor name automatically through PRAA.
    I have scheduled a background job for PRAA and it is just creating a session in SM35.
    Could you please let me know whether I need to create a seperate job (which is given in PRAA, name of job) for running this session, or do I need to do manually?
    I am able to see the name of job which is executed in SM37, but the session is not run, vendor name is not changed.
    Regards
    SM
    Edited by: shanumonu on Jan 18, 2012 10:57 AM

    Hello Sally,
    I am following the same process as you have mentioned.
    When i explicitly update a vendor through PRAA it is updated successfully. Changes are reflected in XK02 / XK03. But when done via a batch job changes are not reflected.
    Do you have any idea as to what can be the possible cause for not updating the vendors despite everything executing successfully? Please your inputs on this.
    Thanks in advance.
    Regards
    Deepali Bhandari

  • Format for Predefined lists of repeated measurements with changing variables

    Hi,
    I am a scientist and trying to draw an instrument ("writing a script" sounded wrong for LabView ) that is supposed to perform repeated measurements in an imaging experiment.
    I want to be able to give the instrument a list that defines the values for several variables for each repetition, because I want it to do different things in different episodes of the experiments and/or alternate different acquisition methods. In this way I can use the same script for a wide range of experimental paradigms.
    I am trying to decide on the format in which I could write the sequence to LabView to read. I looked into XML, but the LabView scheme seems pretty useless. If I use a textfile I would have to program a parseing script myself. If I use binary files I need to program an editor.
    I also thought about whether I want a line by line execution protocoll or just changing variables and leaving the execution protocoll integrated in the instrument. However, the latter would reduce the versatility.
    What would you think is a good way to do it?
    In general each measurement consists of:
    0. wait for a defined time (always the same)
    1. light on (different light sources)
    2. acquire images (different durations, exposure times, frames numbers)
    3. trigger a device (not in all repetitions, maybe changing devices in future)
    4. turn on a channel (changing channels)
    5. acquire images (different durations, exposure times, frames numbers - also different from step 2)
    6. turn off the channel (same as in 4)
    7. acquire images (different durations, exposure times, frames numbers - also different from step 2 and 5)
    8. light off (same source as 1)
    So there is basically a repetitive pattern. The image acquitisition 'epics' are performed by the same device, everything else is switching on and off channels of a NI PCI.
    Dennis
    P.S. I use LabView 2009

    I'm in agreement that your best bet would be a simple CSV or tab delimited file.  You can edit these in Excel, which makes the writing a lot easier.  There is the Read Spreadsheet File VI which can give you a 2D array for your steps and parameters.
    So, to keep it simple, use a csv.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Run 4 global change at once

    Hi
    I would like to know if is possible to run 4 global change within 1 command? I made 4 global change to set a indicator and evety time I update the time schedule I have to run 4 global changes to do the indicators shows the delay. Thank you all!!
    Ricardo, from Brazil.

    There is no way to do this via the client. You may be able to setup something like this in the API but that would require a JAVA Developer to code and build you an interface (probably way more trouble than you just running each global change). The only other option you have is to combine the 4 global changes into a single one which may or may not be possible based on what you are trying to accomplish.

  • What is the back ground job when we run an Attribute Change run ?

    Dear One´s,
    What is the back ground job when we run an Attribute Change run ?
    Thanks in advance,
    Raj

    Hi Raj,
    1. If the attribute change run is triggered through process chain the job name is 'BI_PROCESS_ATTRIBCHAN'
    2. If the change run is triggered from RSA1> tools?Appl Heirarchy/Attribute changerun then the job name starts with BI_STRU*
    3. If you trigger the program RSDDS_AGGREGATES_MAINTAIN from SE38 then the job name will be RSDDS_AGGREGATES_MAINTAIN
    Hope this helps...

  • How to run execute immdiate with variables

    Hi friends,
    How to run execute immdiate with variables in v_stmt below?
    I dont know how to declare the value of i here.
    Set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
          SELECT sqlid FROM temp1;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor('&i',null))'
          execute immediate v_stmt;
       END LOOP;
       CLOSE c;
    END;
    /Regds,
    Kunwar.

    You first need to use a bind variable (named ':v' in SQL statement in my example):
    set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
           -- modified for a quick test
          SELECT sql_id FROM v$sql where child_number > 2;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor(:v,null))';
          execute immediate v_stmt using i;
       END LOOP;
       CLOSE c;
    END;
    /However because your SELECT statement returns several rows you need to adapt your code to process all rows returned (as already suggested in first reply to your message).
    Instead of using PL/SQL, I recommend to generate a SQL file using only SQL and then to run the generated SQL file.
    For example:
    spool edx.sql
    set serveroutput on
    declare
    v_stmt varchar2(100);
    v_q char(1):='''';
    begin
    dbms_output.put_line('spool edx.log');
    for s in (select sql_id from v$sql where child_number >2)
    loop
      dbms_output.put_line('select * from table(dbms_xplan.display_cursor(' || v_q || s.sql_id || v_q || ',null));');
    end loop;
    dbms_output.put_line('exit');
    end;
    spool ofThis generates a SQL file similar to :
    spool edx.log
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('fsbqktj5vw6n9',null));
    select * from table(dbms_xplan.display_cursor('6q42j0018w7t8',null));
    select * from table(dbms_xplan.display_cursor('a5mmhrrnpwjsc',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('9gkq7rruycsjp',null));
    select * from table(dbms_xplan.display_cursor('f0wj261bm8snd',null));
    select * from table(dbms_xplan.display_cursor('ab3swhv5g138y',null));
    select * from table(dbms_xplan.display_cursor('6vgvyh4xw9c5g',null));
    select * from table(dbms_xplan.display_cursor('ak5crjygnpk60',null));
    select * from table(dbms_xplan.display_cursor('9p6bq1v54k13j',null));
    select * from table(dbms_xplan.display_cursor('19x1189chq3xd',null));
    select * from table(dbms_xplan.display_cursor('7sx5p1ug5ag12',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('a1zv6wju3ftgv',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('g4gp07gt2z920',null));
    select * from table(dbms_xplan.display_cursor('1gu8t96d0bdmu',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('bn4b3vjw2mj3u',null));
    select * from table(dbms_xplan.display_cursor('38243c4tqrkxm',null));
    select * from table(dbms_xplan.display_cursor('2abjfnvy5rkyg',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('1tgukkrqj3zhw',null));
    exit
    PL/SQL procedure successfully completed.Edited by: P. Forstmann on 20 mars 2013 19:06
    Edited by: P. Forstmann on 20 mars 2013 19:33

  • How to make Attribute Change run alignment & Hierarchy changes in Aggregat

    Hello
    I want to understand that How to make Attribute Change run alignment & Hierarchy changes in Aggregate?
    I posted previously the same question but there were not good answers and i was not able to understand clearly .....
    If there is Process chain XXY which makes Attribute change run for Master Data 0SPELLING ?
    Now there is Aggregate TRT which includes :
    0SPELLING , Fiscal Period , Purchase Product, Purchase Category ?
    Now pls answer following question ?
    1) Does the Process Chain XXY which makes only attribute change run alignment for 0SPELLING , Will this process chain automatically do the Change run alignment for 0SPELLING in Aggregate TRT ? YES or NO
    2) If Yes, then we are just suppose to do Roll up for Aggregate TRT after Process chian XXY completes and finish job ?
    3) If No, then what steps are suppose to be DONE so as to make sure that Aggregate TRT has new values and perfect values for 0SPELLING ?
    Please answer and coorect if i have any wrong question....

    for e.g.
    u have 0spelling whicha has attributes x,y and z on day 1 with 10 records
    so do ur aggregates on day1 with same values
    now on day2 u had new values of attributes y,z,s,d and new hierarchies and so u add new records
    with data load u will load the data with version M of modified and is not available for reporting
    If u do attribute change run then this modified version is activated to A i.e. active version .
    It will also do the change run alignment for Aggregate for new attribute values and new hierarchy values for aggregate.
    now in order for this data to be available for reporting u will need to do the roll up of aggregate.....
    if u roll up aggregate before attribute change run , new data is not avaialable for reporting
    if u roll up aggregate after attribute change run, then data is available for reporting
    if u dont roll up aggregate eventhough new data is in dataprovider, still new data will not be available for reporting.
    this is how it works

  • How to make Attribute Change run alignment & Hierarchy changes in Aggregate

    Hello
    I want to understand that How to make Attribute Change run alignment & Hierarchy changes in Aggregate?
    I posted previously the same question but there were not good answers and i was not able to understand clearly .....
    If there is Process chain XXY which makes Attribute change run for Master Data   0SPELLING ?
    Now there is Aggregate TRT which includes :
    0SPELLING , Fiscal Period , Purchase Product, Purchase Category ?
    Now pls answer following question ?
    1) Does the Process Chain XXY which makes only attribute change run alignment for 0SPELLING ,   Will this process chain automatically do the Change run alignment for 0SPELLING in Aggregate TRT ?         YES or NO
    2)  If Yes, then we are just suppose to do Roll up for Aggregate TRT after Process chian XXY  completes and finish job ?
    3) If No, then what steps are suppose to be DONE so as to make sure that  Aggregate TRT has new values and perfect values for  0SPELLING ?
    Please answer and coorect if i have any wrong question....

    for e.g.
    u have 0spelling whicha has attributes x,y and z on day 1 with 10 records
    so do ur aggregates on day1 with same values
    now on day2 u had new values of attributes y,z,s,d and new hierarchies and so u add new records
    with data load u will load the data with version M of modified and is not available for reporting
    If u do attribute change run then this modified version is activated to A i.e. active version .
    It will also do the change run alignment for Aggregate for new attribute values and new hierarchy values for aggregate.
    now in order for this data to be available for reporting u will need to do the roll up of aggregate.....
    if u roll up aggregate before attribute change run , new data is not avaialable for reporting
    if u roll up aggregate after attribute change run, then data is available for reporting
    if u dont roll up aggregate eventhough new data is in dataprovider, still new data will not be available for reporting.
    this is how it works

  • Thread run() resets value of variables! WHY!

    Hello.. i am having a VERY frustrating problem here. I have used a thread to create a stopwatch. I want to be able to play, pause and stop. I can get the play to start counitng, the stop to stop it...but..wheni pause...it pauses, yet when i resume the stopwatch, it starts again from 00:00:00:0
    II have four int variables.
    private int fractionOfSeconds;
    private int seconds;
    private int minutes;
    private int hours;
    in the constructor of the thread I am setting them to value 0;
    Stopwatch()
    fractionOfSeconds = 0;
    seconds = 0;
    minutes = 0;
    hours = 0;
    In the run() function I have it increment the values of those variables and pass the result to a label.
    public void run()
    isPlaying = true;
    isPaused = false;
    isStopped = false;
    try
    while(!isStopped && !isPaused)
    sleep(100);
    fractionOfSeconds++;
    if(fractionOfSeconds % 10 == 0 && fractionOfSeconds != 0)
    fractionOfSeconds -= 10;
    seconds++;
    if(seconds % 60 == 0 && seconds != 0)
    seconds -= 60;
    minutes++;
    if(minutes % 60 == 0 && minutes != 0)
    minutes -= 1;
    hours++;
    secondsString = "" + seconds;
    if(seconds < 10)
    secondsString = "0" + seconds;
    minutesString = "" + minutes;
    if(minutes < 10)
    minutesString = "0" + minutes;
    hoursString = "" + hours;
    if(hours < 10)
    hoursString = "0" + hours;
    transportControl.setTimerLabel(hoursString + ":" + minutesString + ":" + secondsString + ":" + fractionOfSeconds);
    catch(Exception e)
    LOGICALLY speaking..unless I am missing somehing really big, the stopwatch variables should be set to ZERO when the stopwatch class is contrsucted..and after that everytime i run the thread using the run() /start() function the variables should keep increasing..and every time i runit again it should keep counting from where it left off before.
    but it doenst. it resets the variables to zero EVERYTIME!!!
    Plese.anybody?what am i missing here??
    thanx in advance

    You can build a stop watch using one of the Timer classes.
    - Set the timer to tick every 55 milliseconds (18.2 Hertz) if your on an Intel based machine this is the best resolution you'll get.
    - When you start the stopwatch, record the currentMillis
    - when the timer ticks use that value and the currentMillis to determing the elapsed time.
    - when you pause the stopwatch shut the timer down and record the elapsed time so far
    - when you unpause the stopwatch restart the timer
    You probably don't even need a separate thread since the timer provide one for you. Note that times set in timers and sleep are not going to be the same as the time actually elapsed since these things run at very low priority.

  • Change variable type during program flow

    Hi there. Please tell me is there a possibility in ABAP to change variable type during program flow? I'd be very thanful for suggestions. Greetings.

    hi,
       Make use of field symbols for that ...
    field-symbols : <fs> type any.

Maybe you are looking for