ADRS Text swaps in SAPscript Debugger

Can somebody explain this to me?
Execute form F110_IN_AVIS in the SAPScript debugger (Activate the debugger then execute a printing test)
Why do all the ADRS text ID includes change?
Here is a trace snippet:
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  FOOTER    Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  HEADER    Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  ADDRESS   Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
  /: INCLUDE ADRS_SENDER OBJECT TEXT ID ADRS
  W TD439 INCLUDE TEXT ,ADRS_SENDER ,ADRS,D is not available
  /: INCLUDE ADRS_FOOTER OBJECT TEXT ID ADRS
  W TD439 INCLUDE TEXT ,ADRS_FOOTER ,ADRS,D is not available
  /: INCLUDE ADRS_HEADER OBJECT TEXT ID ADRS
  W TD439 INCLUDE TEXT ,ADRS_HEADER ,ADRS,D is not available
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
WRITE_FORM_LINES     Lines                                     Window  MAIN      Func. SET    BODY
ND_FORM
See the ADRS_SENDER, FOOTER and HEADERs, these are nowhere in the form itself:
INCLUDE &REGUD-TXTFU& OBJECT TEXT ID ADRS that is the footer
INCLUDE &REGUD-TXTKO& OBJECT TEXT ID ADRS that is the header
INCLUDE &REGUD-TXTAB& OBJECT TEXT ID ADRS here is the sender
It swaps these out for ADRS_SENDER, ADRS_HEADER and ADRS_FOOTER.  Why and how is that?  I actually changed the header to a real text element with an ADRS ID and it still changes to ADRS_HEADER.
Try it out and experience my frustration.
Thank You

Here's why:
The program which runs when you select printing test:
RSTXFPR1
Has a form called:
SET_DEFAULT_CONTENT
Which scans includes for ADRS and replaces it with ADRS_window_name.
Amazing, but how am I supposed to test that my headers will work if it changes the names on me???
*....... Set dummy-contents for windows................................
*....... HEADER, FOOTER, ADDRESS(SENDER) ...............................
FORM SET_DEFAULT_CONTENT USING SD_WINDOW.
DATA: BEGIN OF SD_LINES OCCURS 0.
      INCLUDE STRUCTURE TLINE.
DATA: END OF SD_LINES.
DATA:
SD_TEMPLATE LIKE TLINE-TDLINE
            VALUE 'INCLUDE ADRS_<name> OBJECT TEXT ID ADRS'. "#EC NOTEXT
  CALL FUNCTION  'READ_FORM_LINES'
       EXPORTING  WINDOW    = SD_WINDOW
                  ELEMENT   = SPACE
       TABLES     LINES     = SD_LINES
       EXCEPTIONS UNOPENED  = 1
                  OTHERS    = 9.
  IF SY-SUBRC = 0.
     LOOP AT SD_LINES. CHECK SD_LINES-TDFORMAT = '/:'.
        SHIFT SD_LINES-TDLINE LEFT
              DELETING LEADING SPACE.
        IF SD_LINES-TDLINE(8) = 'INCLUDE '.
           IF SD_LINES-TDLINE CS 'ADRS'.
              SD_LINES-TDLINE = SD_TEMPLATE.
              IF SD_WINDOW = 'ADDRESS'.
                 REPLACE '<name>' WITH 'SENDER'
                                  INTO SD_LINES-TDLINE.
              ELSE.
                 REPLACE '<name>' WITH SD_WINDOW
                                  INTO SD_LINES-TDLINE.
              ENDIF.
              MODIFY SD_LINES.
           ENDIF.
        ENDIF.
     ENDLOOP.
  ENDIF.

Similar Messages

  • What is use of Read-Text  command in Sapscript  plz replay

    What is use of Read-Text  command in Sapscript  plz replay
    i m geting problem with read-text command in sapscript as will as
    perform and endperform .

    Hi Majid,
              It's a function module to read the texts from a text file. Generally it is used to retrieve the long texts.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ´
    ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:  
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    Br,
    laxmi.

  • Print text vertically in SAPScript

    Hi,
    How to print text vertically in SAPScript?
    Can we use controls for it?
    Please help its urgent.
    Thanks,
    Madhura

    You can print horizantally. using the following code
    You know the total length of your text right.
    You need to have conditions to avoid unnecessary spaces.
    If &v_text(1)& is not initial.
    ph &v_text(1)&
    endif.
    if &v_text+1(1) is not initial.
    ph &v_text+1(1)
    enddif.
    if &v_text+2(1) is not initial.
    ph &v_text+2(1)
    enddif.
    But we cant rotate letters to left . Not sure . Will explore on it and let you know.
    Reward points if useful.
    Regards,
    Nageswar

  • Problem in including text id in sapscript

    Hi,
    I am using the following command to include a text id in sapscript.
    INCLUDE &VBDKR-XBLNR& OBJECT VBBK ID Z001 LANGUAGE &VBDKR-SPRAS_VKO&
    But the text is not showing in form. Now when I debug the sap script I found that altough VBDKR-XBLNR is holding value 0060000120 but the at include commant the value passed is 60000120.
    So the text id is not found.
    How to resolve this problem.
    Regards,
    Mainak

    Solution:
    INCLUDE &VBDKR-XBLNR(K)& OBJECT VBBK ID Z001 LANGUAGE &VBDKR-SPRAS_VKO&
    see the (K) within your variable &VBDKR-XBLNR(K)&.
    this k makes him skip conversion routine which is responsible for cutting the leading zeros.
    /edit
    You can as well use VBDKR-TDNAME which is by default your invoice number WITH leading zeros.
    while VBDPR-TDNAME is your invoice number with leading zeros AND your position number right concatenated to it.
    Edited by: Florian Kemmer on Mar 4, 2009 3:43 PM

  • How do you change color of text in a sapscript?

    Hi All,
    How do you change color of text in a sapscript?
    Thanks in advance,
    sathish

    Hi,
    It is is not possible in script.
      just check out this weblog
    they have already discussed about color in sapscript.
    Re: SAPSCRIPTS IN COLOR
    Regards
    Kiran

  • Text printing in SapScript

    Hi Abapers,
    I am chaniging an existing SapScript that was not working properly. Client wants to print "Item Text" in output which is of 3 to 4 page. where as there is only one line item in PO. Also there is "Header Text"  of 1 page. Client wants to display all line items then "Item Text" should displayed. and at last the "eader Text". The Format is Like as Follows:-
    PO No.                           12.12.2006
    Vendor Name
    Country
       S.No.     Mat. Desc.                          Qty. ...............and so on..........
       1            abc                                    11 .....................
    Item Text starts from here........................
    Problem is here
    This text is of 3 page (say).
    So text starts from here and est of text goes to next page.
    Only 4 Lines are printed properly and rest of lines are not printed.
    I also checked in debuging mode.
    so attachibng the code for reference kindly go through this.
    Header Text Starts from here
       Total amt.  in words......
    FORM READ_TEXTSLO1 TABLES IN_TAB200  STRUCTURE ITCSY
                           OUT_TAB200 STRUCTURE ITCSY.
      READ TABLE IN_TAB200 INDEX 1.
      EBELN1 = IN_TAB200-VALUE.
      READ TABLE IN_TAB200 INDEX 2.
      EBELP = IN_TAB200-VALUE.
      CONCATENATE EBELN1 EBELP INTO OBJNAME.
      CLEAR WRK_IT1.
      CLEAR WRK_IT2.
      CLEAR WRK_IT3.
      CLEAR WRK_IT4.
      CLEAR WRK_IT5.
      Repeated Code
      SELECT SINGLE TDNAME INTO WRK_TDNAME FROM STXH
        WHERE TDOBJECT = 'EKPO'
        AND TDNAME = OBJNAME
        AND TDID EQ 'F01'.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            CLIENT   = SY-MANDT
            ID       = 'F01'
            LANGUAGE = 'E'
            NAME     = OBJNAME
            OBJECT   = 'EKPO'
          TABLES
            LINES    = IT_LINE.
        IF SY-SUBRC = 0.
         delete it_line where tdline EQ ' '.
    BREAK ABAP7.
         DESCRIBE TABLE it_line LINES wrk_lines1.
          LOOP AT IT_LINE.
            CLEAR WRK_TABIX.
            WRK_TABIX = SY-TABIX.
            IF WRK_TDLINE EQ ' '.
              WRK_TDLINE = IT_LINE-TDLINE.
            ELSE.
              CONCATENATE  WRK_TDLINE IT_LINE-TDLINE INTO  WRK_TDLINE
              SEPARATED BY SPACE.
            ENDIF.
            Y = STRLEN( WRK_TDLINE ).
            CALL FUNCTION 'RKD_WORD_WRAP'
                   EXPORTING
                     TEXTLINE                  = WRK_TDLINE
                     DELIMITER                 = ' '
                     OUTPUTLEN                 = 100
                  IMPORTING
                    OUT_LINE1                 = OUT_LINE1
                    OUT_LINE2                 = OUT_LINE2
                    OUT_LINE3                 = OUT_LINE3
              OUT_LINE3                 =
            TABLES
              OUT_LINES                 =
            EXCEPTIONS
              OUTPUTLEN_TOO_LARGE       = 1
              OTHERS                    = 2
            IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    *break abap7.
            CASE WRK_TABIX.
              WHEN 1 .
                WRK_IT1 = OUT_LINE1.
              WHEN 2 .
                WRK_IT2 = OUT_LINE1.
              WHEN 3 .
                WRK_IT3 = OUT_LINE1.
              WHEN 4 .
                WRK_IT4 = OUT_LINE1.
            ENDCASE.
            IF OUT_LINE3 EQ ' '.
              WRK_TDLINE = OUT_LINE2.
            ELSE.
              CONCATENATE OUT_LINE2 OUT_LINE3 INTO WRK_TDLINE
              SEPARATED BY SPACE.
            ENDIF.
          ENDLOOP.
          IF WRK_IT4 NE ' '.
            Y = STRLEN( WRK_TDLINE ).
            IF Y GT 50.
              CALL FUNCTION 'RKD_WORD_WRAP'
                       EXPORTING
                         TEXTLINE                  = WRK_TDLINE
                         DELIMITER                 = ' '
                         OUTPUTLEN                 = 50
                      IMPORTING
                        OUT_LINE1                 = OUT_LINE1
                        OUT_LINE2                 = OUT_LINE2
                        OUT_LINE3                 = OUT_LINE3
              OUT_LINE3                 =
            TABLES
              OUT_LINES                 =
            EXCEPTIONS
              OUTPUTLEN_TOO_LARGE       = 1
              OTHERS                    = 2
              IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
              wrk_it4 = out_line1.              " Change Uncommented"
              WRK_ITA = OUT_LINE1.
              WRK_ITA4 = OUT_LINE2.
            ELSE.
              WRK_ITA = WRK_TDLINE.
            ENDIF.
          ENDIF.
        ENDIF.
        CLEAR WRK_TDLINE.
        CLEAR OUT_LINE1.
        CLEAR OUT_LINE2.
        CLEAR OUT_LINE3.
        OUT_TAB200-VALUE = WRK_IT1.
        MODIFY OUT_TAB200 INDEX 1 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT2.
        MODIFY OUT_TAB200 INDEX 2 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT3.
        MODIFY OUT_TAB200 INDEX 3 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT4.
        MODIFY OUT_TAB200 INDEX 4 TRANSPORTING VALUE.
      ENDIF.
    *****************************************************************Repeated code
    Again the same code is repeated but now the TDID eq F02 in Select Query and also in READ_TEXT  Fun. Module. and now in the CASE statement next 4 lines coded as
    WHEN 1 .
                WRK_IT5 = OUT_LINE1.
              WHEN 2 .
                WRK_IT6 = OUT_LINE1.
              WHEN 3 .
                WRK_IT7 = OUT_LINE1.
              WHEN 4 .
                WRK_IT8 = OUT_LINE1.
    and also these 4 rows modified as follows
    OUT_TAB200-VALUE = WRK_IT5.
          MODIFY OUT_TAB200 INDEX 5 TRANSPORTING VALUE.
    Now each time 4 - 4 rows coded as like as above.
    upto TDID = F05
    So there are total of 20 lines.
    Now the text is of 4 to 5 page then its not printed. even 5th line is not printed. control not goes to 2nd Select Query cause the OBJECTNAME does not exist.
    <b>for more information write your Email ID . So that i can explain more.</b>
    So kindly review this and let me know what should i do ?
    Helpful answer rewarded.
    Regards
    Robin

    hi,
    <b>SAP SCRIPTS TUTORIALS</b>
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    SAP Script From the Scratch
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    http://sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://www.esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://www.esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://www.esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    Rgds
    Anver
    <b><i>if hlped pls mark points</i></b>

  • How to get a long text into the SapScript

    Hi.
    I need to read text from header field from ME21N. I use to this READ_TEXT function module, which is called from SapScript but the problem is, that this function returns me just about 80 chars and trim rest of string.
    First idea was use loop in form, but is impossible, how to solve this problem.
    Thanks

    Problem was solved :
    INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01 LANGUAGE &EKKO-SPRAS&
    Edited by: Daniel Duras on Apr 23, 2008 10:51 PM

  • Page number after printing a text element in SAPScript

    Hello to all,
    is it possible to know the page number in which SAPScript print a text element?
    Thanks and regards
    Franco

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Text problem in SAPScript

    Hello,
    i have a problem i need to print one recepit with sapscript.
    I have to made a changes in displaying the text in o/p but it is in different language i.e PT
    text to display is
    IVA NÃO REGULARIZADO – ARTº 71 CIVA
    Now if you see above in sentence we have some special characters which are not present in keyboard itself.
    Origanal language of form is DE
    Can anyone help me out in this.
    Regards,
    Vikrant

    Hi,
    Goto SE63 and translate the TEXT from one language to other.
    regards,
    Shiva

  • Text header in sapscript

    Dear all,
    I try to insert text object VBBK, ID "0002" for instance into my SAPscript form. I've succeed to do it for a given sales order (using include in SAPscript) but since the text name = my sales order, I'll find it in every sales orders. While my text header is related to only one specific sales order. I've red that using FM READ_TEXT would fix the issue. However I can not figure out how does this work with a text name which depends on the sales order number printed out.
    Any help would be welcome.
    Best regards.
    Nozome.

    Hi
    Check at runtime if VBDKA-VBELN has a value .
    If not then use a wrokarea which will always have a values of sales order number at runtime.
    ALso the sales order text should exist in database.
    Goto SE16 table STXH
    TDOBJECT - VBBK
    TDANME - Sales Order No. you are tring to Print
    TDID - 0002
    SPARS - EN
    You can cross check this using VA03 as well . If text exist then only it will print.
    If an entry does not exist here then in sapscript it will output a blank. I guess you have an entry for the Sales Order No 33333 you mentioned in earlier mail.
    Cheers

  • Print standard text in a sapscript

    hi,
    I have want to include standard text by ME32k in a sapscript. I need to include the text and the particular format. For example if I use FM READ_TEXT for text object EKKO id F02 for a particular EKKO-EBELN, the FM give me the table LINES with this text:
    TD   TDLINE
    C      K02:HAEDER NOTE
    I need to print the text "K02: HAEDER NOT" with the format C ( Centered).
    Can you help me, please?
    Thank's.

    Hi,
    Tcode SO10 can be used to attach standard text in sapscript.
    For formatting, plz check the below link
    Standard text editor SO10

  • Network preferences: symbol and text swapped

    Hello,
    On our new MacBook Pro with Mavericks the Wi-Fi symbol and Ethernet symbol are swapped with the text. After the word Wi-Fi the icon Ethernet is displayed and after the word Ethernet the icon Wi-Fi is displayed.
    How can this be put in correct order ?
    Thanks,
    Hubert

    I was actually chatting with Apple Support about exactly this problem when I found the answer while simultaneously digging around on the Internet. This discussion at the MacRumors forum has the answer:
    http://forums.macrumors.com/showthread.php?t=1533959
    To quote:
    Click the gear icon below those names and select "Rename Service" to edit the name.
    Because you can't have two things named the same thing, I started by naming the actual Ethernet service "cow". Then I correctly renamed "Wi-Fi", then I correctly renamed "Ethernet".
    In my case, this oddity showed up after migrating data from an older Mavericks Mac. Reinstalling and even Combo updating Mavericks changed nothing regarding this situation. Simply swap the service names back!

  • Trans. SO10 - Text for a SapScript

    Hi;
    I'm new with the sapscripts.
    With the trans. SO10 i've created a text in development (mand. 140), what must i do to transportate this text to Qas (mand 200) and then to production (mand 300) so it can be used for the sapscript...?.
    Thanks on advance.
    David Fúnez
    Tegucigalpa, Honduras
    Corp. mandofer/Asin

    Text Elements are a component/part of the SAP script and are not individual ABAP objects within the SAP environment hence they cannot be transported independently.
    You would need to make changes in your text elements in the SAP script which would result in the SAP script being saved under a transport and moving the transport across the landscape would result in the text elements also getting transported.
    In short: Move SAP script - to move text elements.
    Regards

  • How to Print Header text in PO SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window. I created a a perform and call it from the Script and read the heder text by using FM Read_text
    DEFINE &TEXT1& = ' '
    PERFORM GET_TERMS IN PROGRAM ZMM_MEDRUCK_ROUTINE
    USING &EKKO-EBELN&
    CHANGING &TEXT1&
    ENDPERFORM
    PROTECT
    &TEXT1&
    ENDPROTECT
    but while returning I am getting only one line. Can any body suggest me how I can read the Header text in PO script. Please provide the sample Code.
    Regards
    Sony

    Hi,
    Use this Function module 'READ_TEXT'
    T_lines contains the header text, you can loop it and display it in sap script
    Function module to read the header text
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = 'F01'
          language                = sy-langu
          name                    = ekko-ebeln
          object                  =  ekko
        TABLES
          lines                   = t_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
    Regards
    Krishna

  • Long Text Printing in SAPSCRIPT

    Hi Experts,
       I got one requirement that i the long text which user will enter that
    has to be displayed on the layout of one window not main.
       The text comes from FB03 application, that has to be displayed.
       I want to know how to do this, i tried to use the hardcoded RSTXT-TDNAME text in my script as define &x& = 'AU1018000010152008001'
    and then include command i used.
       It will be okay for one item, if there are multiple items then it will not be worked.
       so please give me an idea to proceed.
    Regards,
    sivananda P.

    hi,
           it_tline like tline occurs 0 with header line,
           v_info(50),                                                "#EC
        clear it_tline.
        refresh it_tline.
        clear v_info.
        v_name = it_out-ebeln.
        call function 'READ_TEXT'
          exporting
            client                  = sy-mandt
            id                      = 'F05'
            language                = sy-langu
            name                    = v_name
            object                  = 'EKKO'
          tables
            lines                   = it_tline
          exceptions
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            others                  = 8.
        if sy-subrc eq 0.
          read table it_tline.                                                         "#EC *
          v_info = it_tline-tdline(50).
        endif.
    if helpful give the points,
    Regards,
    Venkat

Maybe you are looking for

  • Change the transaction status when creating a follow up activity

    Hello All We need to change the activity status if a follow up document is created from. E.g. If an activity is created type 001  then a follow-up activity type 003 as a follow up document from 001 the system automatically changes the activity status

  • I need some help with updating my MUVO

    Hi guys! I have gb muvo 200. At the moment the veersion of my firm ware is . 02. 0. I want to uggade it to a newer one (_05_02). I downloaded it but when I start it it says put you mp3 player in reocvery mode. I knew how to do that and I did it. But

  • 27" i7 - HDCP issue in Windows 7 64Bit

    Hi, I have a LG External Blu Ray Writer connected via USB. When I installed Windows 7 (Bootcamp) 64 Bit, everything appeared to work - mouse, display, sound etc. However, when I attempt to play a Blu Ray I get a HDCP error. It advises me to install a

  • Rosetta & Universal Apps - Identify?

    I recently heard that Lion won't support Rosetta apps. Ever since I started using my new Mac Pro, I've continued use of old apps. Now I'm not sure which are rosetta and which are universal. Is there a way to indentify one from another? If I'm going t

  • Keyboard shortcut not working - nonbreaking hyphen - help

    Does anyone know how to fix this problem? I can't get the keyboard shortcut for nonbreaking hyphen to work. I can get the nonbreaking hyphen to insert if I insert it via the type menu but menus are such time wasters. I have even tried to make a new a