Update Text at run time and print in SAPScript

Hello Experts,
                 My requirement is to print some hard coded text in SAPScript at item level based on the quantity.
If at all the quantity is 4 then i need to print the text "Quantity" 4 times.
In script i have written the command: INCLUDE <textname> OBJECT TEXT ID ST LANGUAGE E.
and i have created a text using tcode SO10 then written a subroutine to update that text.
In the subroutine i have used the Funtion Module SAVE_TEXT and FM: COMMIT_WORK to updated the text.
Though it is updating the text in SO10 but its priting the text which was created for the first time.
Like: for the 1st line item if the quantity is 4 then its printing the "Quantity" 4 times
But for the 2nd line item if the quantity is 2 then also its priting the "Quantity" 4 times and i can see in the tcode SO10 the text is updated from 4 times to 2 times but at script level it is not priting the updated one.
Ex: 4 times the quantity is update to 2times
"Quantity"
"Quantity"
"Quantity"
"Quantity"
to
"Quantity"
"Quantity"
Please help out with this
Thanks
Syed

i think this is possible in print program. it may be useful to u
Ex :   item     description   quantity.
        00010   test1              4
        00020   test2             3
        00030   test3             8.
loop at lt_itab into wa_itab.
for first item : 00010   the quantity is 4.
n = your qnatity (4) wa_itab-qty.
take one more final table and append all quantity records.
do 4 times.
text :  " quantity"
append final table.
enddo.
endloop.
finally your final internal table is :
item     description   quantity    text.
00010   test1              4          quantity
                                 4           quantity
                                 4          quantity
                                 4          quantity

Similar Messages

  • Attempting to install Forms 6.0.5.0.2 (or 6.0.8.8.0) run-time and 8.1.6 client on sam

    Attempting to install Forms 6.0.5.0.2 (or 6.0.8.8.0) run-time and 8.1.6 client on same NT box.
    1) I attempted to install 8.1.6 client first in c:\oracle\ora81, then Forms 6 in c:\oracle\forms6. The installer (3.3.1.2.4) errors, saying forms 6 does not support a multi-home installation.
    2) Attmpted to install Forms 6 first in c:\orant. Then installed 8.1.6 client in c:\oracle\ora81. After beginning installation (application user) the following Dependency message displays and the installation is canceled: "Installation cannot continue for the follwoing reason(s). [Oracle ODBC Driver is a single Oracle home product. It is already installed in location c:\oracle\ora81. Oracle provider for OLE DB is a single oracle home product. It is already installed in location c:\oracle\ora81. Oracle objects for OLE is a .... Pracle Provider for OLE is a single home ... You can either de-install these products or install the products in the same location as the single home products."
    Click ok and the installation cancels.
    How do I install these two products on the same box?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    We had to upgrade from 7.3.2 to 7.3.4 when we moved over to Forms
    6.0.5.0.2 and it's working fine.
    We are using Net 8 as well.
    Finn Ellebaek Nielsen (ChangeGroup ApS) (guest) wrote:
    : I have problems with Forms 6.0.5.0.2 running against an Oracle
    : 7.3.4 with Net8. When trying to insert or update records I get
    : an FRM-40508: ORACLE error: unable to INSERT record/FRM-40509:
    : ORACLE error: unable to UPDATE record. The Help | Display Error
    : menu item shows statement = "S3AVWU3wo|$6o|" (garbled
    : message), error = "ORA-12663: Services required by client not
    : available on the server" (sometimes it's "ORA-01403: no data
    : found").
    : It works fine against 8.0.5. As far as I'm aware Forms 6 is
    : certified against 7.3.4?
    : Any clues?
    : Thanks for your help.
    : Finn
    null

  • How to know last run time and who ran the query

    Hi
    I am doing the analysis for all the queries , their last run time and who ran the query
    Since there are almost 6000 queries , is there any way to find out last run time and who ran the query
    in one step or through any transaction else It would huge effort taking task to check the data in BW statistics
    table for each query
    Regards,
    Vivek

    Hi,
    Statistics should be switched ON for all the queries first. You can check this in RSDDSTAT.
    Statistics data is stored in BW for a specific period only. This setting can be maintained in table RSADMIN (Field : TCT_KEEP_OLAP_DM_DATA_N_DAYS). If the value for the field is 30, then 30 days old statistics will be available at any point.
    Not all the queries will be ran daily. Some are ran daily, monthly and yearly depending upon User requirement.
    1. You can check in RSDDSTAT_OLAP for the details you needed.
    2. You can install the BI Technical Content and run the respective query for the details you needed.
    Hope this helps.
    Regards,
    Sunil

  • Custom Installer with Inno Setup (reduce size of Run-Time and VISA RT)

    Hi,
    we are using Inno Setup to install our Application. Up to now i include the full LabView 2009 SP1 Run-Time and the full VISA-RT
    (that are 302 MB). I have also made an installer using the internal tools of LV and the setup is only 163 MB. The LV removes
    some parts of the RunTime libraries.
    We are using only these parts:
    p0 MetaUninstaller\
    p1 VC2005MSMs\
    p10 NI-RPC\
    p11 XercesDelayLoad27\
    p12 NI-ORB\
    p13 NI-DIM\
    p14 NI_TraceEngine\
    p15 NI-PAL\
    p16 NI_Logos_XT\
    p17 TDMS\
    p18 MDFSupport\
    p19 MKL_900\
    p2 VC2008MSMs\
    p20 NI_Logos\
    p21 RT\
    p3 NI_Certificates\
    p4 NI-VISA_Runtime\
    p5 LabVIEW_RT_NBFIFO_90\
    p6 Service_Locator\
    p7 LabVIEW_Web_Server_RTE_90\
    p8 LabVIEW_WebServices_RTE_90\
    p9 mDNS_Responder\
    1. Is it allows to do that also using Inno Setup? I mean, am I allowd to do that? The license from
    NI etc. are all included. I want to save disc space...
    2. Is that wise? If not, why?
    Thanks

    Hello sjunge,
    basically there should be no problem installing the software with Inno Setup as long as you do not violate the License Agreements.
    But keep in mind that there could be dependencies between the installers you install and those you don't and you may run into trouble with the software later on
    Kind regards
    Carsten

  • How to measure query run time and mnitor performance

    Hai All,
                   A simple question. How to measure query run time and mnitor performance? I want to see the parameters like how long it took to execute, how much space it took etc.
    Thank you.

    hi,
    some ways
    1. use transaction st03, expert mode.
    2. tables rsddstat*
    3. install bw statistics (technical content)
    there are docs on this, also bi knowledge performance center.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
    Business Intelligence Performance Tuning [original link is broken]
    also take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Prakash's weblog on this topic..
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    oss note
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.

  • I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    Hello vinay34,
    If you are having issues with activating your Apple ID for FaceTime and iMessage, then take a look at the article below to get it sorted out. Make sure that you have the Date and Time set to Automatic as well as any other steps listed in the article. 
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/en-us/ts4268
    Regards,
    -Norm G. 

  • I have tried to download the update for itunes several times and it will not complete, i get an error message

    I have tried to download the update for itunes several times. Each time it get to the installation part and stall and then reverses and give me an erorr message. My current version when I open it, it says there is an error and I will not be able to download a CD into itunes, although I have completed several CD downloads.

    Go to http://www.mozilla.org/en-US/firefox/new/ and download the full installer. Run the installer and you will be up-to-date. Sometimes the updater just gets in a weird state...

  • Open second form at run-time (and transfer variables)

    Hi,
    i'm searching for a method to open a second (maybe attached) form from an existing form at run-time.
    The goal would be to have a button in a form which runs a function as click event that opens the second form and transfer field values from the existing form to the new opened form.
    To new form should opened in a separate Adobe Reader window because the user should have the possibility to save or print the both forms separately.
    Regards

    Hi,
    check this solution.
    http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • My hp envy want quit saying " do not power down during update" powered down 3 times and still saying

    My hp envy want quit saying " Do not power down during update" powered down 3 already still saying the same thing.

    so my printer worked for a month and then it asked me if i wanted to install updates. It's been installing updates for three weeks and says not to turn off. I've turned it off several times and unplugged it a few times.  No other buttons work on the screen because i can't get to them.  Obviously it's a software problem but i can't find any updates to fix it.  The guy on the help line said it's a hardware problem and that they'd offer me a $95 discount on a newer model, but it would still cost me over $150 and it would be a refurb. So they have a bunch of these printers that sat in a store that didn't sell and passing off printers not in a new box and then talk to me like i should be so thankful they gave me this wonderful discount for a "new" printer that nobody else wanted when i'm still stuck with a printer i paid full price for and should've been able to get replaced. Now i've really paid over $270 for a printer i'm not even sure i want that might have another bug they can't fix.  It's just wrong.  Anybody know a fix for this so i can cancel the order for a new printer i'm not sure i want?
    thanks,

  • New owner here.  How can I select specific pages of a document found on line and print just those pages.  What I see is the ability to select only 1 page at a time and print that one selected page only.   Thanks much.

    New owner here.  I see that in printing I can select one page and print same.  How do I select numerous pages from a document and print only those selected pages? I would not think that I can only select one page at a time.  Thanks much

    Just change the range as illustrated below.  If you don't see that, click the Show Details button.

  • Is there a way to install exe of a vi on an XP machine without LV run-time and not have to restart?

    Hi,
    I need to deploy an application that reads channels from a FP module for testing purposes. The problem is, I cannot restart the system I need to install this on because it is running critical control software which cannot be interrupted. The system does not have the labview run-time engine and I know installing this requires a restart of XP probably due to registering DLLs or something.
    I'm using "Fieldpoint Network Read" to read from the module. The simple answer would be to simply install this on a machine on the same network that I can restart. However, I have no such luxury because I am connecting to the system in question over a long distance VPN connection and I need to be able to poll the data from the FP every 250ms which may be too much for the connection. 
    So basically, I need to find a way to read data from this FP in a manner similar to "FP Network Read" without restarting the system.  Is there any way to do this with labview? Alternatively, I may be able to write this app using LabWindows since I know some software is already running on that machine programmed with that.
    Solved!
    Go to Solution.

    The first thing I'd say is that a restart may not be necessary.  I have in the past installed LabVIEW development environment and when asked I said I would restart later.  Then I opened LabVIEW and started coding.  I'm not sure what it thinks it needs to restart for but it may not be required.
    The other thing I'd like to mention is that LabVIEW 7.1 and older can run EXEs without needing to install a run time engine.  So it is possible to build a EXE in 7.1, then include some files and DLLs in the same directory as the EXE, and when it is ran it will use them.  There's probably issues with talking to DAQ devices without MAX and I have no idea how you address this but it is another possibility.
    Of course you already know the best answer and that is to reboot the system when most convenient.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Pick a subject area at run time and create an analysis on this subject area.

    We have a requirement wherein we need to create analyses at run time. We want to give the flexibility to users to pick up a subject area on which they wish to create an analysis. This will be done through a dashboard prompt. Once the user picks up a subject area from the prompt, we will create the analyses at run time based on the selected subject area.
    The problem that we are facing at this point is how to create a dynamic 'FROM' clause for the analysis. As an example, consider the following scenario:
    1. There is a dashboard prompt called 'Select a DataStore'. The possible values are all the subject areas in the RPD. For simplicity, lets assume there are two values DS1 and DS2.
    2. If the user selects DS1, the analysis sql should be:
    select <colgroup1>, <colgroup2>
    from DS1;
    However, if the user selects DS2, the analysis sql should be:
    select <colgroup1>, <colgroup2>
    from DS2;
    Hence the requirement for a dynamic FROM clause.
    I tried using a presentation variable in the from clause but I get the sql syntax error.
    Is there a way of implementing this requirement?

    To work around the license issue, see the Microsoft Knowledge Base article LICREQST.EXE Requesting a License Key from an Object and download licreqst.exe. Run licreqst.exe and find "CWUIControlsLib.CWSlide.1" under the registered controls section and click on it. The license string at the top can be passed to Licenses.Add and then you should be able to dynamically create the Measurement Studio controls. For example:
    Private Sub Form_Load()
    Licenses.Add "CWUIControlsLib.CWSlide.1", "[Add license string from licreqst here]"
    Dim slide
    Set slide = Controls.Add("CWUIControlsLib.CWSlide.1", "slide")
    With slide
    .Top = 120
    .Width = 1215
    .Visible = True
    End With
    End Sub
    Creating controls like this would have an impact on performance since all calls are late bound. If you are using the Measurement Studio controls in a UserControl, though, you should not need to do this since the license would get compiled into the binary that contains the control. I don't think that you would have any problems creating your control since it would not be licensed.
    - Elton

  • DSC 8.6.1 run-time and LV2009 executable are they working together ?

    Hi All,
    In my application  I first deploy shared variables and when they all have depleoyed the main application starts. My deployment procedure is something like that:
    0. Select first library
    1. check if  library is already running on SVE
    2. if not deploy it
    3. check next library
    Most of my variables in libraries are connected to OPC variables. OPC server is located in other computer and there is a LAN network between computers. I have noticed that when I execute my application exe only few of libraries are deployed to SVE. Eg. If I remove all processes(libraries) from SVE and start my application only 7/28 libraries are deployded. If I deploy those libraries manually from LV2009 project everything is okay. 
    On my computer is installed LV2009 development and DSC 8.6.1 run-time. Our target is remove LV2009 immediately after we have edited and tested  all our variables and libraries. Is there a potential risk that application which is made on LV2009 don't work with DSC run-time 8.6.1?  Have anyone else noticed problem when deploying variables from application exe? 
    BR, Jim 

    Meg K. B. , 
    It sounds like you are experiencing Time Stamp Counter (TSC) Drift as mentioned in the KB's for the AMD Multi-Core processors. However, according to this wikipedia article on TSC's, the Intel Core 2 Duo's "time-stamp counter increments at a constant rate.......Constant TSC behavior ensures that the duration of each clock tick is
    uniform and supports the use of the TSC as a wall clock timer even if
    the processor core changes frequency." This seems to suggest that it would be not be the case that you are seeing the issue mentioned in the KBs.
    Can you provide the exact modle of the Core 2 Duo processor that you are using?
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • "Can't install the software because it is not currently available from the software update server." Running Mavericks, Canon printer. What do I do?

    We have a canon printer and it connects fine to my boyfriend's HP. I can't get it to connect to my macbook though--when I plug it in with USB it asks me if I want to install the software, has me agree ot the user terms and conditions, and then I get the error message. I've installed all updates, tried turning my computer on and off. Where do I go from here?

    Did you install the Software Update beforehand? I believe you need this so that your Mac's database will update on your newly connected devices. Try the solutions here. I just did what it says there and then restart my computer and my router after all the process and it works for me. Goodluck!
    http://www.techyv.com/questions/software-not-available-software-update-server

Maybe you are looking for