Problem in Long text save in CO02

Hi All,
I am posting long text for a production order using 'CREATE_TEXT' and its updating in the tables succesfully.
The same old probelm is it is not appearing in the CO02 or CO03 tcodes.
I did a direct AUFK-LTEXT update as suggested in many of the threads I searched, but of no use.
Pls suggest some solutin in this regard.
thanks in advance.

I know this is old post but I got few updates like updating Long Text of Production Order using BAPI "BAPI_ALM_ORDER_MAINTAIN".
First check if Order is having long text maintained by checking AUFK-LTEXT. If blank -> no text.
For Existing Order(00XXXXXXXXXX) having no text maintained : -
METHODS TABLE
REFNUMBER
OBJECTTYPE
METHOD
OBJECTKEY
1
TEXT
CREATE
00XXXXXXXXXX
SAVE
IT_TEXT TABLE
If you want to add 2 rows, TEXTEND = 2.
ORDERID
LANGU
TEXTSTART
TEXTEND
003000036669
EN
1
2
IT_TEXT_LINES
TDFORMAT
TDLINE
LINE 1
LINE 2
Execute BAPI and call BAPI_TRANSACTION_COMMIT after this BAPI
For Existing Order having text maintained : - only one change in above process, populate other areas similarly
Methods table
REFNUMBER
OBJECTTYPE
METHOD
OBJECTKEY
1
TEXT
CHANGE
00XXXXXXXXXX
SAVE

Similar Messages

  • Problem with long text

    Hi folks,
    iam uploading longtext in transaction KP06 in bdc programing using create_text.
    now my problem is if i pass selection criteria
    case 1:
    Vertion : N0
    fiscal year : 2007
    planner profile: CCPLAN4
    then the budeget plan data uploading successfully along with long text.
    case2: Vertion : N1
    in this case also everthing wrking fine
    case3: Vertion : 001
    in this case budgetplan data uploading sucessfully but longtext is not uploading,
    i debbug the proragm , create_text also returning sy-subrc = 0. but if i check in KP06  the long text is not there.
    data declaration
    vertion : VERSN type C(3)
    can u tell me the problem is in logic or with FM ?
    note : i checked with save_text also.
    regards
    neeru

    HI Naimesh,
    the FM Create_text internally contains both FMs save_text and commit_text,
    even i debug the FM in case of vertion N1, N0 and 001,
    all the cases sy-subrc = 0.
    code:
    CLEAR G_OBJNR.
    LOOP AT RECORD.
    COST = RECORD-BDC01.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = COST
        IMPORTING
          output = COST.
        CONCATENATE 'KS' p_kokrs record-bdc00 INTO g_objnr.
            SELECT SINGLE * FROM COSP WHERE OBJNR = g_objnr
                              AND GJAHR = P_GJAHR
                              AND VERSN = p_ver
                              AND KSTAR = COST.
      IF SY-SUBRC = 0.
          LEDNR = COSP-LEDNR.
          OBJNR = COSP-OBJNR.
          GJAHR = COSP-GJAHR.
          WRTTP = COSP-WRTTP.
          VERSN = COSP-VERSN.
          KSTAR = COSP-KSTAR.
          HRKFT = COSP-HRKFT.
          VRGNG = COSP-VRGNG.
          VBUND = COSP-VBUND.
          PARGB = COSP-PARGB.
          BEKNZ = COSP-BEKNZ.
          TWAER = COSP-TWAER.
    CONCATENATE LEDNR OBJNR INTO OBJNR.
    CONCATENATE OBJNR GJAHR INTO TNAME1 separated BY SPACE10.
    CONCATENATE TNAME1 WRTTP VERSN INTO TNAME2.
    CONCATENATE TNAME2 KSTAR INTO TNAME3 separated BY SPACE.
    CONCATENATE TNAME3 VRGNG INTO TNAME4 separated BY SPACE4.
    CONCATENATE TNAME4 BEKNZ INTO TNAME5 separated BY SPACE10.
    CONCATENATE TNAME5 TWAER INTO TNAME.
    I_THEAD-TDOBJECT = 'CCSS'.
    I_THEAD-TDID = 'COSP'.
    I_THEAD-TDNAME = TNAME.
    I_THEAD-TDSPRAS = 'E'.
    APPEND I_THEAD.
    i_tline-tdformat = '*'.
    I_TLINE-TDLINE = RECORD-LONGTEXT.
    APPEND I_TLINE.
    loop at i_thead.
    CALL FUNCTION 'CREATE_TEXT'
      EXPORTING
        FID               = I_THEAD-TDID
        FLANGUAGE         = I_THEAD-TDSPRAS
        FNAME             = I_THEAD-TDNAME
        FOBJECT           = I_THEAD-TDOBJECT
      SAVE_DIRECT       = 'X'
      FFORMAT           = '*'
      TABLES
        FLINES            = i_tline
    EXCEPTIONS
      NO_INIT           = 1
      NO_SAVE           = 2
      OTHERS            = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CLEAR I_TLINE.
    REFRESH I_TLINE.
    CLEAR I_THEAD.
    REFRESH I_THEAD.
      SELECT SINGLE * from cokp into itab WHERE OBJNR = g_objnr
                              AND GJAHR = P_GJAHR
                              AND VERSN = p_ver
                              AND KSTAR = COST.
    if sy-subrc = 0.
       itab-TXFLG = 'X'.
       append itab.
       write:/ 'Text saved for', record-bdc00 , record-bdc01.
       else.
          write:/ 'Text saved for', record-bdc00 , record-bdc01.
          ENDIF.
    ENDIF.
    my program wrking fine but the long text is not visible for vertion 001.
    regards
    niru

  • Apex Report to Excel Problem in long text data in one cell

    Hi
    Using apex 3.1, I have created one sql Report based on UNION.
    Report has 10 rows & 2 columns only. first column contain title & second Column display values.
    9 rows contain numeric value (converted to char) one last row display Remarks (lot of text).
    When stored in excel last line display data in single line.
    ex
    col1 col2
    A1 456.12
    A2 789.165
    B1 784.126
    B2 456.1
    C1 0
    C2 1
    D1 0
    D2 2
    E1 34.23
    E2 This is row containing long text. This is row containing long text . This is row containing long text.........
    Due to this Report does not fit on one A4 size Paper for printout . Any Solution.

    Hi,
    There's a solution in Excel... Select the cell, select Format, Cells from the menu and select the Alignment tab - tick the "Wrap text" option.
    Obviously, that would require a manual action by the user and would be after the export has taken place.
    Andy

  • Problem in long text in SAP script editor

    Hi ,
    i am maintaining long text in SAP script editor , when i am trying to change the long text in SAP script that changes are not reflected in print preview ,for example when i am giving tabs in the script then in print preview of the PO these tabs are displayed as , , ( comma) , and underlines are not appearing in print preview.please help me on this.
    Thanks and regards.
    Rajeshwar.

    hi
    you have to install the correct printer which supports the displaying the drawings and objects/

  • Problem with long text field.

    Hi all,
    I have a problem when I try to concatenate two fields.
    It seems the new field only is 254 characters long?
    Here is my syntax:
    data: w_long_text(1000).
    clear w_long_text.
        loop at iline.
          concatenate w_long_text iline-tdline into w_long_text separated by space.
        endloop.
    I'm sure the text is longer then 254 becuase I can see the text in an Activity in the Sap Crm system.
    Best Regards
    Frode

    Hi thomas
    wat i would suggest you is better take an internal table with long_text(255) field .
    data : begin of it_text occurs 0,
                long_text(255),
              end of it_text.
    clear : w_long_text,it_text.
    loop at iline.
    concatenate w_long_text iline-tdline into w_long_text separated by space.
    <b>it_text-long_text = iline-tdline.</b>
    append it_text.
    clear it_text.
    endloop.
    and when displaying the text keep that in a loop and print it.
    This way u can display the whole text irrespective of the char length.
    Reward points if helpful
    Regards
    Zarina

  • Problem with long text field in PLD

    Hi all.
    I´m doing a layout for A/R invoices. I have a user field of text type. When I try to display this field and the text is too long the PLD make a new line. but in the first line cut me some characters. How can I fix this issue?
    Can you help me?
    Thanks

    The Aligment properties are:
        *Horizontal: Left
        *Vertical: Top
        *Line break: Divide into rows
        *Length:
        *Filler:
        *Field haight adjustment: checked
        *Sum in words: Not checked
        *Suppress zeros: Not checked

  • Problem in getting long text in Cash receipt.

    Hi all,
    I want long text in my form print but as a programming i am not getting long text in description Field I am getting short text.  So can you please kindly tell me when we entered long text in transaction FBCJ this long text save in which table. And how can i fetch this data in my smartforms.
    Thanks in Advance.

    Hi Keyur,
    when you see the detail text in the transaction, use menu goto -> header. Here you see the details to use for an include staement in sapscript. Note that the text name may be a concateneation of client and document number. Prepare the details in print program, fill in variables to be used in sapscript.
    Hope these details are enough.
    Regards,
    Clemens

  • 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

  • IA05-Long text problem

    Hi ,
    I have to do a data upload for IA05 transaction.
    I have done the recording for BDC.
    But i am facing problem in Long text upload (SAVE_TEXT), because the TEXT NAME logic requires Group number. This group number is created when the transaction is executed.
    Do by any means i can get the group number at runtime because will executing the transaction i can see the group number which is created.
    Else does anybody have some other way to do this. Please suggest.
    Thanks & Regards
    Kapil

    Hi,
    <b>This is the only way you can do this.</b>
    And you are not hardcoding anything. If BDC is successful and you get the 'Group numer" just create a text using SAVE_TEXT FM.
    Let me know if you have something else on your mind.
    Regards,
    RS

  • BDC-Long-Text

    Hi All,
    When Uploading the Data for FB02, i am facing problem with long-text.I have used FM SAVE_TEXT.But How to Save all the lines Data.Please send me the code for FB02,where all lines data has to be saved.
    Thanks&Regards.

    Sri,
    check this code for more than 5K char:
    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

  • I cant send long text messages

    I have noticed that everytime I try to send a long text message (over 160 texts) the person never recieves it. In combination with no notificatin of going over 160 characters, not being able to resend or cut and paste this is becoming a big and annoying problem for me. Is there something Im missing or is this just another major inconvience of the iphone? I love some things about the phone but there sure do seem to be some major flaws. Any help/advice?

    thank you for such a quick response. Yes the recipient is another at&t customer using a blackberry. I never had a problem sending long text messages before getting my iphone (think the record with my old phone, a sony ecrisson w580i was 10 text messages long). I tried testing it today sending one that was 159 characters and one that was 161 characters, the 159 was recieved while the 161 was not. I tried contacting at&t and recieved a very shady answer (they suggested maybe the signal in the area which I reluctantly accepted at the time, however as time has gone on it has become obivious this is not the problem). I figured it must be another iphone characteristic however the lack of other owners mentioning this problems led me to seek help.

  • Long text editor - sign problem

    Hi,
    Currently I am facing an issue that the & sign is not being displayed correctly in the Long text editor. It is shown as '<(>&<)>' in the transaction once I input my value in the graphical editor , save and come back.
    Please help...
    Thanks
    Praneeth

    Hi Sandra,
    I am also talking about the same issue in IW32 and the internal SAP program is not doing a correct conversion due to which the wild characters are entered into the long text window on IW32.
    I received an answer for my OSS note and they say it is how the system is ..please see the comments from SAP below ...
    26.08.2011 - 12:37:23 CET - Reply by SAP             
    Hi,
    I am sorry, but the behaviour which you describe is correct.
    I will try to explain the meaning of the special characters and
    why they have to be there: In Sapscript there are some characters,
    which have a special meaning. E.g. a '&' starts a symbol, a '<'
    starts a character format, etc. So if you use e.g. a '&' in your
    text, this Sapscript needs the information, whether the '&' shall
    start a symbol or whether it shall be printed as '&'.
    So if you want to print the '&' as '&', the character must be masked.
    This is done via the characters <(>...<)>. So when you enter
    a '&' (and when it is not sure, whether it may start a symbol),
    the Sapscript internally saves the character as <(>&<)>.
    Usually this should be no problem: If you process the text via
    the Sapscript, you will not notice the masking characters. The
    graphical editor will not display them. And if you print the text
    via a Sapscript form or a Smartform, you will not see them.
    Only if you look into the internal table, which is returned
    by EDIT_TEXT or READ_TEXT, you will see the characters.
    (and the old Sapscript editor displays them, too, because it
    is displays the text in the Sapscript-internal format).
    If you process the internal table yourself, you must take this
    into consideration. E.g. if you want to convert the
    Sapscript-internal ITF format which is returned by EDIT_TEXT
    into 'normal' text format, you can use the function module
    CONVERT_ITF_TO_ASCII.
    Kind Regards,
    Marian O'Connell
    Support Consultant
    AGS Primary Support
    Visit the Enterprise Asset Management (EAM) forums:
    Enterprise Asset Management (SAP EAM)

  • Long Text problem in a BADI

    Hi Everyone,
    I am implementing BADI "WORKORDER_UPDATE". The requirement is there should be no changes made on the IW32 transaction. I have successfully implemented the BADI and it is now giving an error when we try to change anything on the order in IW32.
    The problem is with the longtext. There is a field TXCHG which I used to see if there are any changes being made to the long text. When someone changes the lontext and tries to save it, it gives an error but still retains the changed longtext. The code works fine with all other changes(I mean it gives an error when they try to change anything in IW32 and will not retain the changes). But this does not happen in the case of long text. It gives an error but still has the changed long text as part of the order.
    Any suggestions on how to proceeed? I am using instance  Before_Update in this BADI.
    Thanks
    Kumar.

    Do u mean after giving the Error message, even if u come out without saving it is keeping the changes?
    If the answer to the above question is no then try the following procedure:
    Read the long text using READ_TEXT (function module) by passing the TDID, TDOBJECT, TDSPRAS, TDNAME (u can get these details by going through the menu edit-> go to header). 
    Store that in an internal table and then append all the lines of this internal table into a string Variable and assign this variable's text to the field in which long text is being displayed.
    This should work bcoz , in the database only the original Long text is stored and we are retrieving it and displaying back in the relevant field.
    Please reply if it works.....

  • Problem in viewing long text in QP03

    Hi
        Facing a strange problem while trying to upload long text in QP01 using SAVE_TEXT.
    the long text is getting uploaded properly
    an entry is inserted in STXH with object, id, name, etc.
    but when i try to view the long text in QP03 txn. (Display), there is no icon for view long text
    when i go back to QP02 in change mode, the icon for long text (Create long text without horizontal lines embedded on it) exists, after clicking it am able to see the long text and if i am saving the plan while leaving the txn, then again if i see the same plan in display mode (QP03), i am able to see the long text icon and the long text by clicking it..if and only if i view manually every long text in QP02 and save while coming out the txn., I am able to see the long text icon and the long text in QP03.
    Is it any setting problem or where am i wrong?
    Sathish. R

    hi
       r u sure? bcoz the program was running fine with long text viewable in QP03 all this time
    Sathish. R
    Message was edited by:
            Sathish

  • How to update long text in symptoms/problems ?

    Hi All,
    Can anybody help me regarding how to update the long text of a symptom/problem?
    Please help.
    Regards,
    Jeetu

    Hi Jeetu,
    Can you Please elaborate your query.
    Are you talking about Problem/solutions created using Tcode: IS01( used in service scenario)
    Or
    The Text Management i.e. Text Types
    Regards.
    Shalini Chauhan

Maybe you are looking for

  • Problem:Multiple instances of the same applet on a webpage...

    I have an applet which connects to a server to read an XML-file. I use Doucument to parse the XML-file like this: String xmlurl="http://www.somesite.com/somexmlpage.php"; Document d =DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(xml

  • Dowloaded Lightroom 3.  Now Photoshop CS4 will not open??

    Please help. Can anyone explain why my photoshop program will not open..  I use Photoshop Bridge then double click on an image and Photoshop opens. After I downloaded Lightroom 3 which I purchased through an on-line re-seller, I selected some images

  • Program to Update PSA

    Hi Expert Possible to write an abap program to update into PSA table with inseting data ? If yes, any example ? cause currently we are facing missing data scenario, and try to append the missing data into the PSA and update into ODS which is delta up

  • Downloading camera RAW updates

    As I recall, the issue of downloading camera RAW updates from Adobe has been addressed many times before. However, I've found that downloading the updates via Adobe's Internet updates download page on my Win 7 computer fail. I have to open Editor/Hel

  • Anyone tried using Xcode 4?

    With the public release of Xcode 4, I was wondering if anyone has tried using it for InDesign development? Any success stories? Any failures? What version of the SDK did you try? 3, 4, 5? Any important lessons learnt that you'd like to document?