PO form (SAPSCRIPT form) setup

hi,
is it possible to have multiple PO form (SAPSRIPTs) per given plant? i.e. plant 1 will create/use PO form1, plant 2 will use PO form2. the purpose is have one plant print it in an 80 col. printer landscape, the other form on a 132 col. printer.
thank you very much,
rico

Hi Rico,
If your goal is to print two different forms from the same PO, one possible approach is as follows:
(1) Set up two output message types based on NEU -- such as 'Z80L' (for 80 col. landscape) and 'Z132' (for the other).  Both could be hooked into the same print program (if need be) yet different SAPscript forms.
(2) Build a condition table with plant as part of the key.
(3) Configure output determination for the relevant procedure to include these new message types, with the plant condition table in the access path for both of them.
(4) Load unique plant-specific condition records under each output type, specifying the appropriate printer in the communications tab (e.g. plant 1 would go under Z80L with printer ZABC while plant 2 would go under Z132 with printer ZDEF).
During document-based automated output proposal, SAP will scan through both output types' condition records.  When it finds a plant that matches the one on the PO it will act on the corresponding message type which will then route the correct form to the correct printer.
Note: One thing you didn't mention is whether the plant field you wish to use is at the header level (ekko-reswk) or item-level (ekpo-werks).  If the latter, there may be additional work involved.  In any case, I hope the above is enough to get you started.
Regards,
Mark

Similar Messages

  • Two SAPScript forms on a single page

    Hello
    Is there a way (in SAPScript) to have two forms (sapscript forms defined in SE71) printed in a single page ?
    What I would like to achieve is to have several sapscript forms defined in the system and to be able to combine them in a single page dynamicallly - I mean: the printing program would decide which of them should be output.
    I have one sapscript form which I want to output always - it contains some header and main window with some items. Apart from this form I need to print some additional information on the same page.
    This additional information may be formated in a few different ways - depending on the case. I need to include this info at the top of the page - formatted in one of possible ways mentioned. The rest of the page is always the same (some header and main window with items).
    I know I could just use windows definitions in a single sapsript form and let the printing program decide which of those windows to print. But my problem is: I would like to have different sizes of the information printed at the top of the pages - when I define a window I must declare height which will be occupied on the page - I'd like to have different height values for different cases.
    Is there a way to achieve that ?
    thanks in advance
    regards

    Hi,
    It is not possible.
    But instead of creating sapscript, why dont you create different standard text and call in same sap-script based on condition.
    You can create standard text in tcode so10. Its similar to editor in sap-script.
    Reward if useful

  • Sapscript form print as PDF

    Hello,
    is there a way to setup a printer that we can print sapscript form into a PDF file?
    We don't want to go over the spool request and use RSTXPDFT4.
    I have already setup a printer with device type PDF1, Host Spool Access Method F:Printing on Frontend Computer and Host Printer __Default. But for some reasons it doesn't work. We are running SAP Enterprise 470.
    Any help?
    Thanks
    Anne

    You must choose a FILE printer. See these notes:
    [Note 576973 - Creating a file printer on a Windows PC|http://service.sap.com/sap/support/notes/576973]: steps to add a Windows (if it's Vista, see note 1164132) printer of type Generic/Text only, and to create an output device in SAP to print to this printer. It does not explain that we may just change the port of an existing printer.
    [Note 1164132 - Front-end printing on Windows printer with FILE port|http://service.sap.com/sap/support/notes/1164132]: note 576973 applied to Windows XP and before, but it doesn't work anymore on Windows VISTA because the dialog box to enter the file name is no more displayed. A change in SAPGUI 7.10 was made (and it works only with access method G) to display a SAP dialog box to enter file name.

  • Build COA to a SAPSCRIPT Form

    We have a need to sometime in the new future to build a COA from a newly acquired Company. The time window will be small to complete this task.
    The Functional analayst  would like to just setup a basic SAPSCRIPT form with a basic header, body of properties, and some comments. However, he seems to want to do this without a Cert Profile (QC01). We have some Print Programs, and Forms I can use as a template. We were going to have an interface load the properties into an SAP Z table and extract from there.
    Can someone tell me the basics of creating this new Form by extracting the properties from the Z table? Also the basic setup configs etc.
           Any suggestions will be helpful.
           Thank-You.

    Hi,
    As per my knowledge:
    It is not possible to create form by extracting the data from ZTABLE dynamically, we need to create explicity each form with properties from ZTABLE.
    Bye

  • I have a SAPScript Form which is in DIN A4. I want conversion

    I have a SAPScript Form which is in DIN A4. I want to convert that to LETTER having 8 1/2 x 11 inch format.
    How can i do this ?

    Hi Manjunath,
               U jusat go to the form & in the Header,click on the Basic Settings button.
              In that u'll have Setup Page tab,in that u'll have an option called Page Format.There u can mention the format u want.
    Reward me the points if helpful.
    Pavan.

  • SAPSCRIPT form - Text is not porperly displayed

    hi all,
    in my SAPSCRIPT form, I am getting a text from PERFORM stmt. in the PERFORM , the text is coming correct, but in the form , it is showing only half of the text.
    the code
    FORM get_text TABLES ts_intab STRUCTURE itcsy
                         ts_outtab STRUCTURE itcsy.
    DATA: l_haul_text(500) TYPE c,  
               l_haul_long(250) TYPE c.
    l_haul_long = l_haul_text+0(250).
        LOOP AT ts_outtab.
          CASE ts_outtab-name.
            WHEN 'L_HAUL_LONG'.
              ts_outtab-value = l_haul_long.
              MODIFY ts_outtab.
          ENDCASE.
        ENDLOOP.
    Then in the form, just display
    /:  PERFORM GET_TEXT IN PROGRAM
    /:   USING &VBDKL-VBELN&
    /:   CHANGING &L_HAUL_LONG&
    /:  ENDPERFORM
    &L_HAUL_LONG&
    while debugging, the text is correct till TS_OUTTAB but when it comes to the form L_HAUL_LONG, it is truncated.......what should i do..
    Kindly help.
    THnaks

    answered

  • Addint new field to the standard sapscript form.

    FOR SALES INVOICE DOCUMENT FORM PRINTING
    TRANSACTION CODE: VF01
    OUTPUT TYPE : FJCI
    PROGRAM NAME: RVADAUS1
    SAPSCRIPT FORM NAME: SD_EXPORT_FJCI
    ENTRY ROUTINE: ENTRY_FJCI.
    STRUCTURE USED FOR THIS OUTPUT TYPE = V55EFJCI
    THE QUERY IS AS FOLLOWS:
    I WANT TO ADD DATA MODE OF TRANSPORT FROM THE INVOICE DOCUMENT. THE TABLE AND FIELD IS T618-BEZEI.
    SO I COPIED THE STANDARD FORM TO ZSD_EXPORT_FJCI AND THE STANDARD PROGRAM TO ZRVADAUS1.
    I SUCCESSFULLY FETCHED THAT FIELD DATA.
    I APPEND THE STRUCTURE 'ZAV55EFJCI' TO ADD THE ADDITIONAL T618-BEZEI FIELD.
    AND WRITE MY SELECT QUERY IN THE ENTRY_FJCI FORM ROUTINE.
    THE CODE IS AS FOLLOWS:
    data: begin of it_mode_of_tp occurs 1,
          bezei type t618t-bezei,
          end of it_mode_of_tp.
    select a~bezei as zzbezei into table it_mode_of_tp from t618t as a
    inner join
    eikp as b on aexpvz = bexpvz and aland1 = baland inner join vbrk as
    c on bexnum = cexnum
    where cvbeln = nast-objky and aspras = nast-spras .
    loop at it_mode_of_tp.
       v55efjci-zzbezei = it_mode_of_tp-bezei.
    endloop.
    BUT THE DATA FOR THAT IS NOT GETTING DISPLAYED.
    THIS WAS THE FIRST METHOD I FOLLOWD.
    THE SECOND METHOD I DID WAS AS FOLLOWS:
    FORM ENTRY_FJCI.
         PERFORM PROCESSING.
    ENDFORM
    FORM PROCESSING.
         PERFORM PRINT_DOCUMENT.
    ENDFORM.
    FORM PRINT_DOCUMENT.
           CALL FUNCTION 'RV_EXPORT_DOCUMENT_PRINT'
    ENDFORM.
    IN THIS FUNCTION THE DATA IS GETTING FETCHED FROM THE DATABASE TABLES AND STORED IN THE STRUCURE V55EFJCI.
    SO I COPIED THAT FUNCTION.
    IN THIS FUNCTION , THEIR IS A INCLUDE PROGRAM 'LV55EF11' FOR FETCHING DATA FOR ENTRY_FJCI FORM ROUTINE.
    I COPIED THAT PROGRAM CODE , AND CREATED MY OWN INCLUDE PROGRAM (WHICH I AM STORING IT IN ANOTHER Z PACKAGE.)
    AND WRITTEN MY ABOVE CODE IN THAT PROGRAM. BUT WHEN I DO THIS, NOITHING GETS DISPLAYED , EVEN THE PREVIOUSLY COMING DATA ALSO NOT GETTING DISPLAYED.
    HOW SHOULD I PROCEED.

    you said you copied layout(form) SD_EXPORT_FJCI to ZSD_EXPORT_FJCI,
    you updated program to fetch datat & populate v55efjci-zzbezei field.
    Now
    - you need to modify layout(form) ZSD_EXPORT_FJCI via SE71 to insert your field in one of the windows where it has to be printed (sap script knowledge is required here).
    - you need to either modify SAP output type FJCI to use your program/layout(form) or you need to create your own output type and assign your form/program to it, and in addition to that if you define your own output type - yo have to add it to output determination procedure, to access sequences, add condition records to condition table... so it's picked up by the invoice.

  • How to make an unformatted sapscript form

    At the bottom of [this page|http://help.sap.com/saphelp_45b/helpdata/en/34/60b30cae724effe10000009b38f91f/content.htm] it says:
    "If you want to pass on the information to be printed to one printer only, and this printer then takes care of editing and layout, you can mark a special form for this purpose (see Release Information SAPSCRIPT). In this way, the text is passed on unformatted. This is of interest, for example, if you are using thermal-transfer label printers
    ... without any links. I've been looking for this "Release Information SAPSCRIPT" but can't find it, does anyone know where?
    I need to print labels to a thermal printer (Paxar Monarch) but if I put the print codes inside a sapscript form, the printer always gives errors. If I write the same printcodes directly to the printer, it works fine. However, I need to use sapscript forms for customizing reasons, but the form just needs to pass on the printcodes as unformatted text.

    Refer this link might be useful -
    ftp://ftp.nicelabel.com/docs/whitepaper/wp-Printing_labels_from_SAP_R3-eng.pdf
    Regards,
    Amit

  • Passing the data from a internal tabe to sapscript form

    Hi folks,
    I have an question, how to pass an each character value of a field into the sapscript form separately,
    I have an field value from an internal table in the print program say - itab-ssn = 123789345 and I need to pass each character separately into the sapscript form. How do you write the code in the sapscript text editor
    I tried this piece of code did not work...
    &itab-ssn(0)&,, &itab-ssn(1)&,, &itab-ssn(2)& and relaised it adds up characters as I go on...
    I just need  1   2   3   7  8 ...
    How to do that?
    Thanks,
    SK

    Try &itab-ssn0(1)&,, &itab-ssn1(1)&,, &itab-ssn+2(1)& and so on
    Formatting option +n(a) where n is the offset and a the length
    Regards,
    Nick

  • Call a function module from within a sapscript form

    not being an ABAPer i have the task of changing the Invoice SAPScript form.
    i have made the necessary changes - just about... but they have asked that i include the VAT Number on the Invoice....
    not too bad apart from different company codes have different vat numbers...
    not knowing a better way to retrieve data from table V_001_B - i am using the print program -RFKORD50, is there a better way of getting the VAT Number by company code? I figured if i could call the FM to return the value, all well and good.., they do not want the print program changed if possible so was looking at alternate methods....
    or am i trying to reinvent the wheel here?

    thank you both!  helpful answers! :o)
    anyway! 
    i have written the program which is called from the SAPScript:
        /:       PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
        /:       USING &BKPF-BUKRS&
        /:       CHANGING &VATNUMBER&
        CE       VAT Registration No : &VATNUMBER&
        REPORT zfi_f140_operations.
        FORM get_vatnumber TABLES in_par  STRUCTURE itcsy
                                  out_par STRUCTURE itcsy.
          DATA: lv_co_code TYPE bukrs,
                lv_vat_no  TYPE stceg.
          READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
          MOVE in_par-value TO lv_co_code.
          SELECT SINGLE stceg FROM t001
            INTO lv_vat_no WHERE bukrs = lv_co_code.
          out_par-name = 'VATNUMBER'.
          WRITE lv_vat_no TO out_par-value.
          CONDENSE out_par-value.
          MODIFY out_par INDEX 1.
        ENDFORM.              
    it is not working and i cannot work out why... 
    i have not been ABAPing for very long but have had a go.... 
    any thoughts as to what i have done wrong?
    or point me where i should be looking?  thank you!

  • Missing text elements in my sapscript form / Transaction F.17

    Hello!
    I'm on a sap ecc 6.0 system and have problems with a sapscript form.
    My printprogram is sapf130d and my form is y_..._debi_slep.
    Starting the transaction F.17 i get several lists and at last the error-list. This error-list says "in form y_..._debi_slep in the main window the following textelements are missing ...". Three elements 506, 595 and 606 are missing.
    When i look into the form i couldn't see the elements. So with "/E 506", "/E 595" and "/E 606" i've inserted the elements in the main window and saved and activated the form. A new try with "F.17" raises the same errors. For my understanding the relevant elements should be in the info window in this case - i inserted them there, too ... but the errors remain the same. In the print program i can find all these textelements.
    Perhaps someone out there has a solution or a hint for me?
    Thanks a lot in advance.
    Best regards,
    Ingo

    The cause of error could be of any reason.
    1) For driver program SAPF130D, following forms must be used, or customised by copying any of this below forms.. May be this could be one <b>reasons for the error.</b>
    Forms
    The following forms are used in the standard SAP R/3 System:
    Form for  Form name
    Letter and Reply  <b>F130_CONFIRM_01</b>
    Check list  <b>F130_LIST_01 and F130_LIST_02</b>
    Results table  <b>F130_RESULT_01 or F130_RESULT_02</b>
    Error list  <b>F130_ERROR_01 or F130_ERROR_02</b>
    If you define your own forms, the form name should contain the identification code "F130".
    Regards,
    Sairam

  • In which table the lines of the SAPScript form text elements are found?

    Hello,
    I want to write a report analyzing the lines contained in the text elements of an SAPScript form. From which table can I select the data? Regards.
    Lars.

    Sorry.. forgot to mention the FM name.
    You can use FM 'READ_TEXT'.
    pass 'ST' for ID.
    and 'TEXT' for OBJECT
    and pass the name of text element to NAME u will get the
    text element.

  • Hyperlink in Sapscript form

    Hello,
    I have to add a hyperlink in Sapscript form. Any idea how do we do it?
    Regards,
    Ahmad

    Hello,
    I just saw other threads on sdn and it looks as if this is not possible in Sapscript and it does make sense.
    Regards,
    Ahmad

  • Get the current line no.(similar to sy-linno in report) in  Sapscript form

    Hi everyone,
    In ABAP reporting, you can use sy-linno to determine the current line no.
    But if in sapscript form,
    does any system field to get the currect line no. or y-origin. ?
    Just say the program is now runing and have written several lines in a window of the form.
    AS         This is the first line
    AS         This is the second line
    AS         This is the third line
    how to get the current line = 3 or  yorigin '+3'  LN?
    Thanks for reply in advance.

    Hi,
    you can also chk the sy-linno directly in your script.
    Regards
    Subramanian

  • Display sapscript form in Web Dynpro Java

    Hi,
    Is it possible to print an existing sapscript form i.e. PO from ECC to my Web Dynpro application? I have successfully created a Web Dynpro Java application to create POs but now have a requirement to display or print the PO?
    Can someone provide me with a sample code? I'm hoping to be able to do this without using Adobe.
    Again, thanks for all your help.
    Best regards,
    Jaypee

    Hi mark,
    Without Adobe also u can display PO order.
    Below is the code to open a HTML window from WDJava, with data from WDJava...
    Inside DoInit()
    IWDAttributeInfo attr1 =
    wdContext.getNodeInfo().getAttribute("htmlfile");
    ISimpleTypeModifiable mtype1 = attr1.getModifiableSimpleType();
    IWDModifiableBinaryType btype1 = (IWDModifiableBinaryType) mtype1;
    btype.setFileName(attr.getName() + ".html");
    btype.setMimeType(WDWebResourceType.HTML);
    _contentType = mtype;
    Where htmlfile is a context attribute of type binary... and do a global declaration like this
    ISimpleTypeModifiable _contentType = null; (This declaration can be done at the end of your view's coding between Begin Others and End Others)
    Now,
    inside on action print
    public void onActionPrintData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String videoName )
    //@@begin onActiondisplayVideo(ServerEvent)
    byte[] content = new byte4028;
    try {
    content = this.displayPrint().getBytes("UTF-8");
    wdContext.currentContextElement().setHtmlfile(content);
    wdContext.currentPrintElement().setAttrUrl(
    _contentType.format(content));
    //Where content is loaded with data from displayPrint() method, which is holding the HTML *page to be displayed to the user *
    IWDWindow win =
    wdThis
    .wdGetAPI()
    .getComponent()
    .getWindowManager()
    .createNonModalExternalWindow(WDWebResource
    .getWebResource(content, WDWebResourceType.HTML)
    .getURL(),"ShowVideo");
    win.setWindowSize(445,460);
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    win.removeWindowFeature(WDWindowFeature.MENU_BAR);
    //win.open();
    win.show();
    // wdComponentAPI.getMessageManager().reportSuccess("444444444444");
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException ("Unable to open window"+e,false);
    //@@end
    Now finally, design your HTML Page inside the method displayPrint() like this
    public java.lang.String displayPrint( java.lang.String strVideoName )
    //@@begin displayPrint()
    String htmlcontent=null;
    htmlcontent="content what you want to show in print window";
    use script inside the html content to do a print... like window.print();
    return htmlcontent;
    //@@end
    Regards,
    Sunaina Reddy T

Maybe you are looking for

  • Scroll bars for this code...

    Hai All, Here is the problem i am placing .. when ever there are no.of records to display i want to put the scroll bars to view.... and i am adding my code ... can any one please give me the solution how to add vertical scroll bar to this code.... im

  • TS3694 unable to restore iphone error code 3194 keeps coming up what do i do?

    unable to restore iphone 4 - error code 3194 keeps coming up what do i do ?

  • I need to call some privileged APIs and need some help on this.

    First the Basics: This program auto-launches each time a user logs in. It is an authentication type of program. Only users with this app running will be allowed to use a secure network. I need to be able to read and write from the route / arp tables,

  • Issue with af:commandMenuItem exiting new window...

    Hi everybody! Testers are reporting an issue that I have not yet successfully reproduced. This app was produced in JDeveloper 10.1.3.3.0 using ADF BC/JSF. The issue is very simply described. I am jsp-including an af:menuButtons component which has af

  • Interface BP Creation

    Hi Experts, We have requirement in our project that we need to trigger an Email whenever a Bp is created for the first time in CRM. CRm is not creating data directly through an ordering system BP will be created and that client wants to trigger an em