Tcode SO10

Hi Experts,
What is the purpose of using the transaction SO10?
What is the advantage of using SO10 for smart forms instead of hard coding the text?
Thanks,
Vitz
Search with keyword SO10 and Follow the Rules
Edited by: Vijay Babu Dudla on Jan 15, 2009 4:29 AM

Hi ,
SO10 is the transaction code for creation of standard text,standard test is mainly used in script and smart form ,if some text is repeated in script r smart form no need to write every time in the layout ...
just create the standard text just call the in the layout... like
/:INCLUDE &GD_TEXT& OBJECT TEXT ID &GD_ID& LANGUAGE &GD_LANG&
GD_TEXT = Standard text name created within transaction SO10
GD_ID   = Standard text ID set in transaction SO10
GD_LANG = Standard text language set in transaction SO10 
Regards,
Madhu

Similar Messages

  • Regarding TCode SO10 and table STXH

    Hi friends,
      I am having a doubt in SO10.
    I am having the data in the table STXH as follows
    TDOBJECT  : BUT000
    TDNAME     : 2000174                                                            
    TDID           : ZDD1
    TDSPRAS   : E
    in SO10 i am putting the same value as follows,
    Text Name    :     2000174
    Text ID          :    ST   Standard text
    Language      :       EN
    But i am not getting any value. Why? Any wrong with my process? please clarfy me.
    Thanks in advance
    Regards,
    Srikanth. S

    Thanks Seshu for your reply,
    One thing i want to know. Narmally if a sales from the transaction VA01 the data will be getting update. Then the updated order from VA02/VA03 we can see instead of opening the table.
    The same way from which transaction the table STXH getting updated. How to view the data via a transaction?
    You might understood my question. Pls clarify.
    Thanks and regards
    Srikanth. S

  • Reg : usage of standard Texts(SO10)

    Hi all of u,
      I want to use standard texts ,which were created under Tcode SO10, alone to display output without using them in any of the script or smartforms.Also i want to nw that , is it possible to use Variables inside standard text,which r really exist in report,report is through which i want to make use of ths Texts .The variable are / shuld be  local to this program...
    Kindly guide me ....
    This will simplifies my work ...
    Thanks in advance,
    Regards,
    Chandra.V

    Hi Chandra Shekar,
    standard text with variable
    SO10 doubt : standard Text
    Regards,
    Sravanthi

  • Printing text in text area in so10(standard text)

    Dear all,
    I need to print a text in text area.i mean i need a box in which i can fill text in standard text (tcode-so10).Using box command we will be doing in script.
    But is there any possibility that i can solve the issue in so10 itself as i am generating offer letter in pb60 it takes my standard text there itself.So is there any solution for this issue?
    This issue is very urgent.
    Thank you,
    bhavani.

    Hi
    KEEP a BREAK-POINT and debug the internal table lines how it is coming
    some overlap must be happening ..check.
    Also check the code where you are getting this text into internal table.
    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Reward points for useful Answers
    Regards
    Anji

  • Standard texts(SO10)

    HI gurus
    Whats the exact use of maintaining stabdard texts using tcode SO10. where it is reflected?
    Regards,
    prasad

    Hi,
    There is no need of ABAper we can insert the text from SO10.
    Generally we use these texts as per our  equirement, for Contract where The Header Text Contains N-number of pages, and for each Contract the Description Varies..
    One way to address this requireemnt is that I maintain one Text in SO10,and I will use it for one Contract..
    For Another Contract I will Copy this text and Make Some changes and Save it in SO10 with diff name..
    So that as per my requirement I will Insert this text either at item Level Or Header Level..
    So that I can get this text in my Print pre-view...
    It allows to save lot of time from typing again & again..
    Thx
    Raju

  • Regarding SO10

    Hi Guys,
                 I went into tcode SE75 to check whether the object VBBK exists or not.
    I have find the object available.
    But when I come into TCODE SO10 and checking for values
    1)Text Name
    2)Text Id          both of them in F4 help I am unable to see th values such as 0001,0002.
    How to get or check them.
    I dont want to use FM(READ_TEXT)
    Thanks,
    Prasad.

    In SO10 tcode you wont find the 0001 0002 text id's, you will find only TEXT, ADRS like
    if you create the text like VA02 , MM02 these text are stored in table STXH, there you will find the 0001,0002 with VBBK .

  • Email with text attachment with line width 1250

    Dear all,
                 I want to send the email with text attachment whose line width in text file is 1250. Kindly let me know how to send email attachment with more than 255 line width.
    Regards,
    Manoj
    Moderator Message: Frequently Asked Question. Please search for available information before posting.
    Edited by: kishan P on Apr 29, 2011 2:48 PM

    Hi,
    What ever text you are sending in the email, create a standard text for it using tcode SO10. In the program use the FM READ_TEXT to get the data into internal table which will be of length 132 char. If you want line widht of 255 chars convert using FM SX_TABLE_LINE_WIDTH_CHANGE as below,
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_dst              = '255'
        TABLES
          content_in                  =  it_data
          content_out                 = it_mess_att
        EXCEPTIONS
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
    Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send email.
    Hope this will help you.
    regards,
    Tulasi.

  • Mail program doubt

    i have used this program for sending mail through SAP.It has two options.First for sending as an html attachement,second for plain text inline with the body of the message.Actually i need the message in html format inline with the body of the message itself(not as an attachement)
    In simple words the body of the message want to be in html format,not an attachement..
    *& Report  ZMAIL                                                       *
    report  zmail                                   .
    tables: soos1.
    *type-pools: sbdst.
    parameters: report like varis-report obligatory.
    parameters: variant like varis-variant obligatory.
    parameters:reptitle like soos1-recrem  obligatory.
    select-options: recnam for soos1-recrem  obligatory.
    *{   INSERT         EDPK900415                                        1
    selection-screen skip 1.
    selection-screen begin of block b1 with frame title text-001.
    selection-screen begin of line.
    parameters: r1 radiobutton group g1.
    selection-screen comment:5(40) text-003 for field r1.
    selection-screen position 35.
    selection-screen end of line.
    selection-screen begin of line.
    parameters: r2 radiobutton group g1.
    selection-screen comment: 5(40) text-002 for field r2.
    selection-screen end of line.
    selection-screen end of block b1.
    *}   INSERT
    data: begin of html_tab occurs 0.
            include structure w3html.
    data: end of html_tab.
    data : it_pack_list  like soxpl occurs 0 with header line.
    data: begin of html_tab_converted occurs 0,
                line(255) type c,
              end of html_tab_converted.
    data:  listobject like abaplist occurs 20 with header line.
    data:  abap_list like abaplist occurs 20 with header line.
    data: icontab(32) occurs 10 with header line.
    data: lineno type i, length type i, size type i,
          l_filename like rlgrap-filename.
    data: icon_wa  type icon,
          internal type icon-internal,
          existing type c.
    data: my_bds type ref to cl_bds_document_set,
          key    type sbdst_object_key,
          files  type sbdst_files,
          wa     type bapifiles.
    data: filename type string,
          filefilter type string,
          path type string,
          fullpath type string.
    data: user_action type i.
    data: cur_guicopdepage(4) type c.
    data: gui_codepage(4) type n,        " added for message 500824
          is_unicode type rststype-sel_ok.
    data: convert_output type xstring,
          convert_buffer type xstring.
    data i type i.
    data tablength type i.
    data dummy type i.
    data list_index like  sy-lsind .
    data begin of new_pack_list occurs 10.
            include structure soxpl.
    data end of new_pack_list.
    data : owner like soud-usrnam.
    data: fg_sysdli like sonv-flag,
    fg_folrg like soxdl-folrg,
    dli_tab_save like soxdl occurs 20 with header line.
    data: rec_count like sy-tabix.
    data: object_type like sood-objtp value 'RAW'.
    data: object_hd_change like sood1 occurs 0 with header line.
    data: objcont like soli occurs 0 with header line.
    data: attcont_tab like soli occurs 0 with header line.
    data: atthead_tab like soli  occurs 0 with header line.
    data  so_ali like soli occurs 100 with header line.
    data  document_data like sodocchgi1.
    data  msg_text(80) type c.           "Message text
    data:  length type i, size type i.
    data  profile like soprd.
    data  subrc like sy-subrc value 0.
    data  so_ali_hex type standard table of solix.   "note 604603
    data: objpara like selc occurs 0 with header line.
    data: objparb like soop1 occurs 0 with header line.
    data: receivers like soos1 occurs 0 with header line.
    *data: receivers like soos5 occurs 0 with header line.
    data: r_dliq type c. "Shared Distrbution List
    data: r_dlip type c. "Private Distrbution list
    data: rep_title(50) type c. "Report Title
    data : begin of dis_lst occurs 10. "Internal table to store DL
            include structure sodm1.
    data : end of dis_lst.
    data : begin of listtab occurs 100. "Internal Table for List CONTAINER
            include structure abaplist.
    data : end of listtab.
    data : begin of downtab occurs 1,
    line(255),
    end of downtab.
    data ls_cnt type n.
    data:begin of it_mailid occurs 0,
         mailid(100), "  TYPE ZSENDINT_MAILID-MAILID,
         end of it_mailid.
    data c1.
    c1 = ' '.
    shift reptitle left deleting leading c1.
    *SELECT MAILID FROM ZSENDINT_MAILID INTO TABLE IT_MAILID WHERE SUBJECT = REPTITLE AND FLAG <> 'X'.
    "IF SY-SUBRC = 0.
    "CLEAR RECNAM.
    "REFRESH RECNAM.
    "LOOP AT IT_MAILID.
    "MOVE 'I' TO RECNAM-SIGN.
    "MOVE 'EQ' TO RECNAM-OPTION.
    "MOVE IT_MAILID-MAILID TO RECNAM-LOW.
    "APPEND RECNAM.
    "ENDLOOP.
    "ENDIF.
    *S.KARTHIKRAJA 07.10.2006
    call function 'LIST_FREE_MEMORY'
      tables
        listobject = listobject
      exceptions
        others     = 1.
    submit (report)
    using selection-set variant
                     exporting list to memory and return.
    import listobject from memory id '%_LIST'.
    if listobject[] is initial.
      exit.
    endif.
    call function 'WWW_HTML_FROM_LISTOBJECT'
           exporting
                  REPORT_NAME   =
                template_name = 'WEBREPORTING_REPORT'
           tables
                html          =  html_tab
                listobject    =  listobject
                listicons     =  icontab.
    call function 'LIST_TO_ASCI'
      exporting
        list_index         = -1
      tables
        listasci           = downtab
        listobject         = listobject
      exceptions
        empty_list         = 1
        list_index_invalid = 2
        others             = 3.
    call function 'TABLE_COMPRESS'       "Schneller Tabellencopy
          tables
               in         = listobject
               out        = so_ali.      "note 604603
               out        = so_ali_hex.   "note 604603
    call function 'SO_SOLIXTAB_TO_SOLITAB'           "note 604603
         exporting
              ip_solixtab = so_ali_hex[]
         importing
              ep_solitab  = so_ali[].
    call function 'SO_DLI_LIST_READ_XDL'
    exporting
    private = 'X'
    public = 'X'
    subscript = 'X'
    tables
    dli_display_tab = dli_tab_save
    exceptions
    communication_failure = 1
    dl_list_no_entries = 2
    owner_not_exist = 3
    system_failure = 4
    x_error = 5
    parameter_error = 6
    others = 7.
    call function 'SO_DLI_EXPAND'
    exporting
    system_dli = fg_sysdli
    convert = 'X'
    tables
    member = dis_lst
    objpara = objpara
    objparb = objparb
    exceptions
    active_user_not_exist = 1
    communication_failure = 2
    component_not_available = 3
    dl_name_not_exist = 4
    folder_not_exist = 5
    folder_no_authorization = 6
    forwarder_not_exist = 7
    object_not_exist = 8
    object_no_authorization = 9
    operation_no_authorization = 10
    owner_not_exist = 11
    parameter_error = 12
    recurrency_exist = 13
    substitute_not_active = 14
    substitute_not_defined = 15
    system_failure = 16
    x_error = 17
    others = 18.
    refresh receivers.
    clear receivers.
    move sy-datum  to receivers-rcdat .
    move sy-uzeit  to receivers-rctim.
    refresh object_hd_change.
    object_hd_change-objla = sy-langu. "Language
    object_hd_change-objcp = ' '. " Object can be changed byUSER
    object_hd_change-objsns = 'F'. " Msg Sensitivity private orbusiness
    object_hd_change-objdes = reptitle.
    object_hd_change-objnam = object_hd_change-objdes.
    append object_hd_change.
    if r1 = 'X'.
      move html_tab[] to objcont[].
    else.
      move downtab[] to objcont[].
    endif.
    describe table objcont lines i.
    it_pack_list-head_start = 1.
    it_pack_list-head_num = 0.
    it_pack_list-body_start = 1.
    it_pack_list-body_num = i.
    it_pack_list-OBJTP = 'RAW'.
    move variant to it_pack_list-objnam.
    move variant to it_pack_list-objdes.
    move 'HTM' to it_pack_list-file_ext.
    append it_pack_list.
    loop at html_tab.
      call function 'SCP_TRANSLATE_CHARS'
        exporting
          inbuff           = html_tab
          outcode          = gui_codepage
          csubst           = 'X'
          substc_space     = 'X'
          substc           = '00035'
        importing
          outbuff          = convert_output
        exceptions
          invalid_codepage = 1
          internal_error   = 2
          cannot_convert   = 3
          fields_bad_type  = 4
          others           = 5.
      concatenate convert_buffer convert_output into convert_buffer in
      byte mode.
    endloop.
    i = 0.
    describe field html_tab_converted length tablength in byte mode.
    while i < xstrlen( convert_buffer ).
      dummy = xstrlen( convert_buffer ) - i.
      if tablength > dummy.
        html_tab_converted-line = convert_buffer+i(dummy).
      else.
        html_tab_converted-line = convert_buffer+i(tablength).
      endif.
      i = i + tablength.
      append html_tab_converted.
    endwhile.
    receivers-sel = 'X'.
    receivers-sndex = ' '. "
    receivers-sndpri = '1'. "Priority of the message
    receivers-deliver = ' '.
    receivers-not_deli = ' '.
    receivers-read = ' '.
    receivers-recnam = 'U-'.
    receivers-mailstatus = 'E'.
    receivers-sortclass = '5'.
    receivers-recesc = 'U'. " U means Internet Address
    receivers-SAP_BODY = 'X'.
    receivers-sndart = 'INT'.
    loop at recnam.
      receivers-adr_name = recnam-low.
      receivers-recextnam = recnam-low.
      append receivers.
    endloop.
    owner = sy-uname.
    if r1  = 'X'.
      call function 'SO_OBJECT_SEND'
      exporting
    object_hd_change = object_hd_change
      object_type = object_type
      outbox_flag = 'X'
      owner = owner
      sender = sy-uname
      tables
      receivers = receivers
    packing_list = it_pack_list
      att_cont = objcont
      att_head = atthead_tab
      exceptions
      active_user_not_exist = 1
      communication_failure = 2
      component_not_available = 3
      folder_not_exist = 4
      folder_no_authorization = 5
      forwarder_not_exist = 6
      note_not_exist = 7
      object_not_exist = 8
      object_not_sent = 9
      object_no_authorization = 10
      object_type_not_exist = 11
      operation_no_authorization = 12
      owner_not_exist = 13
      parameter_error = 14
      substitute_not_active = 15
      substitute_not_defined = 16
      system_failure = 17
      too_much_receivers = 18
      user_not_exist = 19
      x_error = 20
      others = 21.
    else.
      call function 'SO_OBJECT_SEND'
       exporting
      object_hd_change = object_hd_change
       object_type = object_type
       outbox_flag = 'X'
       owner = owner
       sender = sy-uname
       tables
       objcont = objcont
       receivers = receivers
       exceptions
       active_user_not_exist = 1
       communication_failure = 2
       component_not_available = 3
       folder_not_exist = 4
       folder_no_authorization = 5
       forwarder_not_exist = 6
       note_not_exist = 7
       object_not_exist = 8
       object_not_sent = 9
       object_no_authorization = 10
       object_type_not_exist = 11
       operation_no_authorization = 12
       owner_not_exist = 13
       parameter_error = 14
       substitute_not_active = 15
       substitute_not_defined = 16
       system_failure = 17
       too_much_receivers = 18
       user_not_exist = 19
       x_error = 20
       others = 21.
    endif.
    commit work.
    call function 'SO_DEQUEUE_UPDATE_LOCKS'.

    i have not gone thru your source code fully.
    maintain the text in Tcode SO10.
    use the fn module READTEXT* to read the contents of the text.
    cheers
    jayanthi.K

  • How to print the Terms and Condition page ine the sap-script

    Hi experts,
                             i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages)  i have called the hard coded text(i.e so10 text), but when i am displaying the output  data get printed in the first page but i am getting the second page heading on the top of  the terms and condiions page. In all the three pages i  have the same main window, if i  make change in any window i will affect all the other main  windows.  so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
    like this i have called in the MAIN WINDOW
    /E : LAST ( IN ALL THREE PAGES)
           INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
    IN THE TCODE SO10
    NEW PAGE TERMS.
    1) TERM MS AND CONDITONS  TEXT.................................................
    FIRST->NEXT, NEXT->NEXT,,   TERMS--->TERMS.

    Hi,
    1. Create a new page by Name : LAST
    2. Identify the text element which will be the last element in the form in the debug mode.
    Mostly Ex: SUM, TOTAL, LAST etc.,
    3. the page linking should be
    First --> Next
    Next --> Next
    4. In the Text element identified in the step 3.
    Write the following code
    /: NEW PAGE  LAST
    /: INCLUDE the standard text created for the terms and conditions in SO10
    Check the syntax for the command but the logic will be the same.
    It should resolve your problem.

  • Can we print header text in a tabular format...? urgent

    Hi,
    In the below program i need the text type payment history in a proper format.so plz help me regarding this.
    this a just a test program,you just execute this program.its running.
    i am feching the text payment history using the function module READ_TEXT.
    GO TO (T.CODE IS VA42).-> GIVE A CONTARCT NUMBER THEN TEXT TYPE IS PAYMENT HISTORY. UNDER THIS TEXT TYPE WE HAVE ATEXT LIKE THIS:
    Due date Invoice Amount Invoice no. Status Timing
    8/1/2005 2,486.667.00 9887767798 Paid sept-Dec 05
    12/1/2005 2,567,778.00 987662156 paid Jan-apr 06
    i fectch all this by using read_text function module in the table t_item.(plz see in below program)
    now the requirement is we want to print this payment history text as a proper format i.e in a tabular format...so is it possible....
    actualy, we r not printing in the output screen.
    we generate a flat file in this payment history is printed as a tabulr format.
    can it is possible...if it plz reply me.
    REPORT YTEST_ADD_DAYS_TO_DATE .
    TABLES :tline.
    TABLES :
    vbrk,
    vbrp,
    vbpa,
    kna1.
    CONSTANTS :
    c_re TYPE vbpa-parvw VALUE 'RE' . "Bill-to-Party
    data: l_flag type c value cl_abap_char_utilities=>horizontal_tab.
    *parameters: new_date type sy-datum.
    data: timing type sy-datum.
    *new_date = new_date + 31 .
    *write: / new_date.
    *CALL FUNCTION '/BEV4/PLPS__ADD_MONTH_TO_DATE'
    EXPORTING
    months = '01'
    olddate = '20070101'
    IMPORTING
    NEWDATE = timing.
    Write : / timing .
    write: / sy-datum . .
    CONSTANTS :
    c_vbbk TYPE thead-tdobject VALUE 'VBBK' ,
    c_zi03 TYPE thead-tdid VALUE 'ZI03' .
    Types:
    BEGIN OF ty_item ,
    Pay_history(1000) TYPE c ,
    END OF ty_item .
    DATA :
    t_item TYPE STANDARD TABLE OF ty_item ,
    w_item TYPE ty_item ,
    lt_item TYPE ty_item ,
    t_tline TYPE STANDARD TABLE OF tline ,
    w_tline TYPE tline ,
    t_tlines TYPE STANDARD TABLE OF tline-tdline ,
    w_tlines TYPE tline-tdline .
    Type Definition *
    Invoice header and item table
    TYPES :
    BEGIN OF ty_vbrk ,
    vbeln TYPE vbrk-vbeln , " Billing Document
    fkart TYPE vbrk-fkart , " Billing type
    fkdat TYPE vbrk-fkdat , " Billing Date
    zterm TYPE vbrk-zterm , " Payment key
    netwr TYPE vbrk-netwr , " Amount due
    END OF ty_vbrk ,
    BEGIN OF ty_vbrp ,
    vbeln TYPE vbrp-vbeln , "Billing Document
    posnr TYPE vbrp-posnr ,
    vgbel TYPE vbrp-vgbel ,
    vgpos TYPE vbrp-vgpos ,
    aubel TYPE vbrp-aubel , " Sales Document
    aupos TYPE vbrp-aupos ,
    matnr TYPE vbrp-matnr ,
    arktx TYPE vbrp-arktx ,
    END OF ty_vbrp ,
    Partner table
    BEGIN OF ty_vbpa ,
    vbeln TYPE vbpa-vbeln , " Document#
    posnr TYPE vbpa-posnr ,
    parvw TYPE vbpa-parvw , " Partner funtion
    kunnr TYPE vbpa-kunnr , " Customer#
    END OF ty_vbpa ,
    Customer master table
    BEGIN OF ty_kna1 ,
    kunnr TYPE kna1-kunnr ,
    name1 TYPE kna1-name1 ,
    ort01 TYPE kna1-ort01 ,
    pstlz TYPE kna1-pstlz ,
    regio TYPE kna1-regio ,
    stras TYPE kna1-stras ,
    END OF ty_kna1 ,
    ****Payment terms table
    BEGIN OF ty_tvzbt ,
    spras TYPE tvzbt-spras ,
    zterm TYPE tvzbt-zterm ,
    vtext TYPE tvzbt-vtext ,
    END OF ty_tvzbt ,
    BEGIN OF ty_t052 ,
    zterm TYPE t052-zterm ,
    ztag1 TYPE t052-ztag1 ,
    END OF ty_t052 ,
    ****Document flow table
    BEGIN OF ty_vbfa ,
    vbelv TYPE vbfa-vbelv , " Contract number
    posnv TYPE vbfa-posnv ,
    vbeln TYPE vbfa-vbeln ,
    posnn TYPE vbfa-posnn ,
    vbtyp_n TYPE vbfa-vbtyp_n ,
    END OF ty_vbfa,
    ***Contract Data table
    BEGIN OF ty_veda ,
    vbeln TYPE veda-vbeln ,
    vposn TYPE veda-vposn ,
    vbegdat TYPE veda-vbegdat ,
    venddat TYPE veda-venddat ,
    END OF ty_veda .
    Data Declaration *
    DATA :
    t_vbrk TYPE STANDARD TABLE OF ty_vbrk ,
    w_vbrk TYPE ty_vbrk ,
    t_vbrp TYPE STANDARD TABLE OF ty_vbrp ,
    w_vbrp TYPE ty_vbrp ,
    t_vbpa TYPE STANDARD TABLE OF ty_vbpa ,
    w_vbpa TYPE ty_vbpa ,
    t_kna1 TYPE STANDARD TABLE OF ty_kna1 ,
    w_kna1 TYPE ty_kna1 ,
    t_tvzbt TYPE STANDARD TABLE OF ty_tvzbt ,
    w_tvzbt TYPE ty_tvzbt ,
    t_veda TYPE STANDARD TABLE OF ty_veda ,
    w_veda TYPE ty_veda ,
    t_vbfa TYPE STANDARD TABLE OF ty_vbfa ,
    w_vbfa TYPE ty_vbfa ,
    t_t052 TYPE STANDARD TABLE OF ty_t052 ,
    w_t052 TYPE ty_t052 .
    DATA :
    ld_output TYPE btcxpm OCCURS 0 WITH HEADER LINE,
    ld_status TYPE extcmdexex-status ," #EC NEEDED
    w_underscore TYPE c VALUE '_' ,
    doa0001(50) TYPE c . " Invoice Dataset
    Selection-Screen
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: s_vbeln FOR vbrk-vbeln. "Billing Doc No
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: s_fkdat FOR vbrk-fkdat . "Billing Date
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: s_fkart FOR vbrk-fkart. " Invoive type
    SELECTION-SCREEN END OF BLOCK blk1.
    Start of initialization *
    INITIALIZATION.
    RANGES :
    r_parvw FOR vbpa-parvw."Range table for partner function
    CLEAR :
    r_parvw .
    r_parvw-sign = 'I'.
    r_parvw-option ='EQ'.
    r_parvw-low = c_re .
    APPEND r_parvw .
    End of Initialization *
    START-OF-SELECTION .
    SELECT vbeln
    fkart
    fkdat
    zterm
    netwr
    FROM vbrk
    INTO TABLE t_vbrk
    WHERE vbeln IN s_vbeln
    AND fkart IN r_fkart
    AND fkdat IN s_fkdat .
    IF t_vbrk[] IS INITIAL .
    MESSAGE I005 .
    EXIT .
    ENDIF .
    SELECT vbeln
    parvw
    kunnr
    FROM vbpa
    INTO TABLE t_vbpa
    FOR ALL ENTRIES IN t_vbrk
    WHERE vbeln = t_vbrk-vbeln
    AND parvw IN r_parvw .
    SELECT kunnr
    name1
    ort01
    pstlz
    regio
    stras
    FROM kna1
    INTO TABLE t_kna1
    FOR ALL ENTRIES IN t_vbpa
    WHERE kunnr = t_vbpa-kunnr .
    SORT t_kna1 BY kunnr .
    DELETE ADJACENT DUPLICATES FROM t_kna1 .
    SELECT spras
    zterm
    vtext
    FROM tvzbt
    INTO TABLE t_tvzbt
    FOR ALL ENTRIES IN t_vbrk
    WHERE spras = 'EN'
    AND zterm = t_vbrk-zterm .
    SELECT zterm
    ztag1
    FROM t052
    INTO TABLE t_t052
    FOR ALL ENTRIES IN t_vbrk
    WHERE zterm = t_vbrk-zterm .
    SELECT vbelv
    posnv
    vbeln
    posnn
    vbtyp_n
    FROM vbfa
    INTO TABLE t_vbfa
    FOR ALL ENTRIES IN t_vbrk
    WHERE vbeln = t_vbrk-vbeln .
    AND vbtyp_n = 'M' .
    SELECT vbeln
    vposn
    vbegdat
    venddat
    FROM veda
    INTO TABLE t_veda
    FOR ALL ENTRIES IN t_vbfa
    WHERE vbeln = t_vbfa-vbelv .
    AND vposn = t_vbfa-posnv .
    data: w_name TYPE thead-tdname.
    LOOP AT t_vbfa INTO w_vbfa .
    w_name = w_vbfa-vbelv.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    id = c_zi03
    language = sy-langu
    name = w_name
    object = c_vbbk
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    tables
    lines = t_tline
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5 .
    LOOP AT t_tline INTO w_tline.
    split w_tline-tdline at l_flag into table t_tlines .
    IF NOT t_tlines[] IS INITIAL .
    LOOP AT t_tlines INTO w_tlines .
    w_item-pay_history = w_tlines .
    APPEND w_item TO t_item .
    write: / w_item.
    ENDLOOP .
    ENDIF .
    ENDLOOP .
    ENDLOOP .
    SPLIT w_tline-tdline AT ',' INTO TABLE t_tlines .
    IF NOT t_tlines[] IS INITIAL .
    LOOP AT t_tlines INTO w_tlines .
    w_item-pay_history = w_tline .
    APPEND w_item TO t_item .
    ENDLOOP .
    ENDIF .
    ENDLOOP .
    write: / w_item.

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

  • Sap Script - Where to find "bipmap" objects.

    Hi All,
    In a window of the Sap Script I find this code:
    BITMAP EC_LG_0020 OBJECT GRAPHICS ID BMAP TYPE BMON
    INCLUDE EC_ST1_0020 OBJECT TEXT ID ST LANGUAGE IT PARAGRAPH H1
    My question: where can I find the objects saved on the Sap System, like EC_LG_0020?
    If I launch the tcode SO10 I can find only the object EC_ST1_0020.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi
    All Images in SAP can be Found using SE78  Tcode , based on the whether it is Color or Blackn white image u can search in this Tcode.
    And all Standard texts can be found using SO10 tcode..
    for further information chk this link
    https://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript
    surya

  • To arrange in a proper format in SAP script

    Hi all,
    I have to display the text in the below format:
    Column 1                                                                                Column2
    Remit info                                                                               ACH/ info
    Alexandra Technopark                                                           Bank Of America, Singapore
    I have maintained this in window bank_details:
    IF &NEXTPAGE& = '0' AND &BSID-BUKRS& EQ '0729'
    POSITION XORIGIN '2,0' MM YORIGIN '+158' MM
    BOX HEIGHT '30' MM FRAME 10 TW INTENSITY 15
    BOTTOM
    INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
    INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS
    ENDBOTTOM
    ENDIF
    And getting in the below format:
    Remit info:
    Alexandra Technopark
    ACH/ info
    Bank Of America, Singapore
    Please suggest me how to arrange it in proper format.
    Appreciate your help.
    Thanks,
    Kiran
    Edited by: kiran162 on Feb 3, 2012 2:30 AM

    Hi Kiran,
    I did not mean you choose the tag column for the 2nd include in the sapscript editor. I meant you should edit your text of the 2nd include in the tcode for standard text SO10 with the given object text name and text ID. But this is just applicable if each of your include text as only 1 line.
    Here's the details:
    + Go to tcode SO10, enter the text name as ' F_0729_FOOTER' and text ID as 'ADRS' and your language (I guess EN).
    + Go inside, choose the tag column for the text as continuous text ( yah, blank indicator again).
    But each of you include text has more than 1 line, so this is not applicable. You can ignore my third suggestion. I have another suggestions for you here:
    + No1: you can present like in the followings in your sapscript editor:
       Remit info:
                 ACH/ info      // blank inditor means continuous text
           /:   INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
           /:   INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS      // in SO10 for this text, leave the tag column blank
    This means you should hard-code the name of the address info.
    + No 2:   - You can create 2 global text variables in the printing program.
                  - Use FM 'READ_TEXT' to read your address from the text pool. Store in 2 text table.
                  - Loop at the text table, transfer data from the text table to the 2 global text variable above, and write the window and the element here as well.
                  - You can use some wrapping FM to wrap the text in each variable.
                  - Then in the sapscript form, you just put the 2 global variables in the same line.
    Hope you can complete the requirement.
    Thanks,
    Paul

  • SAPScript: How to combine two text in the same line?

    Dear Gurus,
    I have a case to combine hard code text and long text in the same line.
    For example, i need to display following line:
    'Project name:' <long_text>
    How to do it in SAPScript?
    Can we do it with following code?
    /: 'Project name: ' INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
    Thanks & Regards,
    Ari

    Hi,
        You can achieve that by this method,
    Goto Tcode SO10
    Give the Object Name 'Z_TEST' & Id
    See the Paragraph format for the Text,  you can do it from Menu
    Format>Line . If it is /: change it to =.  Save
    Now in the SAPScript Text editor in which you want to print
    P1 'Project Name :'
    /: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
    the output will be
    Project name : Abc xyz
    Regards
    Bala Krishna.
    Edited by: Bala Krishna on Oct 17, 2008 7:11 PM

  • Dynamic STANDARD TEXT in scripts

    Hi friends,
             I have to include standard text in the script corresponding to the company code. For example if company code = 6100, I have to include standard text SD_6100, or else if 2000 I have to include SD_2000. Here I can use IF statement. But If company codes are 20 or 30 then it is difficult to write that many IF statements. And in future if they increased the company codes then we should write one more if statement.So is there any method to include the STANDARD TEXT dynamically.
    Sathish Reddy.

    Hi satish ,
    create the standard text in tcode SO10 .
    now u can create this with respect to company code
    /:  case & - bukrs&
    /:    when '20'
        text
    /:   when '30'
        text for 30
    /:   endcase.
    so by doing this u ll trigger the corresponding text for company code .
    now  to include the std text in your form
    just call the standard text IN THAT WINDOW AS ...
    /: INCLUDE Z_XXXXX OBJECT TEXT ID ST LANGUAGE EN
    remarks,
    Dynamically if u want to trigger the standard text u can go for IF end if logic as u stated or a case endcase..
    there is no alternate .
    regards,
    VIjay
    Message was edited by:
            Vijay k

  • Pls explain how to add standard text in sapscript & smartforms

    Dear friends,
    pls explain how to implement standard text into sap script and smartforms.
    in how many we can do.
    and what is diff between include text & text modules in smartforms.
    how we can translate into multiple languages.
    Regards
    Jagadeeshwar.B

    hi,
    for the include text goto tcode so10.
    for changing the smartform and scripts use there methods..
    1. goto se63>translation->abap objects->other long texts->FS Forms and Styles---> for scripts use Forms
                                           for smartforsm use SAPSmart form
                                           for styles use Styles
    2. goto se71->utilities->original language.---> source lang
    (for scripts)                                                     target lang
    to include the include text created in the tcode so10 in the smartforms go to general attributes of the text element--text type> include text...
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 22, 2008 11:56 AM

Maybe you are looking for

  • PSE 6 for Mac  GIF animation

    i am having trouble creating an animated .gif. i follow the instructions, but, ultimately, i wind up with the "save for web" screen showing the same image in both sides of the preview window, one the original jpeg, and the other the uncompressed gif.

  • After Effects error: opening movie - you do not have permission to open this file (-54)

    Hi all, I'm new to after effects. I have just started receiving the following error every time I try to render my movie: "After Effects error: opening movie - you do not have permission to open this file (-54)". Yesterday morning, I was able to rende

  • Cs4 and snow leopard

    I got a new macbook pro with a 200gb SSHD about 6 months ago with os 10.5 on it, and installed adobe web premium cs4, flash worked fine. I up-graded to snow leopard a few months after getting my macbook, and still no issue. Last week the SSHD died an

  • Is there a function to check a list of characters in a string?

    is there a function to check a list of characters in a string?

  • Flipping objects horizontally/vertically

    This is one seriously goofy program folks... Whenever you have a design that uses the "cookie cutter" tools in the A.W. Drawing program, (aka line tool, rectangle, oval, arc, rounded rect) DON't PLAN ON FLIPPING THEM! Even when they're grouped, they