Long Text to Short Text connversion in IW31/IW32

Hi Experts,
I am working on a requirement where I need to overwrite the short text for material description with the long text while creating the maintenance order in IW31/IW32.
Initially I thought of handling this in a implementation of BADI IWO1_PREQ_BADI in method DECISION_COLL_PREQ.
But this this method is gettign triggered when the paurchasing data is being entered and even before the long text is entered.
Once the order is ready to be saved, and once the user clicks on save I want to write this conversion where I can copy the long text into short text overwriting the material description in component tab of IW31/IW32.
Please check and suggest the BADI/userexits for thsi purpose.
Regards
Kishore

Hi Kishore,
Go to transaction SE24, class name CL_EXITHANDLER, go to methods, double click on method GET_INSTANCE.
Set a break point at
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
CASE sy-subrc.
Now run trasaction IW31, press f8 till you reach bfore save button, enter the long text and all, now press the save buttton, control will break if in case any BADi is there(I think there is), exit name and instance will give you the BADI details.
I think this is one of the simplest way.
Thanks and Regards,
Antony Thomas
Edited by: Antony Thomas on Aug 10, 2010 12:13 PM

Similar Messages

  • Operation Long text creation problem in IW32

    Hi experts,
    I have a requirement of showing a checklist pop up for all the new external operations in creating a MPA work order(IW32). And when the user answers the questions on the checklist, I have to copy all the questions and answers into the long text of the corresponding operation.
    The problem here is,
    for a case when the long text is not yet created for a new line item, when the pop up is shown and answers are filled, I am creating a new standard text using SVE_TEXT(setting the insert paramter 'X'), but the standard text is getting created in the database i.e a record is getting created in STXH with the text id, text name, text object of the operation. But when I go to IW32 and see the operation line it shows the create long text icon which says that the text is not created at all.
    In a case where the long text is already created for the operation, and then the pop up is shown with the questions and answers are filled, the questions and answers are copied into the operation long text which is already created. So this works fine.
    If any pointers regarding this please let me know.
    Thanks and Regards,
    Asha

    Hi,
    Try passing SAVEMODE_DIRECT = 'X' and check..
    also check if the text exists using the function module READ_TEXT once you do the SAVE_TEXT..
    Thanks,
    Naren

  • Long Text getting truncated in IW32

    We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
    When reviewing the long text in the Office integration screen, We can see that all text is there.
    If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
    If a user modifies teh long text in the office integartion screen, no text is lost.
    Any help on the cause and how to prevent this would be appreciated.
    Scott

    hi ,
    thanx for the reply,
    text gets truncated in print preview itself.
    i put breakpoint in  se38  and in sapscript.
    in se38 the variable shows full text, but in sapscript, it gets truncated.
    coding in sapscript
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
    /:           SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
    /:           BOX HEIGHT '9.0' LN FRAME 10 TW
    /:           PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
    /:           USING  &EKKO-EBELN&
    /:           CHANGING &PO_TEXT&
    /:           ENDPERFORM
    /:           IF &PO_TEXT& NE ''
    S7           &PO_TEXT&
    /:           ELSE
    /:           ENDIF
    regards
    senthil

  • Locking / grey out long text data in transaction IW32

    Hi, I read in Locking/grey out long text data (From Coding point of view ) that there is a way to block the long text description via configuration.
    Well. Could you tell me how to do this, please???
    Thanks a lot!

    I set a breakpoint there and the program never stop there.
    I'll try to describe my problem.
    I go to IW32 transaction, at the components tab I click on the Long Text button of each component of the order and I can modify it. Well, the client doesn't want that.For a type of order, the user cannot modify that text.
    The more strange thing is that I tried to get the text with READ_TEXT function with the same parameters as the standard and it tells me that the text doesn't exists.
    I'm starting to hate this module....

  • Amend Short & Long Text in GL A/c master

    Hello All,
    We created a GL account without reference to an eisting account at Chart of Accounts level. We do not attach it to any Company code. In this situation we are able to amend the short & long text of the GL account after it is saved.
    But in case we create the GL account with reference to an existing account at CoA level not attaching it to any Co. code & saving it; we are now NOT able to amend the short & long text of the account. We are allowed to amend only the GL account group.
    Please let me know by using what method we will be able to amend the short & long text of this GL account.
    Thanks
    Shreenath

    Hello,
    This short & Long text could be finally resolved by using transaction OB_GLACC13 - Mass changes
    Kaustubh

  • GL Account Short vs. Long Text

    Where is the short text vs. long text used in the system for GL account descriptions?  There is not enough room right now in the short text field for our account descriptions so we are concerned what the implications of using the same names across multiple accounts for the short description but putting all the correct detail in the long text field.

    Hello,
    Normally these short text are visible when you go with F4 (drop down list), you will see the short text. As stated earlier, I would not recommend any changes to standard screens. Many of the SAP implementation that I have seen gone with the standard and used the length provided by SAP.
    Business need to use more logic when they are defining short and long texts. If you are creating cost elements, note that the same short and long text will be copied to COST ELEMENTS.
    Regards,
    Ravi

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Field Short Text and long Text not displayed in SKA1 in Se17

    When try to extract chart of account data from SAP using Tcode se17 and table ska1. Short text and G/L acc long text are not displayed where as these are displayed when we use t code se16 and table ska1.
    My client want to use specifically se17 for extracting the data.

    Vineet,
    that's a joke isnt' it ?
    se17 is from SAP-Rel 2.1 or s.th.!
    all jokes aside - the inclusion of text table (here table skat - to table ska1) is only realized with transcations SE16 and SE16N.
    To program this inclusion to se17 is very costly - i think and a modification too!
    hope you can persuade your client
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=iwo3sshliihvcradiegqaw%3d%3d">andreas Mann</a>

  • In ECC6,how to use tcode se63 to translate short and long texts?

    In sap 4.6c, I know how to use tcode se63 to translate short and long text. However, in ecc6,when i use se63 to translate abap data element short  texts, i cannot save it .A error message appare: Could not save target text  Message no. SKTY000.
    Can any body help me?

    Hi,
    This is  because o source language must be different from target language.
    regards,
    Eduardo Marcelino

  • Creation of short text and long text?

    Hi,
    We create short text by using oe_fnd_attachments_pub.create_short_text_document and oe_fnd_attachments_pub.add_attachment API and to create long text we use fnd_documents_pkg.insert_row .
    Why is it that we have different approaches for creation of short text and long text?
    I know that oe_fnd_attachments_pub.add_attachment is used to attach a short text to some entity,but then why we dont do the same for long text?
    Please lemme knw urgently ...
    Thanks and Regards
    Amar

    Thanks for the help,
    I looked into the document and i got to know few things as to how short and long text are created, but can u tell when the records are inserted into fnd_attached_documents, because i can see that records are inserted into fnd_attached_short_text and fnd_attached_long_text, fnd_documents but i dont see any insertion into fnd_attached_documents, can u lemme knw how and when it is done?

  • Short Text and Long Text for WBS

    HI All,
    I am working on Interface Project where I need to enter Short description and long text for a WBS with external text.
    Let me know if any FM Module is exist for same where I can Put this Short Description and Long Text seprately for a WBS Element.
    Regards,
    Atul R. Rajmane

    Hi Atul,
    I think you can enter short description & long text seprately for a WBS while creating entire struture of project in PS only. I don't think other than PS you will be able to enter short & long text for individual WBS.
    Regards,
    Sandeep

  • GL short text/ long text

    Hi guys,
    Is it possible to display both GL short text and GL long text while performing transactions.
    Normally the long text is only displayed.
    Is it also possible to display the short text.
    Thanks,
    Srikanth.

    hi
    standard SAP does not have this functionality

  • Exit to create long text of notification by IW31

    Hi
      We have requirement , where we have to pass some fixed text to notification's long text when notification is being created by TCS service order(Tcode- iw31).
       Is there any exit/bapi/ fm to achieve same?

    issue is solved.
      I had to do implicit enhancement at end of FM ' IQS0_CREATE_NOTIF_TO_ORDER'.
    Code is as below.
       ENHANCEMENT 1  ZENH_IW31.    "active version
    * Declaration of local variables, workareas and internal tables
    DATA: LTA_LINES  TYPE STANDARD TABLE OF TLINE,
          LWA_LINES  TYPE TLINE,
          ltp_zaccesstime TYPE zaccesstime.
    IF SY-TCODE = 'IW31'.    " Put condition for code
    SELECT SINGLE zaccesstime
               FROM equi
               into ltp_zaccesstime
              WHERE equnr = VIQMEL-equnr.
        IF sy-subrc Eq 0.
         LWA_LINES-TDFORMAT = '*'.
         CONCATENATE 'Access Time:' ltp_zaccesstime INTO LWA_LINES-TDLINE SEPARATED BY space.
         APPEND LWA_LINES TO LTA_LINES.
         CLEAR: LWA_LINES.
        ENDIF.
       CALL FUNCTION 'IQS0_ADD_NOTIFICATION_LONGTEXT'
         EXPORTING
           i_qmnum             = VIQMEL-QMNUM
    *      I_POST              = ' '
    *      I_RESET             =
         tables
           t_inlines           = LTA_LINES
        EXCEPTIONS
          SHOW_MESSAGES       = 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.
    ENDIF.
    ENDENHANCEMENT.

  • CATS Short Text & Long Text

    Hello Experts,
    How are "Short Text" and "Long text" used in CATS? I thought that these were supposed to be two separate text fields, but when I make an entry in the Long text field, the value shows up in the Short Text field.
    Are these two separate fields? Any ideas how to use both Short Text and Long text and not have the value copied from one to the other?

    Hi,
    You can Create a rule in Alert Configuration based on the <b>error code</b> under "where did the error occur".
    Based on this you can trigger the required Alert category.

  • Short and long texts

    Dear Experts,
    I have many BW objects (like Infocubes, Infoobject catalogues, Infoobjects) for which no short and long texts are maintained in one language. Now, all these are in use in the production system. I have to edit the short and long texts for all of these objects. My intention on how to do it is to,
    1) Logon to the Development system
    2) Edit short texts manually for all of the objects.
    3) Collect the changed objects in Transport organiser and transport to the productive system.
    My only question is does we need to do any thing in the production system after transporting these objects for them to get reflected.
    Any help and other thoughts are greatly appreciated...
    Kind Regards,
    Shravan

    Transport Changes and that's all ...
    Hope it helps
    GFV

Maybe you are looking for

  • TNS error while opening the form in IE 6

    Friends, DB OS: RHEL AS 3 (oracle 9iR2) OAS OS: RHEL AS 4 Client OS: windows xp sp2 when i try to open the form from windows xp...... it ask me the username/password/database when i enter.... username: system password: oradba database: orcl its conne

  • Webi report on top of dervied tables

    Hi Team, We are going to work on a migration work from Discoverer to BO 4.1. As per my understanding in discoverer each tab in a report has a SQL query (We have oracle as DB) which will be used to build that tab. Same for the next tab, it will have i

  • Unusual  NoSuchMethodError  thrown by GetMethodID  while making a JNI call

    Hi All, I am using Java 1.6 on solaris and I am calling a method of a java class from a c program. As part of JNI procedure to call this java method, I sometimes get NoSuchMethodError thrown by Jni's GetMethodID which I will be calling before CallVoi

  • Editing ID Tags

    How do you "embed" the ID tags into the songs? These are songe downloaded from a Torrent. I change the info using "get info" but other than changing the title, the artist name and album name do not change in the file.

  • Separate Audio Tracks

    I'm using logic with little knowledge of the program. I have 1 audio track with samples, then i needed more audio tracks for more samples and vocals, however it seems that every individual audio track plays all the other audio tracks thru it at the s