Sapscripts queries

the following commands print three columns with shaded heading.i thought of displaying somee
headings in that header row.But its not possible,i dont know why.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '5.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: POSITION XORIGIN 10 CH YORIGIN 11 LN
* Name
/: POSITION XORIGIN 20 CH YORIGIN 1 1 LN
* Address
/: POSITION XORIGIN 30 CH YORIGIN 11 LN
* Signature
HOW TO CREATE MANY PAGES IN SAPSCRIPT
WHICH TABLE WE USE TO CHECK WHICH SAPSCRIPT IS CALLED BY WHICH ABAP PROGRAM

Hi,
   1.By selecting the pages in se 71 and in change mode create the pages.
   2.NAST table can store the srcipt and print programs.
Regarsd,

Similar Messages

  • How to change font size and spaces between fields in SAPscripts?

    Hi everyone!
    I need help using sapscripts, 'cause I don't know what's the meaning of some symbols, for example: ,,<Z>&BSEG-HBKID</>. Now my question is what's for: ",," "<Z>" and "</>", I have no idea what does symbolas are for?
    If anyone can help me I'll really appreciate it!
    Thanks for your help!!!

    Dear Guillermo,
    To give a clear answer to your query.
    I have the following.
    when you are in one window and then go to the contents of the window in change mode.
    There you can see that in the command editor i.e the editor where you are writing your code.
    as illustarated above your editor looks like.
    in the left box you give commands like /: or /* or a paragraph format which you have defined like 'P1'.
    By defining this paragraph format you want to tell that the text which is written on the right box will use the font defined whether it is <b>BOLD</b> / <i>Italic</i> etc. whether it is justified or left-aligned etc. and also in the same paragraph format you will define your tab stops.
    So when you write <b>,,</b> then it is equivalent to one tab stop. i.e how much margin you want to leave for this paragraph line to start from you page starting.
    the symbol <b><Z></b> represents a character format only catering to the characters defined in between <b><Z></b> and <b></></b>This character format is defined through the push button charcter format in you form editor.
    the <b></></b> indicates the end of the character format.
    &BSID-HBKID&.
    & represents that the value will come dyanmically which has been defined before in the Driver program or in the script itself through the <b>DEFINE</b> command.
    The <b>BSID-HBKID</b> represents that the value will be got from the table BSID and field HBKID during runtime.
    I Hope things are far pretty clear in this way.
    If you still have any more clarifications please come back with any further queries, but not forget to reward appropriately.
    Thanks & Regards
    venugopal

  • Sapscript driver program change

    Hi guys,
    I am printing a sapscript for AR customer invoice. It used the program 'RFKORD50' to trigger the sapscript. Currently it displays the line items with document type 'D' but I just want to display the line items with document type 'S'.
    I have copied this program into a Z program and I made tried to just capture the document type 'S' but it is not displaying any line items. Can you please advise that where should I make the change.
    Thanks for your assistance.
    Regards,

    Hi Johnny Oscar,
    Since you have taken the program from NACE and created a Z copy of the same the changes need to be done at the FORM ENTRY of the program. The program gets triggered here. You can write the select queries, piece of code etc.
    This should answer your query.
    Reward Points if useful.
    Thanks,
    Tej..

  • How to Call Function from SAPSCRIPT

    I want to Call a function from my SAPSCRIPT to get some data and print the same in the form , Can I get an example for this

    Hi Nandan,
    U cannot directly call function from SAPScript... For that u have to create one include in which u need to write the code. Using Perform... EndPerform u can call the same from SAPScript. See the below example
    u need to write this code in SAPScript
    PERFORM formname IN PROGRAM includename
    USING &field1&                                      
    USING &field2&                                      
    CHANGING &field3&                                     
    ENDPERFORM                                               
    Here includename is your include type program.
    u need to write this code in your include type program..
    FORM formname TABLES in_par STRUCTURE itcsy
                            out_par STRUCTURE itcsy.
    data : var1 like field1,
           var2 like field2,
           var3 like field3.
      READ TABLE in_par WITH KEY 'field1'.
      CHECK sy-subrc = 0.
      var1 = in_par-value.
      READ TABLE in_par WITH KEY 'field2'.
      CHECK sy-subrc = 0.
      var2 = in_par-value.
    now u can call corresponding function using local VAR1 and VAR2. Here u can pass N no of USING parameters.
    After processing on VAR3...
      READ TABLE out_par WITH KEY 'field3'.
      out_par-value = VAR3.
      MODIFY out_par INDEX sy-tabix.
    EndForm.
    Here in_par and out_par are the structures which will be used to communicate with SAPScript. And this is the only way as per my view.
    I m sure this code will work fine. Here i have used dummy variables that u need to change as per your requirement. If u have more queries write me back.
    And yes if this works than dont forget to give the points.
    Regards,
    Sagar

  • Sapscripts doubts

    Below are my few queries.
    1.How to display the symbol in bold ,<B>&ITABLE-NAME&</> is not working,can we display it in bold?
    2.How to get employee position?I tried mapping with otype of pa0001 to otype of t528t tables but it retrieves many records.What is the way of getting on single record for single otype?I mean to say of employee has joined in the company,i want his/her designation or position in the company.
    3.Iam doing sapscript which will accept employee and prints his experience certificate.I have used select options to get the input from the user.If the user selects range of employees(like 5 employees),the program should be able to print 5 experience certificates.Can anyone suggest how to accomplish this task?I think we should be able to create the page dynamically,any ideas?
    4.Where can i find hr related default sapscrips like one for purchase order - MEDRUCK
    Thanks a lot for your time.

    I have one solution.Earlier I dont know that we should create character called as B,giving bold attribute true.Then at symbol we have to give <B> end with </>.Iam able to print the symbols in bold but rest of doubts I hve to find out.

  • Tables in sapscript

    Hi,
    I have two queries on 'tables in sapscript'.
    1> For some longer records,the extended part of the last field is coming down below the first field..like
    field1         field2            field3
    AAA          BBBB         CCCCCCCC
    CC
    How to prevent this ?
    If the length of field3 data is more,i want it to come in second line of field 3 itself.
    2>I have created separate element for the column headings.Now,the space between the column headers remain constant even if the spacing between the contents are varrying.
    field1           field2           field3
    AAAAAAAAAA   BBBBBB   CCCCCCC...
    How to make the distances between the column headers same as the contents ?
    Please help.Thanks in advance.
    Regards
    Ananya

    I hope ur query 1 is solved .
    //I have created separate element for the column headings.Now,the space between the column headers remain constant even if the spacing between the contents are varrying.
    column headings are Fixed length and it will remain constant .
    where as ur field contents may vary
    Remember that i have only  finite space ( equal to that of the column header ) to display the data .
    if the field data is more than you need to set the column heading in proportion to the column heading .
    ex.
    material description is 35 char
    then
    Material Description                                    Plant                    "<-- heading
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX    2222                    "<--field val
    i can only fit that size of 35 for material description.
    The texts will not vary .
    regards,
    vijay.

  • IF statement in SAPscript

    I'm probably making a really simple mistake, but I've got the following code in a SAPscript window:
    /: IF &REGUD-WRBTR& GT 0
    HE <S>DR></>
    /: ELSE
    HE <S>CR></>
    /: ENDIF
    I've debugged through the print program and REGUD-WRBTR is 1175.00 but it still prints CR.
    Any ideas?
    Gill

    use
    IF REGUD-WRBTR GT 0
    without &

  • Could I have CASE or IF statement in FMS queries?

    Is it possible to have case statements in FMS queries:
    For example:
    SELECT T0.[U_DepoistfeeON] case
          when T0.[U_DepoistfeeON] is NOT BLANK  then $[$38.111.160]='Deposit Fee'
          when T0.[U_DepoistfeeON] is BLANK  then  then $[$38.111.160]=BLANK
    end FROM OITM T0
    What is wrong with above query please? Thank you very much.
    I do not mind even if above query is doable with an IF statement in it.

    Hi Rahul, this is what I want -
    I have a user defined field attached to item master OITM. The field is called : U_DepoistfeeON
    The above field contains additional depositFee taxes for selling beer bottles.
    I have also created a new tax as part of Freight handling. While on Sales Order screen, the Freight (unhide first through forms field) drop down can have the new tax type selected automatically "Deposit Fee".
    Thus, if the line item is of beer type that has U_DepositfeeON, then Freight field should automaticlally pick the type "Deposit Fee".
    If U_DepositfeeON is zero then I would like the Freight field on Sales Order screen ($38.111.160) set to blank.
    I tried to achieve this through following using case statement.
    select T0.U_DepoistfeeON
    from oitm t0
    case
    when T0.U_DepoistfeeON 0
    then $http://$38.111.160='Deposit Fee'
    when T0.U_DepoistfeeON = 0
    then $http://$38.111.160=''
    else
    $http://$38.111.160=''
    end;
    Of course it doesn't work. Note: I know I typed in DepoistfeeON, the error is not due to that.
    Thanks.

  • Barcode C128 is not getting displayed in Sapscript

    HI,
    I need to print the barcode in the Sapscript.
    The barcode is not getting displayed even in the preview also, when I give the Barcode C128.
    But when I give other Barcodes, it is getting displayed in the preview.
    Can anyone let me know the solution to print the barcode for C128, as others are not that much fit to print.
    Thanks
    Rakesh

    Hi Dieter,
    No. I haven't.
    Is this the reason for that?
    let me know the procedure.
    thanks
    Rakesh

  • How to Dene a Data Link Between Queries: Bind Variables

    This is an interesting topic and I cannot get it to work using Bind Variables.
    I have 2 queries: Q1 and Q2. Q2 needs c_id, account_code and account_type from Q1.
    Whe I run the data template below, I get only the data for Q1.
    Now people may argue that there is no data in Q2 for the relevant clause. So if I even remove the where clause in Q2 I still get no joy i.e Data appears for Q1 but not for Q2
    <dataTemplate name="FLCMR519_DATA_SET" description="Termination Quote Report">
         <parameters>
              <parameter name="cid" dataType="number" defaultValue="1"/>
              <parameter name="p_cln_id" dataType="number" defaultValue="62412"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT qm.qmd_id,
    qm.contract_period,
    qm.quo_quo_id||'/'||qm.quote_no||'/'||qm.revision_no reference_no,
    qm.contract_distance,
    qm.mdl_mdl_id,
    q.qpr_qpr_id,
    q.quo_id,
    q.drv_drv_id,
    qm.revision_user username,
    pb.first_name||' '||pb.last_name op_name,
    pb.telephone_no,
    pb.facsimile_no,
    pb.email,
    q.c_id c_id,
    q.account_type account_type,
    q.account_code account_code,
    m.model_desc,
    ph.payment_description payment_head_desc,
    cl.fms_fms_id,
    cl.start_date,
    cl.end_date,
    cl.actual_end_date,
    cl.con_con_id,
    cl.cln_id,
    cl.term_qmd_id term_qmd_id,
    qm2.contract_period term_period,
    qm2.contract_distance term_distance
    FROM quotations q,
               quotation_models qm,
               contract_lines cl,
               personnel_base pb,
               models m,
               model_types mt,
               payment_headers ph,
               quotation_models qm2
    WHERE q.quo_id = qm.quo_quo_id
           AND cl.cln_id = :p_cln_id
           AND qm.qmd_id = cl.qmd_qmd_id
           AND qm2.revision_user = pb.employee_no (+)
           AND qm.mdl_mdl_id = m.mdl_id
           AND m.mtp_mtp_id = mt.mtp_id
           AND qm.payment_id = ph.payment_header_id
           AND qm2.qmd_id (+) = cl.term_qmd_id
    ]]>
              </sqlStatement>
              <sqlStatement name="Q2">
                   <![CDATA[SELECT ea.c_id,                  ea.account_type,ea.account_code,ea.account_name
    FROM external_accounts ea
                 WHERE ea.c_id = :c_id
                   AND ea.account_type = :account_type
                   AND ea.account_code = :account_code
    ]]>
              </sqlStatement>
         </dataQuery>
    </dataTemplate>

    Defining dataStructure section is mandatory for multiple queries.

  • How can I transfer sapscript from one client to another

    Please tell me the steps , how can I <b>transfer</b> SAPscript from one client to another (like DEV Client to Test Client)?

    Hi,
    Utilities --> Copy from client.
    If you have to copy from once system to another use Program RSTXSCRP
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • How to use one WAD template for all the available queries

    Hi,
    I have created a WAD template... Now we have close to 25 queries which will use that template for displaying their output at Portal...
    Is there any way that i don`t have to create multiple copies of my WAD template...
    I.e. all queries would call that same template through portal...

    Hi,
    The Bex report uses the Standard Template 0ANALYSIS_PATTERN while it is executed.
    So if your sure that the look and feel of all the Reports is going to remain same, you don't need to even attach all these Queries to Templates in WAD.
    When you execute the BEx query, it would pick up the standard template and run it in portal.
    But if you want to customize the Report Template:
    1) You can change this standard template 0ANALYSIS_PATTERN  and customize it according to ur requrement in WAD.
    2) Or you can create a copy of this standard template and change it as required. Then change the template in spro (transaction RSCUSTV27) to point to this Z template.
    Let me know if you need more details.
    Regards,
    Forum

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • Error while Activating / running Bex queries/reports

    Hello
    I have following ERRORs while activating / running BEx reports/queries.
    1. While Activating BEx reports, I keel getting following ERRORS
    Object directory entry R3TR ELEM E341OIR6G715GUMGN0MRXP3MA does not exist
    Error when activating element BX7FOOKQB4588RROCBTC2YVZN
    BEx transport request 'BIDK901352' is not available or not suitable
    2. While running the BEx report/query in Bex Analyzer, I'm getting ERROR in entering the parameters, its NOT allowing / giving me option to select the parameters, for example for 0COSTCENTER, it is NOT displaying list costcenters to select before I can RUN that particular report.
    3. How can I trouble shoot ERRORs related to BEx and Portal connectivity.
    4. How would I setup the Variants for a Bex query/report ? Are these Variants for per user basis / per report basis. Can I have each variant for particular users OR all users must select their own variant each time when they RUN the report ? 
    Thanks, Sorry I have asked multiple questions, in jst one thread.
    BI

    Goto SE03 -->Search for Objects in Requests/Tasks  option , select the object type and execute it will give all the transports it has collected before ..
    Also you can use transport connection in RSA1 and select the query and find out all the objects in query locked by what request etc ..
    Thanks,
    Ravi

Maybe you are looking for

  • How fast should I be able to download?

    I have had BT infinity for 2-3 months now, and I never seem to get a download speed of more than 4 megs a second It can start at 6 every once in a while, last about 10 seconds and then quickly run down to 3-4 megs and sit there until the d/l is finis

  • Need to call another progarm in Zdriver program for a specific output type

    For billing document they had configured a Zdriver program and Zsmart form in Nace. Now, we had created an output type and when user clicks on that specific output type my ZXYZ program should run. ZXYZ program will convert the spool request into .pdf

  • How to activate generic object services in VA03 (e.g.)

    Hello all In ECC 6.0 the generic group services can be found in several transactions. But in VA02, VA03 transaction e.g. it is missing. Does anybody know how we could activate it there? Thanks in advance to all Renaud

  • Google Chrome vs. Internet explorer

    Any opinions on which is a better internet browser?  Internet explorer or Google chrome?

  • Linking Muse design to another Muse design.

    Since I started using Muse I have created a number of sections to an existing web site and uploaded them using export to HTML.  I am now redesigning the old site using Muse.  I have created a number of buttons (not part of the menu) on the home page