Standard text and perform in scripts

Hi guys,
can any body tell me how to use<b> perform</b> in scripts.
and how to include these statement it doesn't look like standard text
/: INCLUDE &ZTXTNAME& OBJECT BOM ID MZU
have a nice weekend

Hi Deepthi,
The syntax of Perform statement is
/: PERFORM <form_name> in PROGRAM <program_name>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM.
In the program <program_name> , you can write the form <form_name> as:
FORM <form_name> TABLES INTTAB STRUCTURE ITCSY
                        OUTTAB STRUCTURE ITCSY.
endform.
INTTAB will contain all the input parameters like INVAR1, INVAR2 etc and OUTTAB will contain all the output parameters like OUTVAR1, OUTVAR2 etc.
You can download a nice document on SAPScript from this link , but within 1 day.
https://www7.sendthisfile.com/d.jsp?t=asglGjpv25aba8T8sp2G1zyd
Regards,
Amit.

Similar Messages

  • What is the difference between Standard text and Text Symbols?

    Hi,
                1.Difference between Standard text and text symbol,?
                2. Which we use Standard symbol?

    Text symbol
    Text symbols are symbols representing text elements. In fact, a text symbol can be defined for every text elements. The reading of the form is easier in the SAPscript editor. The name of the text symbol must not exceed 32 characters and its value 60 characters. The value assignement can be done in two ways:
    - Using the following command: "/: DEFINE &SYMBOL&='TEST_SYMBOLE'"
    - Using a standard text symbol.
    The text symbol value is temporary stored. When the print program finishes the execution, the text symbol does not exist anymore. The text symbol must have a value when it is declared.
    Also check this link,
    http://www.supinfo-projects.com/en/2005/forms_sapscript_en/5/
    Standard text are good, if you are using them in more than one SAPScript, because you have to maintain them only once, and not in every SAPScript.
    It is really good to write rarely changing texts into the SO10 standard texts (for example company name, and address).
    standard text is not always used in scripts. when ever u want to display some data u need to use standard text so that the data gets displayed. Say, u have a large piece of document which needs to be printed at end of script... rather than writing the whole thing in script, we create standard text using SO10 and then use the name along with standard text in script.

  • Standard Texts and Text Modules

    Hi,
    How to include standard texts and text modules in Adobe Print Forms?
    Is there any solution?
    Thanks !

    Hi
    You can call standard text and text modules by the following options :
    Create One Text Window by right clicking the option.  In this general attributes tab select the 'Text Type' as 'Text Module' and it will ask for the Name of the text module.
    Press f 4 help to select the text module.  And enter the language also.
    Thanks

  • Standard Text and Text element

    Hi Everyone,
                      Hope you all doing great.
    What is the difference between SAP Stadard text and Text elements? When and where to use these?
    I have got Terms and condition text for my quote O/P Document, Is it okay if i go with Standard text?
    What is the Text ID i have to use?
    Thank you
    Kris

    Hi
    Difference between  SAP Standard text and Text elements :
    SAP Standard text : The standard texts which have been already created and can be created
    Text Elements :  They are the elements which are available in VOTXN and are assigned while configuring text determination
    Regards
    Srinath

  • How do I Hide the text printed from a standard Text Element in SAP Script?

    Hi,
    I have created one SAP Script which gets printed from IW33 using a standard print program.
    In config the standrad SAP script is replaced by the zsap script.
    Since the Zscript is printed from a Standard print program, I had to keep all the text elements used by the original(standard) SAP script.
    I only kept the text elemets and commented out the printing part.
    But still some values are printing. How do I hide these text element values?
    I want to delete whatever its printing from these text element. Icant delete the standard text elemetns , otherwise the standard print program will give error.

    Hi,
    I am not printing any text under these text element in my zscript.
    I had to include these standard text elemets as they are called from the standard print program using which my zscript is getting printed.
    for example:
    /E OPERATION
    Under operation i didnot print anything. Still some values which are passed in text element Operation by the print program is being printed in the form. i want to hide/delete these values.
    how do I do that?

  • Standard text display in sap script

    Hi Experts,
    The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
    The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
    The font should be the same size as the Printable Notes, but bolded rather than italicized.
    The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    This is logic in the layout:
    /: DEFINE &ORDCONF_TEXT& :='ORDCONF_TEXT_&VBDKA-VKORG&_&VBDKA-VTWEG&_
    /: &VBDKA-SPART&'
    /:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    /:USING &VBDKA-VBELN&
    /:CHANGING &ORDCONF_TEXT&
    /:ENDFORM
    /:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    Logic in the print program:
    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Suman
    Edited by: Rob Burbank on Nov 13, 2009 4:18 PM

    Hi sirisha
    I have clarification
    The standard text will be stored in Name =COCDADDR_TEXT_(paying company)
    Text ID = ADRS
    Examples: COCDADDR_TEXT_0500, COCDADDR_TEXT_1000, COCDADDR_TEXT_2401,COCDADDR_TEXT_2405,COCDADDR_TEXT_7600,COCDADDR_TEXT_7700
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the paying companycode of the REGUH-ZBUKR, provided a standard text has been created for that paying companycodes. Itu2019s required that every sales area have a standard text (ADDRESS of company), so if one is not found, this step should be skipped and the rest of the print program executed.
    I need the steps similar to ur issue.
    Thanks in advance
    Senthilkumar

  • Standard text and Adobe forms

    How do you get a standard text created w/ SO10 displayed on the PDF? Can it also have the same formatting... bold, underline, etc.?
    Currently on ecc 7.0.

    This is where some training may be helpful....
    I now have the context tab in SFP by changing the interface type on the interface attached to the form to be dictionary based. This allows me to add the text as you mentioned. The form has ZCI layout assigned.
    But now my webdynpro is having issues calling the form. In my webdynpro my template source is the same as the sfp form name; but as I assign the pdfsource and datasource they are either removed and/or changed to a dummy value that is added to my context with no nodes or attributes.
    This application currently runs in a production environment. All I was trying to do was add a standard text element to the form.

  • Standard Text printing in SAP Scripts

    Hi All,
    Iam printing data from Standard Text it is printing
    but i need like
                            Bank            ICICI
    but the below is giving
                           Bank
    ICICI
    AS    ,,,,,,,,,,,,,,Bank,,,,,,,,
    /:       INCLUDE &V_ACC& OBJECT TEXT ID ST LANGUAGE EN
    Can you please tel me how to do

    Hi,
        How your are creating the Standard text V_ACC in transaction SO10? create it with Contineous text, defailt will be as Command line(/:), thats why all the Standard texts will be printed on New line.
    Tcode : SO10
    Text Name :- V_ACC
    Text Id      :-  TEXT
    Language:-  EN
    The text should be
    ICICI                       "For Continues text paragraph format will be blank
    not as below
    /:  ICICI                       "For New line text paragraph format will be /:
    Now call the standard text in your Sapscript
    AS    ,,,,,,,,,,,,,,Bank,,,,,,,,
    /:       INCLUDE V_ACC OBJECT TEXT ID ST
    Just check the tab spaces after Bank statement, if it is more Included text will be in next line.
    Regards
    Bala Krishna

  • Dispaly standard text in SAP SCRIPT which content saved using SAVE_TEXT FM

    I want to display one standard text content in SAP SCRIPT and want to store content of it during run time.
    For that, first I have created one standard text using SO10.Named the standard text as Z_TEST_WRITE. Initially it was empty.
    In my SAP SCRIPT, I try to display the content of the standard text using below given SAP SCRIPT code and report program. Although I am able to store text in Standard text
    Z_TEST_WRITE but in first display of the SCRIPT it is not displaying against the include command of SAP SCRIPT. But when I see the content of Z_TEST_WRITE through SO10 transaction, I can see the content with new text which was previously empty.
    Now if I do the same transaction newly (suppose second time), then text stored in standard text Z_TEST_WRITE is displaid against includes command of SAP SCRIPT.
    My print program is a SAP STANDARD which one can be changed.
    /:   DEFINE &NAME& = ''                                      
    /:   PERFORM TEST IN PROGRAM Z_SAVE_TEXT
    /:   CHANGING &NAME&                                         
    /:   ENDPERFORM                                              
      <B>&NAME&</>                                            
    /:   INCLUDE Z_TEST_WRITE OBJECT TEXT ID ST
    REPORT  Z_SAVE_TEXT.
    FORM TEST TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
      DATA IT_HEADER LIKE TLINE OCCURS 0 WITH HEADER LINE.
      DATA: LS_HEADER LIKE THEAD,
            LT_LINES  TYPE STANDARD TABLE OF TLINE WITH HEADER LINE.
      OUT_PAR-NAME  = 'NAME'.
      OUT_PAR-VALUE =  'Sample text for Test'.
      APPEND OUT_PAR.
    *-Populate Header Text details
      LS_HEADER-TDOBJECT  = 'TEXT'.
      LS_HEADER-TDNAME    = 'Z_TEST_WRITE'.
      LS_HEADER-TDID      = 'ST'.
      LS_HEADER-TDSPRAS   = SY-LANGU.
    *-Populate details of Text
      CONCATENATE 'Shipment No   :' 'RM Ship No' INTO LT_LINES-TDLINE
      SEPARATED BY SPACE.
      LT_LINES-TDFORMAT = '*'.
      APPEND LT_LINES.
      CONCATENATE 'Bill of Lading:' '1234567' INTO LT_LINES-TDLINE
      SEPARATED BY SPACE.
      APPEND LT_LINES.
    *-Save Text
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          CLIENT          = SY-MANDT
          HEADER          = LS_HEADER
          SAVEMODE_DIRECT = 'V'
        TABLES
          LINES           = LT_LINES
        EXCEPTIONS
          OTHERS          = 1.
      IF SY-SUBRC NE 0.
        EXIT.
      ENDIF.
    COMMIT WORK and WAIT.
    ENDFORM.                    "TEST

    Hi,
      If the text is getting displayed the second time, then this should be due to delay in saving the text.
    After your COMMIT WORK AND WAIT in your report program, just put a WAIT FOR 2 SECS and check again.
    Regards,
    Suganya

  • How to use Standard text in SAP SCRIPTS

    Hi all,
    Please tell me how can we use the standard text what we have created in SO10 with sap scripts.

    Hi Gaurav
    You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPScript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
    Alternatively, you can display standard texts in your SAP Scripts using the command:
    INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
    where ZSTEXT refers to the Standard Text name.
    Reward pts if found usefull
    Regards
    Sathish:)

  • How do we identify the standard texts used in a sap script?

    Hi,
    Is there any way that i can identify the standard texts used in SAP scripts?
    Not manually going to each window in the script and checking.
    Will there be any table where I can look ?
    Thanks,
    krishna.

    Hi,
    GO to the forminfo of the sapscript in SE71..and then search for INCLUDE
    after displaying the form...utilities->form info..
    hope this works..
    Thanks
    Naren

  • Requirment Urgent: How to format standard text in Script like two columns.

    Hi,
    I want to format the text in two columns like this.
    1. This is the note. 5. This is the note.
    2. This is the note. 6. This is the note.
    3. This is the note. 7. This is the note.
    4. This is the note. 8. This is the note.
    I have to include a standard text and format like this.
    Thanks in advance.

    Hi,
    You have to create a paragraph format and create two tabs according to your column positions.
    and write.
    ,,&column1& ,,&column2&
    Regards,
    Wasim Ahmed

  • BDT and standard texts

    Hello colleagues,
    I want to maintain a standard text using s view maintained by BDT.
    The standard text is of the type you can maintain with function module 'EDIT_TEXT' or transaction SO10.
    This text has to be displayed in a view in a new tab created using BDT. (The text should be an advertisement text for the object)
    I did create the view, and in the transaction I can go to the tab where I want to maintain the text. But it turns up as just an empty screen.
    I did try to use the option in the customizing for the view in BDT: Views with the text object. This option is on the same page where you normally assign the program and the screen. Does anybody know how to use this option?
    Thanks in advance,
    ( I will reward points for helpful answers )

    Hi
    You can call standard text and text modules by the following options :
    Create One Text Window by right clicking the option.  In this general attributes tab select the 'Text Type' as 'Text Module' and it will ask for the Name of the text module.
    Press f 4 help to select the text module.  And enter the language also.
    Thanks

  • Issue in creating standard text while uploading .ITF file

    Hi all,
    I have created a shipping label using BARONE software . Barone software create .ITF which is then loaded into the standard text and finally called into the SAP SCRIPT to print the label..
    The issue is that the lines of code generated  in standard text is 16667. So while saving it says that it cannot save more than 15000 lines . Thus the standard text is not created.
    Can anyone tell how to handle this standard text which has more than 15000 lines .
    Thanks and Regards,
    Syed

    hi,
    Make sure you save your TIFF file in Packbits compressed format and in
    SE78 when uploading make sure you have the compression option ticked

  • How to use Standard Text Key in maintenance order header long text?

    Dear All,
    I have created a standard text key using transaction CA10 and I want to use this in maintenance order header long text. Is there any way to select any standard text key in maintenance order header long text?
    Regards & Thanks,
    Saif

    Hi
    To use standard texts, perform the following six steps:
    Select the maintenance order and access the operation overview screen using Goto -->Operation overview.
    You can enter standard text keys in this screen or in a detail screen for the relevant operation.
    Enter a standard text key in the appropriate field and press ENTER .
    If the text is longer that the short text line available, the field Text is selected for that operation.
    Check the long text and edit it if necessary. To do this, select the operation and choose Operation--> Long text.
    The system branches to the text editor screen. If you also entered a short text for the operation and specified that this should not be overwritten by the standard text, you will see the short text displayed in the first line of the editor. The following lines contain the standard text.
    Check the standard text and change it if necessary.
    Save the final version of the text and return to the previous screen with Goto--> Back.
    Save the maintenance order.
    Standard texts are created for your system by your system administrator using the Customizing function.
    Regards
    Makarand Gurjar

Maybe you are looking for

  • No sound while watching videos

    I finally figured out how to sync video's to my ipod,but when I go to play them,there is no sound at all.My earbuds are completely in the ipod.The video's play there's just no sound.Do any of you have any possible solutions?

  • In SD, assign programmatically an external sales doc nbr

    Hello, we have a sales document type that will be need to be externally assigned a sales document number in txn VA01.  Right now it is configured to be mandatory. The requirement is to go to txn VA01, enter the sales doc type, hit enter, and then hav

  • IDOC concept and configuration

    hi forum plssssssssss  clarify me the concept.......... if i need to send idoc from sender (SAP r/3) to Receiver (XI) i need to do the following configuration:            In the sender R/3 system i need to do the following configuration            1.

  • Update to 10.6.1 black screen at startup

    hello, I have a MBP bought in June 2007 I was trying to upgrade to 10.6.1 and now I got a black screen at startup. Only the keyboard has the backlight on. Nothing on the secreen. What should I do ? thank you

  • Jittery old home movies

    I had some very old home movies transferred from 16 mm film to DVD, at Costco. The DVD I received plays well on our DVD player and TV set. I copied the files from the DVD to my Mac, and imported the .VOB files into FCE, rendered them, did some simple