Problem uploading standard texts

I am uploading standard texts from text file onto SAP.
I recorded it properly with the data, but while uploading I face this problem. For example the foll text
"Price will be NY's posted price at Slaugxxxx Bio Plant on the day of deliveries."
It is uploading only till "del" of deliveies", i.e everything other than 'iveries." is getting uploaded into the first line of the transaction so10. The rest of the text is not going to the next line. How do I solve this problem. Can you help me out.

Hey i figured out a different solution using some logic
*This is the internal table having the list of
*standard texts to be *uploaded from a *source file.
LOOP AT tb_stdtext.
  DATA : lv_textline(40) TYPE c.
  DATA : lv_zero TYPE i VALUE 0,
         lv_seven2 TYPE i VALUE 72,
         lv_loopcount(2) TYPE n VALUE '02',
         lv_loopvalue TYPE i,
         lv_data(1000) TYPE c,
         lv_buff(72) TYPE c,
         lv_strlen TYPE i.
  lv_textline = 'RSTXT-TXLINE(  )'.
MOVE lv_loopcount0(2) TO lv_textline13(2).
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    lv_textline.
      PERFORM bdc_field    USING 'BDC_OKCODE'
                                    '=EDNP'.
      lv_loopvalue = lv_strlen / 72 + 1.
      DO lv_loopvalue TIMES.
        MOVE lv_loopcount0(2) TO lv_textline13(2).
        MOVE lv_data+lv_zero(lv_seven2) TO lv_buff.
        PERFORM bdc_field    USING lv_textline lv_buff.
        lv_loopcount = lv_loopcount + 1.
        lv_zero = lv_seven2 .
        lv_seven2 = lv_seven2 + 72.
        IF lv_seven2 > lv_strlen.
          lv_seven2 = lv_strlen.
        ENDIF.
      ENDDO.
      lv_loopcount = lv_loopcount - 1.
      MOVE lv_loopcount0(2) TO lv_textline13(2).
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    lv_textline.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXBA'.
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
      PERFORM bdc_dynpro      USING 'SAPMSSCE' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RSSCE-TDNAME'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXBA'.
      PERFORM bdc_field       USING 'RSSCE-TDNAME'
                                    tb_stdtext-tdname.
      PERFORM bdc_field       USING 'RSSCE-TDID'
                                   tb_stdtext-tdid.
      PERFORM bdc_field       USING 'RSSCE-TDSPRAS'
                                    tb_stdtext-tdspras.
    ENDIF.
    lv_zero = 0.
    lv_seven2 = 72.
    lv_loopcount = '02'.
    lv_loopvalue = 0.
    PERFORM bdc_transaction USING 'SO10'.
  ENDLOOP.

Similar Messages

  • Upload Standard Text Key

    Hi expert,
    I am trying to upload Standard Text Key (CA10) for task list. I don't know how to do it, because it contain long text. Can anyone give me a suggestion?
    Thanks,
    Secundes

    I tried CA10 LSMW with fields
    VLSH (C 007), TXT (C 040), TXLINE_02 (C 072), TXLINE_03 (C 072), TXLINE_04 (C 072)
    The last 3 fields are mutiline content, which are generated through the recording. If you attempt 4 lines during the recording another field TXLINE_05. The answer to your question How many characters? is given in the brackets above.
    I did not find a problem here. The problem I faced was some other and was a minor for me.
    That is :
    While processing (Foreground processing only), It was not filling the VLSH field. So what I did was- Enter this field manually & press F5 (create). The rest of the process went smooth by just keep pressing the Enter button.
    So for every record I repeated this initial entry+F5, rest went smooth.
    That was my experience. It is possible you might not face this problem even and everything may go smooth for you.
    (I used Tab delimited Text file for uploading)
    About the BDC programming, I do not have knowledge in this area, so I suggested so.
    Regards....

  • Error while uploading standard text files for the Global rule set

    Hi all,
    As part of Post Installation Activities we have uploaded standard text files for business process, functions, risks and rule set obtained with the installable Software.
    While uploading the text files we have uploaded the Basis Functions Authorizations first and then R/3 text files.
    When we checked no actions are appearing in the rule architect under respective functions except for the BASIS Module.
    Is this because we have uploaded the Basis functions before the R/3 text files?If yes, how to replace the Basis with the R/3 ones.
    We tried to replace the Basis function authorizations by re-uploading the R/3 text files again but we got the below error message u201CORA-00001:unique constraint (SAPSR3DB.SYS_C004479) violatedu201D
    Can somebody please help in this regard how to get the standard rule set in our system?
    Thanks and Best Regards,
    Srihari.K

    Hi Sri,
    you should upload first the static text files and the authorization objects first and then the GRC standard rule set files following the instructions of the SAP Configuration Guide available in Service Market Place under http://service.sap.com/instguides .
    The GRC standard rule set contains files named Basis_functions_action.txt and R3_function_action.txt. The first one contains ONLY function definitions in terms of transcation codes for basis only, whereas the second one contains functions definition for basis AND ERP modules. The same holds for the *_function_permission.txt files. There are also function definition files for other SAP solutions such as APO, CRM, HR  etc.
    You can open a customer message and request a deletion script for the rule sets files you have uploaded already. After their application of this script all rule set data will be deleted from your database. If you have uploaded static text and authorization files correctly, you can then upload the GRC standard rule set files as needed again.
    best regards,
    Frank

  • Problem in standard texts

    Hello experts,
    In so10 tcode when defining the standard text , how to write the french language special characters.
    for example : in french: Nous vous informons par la présente de ce qu'aux termes d'une .
    In the above example when i copy this particular line in text editor of standard text(SO10).
    the words shown in bold are copied like qu'AUX and  d'UNE and when i check for character and paragragh formats its giving error as "too many parameters."
    i have define the standard text in so10 as shown below:
    DEFINE &WA_SECURITY_TEXT00& := 'Nous vous informons par la présente de'
    DEFINE &WA_SECURITY_TEXT01& := 'ce qu'aux termes d'une convention de'.
    kindly avise with solution.
    Thanx in advance .
    Sainath.

    hello,
    i have created the text in FR only.
    cau u please suggest any other solution.
    Thanx in advance.
    sainath

  • Facing a problem with standard text in custom program

    Hi,
    As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
    CALL FUNCTION 'CREATE_TEXT'
        EXPORTING
          FID         = G_THEAD-TDID
          FLANGUAGE   = G_THEAD-TDSPRAS
          FNAME       = G_THEAD-TDNAME
          FOBJECT     = G_THEAD-TDOBJECT
          SAVE_DIRECT = 'X'
          FFORMAT     = '*'
        TABLES
          FLINES      = I_TLINE
        EXCEPTIONS
          NO_INIT     = 1
          NO_SAVE     = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ELSE.
        CALL FUNCTION 'EDIT_TEXT'
          EXPORTING
            HEADER        = G_THEAD
            SAVE          = 'X'
          TABLES
            LINES         = I_TLINE
          EXCEPTIONS
            ID            = 1
            LANGUAGE      = 2
            LINESIZE      = 3
            NAME          = 4
            OBJECT        = 5
            TEXTFORMAT    = 6
            COMMUNICATION = 7
            OTHERS        = 8.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    Can you please help me how to do this
    Regards
    nag

    But when click save button then it needs to be come out of the screen without click back button.
    can you explain me, what do you mean by that.
    ~satya

  • Problem uploading a text file

    Hi All,
       I'm trying to upload data from a file in the application server. The file that I read is a 'dat' file and the length for each field is preserved meaning if the currency key field is of length 5 and the file has 'USD' it is filled with spaces for the remaining 2.
    I have an internal table t_data which has all the records from the file. I loop through t_data into wa_data. Then I move the contents of my wa_data to the structure work area wa_struct1 which has all my table fields(same length as the fields in the file and all the fields are standard SAP fields).
    However the structure wa_struct1 always gets some junk values in fields like exchange rate and amount field (simply it doesn't like any packed number). Because of this all the other fields that come after these fields have the data messed up.
    Also I thought maybe it's because of the character to Packed conversion, but then I use a MOVE statement and I'm pretty sure a conversion exists between these two data types. Also the SAP document for conversion between two data types say the source fields can be blank when converting from character to packed and in my case it is sometimes blank and sometimes filled with value. In both cases I always get a junk value like 2020.2020222. Please give me some suggestions. Thanks in advance.
    Regards,
    Saravana.

    Hi
    Probably you need to move field by field:
    MOVE: FILE-FIELD1 TO WA_STRUC-FIELD1,
               FILE-FIELDN  TO WA_STRUC-FIELDN.
    Probably some value has to be converted before moving to SAP structure.
    Max

  • Problems uploading a text file with line feed characters from Windows

    Hi,
    I am using the FM GUI_UPLOAD to load a text file in which at the end of each line there is a line feed character. When I upload the file, the FM interprets the entire file as ONE record; it does not recognize the line feed character at the end of each file line. I am using the parameter in the FM "HAS_FIELD_SEPARATOR" and it does not do anything to remidiate this issue.
    The funny thing is that  WS_upload works like a charm and it separates every line in the text file according to the line feed character at the end of each file line.
    Why a FM that is obsolete would work better and with  less effort than the new one? We are on 4.6c and will go to ECC6.0 May 2009.
    Can anybody recommenced a way to process this type of file using GUI_upload?
    The file to process is downloaded from a bank Website into a Windows PC. Sending the file to Unix first is not an option.
    Thanks,
    Pierre Martinez
    Edited by: Pierre Martinez on Aug 15, 2008 1:09 AM

    Hi,
    I have done that and Notepad does NOT interpret the line feed character. The file looks all messed up. Notepad does NOT split the data into records. The Hex character at the end of each file line is 0A.
    The user will download the file into a Windows desktop from the bank's website and from there an ABAP  program needs to read it and parse it. But the ABAP  program can not even catch the entire file with gui_upload. WS_upload can catch it with no issues.
    I tried catching the file into an internal table of data type string using GUI_upload, but it only catches two bytes of the file and nothing else.
    I will try catching the file in some other type of data type for the internal table in gui_upload.
    Once I catch it, I can split the file by the line feed character. I need to catch it  first, but "my glove" is not big enough. Defining the internal table for the gui_upload as character is a guessing game since I really do not know how big the text file is since GUI_upload will put it in a one record.
    Thanks.

  • Problem in Standard Text

    Dear all ,
    I a creating Letters under Text ID PALT . I am facing following problems .
    1) I have created ZHR_REC style and have used that style in these letters,this is working very fine . Now I want to print the the name of employee as a footer on every page . When I use BOTTOM and ENDBOTTOM to meet my requirment the font is getting changed .
    2) On top of page automatically page number is coming how do I avoid that .

    Hi,
    You are not clear with your query?
    where are you printing your letter after creating the STd text in SO10?
    using scripts or smartforms?
    You can create another style and use it for the footer, if the footer font is changing .
    in the Script there is field &PAGE& which prints the pagenumber, have to comment that.
    reward if useful
    regards
    Anji

  • PR to PO ...Standard text problem

    Hi all,
    I am writing one report , which converts the purchasing requistion to purchase order. I am using the BAPI function module...BAPI_PO_CREATE1.
    In this i want to populate the purchase order header text. I am using the standard text for all po's whose are convertable.
    but the problem is , the header text table paramers(POTEXTHEADER) in BAPI FM will take 132 chars only. But my standard text is 6 paragraphs are there . how do i long text populate? Am i using the wrong parameters in the BAPI FM.
    please suggest me ...how to use this BAPI FM , to populate the lonf standard text.
    regards,
    Ajay Reddy
    Edited by: Ajay on May 27, 2008 9:08 AM

    hi
    use the function module create_text to upload long text. below is the
    sample program which uploads purchase order text more than 132 characters.
    TABLES : MARA, TLINE, THEAD.
    DATA: BEGIN OF ITAB OCCURS 0,
          MATNR LIKE MARA-MATNR, " MATERIAL  NUMBER
          TEXT(5000)  TYPE C, " Long Text
          END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0,
          MATNR LIKE MARA-MATNR, " Material  No
          SEQU  TYPE I,          " Text Sequence
          TEXT(5000)  TYPE C, " Long Text
          END OF ITAB1.
    DATA:BEGIN OF DT_LINES OCCURS 0.
            INCLUDE STRUCTURE TLINE. " Long Text
    DATA:END OF DT_LINES.
    DATA : P_FILE1 TYPE STRING.
    DATA : DL_NAME TYPE THEAD-TDNAME, " Object Name(material no)
           DL_LAN TYPE THEAD-TDSPRAS. " Language
    CONSTANTS:C_BEST TYPE THEAD-TDID VALUE 'BEST',
              C_MATERIAL TYPE THEAD-TDOBJECT VALUE 'MATERIAL'. " OBJECT
    DATA: START TYPE I,
          LEN   TYPE I VALUE 92,
          TOTLEN TYPE I,
          N TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-101.
    PARAMETERS P_FILE LIKE RLGRAP-FILENAME."input file
    SELECTION-SCREEN : END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM FETCH_FILE USING P_FILE.
    *&      Form  fetch_file
          text
         -->P_FILE     text
    FORM FETCH_FILE USING P_FILE.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_FILE.
    ENDFORM.                    "fetch_file
    START-OF-SELECTION.
      PERFORM UPLOAD USING P_FILE. " *To Upload Flat file
      PERFORM UPLOAD_TEXT.
    *&      Form  UPLOAD
          text
         -->P_FILE     text
    FORM UPLOAD USING P_FILE.
      P_FILE1 = P_FILE.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = P_FILE1
         FILETYPE                      = 'DAT'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          DATA_TAB                      = ITAB
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
      IF SY-SUBRC EQ 0.
    *message i001 with p_file .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "UPLOAD
    *&      Form  UPLOAD_TEXT
          text
    FORM UPLOAD_TEXT.
      LOOP AT ITAB.
        ITAB1-MATNR = ITAB-MATNR.
        CLEAR: TOTLEN,N, START.
        TOTLEN = STRLEN( ITAB-TEXT ).
        N = TOTLEN / LEN.
        N = N + 1.
        DO N TIMES.
          ITAB1-TEXT  = ITAB-TEXT+START(LEN).
          ITAB1-SEQU  = SY-INDEX.
          START = START + LEN.
          APPEND ITAB1.
        ENDDO.
      ENDLOOP.
      DELETE ITAB1 WHERE TEXT IS INITIAL.
      SORT ITAB1 BY MATNR SEQU.
      LOOP AT ITAB1.
        DT_LINES-TDFORMAT = '*'.
        DT_LINES-TDLINE = ITAB1-TEXT.
        APPEND DT_LINES.
        AT END OF MATNR.
          DL_LAN = SY-LANGU.
            WRITE : / itab-MATNR.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              INPUT  = ITAB1-MATNR
            IMPORTING
              OUTPUT = ITAB1-MATNR.
          MOVE ITAB1-MATNR TO DL_NAME.
          CALL FUNCTION 'CREATE_TEXT'
            EXPORTING
              FID         = C_BEST
              FLANGUAGE   = DL_LAN
              FNAME       = DL_NAME
              FOBJECT     = C_MATERIAL
              SAVE_DIRECT = 'X'
              FFORMAT     = '*'
            TABLES
              FLINES      = DT_LINES
            EXCEPTIONS
              NO_INIT     = 1
              NO_SAVE     = 2
              OTHERS      = 3.
          IF SY-SUBRC <> 0.
            WRITE:/10  'Long Text Creation failed for Material No',  ITAB1-MATNR.
          ELSE.
            WRITE:/10 'Long Text Created Successfully for Material No', ITAB1-MATNR.
          ENDIF.
          REFRESH DT_LINES.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    "UPLOAD_TEXT

  • 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

  • Sapscript Standard Text Printing - Format Problem

    Heros,
                  I wanted to print one standard text(Basic Text of Process order) in sapscript.I am using the INCLUDE command instead of Read_text FM , so that I can keep the Paragraphs of that text intact.But I am falling short of two requirements of my client.
    1. He has highlighted Some words of the text and underlined some of the text. He wants that character format intact in spascript.How can I do that?
    2. The script initaly was using Read_Text and was storing the value in a variable wa_line and was printing in script as
    <b>[LI ]  DESCRIPTION:  &wa_line&</b>
    so it was printing like
    DESCRIPTION:   fasfoihfaishfiahfiafhfihfahfiashfiahfahfiafiasfihahfisahfafasi
    But now I am using INCLUDE command as follows
    <b>[LI] DESCRIPTION:
    [: /] INCLUDE OBJECT BLAH BLAH</b>
    So it is printing like
    <b>DESCRIPTION:
    fasfoihf
    aishfiahfiafhfihfa
    hfiashfiahfa
    hfiafiasfihahfisahfafasi</b>
    I want to get them in same line.
    I mean
    <b>DESCRIPTION: fasfoihf
    aishfiahfiafhfihfa
    hfiashfiahfa
    hfiafiasfihahfisahfafasi</b>
    Is that possible?
    <b>Reward Point Guranteed.</b>

    Hi Anid,
    When you are creating your standard text the default value in the tag column is *. If you change this value to = (Extended line) the display of standard text will start in the same line as the previous value (in your case it will display the standard text in the same line as DESCRIPTION:).
    Hope this solves your problem!
    Regards,
    Saurabh

  • AC02 - Problem in uploading Long text data

    Hi All,
    I record a BDC for AC02 tcode and i am able to upload all the data in AC02 tcode except long text. How can I upload this, kindly suggest.
    Thanks and Regards,
    Rajesh Vasudeva

    Hi,
    Check the below threads.It could be helpful to you.
    LONGTEXT: MATERIAL - PRUE
    problem with long text
    Cheers,
    Hakim

  • Report to upload and download standard text

    Hi,
    Please let me know how can we upload or download standard text created using so10. Is there any report program to do this?
    Thanks
    Saravana

    hi .
    Go to Abap editor SE38 use RSTXSCRP this program ...
    Run it .. u can find the option Standard text chek this option.
    Give the TEXT ID and langauage.
    and then the mode i.e Export r Import
    by this way u can upload r down load standard text ..
    Note : By rewarding points u can also get 1 point.

  • Issue while uploading .TIFF file into Standard text using RSTXLDMC

    Hi All,
    We are facing issues while uploading .TIFF file into standard text through program RSTXLDMC.
    Getting the following error.
    TIFF format error: No baseline TIFF 6.0 file.
    The image is a colored one.
    Please provide me solution if anyone has worked in this area.
    Thanks in Advance,
    Anand Raj Kuruba.

    Hi,
    Often this error occurs because the TIFF file you have has been saved with some form of compression.  You need to open in a picture edit program and save as TIFF making sure options are set so there is no compression.
    Andrew

  • Problem in using standard text in SAP Script

    Hi All,
    I have to replace English text hardcoded in a script with standard texts (SO10) in Spanish. When I am including the standard text in script, it is displayed in different font and bigger size. I want to reduce the size and change the font of standard text. Is there any way to do that?
    Thanks in advance
    Radhika
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 4, 2010 2:37 PM

    Please check the links below , which might hel you..
    Re: Setting font to standard text in sap script
    How to change stranded text font in script
    Regards
    Satish Boguda

Maybe you are looking for