Make Requisitioner Field OBLIGATORY in ME51N.

Hi All,
In Transaction ME51N and ME52N I want to make REQUISITIONER field Mandatory.
for that I Chanegd the Attribute of the field AFNAM from screen 3328 of Function pool MEGUI to REQUIRED.
In the preview of the screen its showing that field as Obligatory but in the Transaction ME51N and ME52N it is not reflected as mandatory.
Can someone help on this please?
Regards,
Tejas

I hope you are making mandatory in SE51 Layout ->doble click on field as keep as obligatory.
but somewhere it is changed from mandatory to regular field ,look at code and somehwhere they written loop at screen.
try to write down in PBO as
loop at screen.
if screen-name = ur field name.
screen-input = '1'
modify screen.
endif.
endloop.
Reward Points if it is helpful
Thanks
Seshu

Similar Messages

  • How to add the Match code object for the requisitioner field in TCODE ME51N

    Hi,
    How to add the search help (Match code object) for the requisitioner field in transaction ME51N.
    Please  do the needful to me.
    Regards
    Rajesh

    don't you think that posting your question to a microsoft developer site would be more efficient?
    regards,
    anton

  • How can we make screen fields obligatory?

    hi, guru's
             how can we make screen fields obligatory while desiging a screen in screen painter (se51)?
    regards,
         satheesh.

    Hi,
    Go to attributes of the field in layout..
    go to program tab and check input field..
    and in drop downlist put required..
    Thats it..
    Reward points if it helps..
    Regards,
    Omkar.

  • CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    Hello Bhupinder
    If the field is on a selection screen you can use the following coding:
    AT-SCREEN OUTPUT.
      IF ( <condition is true> ).
        LOOP AT screen.
          IF ( screen-name = 'my field name' ).
            screen-required = '1'.
            MODIFY screen.
         ENDIF.
        ENDLOOP.
      ENDIF.
    The same logic can be applied for dynpro fields (also code in a PBO module).
    Regards
      Uwe

  • Make Material Field optional in ME51n for RV Document

    Dear All Gurus,
    This is my reuirement. In ME51n when user selects RV Document (Outline Agreement Requisiton - EBAN-BSART = 'RV') ,
    metrial field is compulsory.
    I need to change this option as non - compulsory filed (avoid error message) .
    How do I do this ?
    Thank you in advance

    it is because same material no. can represent different materials in different plants if the valuation is at plant level
    Never heard this before. How can this be, if you have only one general data view for several plant and valuation views?
    creating a requisition without plant does not make any sense. This would mean that you do not know for whom you request this part.  If that is the case ,then better wait until you have the knowledge.
    If the requestor does not know the plant, how shall this be known by the pruchasing then?

  • Make a field obligatory by clicking on a check box

    SELECT-OPTIONS:
                so FOR ztable-so OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-b02.
    PARAMETERS: check1 TYPE char1 AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b2.
    here my requirement is that so should be obligatory only when checkbox is clicked ie check1 = 'X'.
    Plz help

    Hi,
    get off the obligatory addition from your select option and then write this.
    <b>
    At selection-screen output.
    IF check1 = 'X'.
    LOOP at screen.
       if screen-name = 'SO-LOW' OR
          screen-name = 'SO-HIGH'.
          screen-required = 1.
          modify screen.
       endif.
    ENDLOOP.
    ELSE.
    LOOP at screen.
       if screen-name = 'SO-LOW' OR
          screen-name = 'SO-HIGH'.
          screen-required = 0.
          modify screen.
       endif.
    ENDLOOP.
    ENDIF.
    </b>
    Regards,
    Wasim Ahmed
    Message was edited by: Wasim Ahmed

  • How to make a selection screen two fields obligatory

    Dear friends...
       I wish to know how i make two fields obligatory in the selection screen
    like
       select-options  Po_Num for  ekpo-ebeln obligatory.
       select-options  Po_Date for  ekko-aedat.
       select-options  Material for  mara-matnr.
    in the above example i am looking for po_num and po_date both obligatory but if i dont enter data in the po_num, po_dat becomes obligatory and po_dat has no data entererd po_num is obligatory. i wish to know how i achieve single field act as a obligatory in absence of another field. please help in this regards..
    thanking you,,,
    regards.
    Naim

    REPORT  ZMM_COMP_POS  no standard page heading line-size 225
    tables:  ekko, ekpo, mara.
    data: begin of i_ekko occurs 0,
          ebeln like ekko-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekko-aedat,
          waers like ekko-waers,
          ernam like ekko-ernam,
          end of i_ekko.
    data: begin of i_ekpo occurs 0,
          ebeln like ekpo-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekpo-aedat,
          waers like ekko-waers,
          menge like ekpo-menge,
          meins like ekpo-meins,
          ernam like ekko-ernam,
          lgort like ekpo-lgort,
          netwr like ekpo-netwr,
          recd(16) type p decimals 3,
          rec_val(16) type p decimals 3,
          end of i_ekpo.
    data: lines type i.
    data :itab_output like i_ekpo occurs 0 with header line.
    data: itab_output3 like standard table of itab_output .
    data  data.
    data  total like sy-dbcnt.
    data  recd(16) type p decimals 3.
    data  rec_val(16) type p decimals 3.
    data : it like i_ekpo occurs 0 with header line.
    selection-screen begin of block b1 with frame title text-010.
    select-options Po_Num for ekpo-ebeln .
    select-options Po_Date for ekko-aedat.
    select-options Material for mara-matnr.
    selection-screen end of block b1.
    at selection-screen.
    if po_num[] is initial
      and po_date[] is initial.
    message e001(00) with 'Make at least one entry'.
    endif.
    start-of-selection.
    if  PO_NUM is initial and
         Po_Date is initial or
         Material is initial.
             select ebeln ebelp matnr
                    menge meins netwr
                    aedat
                    from ekpo
                    into corresponding fields of table i_ekpo
                    where ebeln in Po_Num.
    endif.
            loop at i_ekpo.
                  select ebeln aedat waers ernam
                         from ekko
                         into corresponding fields of table i_ekko
                         where ebeln in Po_Num.
                  if sy-subrc = 0 .
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
                     modify i_ekpo transporting ebeln aedat waers
                                                ernam
                                                where ebeln = i_ekko-ebeln.
                     clear i_ekko.
                   endif.
               endloop.
               describe table i_ekpo lines lines.
               if lines le 0.
                  message e017(zk).
               endif.
          select ebeln ebelp matnr
                 menge meins netwr
                 werks
                 from ekpo
                 into corresponding fields of table i_ekpo
                 for all entries in i_ekko
                 where ebeln = i_ekko-ebeln .
          sort i_ekpo by ebeln ebelp.
          sort i_ekko by ebeln.
          loop at i_ekko.
            read table i_ekpo with key ebeln = i_ekko-ebeln.
            if sy-subrc = 0.
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
               modify i_ekpo transporting ebeln aedat waers
                                          ernam
                                          where ebeln = i_ekko-ebeln.
           endif.
        endloop.
      describe table i_ekpo lines lines.
      if lines le 0.
        message e017(zk).
      endif.
      loop at i_ekpo.
       write:/1 sy-vline,
           (5) i_ekpo-ebeln left-justified ,sy-vline,
           (10) i_ekpo-ebelp left-justified ,sy-vline,
           (15) i_ekpo-aedat left-justified ,sy-vline,
           (18) i_ekpo-ernam left-justified ,sy-vline,
           (23) i_ekpo-matnr left-justified , sy-vline,
           (27) i_ekpo-menge UNIT i_ekpo-meins left-justified , sy-vline,
           (29) i_ekpo-meins left-justified , sy-vline,
           (31) i_ekpo-netwr CURRENCY 'INR' left-justified ,sy-vline,
           (33) i_ekpo-waers left-justified ,sy-vline.
    endloop.
       write:/(743) sy-uline.
    top-of-page.
        write:/30  'ESSAR CONSTRUCTIONS LTD.' color 6 inverse.
        write:80 'DATE :' color 6 inverse, sy-datum  color 6 inverse.
        new-line no-scrolling.
        write:/30 'PO Details.' color 7 inverse.
         write: /(743) sy-uline.
      format color col_heading on.
         write:/1 sy-vline.
         write: (5) 'PO no.',sy-vline,
               (10) 'Item no.',sy-vline,
               (15) 'PO Date' color 1,sy-vline,
               (18) 'PO Created By.',sy-vline,
               (23) 'Material No.', sy-vline,
               (27) 'PO Quantity', sy-vline,
               (29) 'PO Unit', sy-vline,
               (31) 'PO Value',sy-vline,
               (33) 'Currency' , sy-vline.
        write:/(743) sy-uline.
        format reset.

  • DYNAMICALLY MAKE A parameter OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

    Hi,
    Here is the code.
    parameters : p_abc type i.
    at selection-screen on p_abc.
    if <condition1>.
      if p_abc is initial.
        message e001 .
      endif .
    endif.
    Regards,
    Richa

  • How to Make one of 2 Selection Fields Obligatory

    Hi All,
    On my seletion screen, i have about 5 select-option input fields. The thing is I want to make the 'article' (s_matnr) and the 'merchandise category' (s_matkl) fields obligatory. The way it should be is that one of them should be obligatory at a time not the 2 at the same time. And 1 of them must be filled they can't be run wide open.
    So in Summary, the user must either provide an input for either the ariticle or the merchandize category, not the 2 at the same time and not neither.
    Thanks.

    hi basil
    how you did

  • Make (LDB)PNP Fields obligatory on selection-screen

    I am using LDB PNP.. I want to make some fields of PNP as obligatory. How Can I do that?
    So far I am doing the following...
    <b>Initialization.
    PNPABKRS-LOW = '?'.
    Append PNPABKRS.
    At selection-screen.
    if PNPABKRS-LOW is initial.
    PNPABKRS-LOW = '?'.
    Message e100(z01).
    endif.</b>
    What you suggest ?
    Thanks
    Message was edited by: Saquib Khan

    You have to do this way,
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'PNPABKRS-LOW '.
          SCREEN-REQUIRED = 1.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.

  • I want to make Requistioner field Mandatory in the Purchase requistion.

    Whenever i create purchase requistion i want to make  Requistioner field mandatory. I have checked the filed selection NBB and changed to mandatory and ME51 also  made mandatory after that also whenever i create with ME51 PR is going to next screen without asking for requistioner.
    Please let me know where actullay i have to make mandatory so that whenever i create it should ask the requistioner.
    Thanks.

    H,
    You also select the field Requisitioner as mandatory for below field selection>
    AKTH,ME51 & ME51N
    Because always the field selection: mandatoey , display & optional    will work in
    Setting Priority
        Hide 1
        Display 2
        Required entry 3
        Optional entry 4
    SAM
    Edited by: Saminathan Gopalan on Jun 22, 2010 3:25 PM

  • 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 set selection screen field obligatory dymically

    hi expert,
    i have to make selection screen field obligatory while selecting a check box,i am using the following code can any one help me regards, thanks in advance.....
    PARAMETER:p_user TYPE adr6-smtp_addr ,
              p_check AS CHECKBOX user-command ucomm.
    at SELECTION-SCREEN.
    case sy-ucomm.
    when 'UCOMM'.
      PERFORM set_obligatory.
    ENDCASE.
    FORM set_obligatory .
      LOOP AT SCREEN.
      IF SCREEN-name = 'P_USER'.
      SCREEN-REQUIRED = 1.
       MODIFY SCREEN.
      ENDIF.
      ENDLOOP.
    ENDFORM.                    " set_obligatory

    Hi,
       The following is the sample code.
    PARAMETERS : p_barea TYPE ps0171-barea DEFAULT 'Z1' MODIF ID pb,
                                                " Benefit Area
                 p_imfil TYPE rlgrap-filename,  " Import file name
                 p_lock  TYPE ztx_int-int_name
                   DEFAULT 'ZHBNT06A_METLIFE_INBOUND' MODIF ID pb, " Lock
                p_test  TYPE c AS CHECKBOX,    " Test run
                 p_update type c as checkbox. " default 'X'
    SELECTION-SCREEN END OF BLOCK selb01.
                          AT SELECTION-SCREEN OUTPUT                     *
    AT SELECTION-SCREEN OUTPUT.
    Benefit Area field made display only field
      LOOP AT SCREEN.
        IF screen-group1 EQ 'PB'.
          CLEAR screen-input.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Regards
    Vick

  • Screen field - Obligatory in SE51

    Hi ppl,
    I need to modify a screen field in a SAP transaction. I want it Obligatory...
    Cant find that property...
    Thanks,
    I will award points.

    Hi Alin,
    If you want to add or make any obligatory fields on a screen , then you need to go for USEREXITS and write the appropriate code as per the requirement.
    OR
    If you want to make the field mandatory in the custom screen.Then use the option REQUIRED present beside the Input present in the bottom of the properties of the Input/Output field of the screen painter Layout in the attributes block.
    Reward if helpful.
    Thanks,
    Khan.

  • Requisitioner field in PR

    Hi All,
    Can we do something so that the requisitioner field in the PR automatically takes the user ID of the user who is creating the PR?
    Regards,
    V S

    Hi,
    Its already done.
    Please refer the below links
    default value in field "requisitioner" in ME51N
    DEFINE REQUISITIONER IN PR
    Thanks.

Maybe you are looking for

  • Set up activities with PP-PI

    Hi all I'm trying to transfer recipes from ECC to APO, but I have a problem when creating set up activities. In APO they are not being created. I belive is that in the resource there is no formula to calcule the set up time. And there is no place for

  • Safari doesnt load but Chrome does. Any guesses?

    Hi guys Cant operate Safari. Open it but it stops loading half way. Its not WIFI at home as Chrome runs. Also, Safari does run when I connect to the internet via my iPhone! If in other places (different WIFI), it also runs smoothly. What problem do I

  • How to use SAP Business One as a source system for SAP BW 7.1

    Dear Experts, We have SAP Business One system as a transactional system. We need to connect the same to SAP BW so that we can deliever reports for this system in SAP BW. I want to know how the integration between these two systems work. Are there sta

  • Perspective - designed paper on a table

    I would like to take designed invitations (some have photos, some graphics, all have text) and give them a perspective to look as if they have been printed and are sitting out to be viewed, like on a table.    I have reviewed some perspective tutoria

  • BR 100 for Advanced Pricing

    Hi, I could not find BR 100 template for Adanced Pricing. Would appreciate if any one could points me towards the same... Thanks, Dinakar.