Long text to be made mandatory in QA11 for rejected Inspection lots

Hi
My requirement is whenever a inspection lot is rejected in QA11 ie qave-vbewertung = 'R' then reason should be provided in log text section.It has to be made mandatory.
I am trying EXITs EXIT_SAPMQEVA_007 and EXIT_SAPMQEVA_004 but error message doesnt come.Even if i write code so that error message is triggered still information or abort message comes.Is there any way to forcibly display error message.
Can you suggest any other solution?
*& Include ZXQEVU09 *
DATA: v_lot TYPE qave-prueflos,
v_codevaluation TYPE qave-vbewertung.
DATA : it_mattext(150) OCCURS 0 WITH HEADER LINE,
v_string(1000),
l_name LIKE thead-tdname,
l_header LIKE thead,
it_lines LIKE tline OCCURS 0 WITH HEADER LINE,
v_string1(3000),
out_texts(57) OCCURS 0 WITH HEADER LINE.
v_lot = i_qals-prueflos.
v_codevaluation = i_qave-vbewertung.
IF i_qave-vbewertung = 'R'.
CONCATENATE sy-mandt i_qals-prueflos i_qave-kzart INTO l_name.
CLEAR : it_lines, it_lines[].
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'QAVE'
language = sy-langu
name = l_name
object = 'QPRUEFLOS'
IMPORTING
header = l_header
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc ne 0.
MESSAGE e030(zh).
ENDIF.
ENDIF.
I have tried Message 'Reason is mandatory' type 'E'. also...

hi Deepika ,
Instead try to message number try for this method 'MESSAGE ' 'Reason is mandatory' TYPE 'E'.
i think standard want call the message  number in user exit u need to decalre message id in starting of the program.
that is not possable .
i think this may help u.
regards ,
santosh
Edited by: santosh jajur on Jul 16, 2009 1:24 PM

Similar Messages

  • Ask split long text into two line into same cell for ALV

    Dear All,
    Is it possible split long text into two line into same cell for ALV display data?
    Regards,
    Luke
    Moderator message: please search for information before asking.
    Edited by: Thomas Zloch on Feb 24, 2011 10:12 AM

    Keep options: Select the paragraph, then CtrlAltK (Mac: CmdOptK, I
    think).
    If you want the paragraphs in pairs, create two paragraph styles. Style
    A has keep options set to start on a new page, and also, its Next Style
    is style B.
    Style B has no keep options, but it's Next Style is Style A.
    Select all the text.
    From the flyout menu of the paragraph styles palette, apply Style A
    "then next style."
    Now all paragraphs will be alternating -- style A, style B, style A, etc.
    Now do what I wrote initially, and you'll have pairs of paragraph in
    separate text frames.

  • QA11...Inspection Lot Stock Posting *RQEVA-SGTXT01*

    Hi All,
    In QA11, on the inspection Lot Stock tab, i m posting some qty for restriction, scrap n all...
    i want to know where the item text (RQEVA-SGTXT01)is stored for this..  on which table this is stored..???
    Thanks n Regards
    Aravindh Mani

    Thanks For ur Reply.
    U r talking about the Long Text of Usage Decisions...
    But i want to know the text typed in "To Be Posted" Under "Inspection Lot Stock" tab.
    U can Post the Quantity for
    To scrap             0.000
    To sample usage      0.000
    To blocked stock     0.000
    To new material      0.000
    To reserves          0.000
    Return Delivery      0.000..
    While posting every Qty a Small window Appears and asks for
    Reason for Mvmt
    Text   (this is the text we enter) ..... i want to know where this text is stored
    SLED/BBD ...(some date format)
    Hope u understand my requirement..
    Thanks n Regards
    Aravindh Mani
    Edited by: Aravindh Mani on Jul 17, 2009 12:16 PM

  • Printing long text from Routing instead of Production order for an order.

    Hi Gurus,
    When a production order prints it is printing  the long text from the routing master rather than the long text on the actual production order.
    This field is used to provide specific instructions in special circumstances in addition to the standard text.
    I need system to be changed so that printing takes long text from production order.
    Please help me.
    Naveen.A

    Hi,
    In the production order long text, the text we are maintaining is only for information. It can't be able to print. In Production order, copies all the masters and the texts which we are maintaining in the masters only will be able to print. Standard SAP will not print the production order long text.
    Regards,
    V. Suresh

  • So, a long time ago I made and Apple ID for my brother and I.  Is there a way to transfer his purchases to his own Apple ID?

    Is this possible?

    No, all purchases are permanently tied to the account that bought them. But you can authorize his computer for your account. Any Apple device can hold protected content from up to 5 accounts.
    tt2

  • Want to add new field in QA32/QA11 transaction under inspection lot stock

    Dear Experts,
    I want to add new field in QA32 transaction under inspection lot stock tab or under characteristic tab.
    The reason behind is: Depends upon UD decision i want to assing customer name. So already we are having one Z Report for all the lots against this lot we have to display customer name.
    So in order to fetch customer name in the Z report we want to assing customer through F4 selection in the usage decision  screen.
    I know this is possibe for Make to order scenario, but our senario is make to stock.
    Please advice your valuable inputs.
    Regards.

    Hi Sujit,
    Can you please elaborate it,coz i'm using the same but if i place the break-point in PBO of sub screen,the break-point won't be triggered.and is there any additional step to get the data from function group? if yes, please explain me indetail.
    If possible please provide the sample code for this.
    Thanks Inadvance.
    Madan
    Edited by: Madan.ngt on Mar 3, 2011 7:16 AM
    Edited by: Madan.ngt on Mar 3, 2011 7:17 AM

  • Long text uploading problem in BDC

    Hai Gurus
    please help me, it is urgent
    i want to upload more than 200 characters filed from flat file to every inspection lot record usage decision(QA11) through BDC for every inspection lot
    Brief description about my problem:  
    in the transaction QA11 , enter any new inspection lot number and press enter , in this next screen (after pressing enter) in  usage decision sub screen , create long text for UD icon is there in that we can enter long text(any number of characters ) through manually for single inspection lot but i want to enter long text for UD through BDC for more than one inspection lot automatically
    points will be rewarded
    Thanks

    Hai Gurus
    please help me, it is urgent
    i want to upload more than 200 characters filed from flat file to every inspection lot record usage decision(QA11) through BDC for every inspection lot
    Brief description about my problem:  
    in the transaction QA11 , enter any new inspection lot number and press enter , in this next screen (after pressing enter) in  usage decision sub screen , create long text for UD icon is there in that we can enter long text(any number of characters ) through manually for single inspection lot but i want to enter long text for UD through BDC for more than one inspection lot automatically
    points will be rewarded
    Thanks

  • How to make long text disabled in me51n ?

    hello friends,
    my requirement is, for tcode ME51N the CMP Remarks long text field should be mandatory. please check the picture.
    best regards,
    santanu nayek

    no sir not working
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form MODIFY_SCREEN, Start                                                                                                                         A
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 2  ZPO_SHORTTEXT.    "active version
    BREAK-POINT.
    DATA: L_TEXTTYPE1 LIKE MMPUR_TEXTTYPES.
    IF SY-TCODE EQ 'ME52N'.
       CLEAR L_TEXTTYPE1.
    LOOP AT GT_CONTROL-TEXTTYPES INTO L_TEXTTYPE1 .
    IF L_TEXTTYPE1-TDID = 'B05'.
    L_TEXTTYPE1-DISPLAYMODE  = ''.
    MODIFY GT_CONTROL-TEXTTYPES FROM L_TEXTTYPE1 TRANSPORTING DISPLAYMODE.
    ENDIF.
       CLEAR L_TEXTTYPE1.
    ENDLOOP.
    ENDIF.
    ENDENHANCEMENT.
    *$*$-End:   (1)---------------------------------------------------------------------------------$*$*
       DATA: L_TDID LIKE TTXID-TDID,
             L_TEXTTYPE LIKE MMPUR_TEXTTYPES.
       READ TABLE GT_CONTROL WITH KEY OBJECT = G_TEXTOBJECT.
       CHECK SY-SUBRC EQ 0.
       L_TDID = GT_CONTROL-CURRENT_NODE(4).
       READ TABLE GT_CONTROL-TEXTTYPES INTO L_TEXTTYPE
                                       WITH KEY TDID = L_TDID.
       CHECK SY-SUBRC EQ 0.
       LOOP AT SCREEN.
         CASE SCREEN-GROUP1.
           WHEN 'DEL'.
             IF L_TEXTTYPE-TEXTFLAG    IS INITIAL OR
                L_TEXTTYPE-FIXIE       EQ '*'     OR
                L_TEXTTYPE-FIXIE       EQ 'N'     OR
                L_TEXTTYPE-DISPLAYMODE EQ 'X'.
               SCREEN-ACTIVE = '0'.
               MODIFY SCREEN.
             ENDIF.
           WHEN 'COP'.
             IF L_TEXTTYPE-TEXTFLAG    IS INITIAL OR
                L_TEXTTYPE-FIXIE       NE '*'     OR
                L_TEXTTYPE-DISPLAYMODE EQ 'X'.
               SCREEN-ACTIVE = '0'.
               MODIFY SCREEN.
             ENDIF.
           WHEN 'TC'.
             IF L_TEXTTYPE-DISPLAYMODE EQ 'X'.
               SCREEN-INPUT = '0'.
               MODIFY SCREEN.
             ENDIF.
         ENDCASE.
       ENDLOOP.
    ENDFORM.                               " MODIFY_SCREEN

  • Empty long text in notification

    Hello Everyone,
    Here is my problem.
    We create a notification via IW21following these steps :
      - Fill the mandatory fields
      - Fill the Subject LONG Text
      - Create the order
    After saving the created notification and while trying to display/modify our notification, we find that the LONG Text previously filled EMPTY.
    Can you please propose a solution to get the LONG Text once we save the notification?
    For you information, I tried the solution Import FROM MEMORY ID 'SAPLSTXD000001' but the customer isn't satisfied with it and wants something more efficient.
    Thank you for your help.
    Kima

    Hi kima,
    I feel this thread has the answer. Long text not saving data
    Jogeswara Rao K

  • Object ID for PO long text for BDC of material master

    Hi all,
    we are working on BDC of material master:
       I have given some technical specifications in the P O text view of Material Master, i want to assign an object id for this long text , how to assign an object id for the long text?
    regards,
    urendra

    Hi
       thanku for quick response,,,  i had checked the textid,
       my problem was resolved, i have awarded some points
    thank u
    regards,
    urendra

  • Remove symbol # for long text in document line item

    Dear Experts,
    I enter some information in the long text field in document line item. For the area that I use "Tab" button, system will display as # symbol. Therefore when we print the information, the output will include the #### symbol which is not correct.
    Please help.
    Thanks.
    -Syaban-

    Dear Gaurav Aggarwal,
    Thanks for the reply, can you guide me the step to perform the suggested solutions? currently, we are using ECC6.
    Thanks.
    syaban

  • Long text for Operation in Tranasction IW32

    Hello Experts,
    I nned to display the short text and the Long text of Operations on a print out.For short text, I am importing data from memory using table AFVGD but i am not able to find out the data which is there in the long text.Kindly suggest how can i get the data like from which table or memory ID.
    Thanks ,
    Sahil

    SAPscript long texts header are stored in  STXH and lines are stored in non-transparent table ([Storing Text Components|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db668494511d182b70000e829fbfe/frameset.htm]), The FM [READ_TEXT|http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8c8494511d182b70000e829fbfe/content.htm] is called to get those texts in an internal table.
    To get the long texts id (OBJECT, NAME, ID, and LANGUAGE), call transaction IW33 (or 32) and display the text of an operation, then in the menu : goto, header data, you will get the constants "AUFK" and "AVOT",  and the current language code and the "key" that you will have to interpret. When the text is not displayed in the sap script editor, you will need to debug the program to find the key, or use the search tool at sdn of course
    Some samples for IW32/33 are :
    - Order header:  "AUFK",  MANDT+AUFNR, "KOPF", "E"
    - Operation: "AUFK", MANDTAUFPLAPLZL, "AVOT", "E"
    - Material:  "AUFK", MANDTRSNUMRSPOS, "MATK", "E"
    - Utilities: "AUFK", MANDTAUFPLPZLFH, "FHMT", "E"
    Regards,
    Raymond

  • Long Text Missing In COA(Certificate of Analysis) Report

    Hi Friends,
    We have a case where Long text entered in the results recording is missing  in the COA Report for only certain Batches .
    For same MICs and COA Profile,the Long text is displayed correctly in the report for the different batches.
    I have investigated this and text element been used in the MIC is 0024 Code short text with results long text.
    We have checked the COA Profile for this MIC and material has been assigned ,so profile find to be correct.
    The SAP form used for COA Print is a standard and MIC is of Qualitative.
    Could you please help on this .
    Thank you.
    Regards
    Siddartha

    No idea really but look at this:
    Any chance the user was logged in with a differnt language when they created the long text?  If they logged in as ES for instance, the long text might be stored as ES.  But the COA is bring printed in EN so the ES long text is not found.
    Do you see an entry in table STXH for the long text for the batches that don't display it?  (Text ID is QMEP).
    I'd compare the entries in STXH for a long text that prints and one that doesn't and see if you notice any differences.
    Craig

  • FI document Line item Long text store in which table .

    Respected Members,
    During posting of the FI document through Tcode F-02 i m giving the some text in the long text not in the text field.
    Please anybody can be help me out where exactly this long text is going to be stored or in which table.
    Through F1 it is saying Field is TXLINE and Structure is RSTXT.
    But  i want the table name.
    Please give me the answer as soon as possible .
    Thanks a lot.

    Hi Lee,
    I am also facing problem in getting the long text information into my on e of the custom report, i need onformtion in longtext field of the accounting document number which is against item posted to vendor.here i am sending you the screenshot of the document number and long text filed and READ_TEXT function module parameters, i  tried with lot of options,but no luck, it would be great if you could provide me some hint on this..

  • Put Fixed guide line in long text of Notification: IW21

    Hi,
    I have an requirement where I need to put some fixed guide line in the notification long text whenever notification order gets created.
    For an example below guidelines need to be incorporated automatically in the long text of notification whenever they get created
    Ex:
    Long Text Template as follows:
    Detailed description of fault:
    What caused the fault?
    Action taken to date:
              Who:
    Suggested Repair / resourcec:
    Please suggest how can I implement this requirement?
    Appreciate your help in advance.
    Thanks,
    Jay.
    Moderator message : Duplicate post locked. Continue with original thread.
    Edited by: Vinod Kumar on Sep 14, 2011 11:29 AM

    Hi,
         Check the user exit :- QQMA0025 PM/SM: Default values when adding a notification
    For wiring into longtext i think u can update via WRITE_TEXT
    You should also ensure that this information  should not be changed
    regards
    pushpa

Maybe you are looking for