Is it possible to change a report variable inside the sapscript

Hi
I have to adapt a sapscript and i need a certain value for a variable.
For ex ekko-bukrs is empty in the report and i want to change it in the sapscript and give it a value
i tried the next:
/: define &ekko-bukrs& = '0001'   but it did not work
Is it possible to change this variable in sapscript?
I cannot change the report since it is sap standard.

Hi Seba,
   you can use perform in the sapscript and then you can achieve your scenario in program.
see example code below and modify according to your needs,
/:           PERFORM GET_PURORG_ADDRESS IN PROGRAM ZM_PURCHASE_ORDER-------->call this perform in sap script
/:           USING &EKKO-EKORG&
/:           CHANGING &V_EKORG&
/:           ENDPERFORM
FORM GET_PURORG_ADDRESS      TABLES in_par  STRUCTURE itcsy------------------>call this in program
                                      out_par STRUCTURE itcsy.
  DATA :V_compcode LIKE <tablename-fieldname>.  
if compcode is initial.
then assign here.
  IF v_compcode IS NOT INITIAL.
    out_par-value = v_compcode.
    out_par-name = 'V_COMPCODE'.
    MODIFY out_par INDEX 1.
  ENDIF.
Edited by: suresh suresh on Jul 30, 2009 11:15 AM

Similar Messages

  • Is it possible to change file name policy in the JRE cache folder?

    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    Thanks,
    -Dima

    dgomel wrote:
    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    I suggest you solve the real problem - big files.
    There are two scenarios
    1. Initial download
    2. Updates.
    The first takes as long as it takes. No way around it.
    The second means that you can't use one jar. Otherwise every single update requires downloading the entire application every time. Multiple jars means only the one that changed is downloaded.

  • In i-tunes, is it possible to change/delete artwork without deleting the track?

    In i-tunes, is it possible to change/delete artwork without deleting the track? If so, How?

    Highlight a track. File > Get Info, then click the artwork tab.

  • Its possible to change text frame contents inside group...???

    Hi Everyone,
    I'm newbibe to Indesign forums.
    I had grouped image placed on rectangle and text frame. now i need change text frame content using indesign Javascript
    Its possible to change text frame contents inside group..?
    -yajiv

    Hi Siraj,
    Thank you very much for your assistance...
    Actually I need swap both group of image and text frame to another group of image box and text frame.
    I wrote code use of you advice and i struct with errors. can you rectify this code if possible...
    Thanks in advance
    -yajiv..
    Code:
      if (app.documents.length != 0){
         if (app.selection.length != 1){
              if(app.selection[0].constructor.name == "Group"){
                   app.select(app.selection[0].allGraphics[0]);
                   var myGr1 = app.selection[0].itemLink;
                   app.select(app.selection[0].textFrames[0]);
                   var selText1 =app.selection[0].contents; 
         if(app.selection[1].constructor.name == "Group"){
              app.select(app.selection[1].allGraphics[0]);
              var myLink2 = File(app.selection[1].graphics[0].itemLink.filePath);
              app.select(app.selection[1].textFrames[0]);
              var selText2 =app.selection[0].contents; 
              myGr1.relink (myLink2);
              myGr1.update();
              myGr2.relink (myLink1);
              myGr2.update();
              app.selection[0].contents=selText2;
              app.selection[1].contents=selText1;
         else{alert("Please select the two selection....!!!");}

  • Show Report Variable in the title

    Hi all,
    I need to know if it's possible to show in a title of Answer a report variable and, if it's possible, how can I do.
    Thanks a lot
    Steve

    Hallo Venkat,
    Thanks for your reply!
    I'd like to have the most recent loaddate in the title, that works fine now.
    However, i'm struggling with the format of the variable, maybe you have a tip how to change that.
    This is what i've done:
    1. Created repository initialization block "get most recent loaddate". This refreshes every day. The query is basicly a select on my loadtable to get the max date from the loadtable.
    2. Then i created a dynamic repository variable "get most recent loaddate" which retrieves from my initialization block.
    When i set default to '31-12-2007' (just for checking), i creates TIMESTAMP '2007-12-31 00:00:00'.
    3. So, when i use the variable in the title, i get all this text. I'd like to just see the date instead.
    Do you have a suggestion how i can set the datatype to date from the variable?
    Thanks
    Sandra

  • Is it possible to change what is displayed in the GAL in Exchange 2013

    We have always used [email protected] for our primary email addresses, and to facilitate this someone back in the days of Exchange 2003 decided it would be sensible to use the firstname.lastname
    format for our alias. This means our primary email does not match our UPN. Now, we are moving to Exchange 2013 and want to use autodiscover we find we need to change this so primary email and UPN are the same while still retaining the original email
    addresses. Easy enough change, powershell script to modify the alias, new address policy on the 2013 server and migrate your users, changes made for you.
    However, this has caused some concern amongst the senior management because it changes what is displayed in the GAL, so instead of the friendly first.last name listed under alias and the just as friendly
    [email protected] listed under email address it will now show the UPN as alias and
    [email protected] for email.
    I have now been asked to see if it is possible to modify the details displayed in the GAL, I know you could in previous versions of Exchange using things like EMC, but I don't see any way of doing this in 2013.
    Is this possible, and if so how?

    We have always used [email protected] for our primary email addresses, and to facilitate this someone back in the days of Exchange 2003 decided it would be sensible to use the firstname.lastname
    format for our alias. This means our primary email does not match our UPN. Now, we are moving to Exchange 2013 and want to use autodiscover we find we need to change this so primary email and UPN are the same while still retaining the original email
    addresses. Easy enough change, powershell script to modify the alias, new address policy on the 2013 server and migrate your users, changes made for you.
    However, this has caused some concern amongst the senior management because it changes what is displayed in the GAL, so instead of the friendly first.last name listed under alias and the just as friendly
    [email protected] listed under email address it will now show the UPN as alias and
    [email protected] for email.
    I have now been asked to see if it is possible to modify the details displayed in the GAL, I know you could in previous versions of Exchange using things like EMC, but I don't see any way of doing this in 2013.
    Is this possible, and if so how?
    You can use the Details Template to change what the GAL shows.
    http://technet.microsoft.com/en-us/library/jj673049(v=exchg.150).aspx
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Possible to change appearance in iCal, particularly the To Do Items?

    Is it possible to change the appearance in iCal? I'm speaking about mostly the background? (I know you can change the "calendar" colors, but I'm looking for something else.)
    1. For example, it is extremely difficult, almost impossible for me to determine in week view or month view which day is "selected" unless I look at the mini calendar in the bottom left (which I don't necessarily have open all the time). The day which is selected, is nearly imperceptibly slightly darker, but I can't tell. Is there a way to change the background color to provide more contrast?
    2 And, is there a way to change the color, contrast, readability of the To Do Items in the list on the right? The dates are very clearly labeled with the colors, but the actual item of what I need to be doing (the whole point of it) is in gray font and my eyes are not drawn to such a pale layout for reading. Are there customizable options?
    3. Lastly, when I go to "Today" in day view or week view, it always starts the view of each day at 12/1AM and I can only see from 12AM to noon (I have preferences set at show 12 hours) and then have to scroll down to see my appointments in the afternoon. I never have anything scheduled from 12AM to say, 6AM, so its annoying to have to scroll down every time I go to the afternoon. Is there a way to set it to start the view at an hour other than 12 AM?
    Thanks for all and any suggestions/answers.

    Update on (3) - I have just noticed that John Maisey has a wee script for doing it.
    AK

  • HT204408 is it possible to change my apple id in the game centre.

    Need to change my apple id in the game centre but want to keep all my scores and achievements

    Yes.
    Changing your Apple ID

  • Is it possible to generate a report without supplying the Hierarchy Id and Entity Ids?

    Hi,
    I'm new to this Chargeback JAVA API.
    What I wanted was to create/generate a report without having to provide a hierarchy id or entity id.
    It's like more of a dump report for all the hierarchies and entities managed by the Chargeback server.
    Thanks.

    Thanks Diwakar.
    I would be doing something like this then...
    HierarchyManagerImpl hm = HierarchyManagerImpl.getInstance();
    List hierarchiesList = hm.getAllHierarchies(cbClient);
    //loop hierarchiesList
        // HierarchyEntitiesType entityType = hierarchiesList [n].getEntities()
       // entityType.getEntities()
    How do I determine if this "entity" is a "vCenter Server entity" and not "vCenter Chargeback Manager entity"?
    Im quite confused on the following classes and please confirm if getting the steps for getting the attribute value is correct:
    HierarchyType
    HierarchyEntitiesTypethis has a getEntity() which returns a list of:
    HierarchyEntityTypethis has a getAttributes() which returns
    EntityAttributesTypethis has has a getAttribute() which returns
    EntityAttributeType
    does invoking getValue() return 101 for Chargeback Manager entity or 0 for vCenter Server entity? (based on cbm_users_guide_2_0_0.pdf, Table 4-1. p57)
    Thanks heaps for any help.

  • A problem with accessing the public variable inside the function

    Hi,
    I have got this package and I get error 1120: 1120: Access of undefined property aa
    Could you explain why I get this error?
    package somepackage {
        import flash.display.DisplayObject;
        import mx.containers.Canvas;
        public class SoundPictureSigns extends Canvas {
            public var aa:int = 12;
            public function SoundPictureSigns():void {
            public static function setUpSignSizes():void {
                trace("aa="+aa); /// ERROR here: 1120: Access of undefined property aa
    Can you help?
    Regards

    When you write
    class C
        var v;
    you are defining a variable that lives inside each instance of C. In other words, you can write code like
    var c:C = new C();
    c.v = 1;
    If you don't have an instance, you can't access v.
    When you write
    class C
        static var v;
    you are defining a variable that lives inside the class itself, and you can access it without having an instance.
    Gordon Smith
    Adobe Flex SDK Team

  • Is possible to change ALV report  which include ALE change ?

    I friends , i have developed an ALV report and now a new require ment has come , it is , the client wants to make it  ALE enable . I have no idea how to include ALE changes to it ? If any body of you have any idea please help me  from beginning?

    HI,
    for ALE enabling, you have create idoc's for the alv data and distribute them to the target server.
    for step by step implementation of ALE check this link.
    http://www.sappoint.com/abap.html
    Regards,
    Wasim Ahmed
    Message was edited by: Wasim Ahmed

  • Is it possible to change direction of growth for the grow effect?

    I would like to use the grow effect on a page with a few images.
    The images are going to be floated rigth of the text that goes with them and the problem I have is that the images grows in part to the right of the visible window and are partially out of view creating an horizontal scrolling bar.
    I used the default value for var growFromCenter; which is true. I changed it also to false but the results are even worst because it seems to grow from the top left corner of the image to the right and bottom.
    I could not figure out, I am a begginer at javascript, if there is some parameter that I could modify to make it grow toward the right of the thumbnail position.
    Thank you

    I achieved the effect I was looking for by changing the following in the SpryEffects.js
    I am using growFromCenter set as true.
    changed
    toPos.x = startOffsetPosition.x + (originalWidth - toRect.width) / 2.0;
    to
    toPos.x = startOffsetPosition.x + (originalWidth - toRect.width);
    to achieve the growth to the right of the thumbnail image.
    Still I would like to hear comments about my solution and any other suggestions or alternatives to achieve the same result.
    Although many of the variables are easy to understand by their names others are not so obvious to me. Is there a resource where I can find a description of the variables used in SrpyEffects.js
    Thank you.

  • Is it possible to change a new one if the Iphone 5 wake button is not working?

      I heard the iphone 5 wake up button has a disign defect. Will they give me a free repairing even my iphone is over warranty?

    Heard from who?  Unless it was Apple, assume they are full of manure.
    There are no design issues with the iPhone 5.
    Warranty is one year from date of purchase, beyond that, hardware issues are handled via an Out of Warranty replacement which is $269US.

  • Is it possible to edit multiple box-shadows inside the Dreamweaver Properties Panel ?

    Is it ?

    Nopes , Only the first one is editable .
    I would suggest you to log a request to us at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    This would help putting this item on our to do list and depending on number of such requests we will consider them for implementation

  • Is it possible to automatically push an iBook inside the bookshelf?

    Here's the scenario:
    my company is producing some iBooks with iBooks Author
    those iBooks are made only for company's employees and are of course free
    we need a solution to push (over the air) those iBooks inside the bookshelf of the iBook app into the employees' iPads
    this process should be transparent for the users/employees: ideally they switch on their iPads and find the iBooks on the bookshelf of the Ibook app
    iBooks store is not an option because information in iBooks is reserved.
    After a lot of rerearch I've not yet found a solution to do that (i.e. using an MDM or other tool).
    Do you have any suggestion please?
    Thanks
    Guido

    Hi Guido,
    What about creating a private iTunesU course? Then your employees could download the iTunesU app, join the course and then enable "automatic updates". Then the books would appear and download automatically when added to the iTunesU course by the course instructor.
    Hope this helps,
    Jesse

Maybe you are looking for

  • How do I get back my Before/After Icons?

    The icons for the before and after view have disappeared on my lower menu bar.  They were always displayed just above the thumbnails at the bottom of my screen, and now they are gone.  How do I get them back I appologize for this simple question in a

  • HT201335 Airplay Not displayed

    I've read many of the Q & A's here and still cannot solve my Airplay problem. I have an Apple TV 3, iPad 2, iPhone 4 and a Windows laptop with iTunes. When I first plugged in the ATV, I couldn't get anything to link to it re Airplay, mirroring etc. T

  • HT3383 how do I create custom labels on pages

    how do I create labels in pages? made a table but cant figure out how to copy one label for all 30???\

  • Regex & java.util.Scanner

    I am trying to make a simple txt parser using regular expressions but the problem has appeared. The program's code is too long so I have stated only the part of the code implementing the method data_types() which doesn't work properly, it reads only

  • Jar file downloaded using FTP gets damaged

    Hi people, Am working on a solution that implements an auto update of an application developed using Java. I am using Apache commons package for downloading the updated JAR file from an FTP site. Once I have the new JAR file on my local machine, I do