Print local variable from print prog into sapscript

Hi,
I have one local variable declared in the print program for one SAP-form. I want to print it in some window of that form.
How do i pass that variable to the form for printing ?
Thanks & Regards
Hrishi

Problem solved
EXCL_VAT is a quantity field and the value field in ITCSY is a Character field,  so had to change the code in the following manner.
write EXCL_VAT to outtab-value.
condense outtab-value.
Regards
Hrishi

Similar Messages

  • How can you create a local variable from a boolean control?

    I want to create a local variable from a boolean control, but it says that boolean latch actions are incompatible with local variables, but I need a way to check this boolean control in two differents loops, how can I do it?

    "Graci" schrieb im Newsbeitrag
    news:[email protected]..
    > I want to create a local variable from a boolean control, but it says
    > that boolean latch actions are incompatible with local variables, but
    > I need a way to check this boolean control in two differents loops,
    > how can I do it?
    Use global variables.
    Compare them with a constant Boolean like F or T.
    The result is true or false and then you can use it in a Cae-Loop.
    Martin

  • HP 7640 web services disabled and I can only print locally, not from the net !

    Web Services Test Reslults:"No problems found"Router: Verizon Quantum gatewayPrinter is connected via Wi-Fi and printing can be done through the router or directly via Wi-FiBoth Router @ 192.168.1.1 and printer panel report printer IP 192.168.1.161, MAC address 34.64.a9.44.ff.aaAND . . . under current configurationWeb services : disabledSo . . .How do I get this pos working properly ?HP website provides NO SUPPORT, just a run-a-round.---  

    Hey ,  Welcome to the HP Support Forum.  I see that you're unable to use ePrint or enable webservices with your HP ENVY 7640 e-All-in-One Printer.  I would like to help.  Have you tried the basic ePrint/webservices setup method as recommended by HP?  If not, give that a shot first.  If this is not new to you please read on, I have some more suggestions that might enable this feature for you.   I recommend you set a Manual DNS on your printer.  Here's how:  Click on the HP ENVY 7640 icon on your PC desktop (note that I've used screenshots for a different printer, but the steps are essentially identical) to access the HP Printer Assistant.  Click on the Embedded Web Server link (EWS) and then click on the network tab as indicated below:   Next, click Wireless and then IPV4 Configuration as indicated below:     Next, click on Manual DNS Server and input the numbers exactly as indicated below, clicking on Apply to complete this aspect of your setup:   For the next step, you can use the EWS 'Webservices' tab to enable webservices/ePrint or enable from the printer's front panel by touching the  icon.  Touch OK to allow this feature to activate and also to allow for automatic printer updates.   If you were able to complete the above-noted steps without issue, you will be ready to send your printer ePrint jobs. For more information on how to setup a custom ePrint address click here.  If you're an Android or iOS device user, click here for more information on how to use the HP ePrint app.  In its most basic iteration, you can send your printer ePrint jobs from any web-ready device by emailing content you want to print directly to your printer's @hpeprint.com address.  Please let me know the result of your troubleshooting by responding to this post.  If I have helped you resolve the issue, feel free to say "You rock!" by clicking the 'Thumbs Up' icon below and clicking to accept this solution. Thank you for posting in the HP Support Forum.  Have a great day!

  • Print Check Signature from Printer Flash Card

    Dear all,
      I need to print the signature from the Flash Card on the printer. They won't allow me to upload graphic into SAP system because of security reason.
      How can I find an escape sequence and a character sequence for a print control from HP printer (4350tn)?
      And please provide me an example of SAPscript code to print the signature.
    Thanks very much,
    Chaiphon Pulnitiporn

    First you will have to fin the correct sequence of characters which, when send to printer, print the signature.
    Then call transaction SPAD Spool Administration) to display Spool Administration: Initial Screen. Then click the Full Administration button. Select the Device Types tab and select the printer that will be printing the signature (HPLJ4, for example).
    Select the green check mark after entry of the Device Type to display the Spool Administration: Device Type screen, then click on the Print Controls tab.
    The Print Controls page displays a list of defined print control sequences, each identified by a name. You can create new sequences or modify existing sequences. Let's create a control sequence named <your instruction here>  to define the prefix that will print the signature:
    - Escape Code (hex 1B) usually at the beggining
    - The code for printing the signature
    - An upper case X to mark the end of the command (hex 58) usually
    So by calling the new instruction you will print the signature:
    - simple ABAP - <i>PRINT-CONTROL FUNCTION `<your instruction here>'</i>
    -SAPSCRIPT : <i>/: PRINT-CONTROL <your instruction here></i>
    If you have many signatures, maybe there will a part variable, so you will need two instructions : before and after to use before and after the id of the signature.
    If all printer of the same type don't have flash cards, you have to duplicate the device type and update the copy, then assign the new type to the correct printers.
    Regards

  • Print behaviour different from 'Print Preview' in PM Order

    Hi gurus,
    We have a requirement to check a user status at the Operation level before a print can be triggered from a PM Order in IW32. After changing the code to satisfy the requirement at the print program level, we are able to prevent the print if the user status is not set, when the user clicks the Print Preview button. However, if the user clicks the Print button, the header system status is being set to PRT, though the print program prevents the print from being output. After debugging, we found that the behaviour of the standard SAP ABAP code is different for Print compared to Print Preview.
    Looking at the userexits "IWO1*", we weren't able to identify a suitable one that allows one to make this check before a print is triggered.
    Have anyone come across this / a similar problem ? Is there a solution ? Any ideas ??
    Cheers,
    Ashok.

    Hi Narasimhan,
    Yes, your guess is correct. We have tried out the possibility of controlling the print from the user status configuration side of things, but as the user status is at an Operation level, the system status at the header level still gets set, confusing the user that a print was created.
    Any other ideas / alternates ?
    Cheers,
    Ashok.

  • How to call a local variable from another component controller

    Dear Experts,
           I have created 1 component controller(Controller Name as B)and methods.In that methods I Have declared Local variable(For ex data: Lv_flag). I have Created 1 more component and name as A. I used Component B in Component A(Using component usage). In A component controller I have created methods.Now I want to call a local variable Lv-flag in this method from B controller Method. Please reply your valuable answer.

    Karthikeyan,
    Please make sure that flag attribute is under some node, say NODEA. NOW please select the interface node property and input element  of NODEA.
    now NODEA will be available in interface controller. Interface controller acts like a global  controller between two different components.
    So from interface controller you can take that flag value.
    pls reply back if you have any confusion.
    Regards
    Srinivas

  • Photoshop: Printing: via Mac from printer on Windows 7

    Hi all,
    First off - if you know a better place I should be posting this question, please inform.
    I'm trying to print from Photoshop onto a printer connected via a windows computer. I've tried everything and am nearly at the point of paying somebody 40 bucks to just set it up for me. This is a pain since I have to interrupt the person working at the windows computer just to send an order to print.
    Printer: Epson Stylus Pro 9600 Ultrachrome Ink
    Connected to: Windows 7 Computer
    Shared to: iMac 10.8.3
    Set windows to workgroup
    Made sure workgroup same name in Mac
    Set all shared settings in Windows to everyone and allowed everyone to make all changes
    Set printer sharing settings to everyone and allow to print/manage.
    Tried connecting printer from Mac finder: Go > Connect to Server > smb://[IP address] AND smb://[user@computer]/users
    Tried connecting printer from Print & Scan section of System Preferences: + > Windows > workgroup > jim-pc (computer name). It asks me for a name and password at this point. No name and password combination works. Tried "guest" "guest" and that seemed to work until I tried printing. Instead of completing the print job it states something like "Waiting for Authorization". I tried authorizing as "guest" "guest" but the print disappears from the queue.
    Tried connecting from Print & Scan: + > Advanced > Type: LPD/LPR Host of Printer, Device: Another Device, URL: "Ipd://[IP Address]. Left name as IP address. Tried Generic PostScript Printer - didn't work. Tried Epson S9600 drive (updated it)- didn't work. Tried Generic PCL Printer and it actually printed a test page! It left the printer running like it was thinking, though. When I went to print from Photoshop it no longer worked and I couldn't print a test page. I tried the same thing with changing the name to no avail.
    I'm completely at a loss. I've gone over all of the options I've found on other forums. I spent 6+ hours (yep) trying to figure this out on the weekend. If anyone has any ideas, helpful links and/or step-by-step guides I would be grateful. If you need more information or you're part of a site like crossloops and want that $40... I think I'm at that point now!
    Thanks for reading,
    Riley

    You will need a print server software on your Windows machine. There is no way to print directly via a Windows share from Mac.
    Mylenium

  • Printing OUT variables from a Stored Procedure

    Hi all,
    I'm running an SQL command that calls a Stored Procedure and passes in some value. I've pasted in the important parts of it below. What I am trying to do is access the OUT variables that have been assigned to the DECLARED variables. I come from a SQL Server background and there we can do "SELECT @variable" which will print it to screen. I'm trying to do something similar here.
    I need to access the contents of the three variables declared at the top of the script.
    Thanks in advance.
    DECLARE
    l_error_value NUMBER;
    l_error_product VARCHAR2 (10);
    l_CE_DOC_ID number;
    BEGIN
    PEM.create_enquiry   
         (      ce_cat => 'COMP'
                   , ce_class => 'FRML'
                   , error_value => l_ERROR_VALUE
                   ,error_product => l_ERROR_PRODUCT
                   , ce_doc_id => l_ce_doc_id
    END;

    Ah yes I see. Sorry I misunderstood what you were suggesting. I'm currently working on a test script that uses an approach similar to the one you mentioned, but I'm having trouble resolving foreign key relationships with test data.
    I've no access to the tables or anything so it's proving to be a time consuming task!!
    Is it required that all fields are given a value, even if they have a "DEFAULT" defined for them within the procedure. At the moment I'm using a rather cumbersome approach to this:
    i.e.
    With cmmAddRequest
        .ActiveConnection = strConnect
        .CommandType = adCmdText
        .CommandText = strSQL
        .Parameters(0).Direction = adParamInput
        .Parameters(1).Direction = adParamInput
        .Parameters(2).Direction = adParamInput
        .Parameters(3).Direction = adParamOutput
        .Parameters(4).Direction = adParamOutput
        .Parameters(5).Direction = adParamOutput
        .Parameters(0).Value = "COMP"
        .Parameters(1).Value = "FRML"
        .Parameters(2).Value = "1"
        .Execute
        WScript.Echo(.Parameters(5).Value)
    End With

  • Importing Local DCs from hard disk into NWDS

    Hi..
    I have a Local Webdynpro DC zipped file in my .dtc folder under a package folder (say com.sap).
    I have extracted this file under this folder.
    Now I need to extract this in my NWDS local development.
    I am not using NWDI... I am using only Local DCs.
    I want to import the file into a Webdynpro Local DC into my NWDS..
    Please provide your valuable suggestions...
    Thanks and Regards,
    Sayan Ghosh

    Hi Sayan,
    Go to the Development Configurations Perspective(Window->Open Perspective->Development Configurations)-> Local Dcs->MyComponents->here you can see all your DCs, Right click on the DC->Create Project-> DC will be created. You can see that DC in the Webdynpro Perspective.
    Or
    You can create the the new DC with the required name, once it is done then copy the src folder from the old DC to Newly created DC->Reload DC.
    Thanks n Regards,
    Jhansi Miryala

  • Deploy IP Printer Locally without a print server via GPO

    I have a client that has 1 main site and 3 smaller satellite sites. They only have one (yes 1) server for all of their clients. There is a 100MB connection between so bandwidth is not an issue. The server is 2008 R2,
    clients are a mix of XP and Windows 7. I have deployed client side extensions to the XP clients.
    My project: Install a new network printer in each site (its the same printer for all 4 sites), configure clients to use printer in their site via GPO.
    Each site has its own OU with users in their respective site OU. Normally, if this were a single site I could add the print services role, install the drivers for the printer on the print server, and use GP preferences;
    User config -> Preferences -> Control Panel -> Printers -> add new TCP/IP and then apply this to the users OU. The problem is that it requires a local name and local path, which would require a local print server in each site. 
    Is there a way to use GP to add a printer to each client computer (and set as default) throughout multiple sites, while only having the One server in 1 out of 4 sites? 
    All help is greatly appreciated! 
    NOTE: when I say site, I mean physical location, it is all one domain. 

    I am really getting close to the deadline of new printers arriving so I will walk through exact steps I have taken to get this set up. 
    Ok. I have a server running 2008 R2. I added the Print services role. 
    Right click 'Printers' -> Add printer
    select 'Add a TCP/IP Printer by IP address or hostname'
    'Type of device' = 'Autodetect'
    'hostname or IP address' = 'x.x.x.x' (IP address that printer will be set to)
    'Port name' = 'x.x.x.x_2'
    do NOT select 'auto detect printer driver'
     select 'Generic Network Card'
    select 'Install new driver'
    select 'Have Disk' and browse to driver
    'Printer name' = Printer Name
    select 'share this printer'
    'Share name' = Printer Name
    next, next, driver installs and printer installs, and finish. 
    Now you have the printer installed and showing up under printers. 
    Now, I right click printer and -> deploy with group policy
    Browse to the OU where my user is located in ADUC, select the GPO that I have linked to that OU, click 'add' and click 'OK'.
    Now, log in to a win 7 computer, gpupdate, printer shows up in devices and printers. I can't print to it obviously since it's not connected to the network yet. But, when I log in to an XP computer, run gpupdate, it does NOT populate in devices and printers. 
    What am I doing wrong? 
    Thank you in advance. 

  • Printing report directly from printer

    Hi,
    I need a small information.if any one of our guys can give me some info that would be great.
    I am writing a ABAP report now. lets say when we write 'hello world' in code and F8  program o/p will show 'hello world' right. I need to print this through user default printer automatically...might be pop-up for confirmation would help.
    Thanks in advance...
    Raj

    Hi Rich,
    Calling program is
    REPORT ZTESTRAJ1 .
    parameters:p_date like sy-datum.
    DATA: SELTAB     TYPE TABLE OF RSPARAMS,
          SELTAB_WA  LIKE LINE OF SELTAB.
    start-of-selection.
          CLEAR SELTAB_WA.
    MOVE: 'p_date' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          sy-datum    TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    CLEAR SELTAB_WA.
    MOVE: 'p_matnr' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          '1233344'  TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    SUBMIT Ztestraj with p_date eq sy-datum
                    with p_uname eq sy-uname
                    with p_matnr eq '122333' and return.
    if sy-subrc = 0.
    write 'Printed'.
    endif.
    Here is the program Ztestraj
    parameters:
    p_matnr like mara-matnr,
    p_date like sy-datum,
    p_uname like sy-uname.
    data:  l_matnr like mcha-matnr.
    start-of-selection.
    l_matnr = p_matnr.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              = l_matnr
    IMPORTING
       OUTPUT             =  l_matnr
    EXCEPTIONS
      LENGTH_ERROR       = 1
      OTHERS             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:  L_MATNR.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LOCL'
                COPIES                = COUNT
                LIST_NAME             = 'ZTESTRAJ'
                LIST_TEXT             = 'SUBMITTO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 80
                LINE_COUNT            = 120
                LAYOUT                = 'X_44_120'
               SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                NO_DIALOG             = 'X'
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT ztestraj TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO and return.
        if sy-subrc = 0.
        endif.
    ENDIF.

  • Print out different from print preview (for THANGSAN font)

    Save Our Environment. Save Yourself.
    Hi Experts!!
    I have created a smartform and print program which should actually print some Thai characters and English characters too. I created a smartstyle and have some 10 paragraph formats and are all have THANGSAN font. So, I am printing all the thai and english characters in THANGSAN font only.
    When print preview is seen, the output is very fine, but when being printed, the thai characters are appearing fine but the english characters' font is being changed to somehting else (courier or arial). Why is this happening so? Because of this, all the output is being merged and looking very weird.
    The smartform is created in EN and is translated to all languages. All user has logged on to SAP in EN language.
    Can somebody please help me out with whether the problem is with THANGSAN or the printer?
    P.S. The smartform is actually similar to the standard script Z_RVINVOICE01 in which only THANGSAN is used.
    - I'm not an environmentalist. I'm an Earth warrior.

    Save Our Environment. Save Yourself.
    Hi Sandra,
    Thanx for the reply. I do not have authorization for SMARTFORM_TRACE. Though I entered by debugging, I did not understand what should be done there.
    But as you said I created a spool. Can you please help me in how to check that RAW thing?
    Thanks a lot.
    - I'm not an environmentalist.  I'm an Earth warrior.

  • Help my printer is gone from printer utility!!!

    Hope someone can help. Apple recently switched out my HD, only to have to replace it again 2 weeks later. I lost everything and am trying to get up & running again. I re0installed my epson R2400 printer driver (with CD) but for some reason there is no R2400 available on my printer utility menu? I can't for the life of me get my printer to work. In Oct, when I got the printer it was easy, but then I had 10.4.x.
    What do i do?
    Thanks,
    C

    You have to Add the printer to the printer list - I think that's in the manual. Use More Printers and Epson USB.

  • Cannot print pdf files from printer

    Problem just started.  Using new laptop with IE8 and have new version of Reader.

    Ok. Well, you didn't really answer most of the questions I asked so I'll have to take a guess at a fix.
    First, download, install and run the Adobe Reader cleaner tool and use it to remove all traces of Adobe Reader. Then, download and run the full offline installer for the latest version of Adobe Reader that your operating system can accept.
    If that doesn't work, please read my last post and answer all the questions I asked.

  • How to pass a variable from se38 prog to script.

    hi ,
    my requirement is for billing.
    what i need to do is if kona-zlsch = 'T', then i have to set a flag = 'X'.
    i want to know that how i will pass this flag value to my script ?
    plz can any one help me.
    thanks
    Santosini

    SAP script:
    select the window in which u want to display the varibale.
    go to edit->text elements
    then goto->change editor
    first column select /:
    then mention &FLAG&.
    main program:
    call functions: 1. open_form
                         2. write_form
                         3. close_form

Maybe you are looking for

  • Is it possible for me to change the email I get notifications from but not my Apple ID?

    My Apple ID and primary email address are the same one. I tried changing it but that meant changing my Apple ID, and I don't want to do that. Basically I want to keep my Apple ID the same, but I want the email that's currently my Alternate Email to b

  • Forcing a Truncation warning in string to be error

    Hi, If let say my source table has column with varchar(20) and my destination table has a column of varchar(5), I want SSIS to force to an error because of the truncation detected. Is it possible? Currently, warning is shown at design time that there

  • USB/firewire board  killed Firewire

    I had an Adaptec usb2.0/firewire board which worked fine for several years, I had to give up sleep mode but not a big deal. I started having problems with usb camera file transfers. They would start and then hang. I bought an IOgear board pci board a

  • Message mapping failing

    Hi all,   I am working in a scenario in which i am reading an xml file , but it is failing as it contains encodingas UTF-16, if i am changingthis to UTF-8 the mapping is working. please help Thanks in advance Regards Martin

  • Arc.vi 's input "Radius" is distance from arc centre or distance from vector space centre 0,0

    Hi everybody, I am using PXI 7352 +UMI+2 servo Drives+motors which move a table in linear direction X and rotate it along Z axis C. How can I use Load Circular Arcvi if my  one axis is linear and other is rotary e.g. XC table. Thanks Surender Kumar R