Passing data to SAP script from print program-VF03

Hi All,
I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.

Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
Regards,
Ravi

Similar Messages

  • Passing argument to shell script from java program

    str="/bin/sh -c /root/PWAppSh/StartSH.sh";
    p = rt.getRuntime().exec(str);
    above is the code snippet of java program for calling the shellscript
    when i pass a argument to the shell script from my java program it wont get accepted in shell script as an input
    when i do following changes in above code it wont work :---
    str="/bin/sh -c /root/PWAppSh/StartSH.sh para1 para2 para3 ";
    p = rt.getRuntime().exec(str);
    para1,para2 and para3 wont get as argument for the shell script
    how this can be done
    thanks
    reply "ARGENT"

    Argent.
    Read this:
    Navigate yourself around pitfalls related to the Runtime.exec() method

  • Sap script text printing issue..

    Hi,
    I have a SAP script with a text symbol say &abc& defined in the SAP script main window.
    From the print program I want to pass some text to this text symbol.
    In the print program I have an internal table with lines of text, sometime it can have just one line of
    text CHAR512 length or it can have multiple lines of char512 length text.
    Now how do I pass these lines to the text symbol &abc& ?
    I tried to do the following, but it does not help...
    DATA l_data TYPE STRING.
    loop thru the internal table
    concatenate l_data with text got from internal table
    endloop
    CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'
        EXPORTING
          name   = '&abc&'
          value  = l_data
        EXCEPTIONS
          OTHERS = 0.
    I debugged and saw that l_data has most of the text (not all) but the sap script's printed output
    has only few text.
    what should I do to get all the text displayed on the printed output ?
    thnks

    Hi Vivek,
        Including two work area next to each other should not be a problem because i am doing the same thing. Check whether the length of field of work area one is over lapping the field of other work area.
    Note: Reward points if helpful.
    Cheers,
    Shafiq

  • SAP Script from FM

    am calling a SAP Script from FM, in this SAP script there are some variables used the values to these variables are assigned inside FM. but these are not getting displayed. where as when I am calling the FM from report program the values are getting displayed

    1. You can print the data by using report program or application(through assingment in NACE)
    2. When you want to print some standard SAP application like pur. order , sales order this you will do with NACE and you fire the print from that application transaction like ME21, ME22, VA01 etc.
    3. Next is through stand alone transaction or program that is a report program thorugh which you will call the OPEN_FORM, WRITE_FORM, CLOSE_FORM and print the output.
    I think in your case, you are print through report program. If you want to write some data from print program to layout you should call WRITE_FORM by passing window and text elements.
    even when you are calling sap script from some other wrapper function module also, it calls and prints the data in the form.
    But ultimatly you should print the data by using report program or standard sap application method.
    Thanks,

  • Pass value in SAP Script

    How can u pass value in SAP Script?& where?

    Hi,
    PASSING TABLE VALUES AS AN ARGUMENT TO SAPSCRIPT:
    In the line editor, specify the table field arguments enclosed by '&' symbol as follows:
    /E  ELEMENT
         &KNA1-KUNNR& ,, &KNA1-NAME1& ,, &KNA1-LAND1&
    Save -> Activate.
    In the Print Program, specify following code:
    TABLES KNA1.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       FORM                              = 'ZSHABFORM1'
       LANGUAGE                          = SY-LANGU.
    SELECT * FROM KNA1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'ELEMENT'
       WINDOW                         = 'MAIN'.
    ENDSELECT.
    CALL FUNCTION 'CLOSE_FORM'.
    Save -> Activate -> Execute.
    Regards,
    Priya.

  • How to Import customized internal table to smartform from Print Program

    Hi Gurus,
    I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
    With regards,
    S.Saravanan

    There is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
    Regards,
    Raymond

  • How to use Text lements(/E) in Scripts and print program

    Hi all,
    I need to use Text elements from print program to Script output.
    I have included the text element name in WRITE_FORM and defined in the script with (/E) also.
    Still the data is not displaying.
    Please let me know how to use the text elements.
    thanks in advance..
    Rakesh
    <removed_by_moderator>
    Edited by: Julius Bussche on Nov 25, 2008 10:08 AM

    For printing the text directly on the formm the text element in form wud be as
    /E   ITEM_HEADER
    MH Quantity,,,,Description,,UOM,,Net Weight,,Gross Weight
    If you have variable define in the driver prog and you want to display,text elt. wud be as
    /E   ITEM LINE
    MH &CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
    where CONF_OUT is a structure with fields ATBEZ and ATWTB
    MH is the paragraph format
    Hope this clears your doubt.
    Regards,
    Prashant

  • Calling SAP scripts from WEBDYNPRO

    Hi
    We need to call SAP scripts from WebDynpro application.  As per my understanding we need to do following steps
    Create a new RFC function module and create sap script output in PDF format.For this
        - use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
          ITCPO). 
        - call function module CLOSE_FORM with option OTFDATA
        - convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
    Now I would like to know how to display the PDF string from WebDynpro.
    Please help....
    Regards
    Sujith

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • SAP Script from scratch.

    Hi friends.
    i want to develop sap script from scratch.
    please any one have good document for this, then please send me on <b>[email protected]</b>
    thanks in advance.

    Hi,
    Please have a look at the links,
    Sap Script Programming.
    SAP Scripts
    Regards,
    Hema.
    Reward points if it is useful.

  • SAP Script: Barcode printing in Local Win. Printer

    Hi All,
    In SAP Script, I have used Barcode format to print a Number.
    When I issue the Print output by selecting the Configured SAP network printer, The barcodes are properly printed.
    but When i select the "Local windows printer" (which has barcode printing facility) option i.e Device type: SAPWIN, the Barcodes are not getting printed.
    I have Specified that Network printer as my Default Windows printer, but still when we give "Local printer" the Barcodes does not print.
    But for the same network printer when i select it from the List of SAP printers, the barcodes are printed.
    Please suggest why barcodes are not getting printed when we give "local windows printer" as the Print device.
    Does the same issue also happens for Smart forms?
    Midhun.

    Please only post your question once.
    SAP Script: Barcode printing in "Local windows printer"
    Regards,
    Nick

  • Insert the data in sap tables from C SHARP application

    Hi All,
                 I want to save some data in sap table from my CSharp(DOTNET)  windows application.I tried with the help of  SAP.Net Connector but that connector is not been supported visual studio 2005 or i not have visual studio 2003 .Soo plz any one can help how i can do this .
    If any one have a idea then plz give me some example also how we did.
    thanks
    regards
    sandeep Dabral

    You have to use SAP .NET connetor to make interface with SAP. This is better way of doing interface between .NET and SAP.
    You create web service (wsdl) in .NET 2003 and try to use that in .NET 2005.
    You're getting the two technologies confused ......
    .Net Connector is used for RFC-type interfaces. It calls Bapi's directly. Web services are not involved for this type of interface.
    WSDL files are used to generate proxies for the .Net client to call Web Services (typically web-enabled Bapi's). This type of interface uses SOAP protocol not RFC and does not use the .Net Connector. Enterprise Web Services may be discovered using the .Net Enterprise Service Explorer, which is a different component from the .Net Connector.
    Regards,
    D.

  • Is it possible to execute SAPGUI scripts from java program?

    Hi everyone..
         I need to develop an java applications that executes the SAPGUI script or any technique that execute set of transaction as client.
         Is it possible to execute SAPGUI scripts from java program? if so, how it can be achieved? is there any other technique to achieve above mention scenario?.
         it will be more helpful, if docs related to that are shared..
         Thanks in advance

    Oh, bummer. Would be much more convenient if I could just use iTunes for everything. Can't stand WMP. I wonder if WinAmp might be a good compromise?
    Thanks for this answer . . .
    Sharon

  • Aligning data in sap script

    hi guyz,
    how can i align data in sap script with spaces between..
    regards

    Hi,
    you have to create paragraph formats for this, in paragraph format you can define tab sapces.
    use that paragraph format in command box of ur window editor, where ever you want the space just use ',,'  which will apply tab space (the sapce you have declared).
    reward if useful,
    Thanks,
    Sreeram.

  • Translations of SAP Script from English to Spanish

    Hi All,
    I need to do translate one of the SAP script from English to Spanish. Could anyone please help me how to achieve this?
    Thank you in anticipation.

    Hi Nikhil,
    You can use transaction SE63 to do this: Translation->long Texts->SAPscript->Forms.
    Regards,
    John.

  • Transport.of SAP script form , printer def and device type is not enaugh

    I transported the SAP script form , printer definition and device types of a thermal printer.
    On original system the printout is ok but on target system not. What should I do?

    Thank you for your fast answer
    As the matther of fact I am technical person. I think Output type belongs to application. However the difference is visible in  se71 ->Utilities->Printing test -> output device ->print preview.
    As I wrote I transpored corresponding. SAP script form , printer def and device type

Maybe you are looking for

  • How can I import a .pdf from CorelDRAW into photoshop?

    Hey, I have a client who is sharing a CorelDRAW file with me, but I can't find a way to import it into Photoshop. I know Corel is for Vectors, and Photoshop is now, but I thought the .pdf format would be compatible... I managed to import one pdf, but

  • Goods Received Valuation for Order Delivery

    Dear Experts, In our business process planned order is created through project system. planned order is converted in to production order. while receiving finished goods throgh production order . for exmple:  production order 1:          In finished g

  • I cannot open a file

    trying to download a jpg instant download and i keep getting a message that the file cannot be opened as it may be damaged or something like that.  cannot find any way to open this file on my computer.  please help.

  • Logic, Reason, or Cubase

    I have been using Logic Express for two years, mainly the virtual instruments. I am looking to upgrade to something that offers more but don't really know where to get started, and was wondering what the differences, the pros and cons, are to the log

  • Sum(ReportItems!..) in Matrix

    Hi , I have a detail field called Frames in matrix that does calculation with ReportItem and it'is the lowest group in the Matrix. count(Fields!Subscription_No_.Value)*ReportItems!Textbox141.Value I'd like to calculate Totals for Frames across parent