How to make item text mandatory in me51n tcode .

hello experts,
i developed this code , but it is not working , please suggest me wat i did mistake in my code.....
*data : it_lines1 type tline occurs 0 with header line .
*data :tdname like stxh-tdname.
*loop at im_t_eban1.
if im_t_eban1-werks = '3000'.
   if sy-tcode = 'ME51N'.
     concatenate im_t_eban1-banfn im_t_eban1-bnfpo into tdname.
     call function 'READ_TEXT'
       exporting
         client   = sy-mandt
         id       = 'B01'
         language = 'E'
         name     = tdname
         object   = 'EBAN'
       tables
         lines    = it_lines1.
     loop at it_lines1 .
       if it_lines1-tdline is initial.
         if sy-subrc <> 0.
           ex_mes1-type = 'E'.
           ex_mes1-id   = 'ZMM_MSG'.
           ex_mes1-number = '063'.
           append ex_mes1.
           ex_messages[] = ex_mes1[].
           clear ex_mes1.
           free ex_mes1.
         endif.
       endif.
     endloop.
   endif.
endif.
*endloop.
note: here no 63 is message no ,( please enter item text).

Hi,
Message e63(ZMM_MSG) .
Try This .
in place of
*ex_mes1-type = 'E'.
ex_mes1-id = 'ZMM_MSG'.
ex_mes1-number = '063'.
append ex_mes1.
ex_messages] = ex_mes1[.
clear ex_mes1.
free ex_mes1.

Similar Messages

  • How to make "item text" mandatory in PR

    Dear Friends,
    I want to make the item text field mandatory  in Purchase Requisition so that no user will be able to create a PR without entering value in this field. Later on I want this field to appear in the PR printing.
    Suggestioins will be highly appreciated.
    Regards
    Rutabhadra Panda

    Dear,
    SPRO >M M>Purchasing>Purchase Requistion>Select Field Selection.
    here go to Tcode for u want to make it mandatory.
    Select then go to Basic Data & Item and select Text and make the radio button Regired Entry.
    This may help u
    Reagrds,
    Pardeep Malik

  • 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

  • How to make Business place mandatory

    Hi, SAP Gurus,
    How to make business place mandatory in "MIRO ". As i know there are two ways
    1) Through Screen Variant T/code: SHD0
    2) Validation
    But here  i Never worked on sreen variant level and validation, I need step by step to make business place mandatory in MIRO
    bY USING ABOVE T/CODES,
    Regards,
    Prabhakar

    Hi Bhanu,
    Use T.Code GGB0 - Validation maintenance - Change Validation overview.
    Choose Financial Accounting in Application area. Select Line Item and click Validation create icon.
    Give a Validation ID BP and text Business Place Mandatory and save.
    Click Step icon - Step 01 - now the prerequisites; check and message will come in margin panel.
    Give text for the step 01. Click Prerequisites. You can see the Table Fields  Structure BKPF, BSEG, and SYST.
    If you double click on this you view individual fields relating to these master tables.
    Your prerequisite may be like this :
    Company Code is = XYZ ; T.Code = MIRO & F-43; Posting key = 31 ( Credit Vendor)
    Double click BKPF > double click  BKPF-BUKRS>  click "=" >  click constant > a pop up box will open
    here fill up your company Code XYZ.  This will automatically come in the top box.  Click "AND". Now  there is a back arrow
    button in the table field panel and come back to the original display of master tables.  Here double click SYST
    Click SYST-TCODE > click "=" > click Constant > in the pop up box enter tcode MIRO. If you want to add F-43,
    you have to click "AND" after this and repeate SYST-TCODE = F-43. Now click back arrow and double click BSEG and
    click BSEG-BSCHL > Click "=" > Click Constant > in the popup window enter 31 and save the prerequisites.
    (For the above requisites, the system will check if  Business Place is 1000 is filled up during transaction and if not it has to
    give a error message.)
    Now Click Check in the right margin below prerequisites menu. Again the table list will be seen with BKPF, BSEG and SYST
    Double click BSEG > click BSEG-BUPLA > Click "=" > Click constant and in the pop up box fill the business place 1000 and save
    the check menu.
    In the right margin now double click message.  Here you can create a message text of your own "Business Place mandatory"
    Save the Message and come back and finally save the Validation so created.
    Now use T.Code OB28 and enter your Company Code > give call point 2 > and Activation level 1 and save the entries.
    Now you can check for the transaction in MIRO where without filling the Business Place field you cannot save the entries.
    Hope the above steps will be clear for you.  If you have any doubt please revert back.
    Best Regards,
    Sadashivan

  • How to make a field mandatory in SAP Business one ?

    How to make a text field mandatory in SAP Business one?

    hi nishant,
    check this link
    Making fields mandatory
    To Set Mandatory Fields in Documents
    Jeyakanthan

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to make a text "drawer" in iWeb

    Does anyone know how to make a text "drawer" in iWeb? What I mean is when you click on a hyperlink to read more text, but instead of opening up a new page, it makes the text appear below the link on the same page.

    Anything fancy with iWeb has to be done in the HTML Snippet or after publishing the page.
    Find the code for the drawer, apply it and show us the result.
    Perhaps not the drawer you had in mind but this is something near:
    http://www.wyodor.net/Ajax/
    Here's another one with drawer in the title:
    http://jqueryfordesigners.com/slide-out-and-drawer-effect/
    http://jqueryfordesigners.com/demo/plugin-slide-demo.html
    Found with : [text drawer|http://www.google.com/search?client=safari&rls=en&q=text+drawer&ie=UTF-8 &oe=UTF-8]

  • How to make a field mandatory in billing

    How to make a field mandatory in billing document,if m right with the help of incomplition log but how.....
         plz reply the full configuration.

    Hi Mohan,
    We normally create a billing document with reference any other document say Order or delivery.
    so, all the necessary information in the invoice will be taken from preceeding doucments. Thats way in the order level we check for incompletion log. If any important data is missing in the order level then the succeding documents will not be created.
    Thats way in the billing documents all the necessary information will come automatically either from preceeding documents or from master data.
    Still you want to make any field mandatory, you can do these by modifieing Billing documents user exists,you can make which ever the fields are mandatory and to be checked before saving. so when you are going to save the invoice, it will check if these fields are maintained or not.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • How to make the text in sub-division

    Hi,
    I am usign text  module in my adobe forms.
    Text in text module contains sub-divisions as a), b) and c). Each sub-division are in a separate line.
    While in pdf, all the sub-division combines and comes a single paragraph.
    What  would be the problem for this issue? Any Idea?
    May I know how to make the text in sub-division as in text  module?
    Thanks,
    Thiyagu
    Edited by: Thiyagu on Oct 26, 2009 7:08 PM

    Hello, experiment with Object - Field tab. Do you have your text field with "allow multiple lines" checked? I guess so. And what about the field format? Plain text or Rich text? Please try:)) Regards, Otto

  • How to make indented text in Muse

    How to: make indented text in Muse, like a list with bullits

    I read on another post that you can do ALT 0149 (WIN) and it will create a bullet in Muse.  I tried ALT+0149 and then ALT then 0149 and neither one created a bullet so I must not be understanding the key shortcuts to create the bullet.
    The above video is not captioned (I'm deaf) so I don't understand how he's creating the bullets.  Can someone explain what I'm doing wrong?
    PS - when videos are made, it would be nice if you brought some kind of graphic on saying (for example) "Press the [whatever] key" so deaf people can see what's happening.

  • How do make the text on a label Bold?

    Simple question: How do make the text on a label Bold?

    use html : label.setText("<html><body><b>TestText</b></body>/html>");
    regards,
    Tim

  • How to make changes in standard transaction ME51N.

    Hi,
       Can anyone tell me how to make changes in standard transaction ME51N.
       I want to call transaction AS01 by clicking on standard button create asset. Please do the needful.
    Regards.
    Aniruddha

    Hi anirudda
              As i understood from your question is that you want to add a new field 'CREATE ASSET' on me51n screen.
    If i am correct you can use 'MEREQ001' enhancement for this purpose and you can write you code in the exits available in this enhancement.
    Please check the documentation of this enhancement for more info.
    (Use Smod for this purpose)
    I hope it is helpful.
    Reward points
    Thanks,
    Prasanna

  • How to make relationship block mandatory?

    Hi,
    Please let me know how to make relationship block mandatory to create a business partner?
    Vinay

    Hi Vinay,
    Did you try to set the flag mandatory in the configuration of the relationship view for a field (e.g. relationship).
    Just go to the view in the component workbench, select your configuration, mark a field and go to Show Field Properties.
    Hope this helps.
    Regards, Thea

Maybe you are looking for