Detect print program name from within Sapscript. Is this possible?.

We have a situation whereby for the single and group delivery we have two print programs printing to one Sapscript form. This is exactly what we need, with one exception being the title. What I would like to do is detect the print program and change the title accordingly. Does anyone know if this is possible?.
regards
Jason

Hi Jason,
hhhmm, the obvious answer sy-repid is of course bogus, because that would contain the program from the SAPscript environment. I wonder though if sy-cprog is of any use - probably not, but was too lazy to test this...
In general though I'd recommend though to use some better marker than program name. E.g. don't you have any existing global field that can be used (e.g. are you using the same delivery type, same output type, ...)? If you don't have one, maybe you should consider putting a global variable in both print programs that you fill to indicate which type you're processing.
In theory you could of course determine the program name, even from SAPscript, with the help of a ABAP form routine that evaluates the call stack and returns the program name of the print program. Or you could evaluate TNAPR as suggested by the previous poster, but I'm not sure if that's available by default (like the NAST record); I thought not, but my memory might serve me wrong. If not, I'd personally go with the markup variable (ideally existing content, if not available new one) as this seems the cleaner approach.
Cheers, harald

Similar Messages

  • Creating a print button to print a page from another document - is this possible?

    Hello,
    My company is designing an interactive pdf with indesign with some great navigation on a side-bar. We've made the dimensions of the navigation pages larger than 8.5 x 11. We are constructing a pdf portfolio that contains a printable version of this document and this interactive version. Would it be possible to have a print button in the interactive document that calls up the corresponding page in the printable document and send it to the printer?

    Flash Catalyst does not directly support printing. You are going to have to add that functionality via Flash Builder and writing ActionScripting. I have not worked with the printing capabilities in Flex, so there is not a lot I can offer past this in terms of advice.I would suggest browsing the Flex forums for some guidance on how to assemble your state for the printer.
    Good luck!
    Chris

  • 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

  • How to find output type givenSapscript form name and print program name

    Hi  Experts,
           Can anyone tell me how to find the output type of  a sapscript form if the print program name and sapscript form name is 
    known.

    Hi,
    There are two ways:
    1. Use table TNAPR .. Here is table give PGNAM as your print program name and FONAM as form name.. Now the field KSCHL will be the output type assigned to your script.
    2. You can also check the NACE t-code.. In that select a application(Corresponds to your area) -> click on Output types tab -> Here you get list of output type.. You need click on Processing Routine folder to get all other info..

  • Print a pdf from within Safari.

    SORRY, will repost in safari for Mac
    Hi
    If I print pdf files from within Safari 4, the text does not print at all, only lines, tables and boxes.
    If i save the same pdf file to the hard drive and open it with Adobe Reader, it prints perfectly. Is there anything obvious that I am doing wrong?
    I am using SL, and a Lexmark c522 if it helps.
    Thanks
    Dave
    Message was edited by: bluebaz
    Message was edited by: bluebaz
    Message was edited by: bluebaz

    Just doublechecking. Are other PDFs currently printing properly for you, George? (Say, if you're printing them directly from your Reader as opposed to printing them through Safari's Adobe PDF plugin?)

  • How to fetch Print program name of a SAP script?

    Hi abapers,
    Could you please tell me how to fetch the name of a script's print program with the help of the script's name?
    I have tried with table TNAPR and T-code NACE,it didnt help.
    Is there any function module that returns the print program's name.
    Please reply.
    Thanks,
    Suchi.

    hi ,
    GOTO SE71 Txn
    Enter standard script name.
    Click on Display.
    "in menu bar
    "form------>Check--->text ----->press enter
    Now you can view the standard print program name
    Thanks & Regards

  • Print program name for Adobeform

    Hi,
    I want to know how to identify the print program name to print adobeform if i know Adobeform name in FI and HR module.
    Thanks
    Bhuavna

    Post the solution as well so that it helps all, instead of just closing it with one word i.e. "resolved"
    Have a look at [Rules of Engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement].
    Chintan

  • Need print program name

    Hi all,
    i have smartform name .how we will find print program?
    What is the output type and application for paychek?
    please tell to me..
    Thanks,
    kisho.re

    there are two ways
    go to table TNAPR give ur smartform name and then u will get your program name
    secondly if any putput type is associated with it then go to transaction NACE select application area then click output type and then get the print program name
    ~hitesh

  • Table used for displaying print/program name of smartforms

    Hi All,
    I need the table name which is used to display the print/program name for smartforms.
    Thanks & Regards,
    Santosh

    check TNAPR , or tcode NACE .
    regards
    prabhu

  • Wats d in-built print PROGRAM name for layout MEDRUCK???

    wats d in-built print PROGRAM name for layout MEDRUCK??? and can we change it??
    wat shud we do if we want2 change it??
    i mean...assume we got a scenario in which we need ta use MEDRUCK layout n print progrm n change some text in it.. and d address  and header in it..
    how cud we do dis??

    Hi ,
    The print program name for 'MEDRUCK' is <b>SAPFM06P</b>, it is not advisable to change the print program instead if you want to do any changes use Subroutines in the layout. Eg : PERFORM <Subroutine name> in PROGRAM <pname> USING <in_variables>
                   CHANGING <out_var>
    ENDPERFORM.
    Srini

  • Standard smartform name and standard print program name for Sales Quotation

    Hi,
    I would like to know the standard smartform name and standard print program name which can be used for sales quotation through transaction VA23.
    For eg: The standard output type for billing document (For T code VF03) is RD00 and it' smartform name is LB_BIL_INVOICE. It's print program name is RLB_INVOICE.
    Similarly, I would like to know the standard smartform name and standard print program name for AN00 output type which is used for sales quotation. .
    Regards,
    Zahid

    Hello
    std driver prgram is /SMB40/RVADOR01
    form entry is ENTRY
    std smartforms is /SMB40/SDQUO_A an du can check this the in NACE tcode.
    Output Type     AN00          Quotation
    Application     V1            Sales
       Program                   /SMB40/RVADOR01
       Form Routine              ENTRY
       Form                      RVORDER01
       PDF/Smartform Form        /SMB40/SDQUO_A                 
    Thank u,
    santhosh

  • I want to have a unique reference appear on the footer of each printed version of a pdf printed from my website - is this possible?

    I want to have a unique reference appear on the footer of each printed version of a pdf printed from my website - is this possible? If so which version of Adobe do i need?

    If you want it to maybe happen some of the time, if people use the right browser and software and system, you can use JavaScript.
    If you want it to happen reliably, you need server software to add the stamp before the file is served, integrated into your web site's CGI/ASP/PHP or whatever. Probably not an option with shared hosting.

  • I have my iTunes library on my home PC, which is linked to my iPad 2 for music etc. I also have an iPhones 4S, which I would also like to pick up the music from my library, is this possible ?

    I have my iTunes library on my home PC, which is linked to my iPad 2 for music etc. I also have an iPhones 4S, which I would also like to pick up the music from my library, is this possible ?

    Hello chickenrob,
    Indeed, this can be done with Home Sharing. The article linked below details how to set it up.
    iTunes: Setting up Home Sharing on your computer
    http://support.apple.com/kb/HT4620
    Cheers,
    Allen

  • I try to print a thumbnail from within iPhoto and it keeps telling me I don't have any themes installed. When I look in iPhoto folder the themes folder is there. Themes are in app. Support also. I rebuilt iPhoto database and rebooted but no cure. DICKSTER

    Try to print from within iPhoto a thumbnail &amp; I get message that there are no themes installed. They are in iPhoto folder and a folder of themes is in the library/ application support. I rebuilt iPhoto data base using iPhoto rebuild. No change, also rebooted hd.
    Can someone straighten me out here?
    Thanks
    DICKSTER-----

    Restoring iPhoto 9 (11) Themes
    First look in your HD/Library/Application Support/iPhoto folder for a Themes folder. If there is one there move it to the Trash. Also look in your Home/Library/Application Support/iPhoto folder for a Themes folder.  If there is one move it to the Trash.  Reinstall iPhoto as described below:
    1 - delete the current application.
    2 -files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder,
    Click to view full size
    3 - mount the disk that iPhoto 11 came on, either an iLife 11 disc or the system disk that came with your computer and do a custom install selecting only iPhoto. 
    If iPhoto 11 came with the computer then double click on the "Install Bundled Software Only" file and do a custom install.
    Apply all of the latest iPhoto 9 (11) updates followed by a repair of disk permissions with Disk Utility. Also make sure you're running the latest Quicktime version.
    OT

  • Printing "child" names from Address Book on address labels

    When I put selected "child" names on Address Books entries and try to print address labels including the kid's names, they don't appear. Example: I add "Jim" as a child name to an Address Book entry for Mike Jones. I try to print the Address Label: Mike Jones and Jim. Jim will not print. "JI" will print. "Jimm" will print. Anybody else have this problem? What's going on?

    From another thread:
    If you have a spouse or child listed on contact card it will print them all on the mailing label IF the first name of each person is unique to your entire address book. For example, if the contact is John Brown and the spouse is listed as Susan Brown and the child is listed as Chester Brown, the expectation is that the label would print as:
    John, Susan and Chester Brown
    This assumes that there are no other contacts in your address book with the first name of Susan or Chester. However, if, for example, you have another person in your contact list named Susan (the last name could be anything), Address Book will print:
    John and Chester Brown
    This is because Address Book looks at all the first names in your contact list and if it sees a first name that is also listed in one of the spouse or child fields then it looks to see if the the other contact shares the same address as the contact you are trying to print. If the address is the same, then it prints properly on the label. If not, then it doesn't print on the label. So if you have two Susans - Susan Anderson and Susan Brown - Address book looks at the address on each card and determines that Susan Brown has the same address as the contact you are trying to print (John Brown) and therefore prints her name on the label.
    So, to make a long story short, if you want consistent and predictable results when printing your labels you should assign a unique card to each person that you want to appear on the label and make sure that the individual cards have the same address listed on each. So, in the above example, there would be a card for John Brown, a card for Susan Brown, and a card for Chester Brown. On John Brown's card, Susan Brown would be listed as spouse and Chester Brown would be listed as child. Print John Brown's card and you should get:
    John, Susan and Chester Brown
    Although this makes logical sense, it's not incredibly intuitive and not very well documented by Apple. I was hoping they would enhance Address Book in Leopard since this seems like a feature that a lot of people would use around this time of year. Unfortunately, that wasn't the case this time around.

Maybe you are looking for