Variable in script not printing

Hi guys,
I have form and driver program. while debugging in the driver program I can see the values of the fields, but in the script debugger I can not. Please have a look at my coding. Please correct me if I was wrong.
SELECT SINGLE ktext
    FROM crtx
    INTO gv_ktext
    WHERE objid EQ iviqmel-arbpl. " value is there for GV_KTEXT which is global
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      form                        = 'ZPMF_PMOR'
      dialog                      = space
      language                    = 'E'
      OPTIONS                     = gs_itcpo. " ....
  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      element = 'HEADER'
      window  = 'MAIN'.   " But not appearing in output
  " Closing forms and other coding here
  /E HEADER
  P1 Category: &GV_KTEXT& " In script, I am printing like this

Hi Anil,
Appreciate your reply.
Here, I declared the variable globally in the print program and I am using only one client for development and testing.
Here is my declaration part.
DATA: gs_itcpo TYPE itcpo,
      gv_qmartx TYPE tq80_t-qmartx,
      gv_ktext  TYPE crtx-ktext.

Similar Messages

  • SAP Script not printing as viewed in preview

    Hi Experts,
    I have a SAP Script which is driven via RFFOUS_C Program.The script is using custom page format which is created via SPAD.
    I have a wierd issue like i can see all my data in preview but when i print all the lines are not printing as viewed in preview.Its printing from top of the page till 70% and the bottom portions are not getting printed.
    How can I solve this?
    Thanks,
    Siva

    Hi Siva
    Please check the page format as well as printer on which are printing settings in SPAD..Do we have any custom space before and after defined...? You can also try by testing it with existing format and different printers to find the issue whether it is at script/page/printer level
    Nabheet

  • HIPAA SAP Script not printing

    Hi Everyone,
    I am working on a SAP script... this sap script deals with the HIPAA certificate. Right now we are using the std. SAP transaction THIPAA to print the certificate.. when I enter the transaction THIPAA and enter the personnel number and then hit the tab "issue certificate" a new screen comes up and then again I put the personnel number there in and then execute it but after that nothing happens. So can you please suggest me what might be going wrong.
    Thank you,
    Rajat

    Solved my self.... need to pass the values in the following tables:
    T5F99OMFG
    T5F99OEFG
    T5F99OSFT
    T5F99OSFG
    Thanks,
    Raj

  • Script not printing throught Output type

    Dear Experts,
    I have developed a script which is working fine if execute directly.
    I have configured an output type for the transaction ME9E with application EA, when execute this through transaction with output type it is not working. Please let me know what would  be the problem with this.
    Thanks in Adevance...
    Rahul
    Edited by: rahulsachin on Oct 4, 2010 4:20 AM

    Hi,
    Please check the program name and routine name you configured in NACE with the one you have used actually to keep
    break point in your report and see whether it stops.
    Regards,
    Pawan

  • Doubt in printing variables in script

    Hi Experts,
    I am having small doubt.
    1).I need to write one condition for sales org 'US11' and divisions '20' or '40'. So the below logic is correct or not.
    if vbdkr-vkorg = 'US11' and and vbdkr-vtweg = '20' or vbdkr-vtweg = '40'.
    select........
    endif.
    2). i need th print these variables in script. can i use the logic like this.
    if &vbdkr-vkorg& = 'US11' and and &vbdkr-vtweg& = '20' or &vbdkr-vtweg& = '40'.
    &zkbetr1/ zpery1&
    else.
    &zkbetr/ zpery& (This is for sales org other than US11)
    endif.
    Thanks & Regards,
    Ramana.

    Hi,
    I think your condition would be more apt if you code this way:
    IF vbdkr-vkorg EQ 'US11' AND ( vbdkr-vtweg EQ '20' OR vbdkr-vtweg EQ '40' ).
    ENDIF.
    Also, look at putting the code into a subroutine called from your driver or subroutine program and then returning the value. The "logic" for determining the value to be printed can then be performed within the subroutine rather than the SAP script.
    Cheers,
    Aditya

  • Web Report not printing the fiscal year period variable value

    Hi,
    In web report where in one text element, we enabled the fiscal year period variable value to display
    in the report result.
    If we run the report then this fiscal year period is displaying in the general information.
    We have print button (Java Code),  where user can take a printout of the same report.
    In the printout this Fiscal year period is NOT PRINTING, other variables like rollup time, technical name of report etc are printing perfectly.
    It is required to print the fiscal period also in the print out of the report.
    Any help to come out of this.....
    Thanks
    Srinivas

    Hi
    Any Help.....
    Srini

  • Box in main  window of script is not printing

    Helllo Friends
    Box in main window of script is not printing but the same is available in print preview. I have use the following commands.
    Please help me.
    /:           BOX WIDTH '23.40' CM FRAME 20 TW
    /:           BOX XPOS '0.00' CM YPOS '1.40' CM WIDTH '23.40' CM FRAME 25 TW
    /:           BOX XPOS '0.00' CM YPOS '8.10' CM WIDTH '23.40' CM FRAME 25 TW
    /:           BOX XPOS '0.00' CM YPOS '9.00' CM WIDTH '23.40' CM FRAME 25 TW
    /:           SIZE  WIDTH '0.00' CM HEIGHT '8.10' CM
    /:           BOX XPOS '0.00' CM  FRAME 25 TW
    /:           BOX XPOS '0.50' CM  FRAME 10 TW
    Thanks In Advance
    Regards
    SUNITHA

    Try changing X postion to not equal to zero something else for example.
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
    /:           SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
    /:           BOX FRAME 7 TW
    /:           BOX HEIGHT '1.1' LN INTENSITY 15
    Nabheet

  • Invoice SAP SCRIPT is not printing Customer master text.

    I was given a SD-invoice#  XXXXXXXXX, which has problem with in it's SAP SCRIPT --> is the text is taken from  "customer master data head office text" is not printed on the SCRIPT out put.
    1). What I don't understand by going to /nvf03 --> by giving invoice number , then how can I view the script output ?
    The text is supposed to print in footer ...however the coding inthe FOOTER window is
    /:   INCLUDE 'Z_FOOTER_SO_4700_INV' OBJECT TEXT ID ADRS LANGUAGE 'IT'
    So, do I need to add coing for text of customer master data ?
    Any idea about text and field name ?
    THANKS IN ADVANCE.

    Hello,
    To see the output go to /VF03, enter the billing document number but don't press enter. Go to Billing Document in the menu bar, Issue Output to, select a line and do a print preview (if there's nothing there, the doc hasn't been printed before).
    To print the text, ask somebody to navigate to where it is in SAP. Double click on it, choose Got -> Header. This will give you all the information you need for the INCLUDE.
    The INCLUDE statement you have is for a standard text (trans: SO), not the "customer master data head office text".
    Michael
    Edited by: Michael Evershed on Sep 26, 2008 10:41 PM
    Edited by: Michael Evershed on Sep 26, 2008 10:41 PM

  • SCRIPT: second page is not print but need spool number

    Hi Friends,
    I'm creating a script. It has only one page. if the line item is exceeds in main window then it automatically print the next page.
    now my requirement isgiven below
      I need to print the first page and the second page should not print. But i need seperate spool request for 2nd page. whenever the user wants second page at that time he use the 2nd page spool number to take the print.
    is there any solution or alternative method?
    Thanks in Advance.
    Vallamuthu.M

    Hmmm if i knew your exact requirement i would be able to propose something better i guess, since this seems a little weird to be honest.
    E.G. having a own output type for your page 2.
    Anyway, returning to what you asked. You opened your form using FM OPEN_FORM. and when you are ready you use CLOSE_FORM to close it again.
    You could make use of END_FORM followed by START_FORM when page 2 is to be printed.
    This will give you page 1 and page in seperate spools.
    you could as well close your form and open it again with ITCPO-TDNEWID = 'X' inmstead of using end_form and start_form.
    But still i highly doubt that complete scenario.

  • SAP Script LVSTALISTE not printing VEKP fields

    Hi all,
    The SAP script LVSTALISTE does not print out any field in the packaging section. All the fields in this section come from the table VEKP.
    Is there some special config that needs to be done to activate the printing of the fields from this section? Because as it is now all the data from the VEKP table is not printed in the form.
    Any suggestions would be greatly appreciated.

    Hi,
    Check the CONFIG
    You can trigger Picking list print automatically based on Config settings(SPRO) for movements .
    Logistics Execution->Warehouse Management->Tools->Develop Forms->Assign Forms->Assign Forms for Stock Movements
    Or you can use LX21 along with print idicators for printing picking list seperately.
    Logistics Execution->Warehouse Management->Tools->Develop Forms->Assign Forms->Assign Forms for Print Indicators
    or else debug the the SCRIPT and check if the values are populated inside.

  • 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

  • Script error not printed with WHENEVER OSERROR EXIT

    Hi!
    I run a script with SQL*Plus and noticed, that the script does not stop on an error like this:
    SP2-0310: unable to open file "../../some_script.sql"
    I added a line of:
    WHENEVER OSERROR EXIT
    And then it exits on error, but now the error message is not printed.
    So it looks like the script was finished successfully.
    Is there a way to get both?
    The error message and a stop to the script execution?
    Version:
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 19 19:05:26 2011
    on Windows XP
    Regards,
    David Balažic

    Check out the documentation for the EXIT function.

  • Ship to party Address is not Printing-Script

    Hi All,
    We are facing a problem for a particular PO.
    When we see the print preview for a particular PO for the first time Ship to party address is not printing .Whereas in the next time if we see the print preview its showing that address.Its because while runing for first time there is no value in w_adrc(work area) when that ship to party window .after that one perform is called at that time values are populated for w_adrc so when we runing for the second time its showing that value.Whereas we have faced another problem in another one PO.In that there was no value for w_adrc while that ship to party window called but its showing value in the print preview(w_adrc value is populate after that window called from a perform )Why it is like this?
    Kindly help me in this issue..
    Thanks.
    Raj.

    Hi Raja,
              In my project we are also facing same problem. are u able to find the solution for this problem.Please reply to me ASAP.

  • In the script date field value not printing in address window

    Hi Abaper's
    We are working for the upgradation project,my issue is:
    we are upgrading from 4.6 to ecc 6.0,the problem is *one from in 4.6 working fine but after upgradation to 6.o in that from in the address window date field value is not printing.in debugging mode i have checked value is coming properly but in the sppol..the date value is not displying.*can you please suggest on this.is required any changes or need to somting?
    Thanks and regards
    durga.K

    Hi,
    Kindly check if the window size is proper.
    Check if the tab settings are fine.
    Regards,
    Ankur Parab

  • Update and Write Back DataTable in Object Variable Using Script Component

    Hi All..
    I'm trying to update an Object Type Variable [ReadWrite] with a Data Flow Task Script Component. Variable is already holding a record set with Column(s) like, ID, Name, IsProcessed.
    Now in my Data Flow Script Component, I'm trying to 1st) Fill a DataTable with my variables value then 2nd) Loop through each Input Rows in Data Flow Component and accordingly if there is a match of ID then updating IsProcessed Column in DataTable. 3rd &Finally,
    Copy datatable back to Object Type Variable.
    Below is the code used and just for your ref. I tried Printing content of whole DataTable after Update. This looks perfect but not sure why my variable is able to capture it.
    using System;
    using System.Data;
    using System.Data.OleDb;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.Windows.Forms;
    using System.Collections.Generic;
    using System.Text;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    DataTable dt = new DataTable();
    OleDbDataAdapter adapter = new OleDbDataAdapter();
    List<string> listriuid = new List<string>();
    public override void PreExecute()
    base.PreExecute();
    public override void PostExecute()
    base.PostExecute();
    adapter.Fill(dt, this.Variables.varobjChildPackageLog);
    dt.AcceptChanges();
    foreach (DataRow row in dt.Rows)
    if (listriuid.Contains(row["ID"].ToString()))
    row["IsProcessed"] = "Y";
    // Just to see the Final Data Table Output
    //StringBuilder b = new StringBuilder();
    //foreach (System.Data.DataRow r in dt.Rows)
    // foreach (DataColumn c in dt.Columns)
    // b.Append(c.ColumnName.ToString() + ":" + r[c.ColumnName].ToString());
    //MessageBox.Show(b.ToString());
    this.Variables.varobjChildPackageLog = dt;
    dt.Dispose();
    adapter.Dispose();
    public override void RIUIDInput_ProcessInputRow(RIUIDInputBuffer Row)
    try
    listriuid.Add(Row.ID.ToString());
    catch (Exception ex)
    MessageBox.Show(ex.Message.ToString());
    Regards, Avik M.

    why do you need to do this in script task.
    This is just a matter of using lookup task while you retrive data from source itself to find the matches and use a derived column transform to check and set appropriate value for IsProcessed column. The object variable itself is not required and you dont
    even require a looping statement either!
    If both source and lookup tables are in same server then you can just wrap them inside source sql query itself to do matching and retrieve the value for IsProcessed within select statement itself in OLEDB Source inside data flow.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • How can I tell if a page is secure

    How can I tell if a page is secure? There used to be an option to view a security certificate although this has been removed from the toolbar? Also, how can I refresh a page now that the button has been deleted from the toolbar? Thanks

  • Having problem with getRaster( )

    I'm having a problem using Raster for thresholding... I declare picture as ... BufferedImage picture; In public void init() , I have this codes... picture = getImage(getCodeBase(),"bear.gif"); WritableRaster wraster = picture.getRaster(); however I g

  • Our thirty day trial period is over. I didn`t know we had to purchase anyway. cannot save any work because of it

    Our thirty day trial is over. We cannot now save anything . Everytime we try to save the thirty day calender pops up. It is asking us now to purchase iwork 09 can someone explain.

  • Little things missing in Snow

    Hello All, Sorry for putting a variety of topics into one message but they are too small to have their own threads. 1) Where is the keyboard batteries status report hiding? 2) I can change the language to Hungarian, but I can't find the layout of the

  • Linking errors to forum

    The links that are being generated by the forum so that I can view the replys to the messages posted are coming up with an error that states that the page I am requesting cannot be displayed. this hasn't happened in the past, but I thought you might