Popup in Purchase Requisition

Hi Guys,
    When material is entered in Purchase Requisition a popup should appear saying the total stock of the material and storage location.How to do this Enhancement.Please Guide me

Hi,
Implement the BADI ME_PROCESS_REQ_CUST.
In this BADI, write the logic in the method PROCESS_ITEM.
IM_ITEM is an importing parameter in this method which is an object of interface IF_PURCHASE_REQUISITION_ITEM. This interface has a method GET_DATA which will return item data in structure of type MEREQ_ITEM.
Your code will look somewhat like this :
DATA     ls_item     TYPE     MEREQ_ITEM.
ls_item = IM_ITEM->GET_DATA( ).
     In ls_item you will have the item fields which you can use and produce a message.
e.g     MESSAGE 'Display Values'      TYPE 'I'.
Regards,
Ashish

Similar Messages

  • Purchase Requisition release

    Hi,
    Could anybody help me out with the configuration settings of purchase requisition Release.
    Client want to set release status for Purchase Requisition , where two persons will be responsible to release the requisition . when the first person releases the requisition , it will come to the second or final person for release ,when he releases then the requisition is released for purchase orders.
    Could anybody help me out with the configuration settings.
    Thanks N Regards,
    Siddhartha

    Use this steps. below is for PO same do it with PR. that is in place of PO take it as PR.
    Releasing Procedure for Purchase Documents
    Use
    This setting is incorporated to just give demonstration of how SAP Release procedure works.  The aim of this procedure is to replace manual written authorization procedures using signatures by an electronic one, while maintaining the dual Ctrl principle.  The person responsible processes the purchasing document in the system, thereby marking it with an "electronic signature" which can give the document legal force.
    3.4.24.1     Creation of Characteristics
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Edit Characteristic
    Transaction Code     CT04
    2.     On the Characteristic screen, make the following entries.
    3.     In put POVAL in filed Characteristic and choose Create (White paper) icon or Ctrl + F3 to begin creation of characteristic.
    Field name     Description     User action and values     Note
    Select Addnl Data tab                
    Table Name     Table Name     CEKKO     
    Field Name     Field Name     GNETW     
    Choose Enter to continue, system will give an information message saying Format Data taken from ABAP dictionary, Choose Enter again to continue.
    Select Basic Data tab               
    Description     Description     Total net order value     
    Status     Status     Released      
    Data Type     Data type     Currency format     Selected by system
    Number of characters     Number of characters     15     
    Decimal places     Decimal places     2     
    Currency     Currency     INR     
    Interval vals allowed     Interval values allowed     Check this tick box     
    Multiple Values     Multiple values allowed     Select this radio button      
    4.     Choose Enter to complete the entries
    5.     Choose Save icon or Ctrl + S to save the characteristic.
    3.4.24.2     Creation of Class
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Edit Class
    Transaction Code     CL02
    2.     On the Class screen, make the following entries:
    Field name     Description     User action and values     Note
    Class     Class     PORELPROC     
    Class Type     Class Type     032     
    Choose Create icon or white paper icon to create new class.
    Description     Description     Purchase Order Release Procedure     
    Status     Status     Released     
    Choose Char. Tab to input characteristic name.
    Characteristic     Characteristic     POVAL     Created in above step
    3.     Choose Enter to complete the entries
    4.     Choose Save icon or Ctrl + S to save the characteristic.
    Result
    Class type 032: Class PORELPROC created.
    3.4.24.3     Configuration of Release Procedure
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Materials Management  Purchasing  Purchase Order  Release Procedure for Purchase Orders  Define Release Procedure for Purchase Orders
    Transaction Code     SPRO
    2.     On executing the transaction system will give a popup screen choose Release Groups, system will display Change View u201CRelease Groups: External Purchasing Documentu201D: Overview.
    3.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Rel. Group     Release Group     02     
    Class     Class Name      PORELPROC     Created in above step
    Description     Description     PO Release Procedure     
    4.     Choose Enter to complete the entries
    5.     Choose Save icon or Ctrl + S to save the entries.
    6.     Choose yellow arrow to go back to popup screen.
    7.     Choose Release Codes to select.
    8.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Grp     Release group     02     Created in above step
    Code     Release Code     01     
    Workflow     Workflow     Leave it blank     
    Description     Description     Purchase Officer     
    Grp     Release group     02     Created in above step
    Code     Release Code     02     
    Workflow     Workflow     Leave it blank     
    Description     Description     Materials Manager     
    9.     Choose Enter to complete the entries
    10.     Choose Save icon or Ctrl + S to save the entries.
    11.     Choose yellow arrow to go back to popup screen.
    12.     Choose Release indicator to select.
    13.     Choose New Entries icon and make the following entries:
    Field name     Description     User action and values     Note
    Release ind.     Release Indicator     1     
    Released     Released     Leave it blank     
    Chgable     Changeability     4     
    Value change %     Change of value     10%     
    Description     Description     Purchase Order Blocked     
    Go to 2nd line and input the following values:
    Release ind.     Release Indicator     2     
    Released     Released     Select Check box     
    Changeable     Changeability     6     
    Description     Description     Purchase Order Released     
    14.     Choose Enter to complete the entries
    15.     Choose Save icon or Ctrl + S to save the entries.
    16.     Choose yellow arrow to go back to popup screen.
    17.     Choose Release Strategies to select.
    18.     Choose New Entries icon and make the following entries:
    19.     System will give new screen New Entries: Details of Added Entries
    Field name     Description     User action and values     Note
    Release Group     Release group     02     
    Rel. Stategy     Release Strategy     S1     
              Capital Items Release     
    Release Code     Release Code 1     01     
    Release Code     Release Code 2     02     
    20.     Choose Enter to complete the entries.
    21.     Choose Release prerequisites icon and select check box 02 at the bottom and choose Enter.
    22.     Choose Release statuses icon, system will give a popup screen system will default 1, 1 and 2 entries one by one as a default.  Choose Continue.
    23.     Choose Classification icon, here you can see Total net order value is displayed, please input >= 1.00 INR value in the white placed and choose Enter.
    24.     Choose Next Screen icon or choose F8 to continue.
    25.     If you want to simulate the release procedure you can choose Release Simulation icon.
    26.     Choose Enter to complete the entries.
    27.     To save the settings choose Save icon or Ctrl + S.
    Result
    Release procedure is saved.
    3.4.24.4     Assignment of Values to Release Procedure 
    As a default all the purchase documents >= Rs. 1000000.00 is suggested in the following step of release procedure, if you want to have different one you need to change the value in the following step.  If you do not want release procedure you may change the value to Zero.
    Procedure
    1.     Access the activity using one of the following navigation options:
    IMG Menu     Cross-Application Components  Classification System  Assignments  Assign Object to Classes
    Transaction Code     CL20N
    2.     On the Class screen, make the following entries:
    Field name     Description          User action and values     Note
    Class Type     Class Type          032     
    Choose Enter to Assign values.
    Release group     Release Group          02     
    Rel. Strategy     Release strategy          S1     
    Choose Enter.
    System will give Class name in Assignments, Double choose Class Name.
    System will display Characteristic name Total net order value. Assign the value >= 1000000.00 INR  against filed Value.
    3.     Choose Enter to complete the entries
    4.     Choose Save icon or Ctrl + S to save the characteristic.
    Regards
    S

  • Get purchase requisition ( eban ) info when in XM06 , exit_saplebnd_001

    We are using EXIT_SAPLEBND_001 for customized changes to the release strategy. All that is imported to this exit is ceban. How do I get the purchase requisition number (banfn) and line item number (bnfpo) from this include (ZXM06U13)?
    I have tried the following but that does not return me anything either:
      DATA:  WA_AREA(20)  TYPE C,
                WA_EBAN TYPE EBAN.
    FIELD-SYMBOLS: <FS_EBAN>.
    WA_AREA = '(SAPLEBND)E_EBAN'.
    ASSIGN (WA_AREA) TO <FS_EBAN>.
    WA_EBAN = <FS_EBAN>.

    I am displaying the popup in ZXM06U13 like this:
    WA_AREA = '(SAPLEBND)E_EBAN'.
    ASSIGN (WA_AREA) TO <FS_EBAN>.
    WA_EBAN = <FS_EBAN>.
        CALL FUNCTION 'POPUP_TO_DISPLAY_VALUE'
            EXPORTING
              COLBEG          = 20
              COLEND          = 40
              ITEMTXT         = 'In XM06 release strategy'
              TEXTLINE1       = space
              TEXTLINE2       = 'usrc1'
              TEXTLINE3       = wa_eban-banfn
              TEXTLINE4       = wa_eban-bnfpo
              TITLE           = 'Looking for Purchase Req Number'.
    TextLine3 is where the purchase requisition number should appear and TextLine4 should be the item number.

  • Reservation via purchase requisition

    How to set up connection between purchase requisition (PR) and reservation?
    The workflow must be:
    PR (Purchase requisition) => reservation => MIGO (A07 goods issue, R09 reservation)
    purchase requisition must be connected to goods issue. How it would be?
    thanks

    hi
    Are you using ps module ? if yes then it is depends on how your component is handled iss is normally set by either a
    default based on your PS Procurment Indicator (config item OPS8) or by the
    user manually when they allocate the component in which case they'll get a
    popup for Stock item (item category 'L') with the following options:
    3     Reservation for Network
    4     Planned Independent Requirements for Network
    5     Purchase Requisition + Reservation for WBS Element
    6     Third-Party Requisition WBS Element
    7     Preliminary Purchase Requisition for WBS Element
    8     Reservation for WBS Element

  • ME52N: Purchase Requisition Change GL Account Number

    Requirement: ABAP auto-change the GL Account field number in a Purchase Requisition after the Material Group is changed.
    Background: This custom logic has been successfully applied to all types of Purchase Requisitions using  BADI ME_PROC_REQ_CUST, with the exception of a Purchase Requisition type that is called a 'Service Limits'. There are differences that are important to note between a 'Service Limits' Purchase Requisition and the other Purchase Requisitions that had custom code added without any problems.
    1)This type of Purchase Requisition uses a item category of 'B', and the logic has a tendency to flow through SAP differently.
    2)This type of Purchase Requisition's GL Account number is under-intensified on the 'item' subscreen, and cannot be changed manually on that screen like the others..
    3)In order for the GL Account to be changed manually, or for the GL Account to be changed once my code has changed the GL Account Number, the user must select the 'Limits' tab and select the Account Assignment arrow, then a popup appears where the GL Account can be changed manually, or, my coded GL Account number change then occurs.
    Problem: I want the custom code to be able to change the GL Account NUmber without having to go into thge 'Limits' tab, where the icon has to be selected. I believe the problem is that the field is protected, because it displays as under-intensified, thus, preventing my new GL Account NUmber from displaying. I also have the subsequent SAP code below that appears to reject set_exkn because protect is set to 'X'.
    CODE1: Is my custom code.
    CODE2: Is the SAP code that my will flow into where this field appears to be unchangeable.
    My question:
    I am thinking that this GL Account field is protected and cannot be changed because it is under-intensified on the subscreen on the Purchase Requisition. Can it be changed with custom code, a way to 'unprotect it'? Or, are there settings that should be changed in SPRO for the Purchase Requisition to allow this functionality to change the GL Account number.
       Thank-You
    (CODE1)
    METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
    *Purchase Requisition Item Declarations
      DATA: LT_ITEMS        TYPE MMPUR_REQUISITION_ITEMS.
      DATA: LS_ITEM         TYPE MEREQ_ITEM.
      FIELD-SYMBOLS: <FS_ITEM> TYPE LINE OF MMPUR_REQUISITION_ITEMS.
    *Purchase Requisition Accounting Declarations.
      DATA: LT_ACCT         TYPE MMPUR_ACCOUNTING_LIST.
      DATA: LS_ACCT         TYPE EXKN.
      DATA: LS_SETX          TYPE MEPOACCOUNTING_DATAX.
      FIELD-SYMBOLS: <FS_ACCT> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = LT_ITEMS.
      LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
        LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
        LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
        LOOP AT LT_ACCT  ASSIGNING <FS_ACCT>.
          LS_ACCT =  <FS_ACCT>-MODEL->GET_EXKN( ).
          LS_ACCT-SAKTO = 'N500300   '.
          LS_SETX-SAKTO = 'X'.
          <FS_ACCT>-MODEL->SET_EXKN( LS_ACCT ).
          <FS_ACCT>-MODEL->SET_EXKNX( LS_SETX ).
        ENDLOOP.
      ENDLOOP.
    ENDMETHOD.
    (CODE2)
    METHOD if_accounting_model_mm~set_exkn.
      DATA: ls_buffer     LIKE LINE OF my_data_input_buffer,
            ls_bufferx    LIKE LINE OF my_data_input_bufferx,
            l_buffered    TYPE sy-subrc,
            l_data_old    TYPE exkn,
            l_data_oldx   TYPE mepoaccounting_datax,
            l_data_newx   TYPE mepoaccounting_datax,
            l_indx        TYPE sy-tabix.      "1478013
      *PROTECT EQ 'X'
      CHECK my_state->protect EQ mmpur_no.
    Edited by: Tom Matys on Dec 12, 2011 10:55 AM

    Your PO release strategy must have been based on Cost Center as one of characteristics.
    Pl check & confirm.
    Regards
    Bhavesh Mistry

  • PURCHASE REQUISITION FOR SERVICE

    HELLO
    IN THE TRANSACTION ME21N FOR PURCHASE REQUISITION FOR SERVICE. IN THE SERVICE VIEW AT ITEM LEVEL, THERE IS A LIST DISPLAYED, SO I NEED TO ADD A FIELD WITH INFORMATION OF THE MATERIAL GROUP.
    ANYBODY KNOW HOW TO DO THAT?
    THANK YOU
    ELENA

    Hi,
    ME21N is the transaction for a PO creation.
    On the full screen services view you can enter either a service number (if you have maintained service masters in transaction AC01) or  you can enter just a short text to describe your service.
    There is also the column material group (ESLL-MATKL) available to fill in your material group (screen SAPLMLSP 0201). You can also enter your material group by selecting the service line and going to the detail view (popup "display service details", tab "basic data" (screen SAPLMLSP 0220).
    What do you mean by "list"? Have you switched on the outline view for your services? You can turn on and off this outline overview by hitting F6.
    Regards,
    Edit

  • User Exit for ME52N with Purchase Requisition number & line item number

    Does anyone know which user exit I could use to get at the purchase requisition number and line item number when I am trying to change a PR.  I see various exits with im_req_item but when I code a popup in the include it is not appearing.  I am just not finding the right exit.

    You can use enhancement MEREQ001, function exit EXIT_SAPLMEREQ_005. This enhancement description gives impression that it can only be used if you have custom fields but it can be used even when you don't have custom fields.

  • FI MM integration with purchase requisition

    Hi,
    For FI MM integration - acquire asset through MM - the process is -
    1) create asset master
    2) Purchase requisition
    3) PO
    4) Assign asset master to PO
    5)Goods receipt
    It is difficult to create an asset master in advance, so the solution is to create purchase requisition without account assignment.
    I would like to know whether this is possible. because once we select Account assignment category "A" system does not allow us to save the Purchase requisition.
    Can someone pl. help me understand how to achieve this.
    Thank you
    - Vedavatee

    Hi vedavatee,
    You need to assign Asset Number since PR when you are using Account Assignment A.

  • Error in new purchase requisitions, for already deliverd materials

    Dear all,
    I have a problem with newly created purchase requisitions, although material was partially delivered and no delivery is expected anymore.
    For example I have ordered 1767kg of oil and a total sum of 1766.2kg was deliverd. This means only a minor amount of material was not deliverd and only 80gramm are missing. The purchase value key allows a 5% over and under delivery.
    Usually I would expect, that because of the purchasing value key of 5 % over and under deliverance allowence this situation should not occur anymore. Additionally at the time of goods receipt the key of final delivery was set and the purchase order is updated correctly.
    But when I run the MRP again I will have another purchase requisition. The dependend requiement of the material above still existis as production is not finished yet or this is still a planned order.
    What keys do I need to set in total for allowing a "partial delivery"?
    - Purchaseing value key in the material master
    - Delivery completed at the time of goods receipt
    Maybe this question is to basic as I cannot find any questions / answers related to this issue here in the forum.
    In some points, I found that I need to set up the vendor accordingly to set up partial deliveries. But I cannot find the right setting to allow the vendor to do so. I use MK02 for the change of the vendor settings.
    Thank you very much for your support!
    With best greetings,
    Bjoern

    Hello Jürgen,
    yes after thinking about this issue again, I think this might not be an appropriate solution. Now I am thinking about other possibilities.
    1) Automatically change the value in the production order at the time of saving MIGO - will not create any more missing material messages and no new purchase requisitions .
    2) Errror message, that for this positions no more postings are possible as the purchase order still remains "open"
    3) I need to find the customizing of the indicator "delivery completed". At the moment I just dont see, the influence of this indicator.
    Sorry for my "stupid" questions, but I am quiete new to these MM topics. Up to now I was always doing only PP and QM but our collegue for MM has left the team and there are some open issues which now belong to me. Lucky me.
    I have created a new posting at:
    With best greetings,
    Bjoern

  • Error in creation of purchase requisition

    Hello Sap Guru,
    When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?
    If anyone can please explain the reason & solution of this error.
    Thanks In advance
    Deepak Garg

    {code)When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?{code)
    Hi,
    it is sap standard process when you create PR and if material master record exist the price is automatically taken from the valuation price field. if record not exist enter lum sum price of requested material price.
    When purchase guy create po with reference to Pr they can change valuation price also.
    In custommization for Purchasing under Purchase Requisition -> Define Screen Layout at Document Level, you can set price and price unit. The Valuation price field can be set as a mandatory or optional input field.

  • Help needed for enhancement in Purchase requisition

    Hi all,
    Our client uses me59n to generate PO's automatically using purchase requisitions.
    Now, the requirement is ...
    If net Purchase value  is 0 in purchase requisition, then
    Free(UMSON) field in Purchase order shoud be "checked".
    lemme explain the steps a bit detail.
    1. lots of purchase requisitions will be created in me51n.
    2. Client will use me59n to generate PO's automatically, using Purchase requisitions.
    3. purchase orders will be created.
    3. Now, i am in search of a badi/user exit , which will
         if netPurchasevalue(gswrt) = 0
            (free)umson = X.
         endif.
    so , i need a enhancement, which links both fields(gswrt) from purReq & (umson) in PO. 
    please lemme know if anybody have experience on similar issues earlier.
    Regards.
    santosh.

    Hi,
    Try implementing the BADI -ME_PROCESS_PO_CUST ...the method "PROCESS_ITEM" can be used to do the check that you want...
    Thanks,
    Renjith

  • Service Number is not getting updated in the Purchase Requisition

    Hi All,
    When i create a Service PR using bapi BAPI_REQUISITION_CREATE FM , service details ( Service number, Qty, Gross price, ) are not getting updated in Service tab of Purchase requisition transaction. I am passing all the services related parameters in the FM.
    Please clarify this.
    Thanks for the help.
    Vinoth

    Hi Vinoth,
    Are you getting any error in the return table?Can you show your coding?
    Regards,
    ravi

  • Purchase requisition is not being displayed in FM area, CJIA

    Hi
    Project cash management is activated in our system, when creating purchase requisition from project builder with account assignment 'Q' system does not generating any document in FM area (CJIA). Contradicting to this, system generating document in FM area when creating purchase requisition through ME51N transaction with account assignment Q and setting project WBS to account assignment object.
    Later, comparing both purchase requisitions using ME5J, field committed item showing different values (default layout do not display this field, need to added from change layout settings). Can any one help us to find the settings which derives the committed item field in purchase requisition?
    Screen shots are attached for detailed understanding.
    Thanks

    Sanjeev,
    In EBAN table both records are present with special stock indicator Q.  But these documents are not available in second table COOI.
    In customizing, KOAB for order category 20 (network) don't have indicator commitment management, whereas different order category having this indicator. Possibly, this would be causing the issue?? if so please help us in this direction. One more point that component with item category L (non-stock) are displayed in CJIA report.
    Checked OPSV and found both the check boxes are ticked for order category 20.
    Thanks

  • Purchase Requisition not getting generated in APO

    Hi,
    I am facing an issue in APO. Once I confirm a sales order, I have to run the Product Heuristic in APO to generate the purchase requisition through rrp3. The problem is the purchase requisition is getting generated without the PR number. The line does not show the number and also the purchase req is not reflecting in ECC. Please refer the screenshot. Kindly help me with this.
    Thanks & Regards,
    Raja S

    Hi Guys,
    Sorry for the delayed response. Now got another issue. My CIF model for a Sales Order is not getting activated. I also cleared the queue in APO through /sapapo/cq and then start running the CIF. But it runs for a long period.
    What could be the other possible issues with CIF model activation?
    I am getting a message box like the below when try to activate the CIF. I keep ignoring the message and trying to run the CIF. But still I am unable to resolve. Kindly help
    After resolving this only, I can go for the above mentioned issue. I sincerely thank all your support.
    Regards
    Raja S

  • Purchase Requisition Is Being Getting Created In APO But not being publishe

    On doing, SNP Location Heuristics on  one of our item, purchase requisition is being getting created in APO (We are able to see the same in RRP3) but the same is not being getting published in ECC. On doing CCR of the said location - product combination, it is showing Error u201C182u201D. We have checked the following parameters :-
    Item is an APO Item i.e. X0.
    It is having a proper Purchasing Group.
    As This be a purchase item. So, it is having a valid single Purchase Info Record.
    Item Has Not Been Blocked At Any Level.
    Vendor From Whom This Item is being getting procured is also open (Not Blocked).
    Please suggest what else to be checked  and what else can be the reason for non-flowing of purchase requisition from APO to ECC.
    Thanks & Best Regards,
    Sanjeev Chugh

    Hi Sanjeev,
    Please check change pointers if any and send them to ECC. Check the order in the planning book whether it has picked the same source for which there is a Purchase info record. If these all are fine then You send them to ECC from the CCR then check the log in ECC through CFG1 tcode.
    Regards,
    Kishore k Reddy

Maybe you are looking for

  • Notes app hangs and quits when I unpin a sticky note

    Hi, I had pinned 2 notes on the desktop. I deleted one of those from the main notes window. Later when I tried unpinning that note from the desktop the application hung and then closed. Now neither of the 2 notes can be unpinned, even though these ca

  • Using stylesheets in Java Studio Creator

    I have a project in which I have to use a given stylesheet with css entries for <h1>, <2> and so on. How can I embed such a css? How can I ensure that all these headers are always displayed the correct way?

  • Solving safari tab refresh

    Not everyone has this issue, but for those that do: try going to settings>general>reset>reset network settings. It's what AppleCare recommended, and so far- has actually worked for me.

  • LDAP Lookup / Network Address sometimes populates with TCP

    Our development team has configured our local intranet to do LDAP searches against our tree, thus eliminating the need for users to login. They're doing an IP lookup and then retrieving the user name. What happens very rarely is the the "Network addr

  • I need to turn fileVault off, and don't have the space

    I am so upset now, I freeed up a ton of space on my hard drive, before installing/ turning on the FileVault, and I asking an senior advisor, would turning on File Vault take up an of my GB space, and she said no, and I turned it on, it took 2.5 hours