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

Similar Messages

  • Convert SAPSCRIPT forms to PDF

    We need to do a report that can generate several pdfs from a payment run (SAP-FI), so we need to have one pdf  for each payment in the run (they are in SAPSCRIPT form).
    The program that we use is copy of "J_1AF012" and the we use "SX_OBJECT_CONVERT_OTF_PDF" function to obtain the pdf form, but the changes that we did in the standard were:
    a) in the "OPEN_SAPSCRIPT"
    *&      Form  OPEN_SAPSCRIPT
          text                                                           *
    FORM OPEN_SAPSCRIPT.
      ITCPO-TDIMMED    = '*'.              " kz sofort drucken
      ITCPO-TDDELETE   = '*'.              " kz freigbe nach Druck
      ITCPO-TDLIFETIME = '7'.              " verfalltage
      ITCPO-TDPREVIEW  = 'X'.              " druckansicht
    Setting the options
      w_options-tdcopies = 1 ."Number of copies
      w_options-tdnoprev = c_x."No print preview
      w_options-tdgetotf = c_x."Return of OTF table
      w_options-tddest =   c_locl."Spool: Output device
      CALL FUNCTION 'OPEN_FORM'            " open form for output
           EXPORTING FORM    = S_FORM
                     DIALOG  = 'X'
                     LANGUAGE = 'S'
                   OPTIONS = ITCPO
                     OPTIONS = w_options
                    DEVICE  = 'PRINTER'
                     DEVICE  = c_printer
           IMPORTING
                     RESULT  = W_RES.
    ENDFORM.                               " OPEN_SAPSCRIPT
    b) In the "CLOSE_SAPSCRIPT" :
    FORM CLOSE_SAPSCRIPT.
      C_ORDEN = C_ORDEN + 1.
      shift C_ORDEN left deleting leading space.
      CONCATENATE C_PATH C_NAME1 C_ORDEN C_EXTENSION INTO C_NAME.
      CALL FUNCTION 'CLOSE_FORM'
      IMPORTING
              RESULT = w_res
              TABLES
                    otfdata = i_otf
              EXCEPTIONS
                    unopened = 1
                    bad_pageformat_for_print = 2
                    send_error = 3
                    spool_error = 4
                    codepage = 5
                    OTHERS= 6.
      IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    c) And we added these functions:
    Converting OTF data to single line
      LOOP AT i_otf INTO w_otf.
            CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
                                                  INTO w_pdf.
            APPEND w_pdf TO i_content_txt.
      ENDLOOP.
    Converting to PDF Format
      CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
      EXPORTING
                format_src = c_otf
                format_dst = c_pdf
                devtype = c_printer
            CHANGING
                transfer_bin = w_transfer_bin
                content_txt = i_content_txt
                content_bin = i_content_bin
                objhead = i_objhead
                len = v_len_in
            EXCEPTIONS
                err_conv_failed = 1
            OTHERS = 2.
      v_size = v_len_in.
    Downloading the PDF File
      CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
                bin_filesize = v_size
                filename = c_name
                filetype = c_bin
            TABLES
                data_tab = i_content_bin.
    When we run the program the error is a dump with:
    "DBIF_RSQL_INVALID_CURSOR
    CX_SY_OPEN_SQL_DB        "
    and aparenttly is due to the cursor in BKPF table is closed (or missing) in some of those functions.
    We use the "open_form" and "close_form" for each payment document, and we could generate only the first pdf and then the program cancel (to the second pdf) with this mentioned error.
    We are on R/3 4.70, 620, and Informix Database.
    Please, could you kindly help us???
    Best regards,

    Hola Grisel!
    Estoy tratando de armar en pdf las órdenes de pago, pudiste hacerlo? Como lo lograste?
    Gracias de antemano por cualquier info que me puedas brindar.
    Saludos
    Eduardo Puricelli
    Hi Grisel,
    I'm trying to build in pdf payment orders, could you? As you did it?
    Thanks in advance for any info you can give me.
    Greetings
    Eduardo Puricelli

  • 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

  • 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

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

  • How to change the Development Class of the SAPSCRIPT FORM

    Hi All,
          I have transported the old form which needs to be deleted in Test System. Is that possible to create a TR for deletion and send it to Test enivronment?..
         Also is it possible to change the development class for a form?
         Please help me on this. Urgent!...
    Regards,
    Ramkumar.

    Yes, it is possible to change the development class for forms..
    Use SE03, transport organiser tools
    goto node OBJECT DIRECTORY ENTRY
    select node "Change object directory entries"
    Execute
    goto the next text box after data element, type FORM, give your SAPSCRIPT form name and tick the check box execute... now rightclick on your form and chenge development class..
    Now coming to your second question is is not possible to delete a FORM that it is already transported to QA and Production, only way to do this is by doing client copy.. basis will do it for you..
    Close the thread once your question is answered.
    Regards,
    SaiRam

Maybe you are looking for

  • Best approach for setting up iCloud for a child

    Hi, I have bought my son an iPad Air for his birthday. We already have an iMac in the house which is shared by us all, with each person having their own login. My original question was going to be how I can create an iCloud login for him. I tried cre

  • Treo 755p The free data storage space on the device is low. Some data could not be saved

    After having the Treo 755p device for only a week, I am receiving a message "The free data storage space on the device is low. Some data could not be saved."  I have over 55 mb of free space according to the device info page. I cannot find anything a

  • Unable to Access Data Form with Users Provisioned as 'Planner'

    Hello, I am currently experiencing an issue that I can't seem to resolve. I was hoping someone else might have some insight and/or have come across this issue. I created two data forms. Users have been assigned permissions to the dimensions included

  • Help regarding PO Issue

    I am currently taking all deliveries of type NL and NLCC and creating an outbound IDOC of type DESADV.  I am then converting this IDOC into an inbound IDOC of type ORDRSP and updating the confirmations tab of the PO.  Here is my issue, iIf a user rev

  • Show documents aof change

    Hi, is it possible to pop up the document which refer to the last changes of master data, perhaps the vendor. If one changes the account no of a vendor, the documente of the change has to be attached. The change must be confirmed by a collegue. If th