How to Print Multiple Languages in SAPScript ?

Hi all,
         I want to print English and Chineese in the Same form (in SAPScript ). Please throw some light on this. Any reply is appreciable and rewarded.
Thanks in Advance
Jai

Hi Jai,
so even if you login in EN you want to display the name in ZH Chinese and EN as well.
so in that case you wud have to make use of PERFORM command in Script in which you will retrieve the name based on the language(provided its maintained for both the languages in the Standard Table where you are fetching it from because its not the case of Translation).
Perform get_name in program <xyz>
using &kna1-kunnr&
changing &name_zh&
changing &name_en&
Program <xyz>
form get_name.
"Here comes the code to read the using parameters in the perform command in script, KNA!-KUNNR
  select single name1
             into wa_name_en   "Pass this to name_en
from kna1
where kunnr = = <kna1-kunnr>
and    spras = 'EN'.
select single name1
             into wa_name_zh   "Pass this to name_en
from kna1
where kunnr = = <kna1-kunnr>
and    spras = 'ZH'.
Here comes the code to pass the changing parameters to script
endform.

Similar Messages

  • How to print multiple items in SAPScripts

    Hi gurus,
    I have a list of items to print out in SAPScript but I can implement it. I've searched this forum for over a day and I can't find the correct answer. I post my code here. Hope you can help me. Thanks in advance.
    __P/S:__ I found that someone here solved this by using index. Can you tell me how to implement it?
    DATA: BEGIN OF ITAB OCCURS 0,
           Elements here
          END OF ITAB.
    DATA: BEGIN OF XTAB OCCURS 0,
           Elements here
          END OF XTAB.
    DATA: WA_XTAB LIKE XTAB.
    DATA: ZOPTIONS LIKE ITCPO OCCURS 0 WITH HEADER LINE.
    DATA: ZPAGE TYPE I.
    START-OF-SELECTION.
      PERFORM PREPARE.
      PERFORM FORM_OPEN.
      PERFORM FORM_WRITE.
      PERFORM FORM_CLOSE.
    FORM PREPARE.
    Add data to itab & xtab.
    ENDFORM.
    FORM FORM_OPEN.
      CLEAR : ZOPTIONS.
      ZOPTIONS-TDDEST    = 'LOCLSVC'.
    ST_OPTIONS-TDPRINTER =
      ZOPTIONS-TDPREVIEW = 'X'.
      ZOPTIONS-TDIMMED   = 'X'.
      ZOPTIONS-TDDELETE  = 'X'.
      ZOPTIONS-TDPROGRAM = SY-REPID.
      ZOPTIONS-TDTELELAND = 'VN'.
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                DEVICE   = 'PRINTER'
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
                OPTIONS  = ZOPTIONS
           EXCEPTIONS
                CANCELED = 1
                DEVICE   = 2
                FORM     = 3
                OPTIONS  = 4
                UNCLOSED = 5.
      IF SY-SUBRC <> 0.
        MESSAGE E001 WITH 'Output was cancelled'
                          'by the user.'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " FORM_OPEN
    FORM FORM_WRITE.
      CLEAR ZPAGE.
      LOOP AT ITAB.
        ZPAGE = ZPAGE + 1.
        PERFORM FORM_START.
        PERFORM WRITE_TITLE.
        PERFORM END_FORM.
      ENDLOOP.
    ENDFORM.
    FORM FORM_START.
      CALL FUNCTION 'START_FORM'
           EXPORTING
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
               PROGRAM  = SY-REPID
           EXCEPTIONS
                FORM     = 1
                FORMAT   = 2
                UNENDED  = 3
                UNOPENED = 4
                UNUSED   = 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.
    ENDFORM.
    FORM WRITE_TITLE.
    DATA: NCOUNT TYPE I,
          NI TYPE I.
        NI = 1.
        DESCRIBE TABLE XTAB LINES NCOUNT.
        DO NCOUNT TIMES.
          CLEAR WA_XTAB.
          READ TABLE XTAB INTO WA_XTAB INDEX NI .
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'ITEM'
                TYPE    = 'BODY'
                WINDOW  = 'ITEM'.
          NI = NI + 1.
        ENDDO.
    ENDFORM.                    " WRITE_TITLE
    FORM END_FORM.
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SPOOL_ERROR              = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " END_FORM
    FORM FORM_CLOSE.
      CALL FUNCTION 'CLOSE_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SEND_ERROR               = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " FORM_CLOSE

    Hi Le Khanh Vinh ...
    In Script have You declare Two pages... Let say there is Two pages with names like ..FIRST and Second.
    In Standard Attributes of First Page give Next Page as Second.
    and for Second Page Standard Attributes give Next Page as Second only.. This will resolve for more Line Items thats it..
    Any Info need plz do reply ..
    Regards,
    Sg

  • How to print multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

  • How to print multiple copies on one page ?

    How to print multiple copies of one document on one page ?
    in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
    how do I make the same operation in Indesign.
    thanks

    Hi, Peter S.
    >I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
    * It's just an alternative to copy/paste and step/repeat.
    * For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
    Regards,
    Peter Gold
    KnowHow ProServices

  • How to support multiple languages on logon screen (Using EP)?

    Hi Everyone,
       Just i want to know, how to support multiple languages in Logon Screen Using EP?
    Thanks & regards,
    Venkatesh.K.

    Hi,
    Transac SMLT :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/163d38c2113265e10000009b38f889/frameset.htm
    Import de language:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/163d38c2113265e10000009b38f889/frameset.htm
    Hope it help's

  • How to support multiple languages on logon screen in EP?

    Hi All,
       Just i want to know,  how to support multiple languages in logon screen in EP?

    Hi,
    Logon screen can be customized. This .<a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5232">url</a> might help you do this.
    Please check out this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5232">blog</a> on language display of logon screen.
    Another <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3680">blog</a>.
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1436">Another</a> one here.
    Regards,
    Sujana

  • How to install multiple language version of photoshop within creative cloud?

    How to install multiple language version of photoshop within creative cloud?

    You should contact Adobe Support by phone or by chat and get their help in resolving your problems.
    Phone support | Orders, returns exchanges
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    is this a windows in bootcamp question ?

  • How to print hard-coded data in multiple language in sapscript.

    Hi All,
    How to print hard-coded data in multiple language in sap-script, here the requirement is when printing the output
    we can see the window heading, description which are mostly hard-coded here I want to print these in both language as fallows,
    Goods to be delivered: = Morada de Entrega:
    Total net value excl. tax = Valor Total (IVA não Incluído)
    Description = Descrição
    Item = linha
    here I want to print in both languages like----       Goods to be delivered:/ Morada de Entrega:
    and the above headings in English are hard-coded.
    Kindly suggest me on this.
    Thanks in advance.
    Arun.

    Hi Arun,
    Use Standard text ade those text elements. Then use those in SAP script using different languages.
    Regards,
    Amitava

  • Sapscript -how to use  multiple language ?

    hi all,
      can we use multiple languages in a script. i mean  thet can we print a data from a particular text element
    in different languages.
    is it possible ?
    and also how to handle differnt currencies in sapscript?

    Hi,
    when you use the syntax INCLUDE in sapscript, you could set the language with the command LANG. Have a look to the SapScript documentation.
    Example from the help.sap.com :
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'
    The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.
    For the currency what is the problem ?
    the decimals positions could be manage with the WRITE ... CURRENCY.
    the conversion must be made by SAP itsel, but you could use the function CONVERT_TO_LOCAL_CURRENCY.
    Rgd
    Frédéric
    Message was edited by: Frédéric Girod

  • How to print multiple emails on one page

    How do I print multiple emails on a single page?

    Thanks, but fumbling around I think I found a better solution.
    All of the incoming e-mails have a see more from...." line in blue type at the bottom. When I click on the"See more from…"  line it opens up the entire chain of discussion which can then be printed on a single page. Exactly what I've been searching to do.

  • How to print multiple copies of same image (with specific fixed dimensions) on single page

    I am using Photoshop Elements 10 on Win 7 PC.  I am trying to print multiple copies of one image on a single 8.5x11 sheet of paper? The images are artwork for buttons (to be used in button-making machine) so the dimensions must be exact on the duplicated images.  When I select Picture Package, the images are resized to fit the dimensions in the picture package. When I select Contact Sheet, the images are resized to fit the number of columns I selected.  Neither is acceptable.  How can I repeat the same image on a single piece of paper without having the system re-size the image?  I know that I can manually create a new PSE file and manually insert the images into this file.  This is what I have been doing as a work-around.   But I would hope there is a better/faster way.
    Thank-you!

    A variation of hatstead's method where the pictures are precisely aligned:
    1. Add the picture to the blank file as hatstead described. Use the Move tool to position the picture in the upper left corner.
    2. Duplicate the layer. Use the arrow keys (NOT the mouse) to move the new layer to the right.
    3. Repeat step 2 until the row is filled:
    4. Merge Down the 3 layers into one. Alternatively, link the 3 layers and do a Merge Linked as in this example. The end result is the pictures in the row are on one layer:
    5. Duplicate the layer and use the arrow keys to move this down to the 2nd row.
    6. Repeat step 5 to create additional rows.
    7. Finally, to center the whole thing on the sheet, link all the row layers and position with the arrow keys.
    Note that you can also custom-make your own Picture Package. Instructions for this should be somewhere in Help.

  • How to print multiple mail forms in a single run?

    How can multiple, personalized letters be printed out from SAP CRM 7.0?
    Business requirement:
    When for example entrance tickets for a trade fair are sent to a group
    of customers, the accompanying letters are to be printed out of the CRM
    system.
    In SAP CRM 5.0 this was done by creating a marketing campaign, linking
    a target group & assigning a mail form to it.
    By selecting the communication medium "Printer" it was possible to
    print multiple letters in one run and send these documents by mail (not e-mail).
    The quantities of letters that have to be sent are too small to
    outsource the job to an external service provider (e.g. a printing house).
    In the latest version of SAP CRM the communication medium "Printer" is
    however no longer available in marketing campaigns.
    Does anyone know how this requirement can be met in SAP CRM 7.0?
    Thanks in advance for your reply,

    Thanks for your reaction.
    We considered working this way, but the idea was dropped because the quantities of letters that have to be sent are too large (several hundreds) & also because no follow-up of these activities is needed.

  • How to print currency symbol in SAPScript

    Hi,
    How to print different currency symbol in SAP?
    The requirement is that the SAPScript should print the currency symbol along with the currency code.
    i.e. USD ($)
    The currency can be any foreign currency.
    Is there any table where i can get currency symbol or is there any way i can print this. I am working in 4.6C.
    Please help.
    Thanks,
    Pratik

    Hii
    When the user has to insert a particular symbol, from menu:
    Insert->Character->Displayble Characters:
    Here in the input field insert <156> and then press enter

  • How to print multiple photos in Photo Papers Plus?

    Hi, may I know how to print out multiple photos (let's say 2 photos) in Photo Paper (Mine is Photo Paper Plus Semi-gloss, 4*6 inch), without border (Borderless). Thank you.

    I don't have your particular program, but many use Page Setup to configure the layout of printing from the File menu.    If you can save as PDF you can configure Preview to change the page layout that way.

Maybe you are looking for

  • Down Payment Posting

    Help On this please. 1. Billing plan is set up in the sales order 2. Sales Order is saved 3. VF01- created the down payment request 4. Posted Down Payment F-39 5. In the sales order  document flow- shows accounting document generated and cleared Ques

  • HOW TO GET THE GRAND TOTALS IN  ALV USING GRID FM

    Hi, I would like to know that am getting the sub totals using the ALV_GRID FM, But I need Grand totals how i can get and what is the paramater to keep = x to get this Grand totals\.

  • Forwarding no longer puts the sender's name/number

    I think this may be due to a recent upgrade but undetected until now, but when I used to forward a text message it would say John(sender) said: blabla msg... now it only forwards the message, how come?

  • XP dying, going crazy, and corrupting data when network is out

    Here's my setup: Airport extreme main -> airport extreme remote -> imac intel core2duo -> parallels -> Windows XP Service pack 2 Connected to the imac is a Fax 2850 Brother. bonjour installed on XP Print sharing enabled on the same mac. When the netw

  • Selection in the table

    Hi, Our senerio is as follows: We need to capture the single selection in the table. There are three options: 1. No element in the Table(no selection). 2. single selection(one row selected). 3. multiple selection(more than one row selected). How can