SAPScript Print Program Entry Point

Dear all,
  I try to modify the standard SAPScript form and its related print program.  What is the program entry point for those associated print program??  Since, i want to add my own logic and don't know where should i start.  I can only find the subroutine FORM_OPEN and ENTRY.
Regards,
Kit

hi,
u can add u r logic by using form routines.
FORM .. ENDFORM is used when retrieved data
needs to sent back to print program.
In SAPscript:
PERFORM < routine_name> in <report_name>
            USING  &var1&
        CHANGING &var2&.
ENDPERFORM.
in case of reports,
i am giving the sample example for this,
FORM < routine_name> in_tab type ITCSY
                            out_tab type ITCSY
READ TABLE in_tab WITH KEY NAME = ‘var1’.
{Data Selection based on above value. It returns ret_value.}
READ TABLE out_tab WITH KEY name = ‘var2’.
            out_tab-value = ret_value.
            MODIFY out_tab.
ENDFORM.
Reward points if useful,
Thanks,
usha

Similar Messages

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Migrating SAPscript print program to Smartform

    hello everyone,
    Requirement is to print transfer orders. Current functionality supports SAPscripts and its print program. Since we are going to be using Smartforms, I need to change the print program so that it calls the custom smartform created by me.
    Can anybody help me out by telling me a step-by-step process as to WHERE and WHAT changes I can do in the SAPscript print program so that I can use it for my Smartform?
    The SAPscript print program that needs to be changed is: RLVSDR40.
    Thanks in advance.
    Regards,
    Fred.

    Hi Fred,
    The system does not migrate the print program (data retrieval) or the form logic contained in the print program. You must make the required changes to the respective print program yourself. PL take a look at the following
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9d/9599386185c064e10000009b38f8cf/frameset.htm">SAP help</a>
    Regards,
    Suresh Datti

  • Extending Abstract Classes & Program Entry Point

    I have the following classes:
    CopServlet - which extends PercServlet
    PercServlet - abstract class which extends HttpServlet
    HttpServlet is the base class. I'm using Visual Age with a web.xml file that points to CopSerlet as the controller servlet. So my question is... When CopServlet gets called, where is my program entry point? My CopServlet class does NOT have a main method.

    When CopServlet gets loaded, its init() method is called. And when it is called via an HTTP request, either its doGet() or its doPost() method is called, depending on whether it was a GET or a POST request. That's how servlets work. The business about abstract classes is irrelevant to that.

  • SAPscript print program

    Hi All
    I have the SAPscript form name. I need to find out the name of the print program.
    The table TNAPR gives the standard program name attached to the SAPscript.
    But, I need to find out the Z* program name associated with the SAPscript.
    Pls do help on this.
    Thanks,
    Zahabia.

    hI
    Sapscripts are client dependend and smartforms are client independet.
    SAPscript are CLient Dependent, SmartForms are Client Independent. The reason why SmartForms are client independent is because when you activate a SMartForm, SAP actually generates a Function Module (which as you know is client independent). The Print Program (or as SAP likes to refer to them these days - Application Program) calls your generated FM.
    In the "smartforms" transaction, when you are viewing a smartform, you can go to the Environment->Function Module Name menu path to see the FM name.
    Look at the "Application Program" for the Invoice SmartForm (RLB_INVOICE):
    determine smartform function module for invoice
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING formname = lf_formname
    variant = ' '
    direct_call = ' '
    IMPORTING fm_name = lf_fm_name
    EXCEPTIONS no_form = 1
    no_function_module = 2
    OTHERS = 3.
    call smartform invoice
    CALL FUNCTION lf_fm_name
    EXPORTING
    archive_index = toa_dara
    archive_parameters = arc_params
    control_parameters = ls_control_param
    mail_appl_obj =
    mail_recipient = ls_recipient
    mail_sender = ls_sender
    output_options = ls_composer_param
    user_settings = space
    is_bil_invoice = ls_bil_invoice
    is_nast = nast
    is_repeat = repeat
    importing document_output_info =
    job_output_info =
    job_output_options =
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    Difference with SMARTFORMS vs. SapScript (SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    Contributed by : SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    i) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms.
    You can use an External subroutine-call in sapscript editor like:
    /: perform <form_name> in program <program_name>
    /: using <var1>
    /: using <var2>
    /: changing <return1>
    /: changing <return2>
    /:endperform

  • Transaction code(s)- that trigger 'Cheque' SAPscript & print program

    Hi,
    I have to do some modifications in the cheque (CANADA) SAPscript form and the corresponding print program as per the user requirements.
    <b><u>Form Output and Debugging</u></b>:
    Can you please let me know which transaction code(s)
    trigger(s) the cheque SAPscript form and its corresponding print program.
    Version: SAP 4.6c
    Thanks in advance.
    With Best Regards,
    Vidya

    F110

  • Customer Statement using SAP Script and Standard print program RFKORD10

    Using sap script and standard print program RFKORD10 I need to create a customer statement where the main window will be as follows
    Invoice #     InvoiceDate  CustomerPO  Debit Amt  Credit Amt  Total
        6        7           8               9               10               11
        6        7           8               9               10               11
                                     Totals               12             13              14
    Where company code BKORM-KUKRS
                Invoice              BSID-BELNR
                Invoice date      BSID-BLDAT
                Customer PO    VBKD-BSTKD
    For each document number selected there will be one to many records in VBRP.  For each invoice item in VBRP:
    u2022     Select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL and
    o     POSNR = VBRP-VGPOS
    u2022     If no hits then select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL
    If there is more than one PO per invoice then list them in the Customer PO field without repeating the other fields.PO shouldnu2019t come more than once per invoice.
                 Debit Amt         if BSEG-SHKZG = S then WRBTR ELSE 0
                 Credit Amt        if BSEG-SHKZG = H then WRBTR ELSE 0
                 Total                  Debit Amt u2013 Credit Amt
                  Totals                Subtotals
    It will be of great help if some one can help me with the script and the alterations required in standard print program RFKORD10
    Points will b rewarded for sure.
    Thanks.

    Hi Suganya,
    The custom form is getting displayed properly. But the requirement is to have it as an editable PDF. So the functional team is working on configuring the settings of PDF forms with customers email address.
    But for right now, i customized the standard form F140_ACC_STAT_01 and standard print program RFKORD10_PDF and did the configuration. It is getting displayed (I tested only with the transaction FBL5N - customer open line items..)
    Please let me know any further details on this.
    Poornima

  • Payment program F110 - how to add second print program in customizing

    Hello all,
    i would like to add second (another print program after standard sapscript print program customized in table T042Z) print program in transaction F110. This second smartform print program should be customizable  and triggered automatically within payment run.
    Thanks, zd.

    Hi,
    You can assign two forms in FBZP.
    Payment methods per company code
    Double click on payment method
    In Form Data
    You can assign Next Form 
    Both the forms should get printed when you run F110.
    Thanks,
    Ravi

  • Print program name for the dunning form F150_FR_DUNN_01 in sapscript

    Hi,
          I am not getting the exact print program name for the dunning form F150_FR_DUNN_01 in sapscript. After an extensive search I have come across few names of print program like SAPF150D2 and SAPLF150. But still I am not understanding which one to use for the form and also how to use it. I am unable to understand which include I should use to write my code.
    Kindly help me.
    Thanking you.
    Pujarini Patra

    Hi,
    Yes, you should be able to assign F150_FR_DUNN_01 in Dunning Forms customizing:
    and yes, I too would absolutely try to go for either a Smartform or even a PDF Form (if i'd have all the necessary setup for them, like Adobe Document Services, in the system already). I have Basis 702 SP  0011and FINBASIS 600 SP 0021, so all the following technicalities refer to those releases:
    The corresponding SAP sample Forms are:
    - F150_DUNN_SF for Smartform; and
    - F150_DUNN_SF for pdf Form (don't let the name confuse you )
    I'm not entirely sure if it's a good idea to try to convert/migrate Sapscript to Smartform and the Smartform to PDF Form - have never done that  myself and don't know how good/usable the migration result is. I just take the interface of Smartform from SAP and do the rest from scratch or by copying over the common parts of our existing custom forms.
    There are the SAP Standard wrapper FMs for SF and PDF forms already in the System:
    - FI_PRINT_DUNNING_NOTICE_SMARTF calling PRINT_DUNNING_NOTICE_SF and
    - FI_PRINT_DUNNING_NOTICE_PDF calling PRINT_DUNNING_NOTICE_PDF.
    So, theoretically, all you had to do to replace SapScripts (or even to enable all three form types) is to assign a custom BTE Event handler FM to event 1720 (for correct Application), which could detect, what type of form is assigned in Customizing and call the corresponding wrapper FM.
    As a sample for coding PDF form wrapper call one could take FI_PSO_EVENT_00001720_PDF (if you have IS-PS) in the system. I'd take out the IS-PS specific "business logic" like posting dunning charges (if it does not apply to my solution) and add the logic to decide, which wrapper to call.
    The confusing part about the customizing (Table T047E) to me is that there seems to be no form type defined anywhere in there... just the FORNR field for form name, which should apparently take the names of all three form types... I'd  try to extend that table with custom Form type field and try to regenerate Table Maintenance dialog for  view Cluster VC_T047_F... That would save the whole effort to try to detect the type for  form assigned...
    Another tip, in case you didn't know it already: you should be able to see all the Customizing paths, where T047E is involved, when you enter table name in SM30 and press "Customizing" and then "Continue w/o Specifying Project":
    The selected entry is the one you are looking for to assing your custom forms, I believe.
    cheers
    Janis

  • SAPscript: breakpoint in print program

    Hi all,
    I have put a breakpoint (tried both hardcoded and session break) in my print program of my SAPscript, but it is not 'breaking' at that point. I am sure this is the correct print program and have also looked in the forums, but have found nothing.
    Has anyone experienced this before? This is for opening the packing slip in VL02N

    Ended up using /h
    The reason why it didn't break is because the code wasn't under a 'form'.

  • CHANGE OF PRINT PROGRAM IN SAPSCRIPTS

    CAN ANYBODY EXPLAIN HOW WE CAN CHANGE THE PRINT PROGRAM IN SAPSCRIPTS?

    Hi Kumar,
    Go to NACE transaction, Based on the Output type take the Driver program related to your Script
    copy it to Zreport and do the changes as per your requirement.
    When we wants to fetch data from some other tables into that program we have to write code and to fetch the data into internal tables or variables, and they are used in Script.
    reward points if useful
    regards,
    ANJI

  • The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link library C:Program Files/x86/itunes.dll.

    I'd download the latest ITunes and I started it and it has this error message:
    "The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link library C:Program Files/x86/itunes.dll"
    I reinstalled ITunes several times and it got the same message. Please help.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    I've not seen this message before, but it has the same pattern as those discussed in the first and third boxes, suggesting that you've got an outdated .dll file that needs replacing. You should find iTunes.dll in the iTunes folder in Program Files or Program Files (x86). Delete it and then repair iTunes from the control panel. If that doesn't work go for the full tear down and rebuild.
    tt2

  • Calling another program in the print program through FORM ENTRY

    Hi All,
    Have a requirement that I need to submit the program with variant to a print program.
    But it is giving dump "Statement "SUBMIT" is not allowed in this form" while executing through VF04.
    I have tried by using CALL FUNCTION  "func" in update task .Inside the "func"  in I have coded the logic of
    submit program using selection-set VARIANT.
    Even then while executing through VF04 got the dump "DYNPRO_SEND_IN_BACKGROUND" and "POSTING_ILLEGAL_STATEMENT ".
    Kindly advise to resolve the issue.

    Hi,
    PLease make sure that u r using both smartforms and report..
    Once the function called the report program, whether control back to the print program..
    Using debugger please check..
    put a break-point in your program and find where that dump is arised..
    whether u want report only or smartform only...
    If the same problem arises again,
    Paste your report program code inside the print program instead of using SUBMIT..
    let me know what the issue u r facing
    regards
    vijay

  • Error message-- The procedure entry point ADiAdlD_AcquireMatchSlotIfNecessary could not be located in the dynamic link library C:\Program Files (x86)\iTunes\iTunes.dll

    Error message-- The procedure entry point ADiAdlD_AcquireMatchSlotIfNecessary could not be located in the dynamic link library C:\Program Files (x86)\iTunes\iTunes.dll

    See Troubleshooting issues with iTunes for Windows updates.
    Try the repair tip in the third box first.
    tt2

  • I am getting the error "itunes the procedure entry point ?videotracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0a@VCrashonover flow@2@@***@@xz could not be located in the dynamic link Library C:\Program files (86x)\Common Files\Apple\...help?

    I am gettting the error message:
    itunes the procedure entry point ?videotracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0a@VCrashonoverf low@2@@***@@xz could not be located in the dynamic link Library C:\Program files (86x)\Common Files\Apple\Apple Application Support\Webkit.dll.
    After I get this error iTunes will not open, and does not respond
    I have't been able to find any info on this can anyone help?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99827)

Maybe you are looking for

  • How do I install an amazon external dvd drive to replace a broken internal one in my old macbook?

    My old macbook has a broken optical drive inside it. The one that came with it has quit working and the genius at the genius bar said it needed to be replaced. The genius said to get an external one online so I bought the Amazon basics external dvd d

  • External hard drive won't leave

    So here's the deal, my external hard drive refuses to eject. I keep getting this message that says the hard drive is being used by a program but that is impossible because I restarted the computer and have no program running except finder and dashboa

  • 17" Studio LCD Display connect to G3

    I recently purchased a 17" Studio LCD Display which came with an ADC to DVI adapter. Then I picked up an adapter, but it was the wrong kind. It was DVI to VGA which still required the present VGA/G3 adapter ... the connection was going through three

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document. Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field. Pasted content r

  • Group differs

    When I run disk permissions, I get Group differs on "Private/etc/cups" , should be 0, group is 26. Repairing gives the same error. Is this a problem, How do I fix it. I am running latest updates.