Help for Purchase Requisition

Hi All,
I want to create a Purchase Requisiton.
I am facing problems with Data Binding for Context Nodes.
Can someone provide me with some link or tutorial where a node has to initialized with type AbstractList.
Regards
Nikhil Bansal

Hi Abhijeet,
I am posting the entire code
          Bapi_Pr_Create_Input     prCreateInput     =     new Bapi_Pr_Create_Input();
          wdContext.nodeBapi_Pr_Create_Input().bind(prCreateInput);
          Bapimereqheader headerInput               =     new     Bapimereqheader();
          Bapimereqheaderx headerInputX     =     new     Bapimereqheaderx();
          AbstractList     prItemList     =     new Bapimereqitem.Bapimereqitem_List();
          Bapimereqitem     itemInput          =     new Bapimereqitem();
          AbstractList     prItemXList     =     new Bapimereqitemx.Bapimereqitemx_List();
          Bapimereqitemx     itemInputX          =     new     Bapimereqitemx();
          AbstractList     prItemTextInput     =     new Bapimereqitemtext.Bapimereqitemtext_List();
          Bapimereqitemtext     itemtextInput     =     new Bapimereqitemtext();
          AbstractList     prHeaderTextInput     =     new Bapimereqheadtext.Bapimereqheadtext_List();
          Bapimereqheadtext headtextInput     =     new Bapimereqheadtext();
          itemInput.setAcctasscat("U");
          itemInput.setPreq_Name("NikhilBansal");
          itemInput.setMaterial("000000000000034621");
          itemInput.setPlant("0002");
          itemInput.setPur_Group("RD3");
          itemInput.setMatl_Group("COMPDT");
          itemInput.setPurch_Org("STPO");
          itemInput.setStore_Loc("SB01");
          itemInput.setTrackingno("LOUB0101");
          itemInput.setQuantity(new BigDecimal("01"));
          prItemList.add(itemInput);
          itemInputX.setAcctasscat(false);
          itemInputX.setPreq_Name(false);
          itemInputX.setMaterial(false);
          itemInputX.setPlant(false);
          itemInputX.setPur_Group(false);
          itemInputX.setMatl_Group(false);
          itemInputX.setPurch_Org(false);
          itemInputX.setStore_Loc(false);
          itemInputX.setTrackingno(false);
          itemInputX.setQuantity(false);
          prItemXList.add(itemInputX);     
          itemtextInput.setText_Line("Text Line 1");
          prItemTextInput.add(itemtextInput);
          headerInput.setPr_Type("NB");
          headerInputX.setPr_Type(false);
          headtextInput.setText_Line("Text Line 2 ");
          prHeaderTextInput.add(headtextInput);
          wdContext.nodePrheader().bind(headerInput);
          wdContext.nodePrheadertext().bind(headtextInput);
          prCreateInput.setPrheader(headerInput);
          prCreateInput.setPrheaderx(headerInputX);
          prCreateInput.setPritem(prItemList);
          prCreateInput.setPritemx(prItemXList);
          prCreateInput.setPritemtext(prItemTextInput);
          prCreateInput.setPrheadertext(prHeaderTextInput);
          prCreateInput.execute();
Regards
Nikhil Bansal

Similar Messages

  • Regarding report for purchase requisition

    Hi gurus,
          I am preparing a report for purchase requisitions using SQVI. I am almost done with it but I was stuck at one thing. Our client criteria is to see it by name like they wanted users to view only purchase requisitions they created. They dont want all users to see purchase requisition created by other users. I dont know how to do that. Can anyone help me out with that.
         let me know if I am not clear about anything.
    Thanks in advance.
    Ravi Teja Boppana

    Hi,
          I added the field ERNAM from table EBAN. But the problem I am facing with it is any user can enter any user name in that field. Either I need that feild to be filled automatically with the username who logged in so that I can hide that field if that can be changed or filled automatically and cannot be change by user. Is there any option I can do like that. If I create a report in SQVI no one else except me can see that report, so I need this report in that manner.
          Let me know if i am not clear,
    Thanks in advance,
    Ravi Teja Boppana

  • SAP  workflow for purchase requisition and purchase  order

    Hello  Sap Workflow,
    Can you  please help me on  building workflow for purchase requisition and  purchase order    with  the necessary screen shots  ?
    your quick response  will be greatly appreciated.
    Thanks in Advance

    Hi,
    Please check http://help.sap.com .
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/04/92761846f311d189470000e829fbbd/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/04/92775546f311d189470000e829fbbd/frameset.htm
    Configuration guides are available in SAP Solution Manager.
    Regards,
    Masa

  • BADI for Customer's own screen for Purchase Requisition.

    Hi All,
    I have a requirement where I need to create a BADI implementation for creating addition screens in the Purchase Requisition Transaction (ME51n/ME52n/ME53n).
    I know there are User exits but we donu2019t want to implement them. Now in case of PO there is a standard SAP given BADI -> ME_GUI_PO_CUST for Customeru2019s own screen but as far as my understanding goes there are no such BADIs for Purchase Requisition.
    Could anyone please advice if I can create a Custom BADI similar to ME_GUI_PO_CUST for PR for adding the screen and throw some light on it like how can this be achieved?
    Thanks,
    Ameesha

    Thanks Darek for replying back and the BADI   ME_BAPI_PR_CUST looks helpful but could you please help me in understanding how can i create my own custom screens within ME51N / ME52N / ME53N tcode using the BADI , ME_BAPI_PR_CUST.
    For example in PO, we have the BADI   ME_GUI_PO_CUST, with several methods like SUBSCRIBE and others which we can make use of for creating screen exits but what in the case of PR fpr BADI  ME_BAPI_PR_CUST. i couldn't find any sample code for implementing this.
    Any help is greatly appreciated.
    Thanks,
    Ameesha

  • "No selectable item exist for purchase requisition I_Banfn"

    Dear all
    While creating Po system show a massage"no selectable item exist for purchase requisition I_Banfn"
    Please help.

    Hi,
    PR status in status TAB in item details  You have following:
    Processing status :Specifies the current processing status of the purchase requisition: IS PO Created or RFQ created etc...
    Block ID:The requester (PR creator)can block a requisition item to prevent it from being converted to a purchase order
    Processing State: Released or not Released
    You need check above & then act to unblock if blocked , release it if it is not released  or check if this PR already converted to PO.
    Follow the steps to create PO from PR:
    Enter ME21N T.Code
    Click u201CDocument Overview onu201D
    Click u201CSelection Variantu201D and Select Purchase requisition and double click & Execute
    Now  you will PR Numbers,Select your PR Number , you will have line items(10,20,30 etc..) , you will have all the details of PR (like item category,material , quanitites for each line items) and Now click u201CAdoptu201D and u will see all PR related copy to PO.
    Regards,
    Biju K

  • ALV report for Purchase Requisitions(PR)

    Hai All!
      i am developing an ALV report for Purchase Requisitions(PR) tht are not approved ( ie IN RELEASE status), so i want to get who has approved PR and who has not approved it... from which table & which field i can get this data...
    plz help me

    Hi Following fields are used to set / reset release of PR
    EBAN-FRGKZ
    EBAN-FRGZU
    EBAN-FRGST.
    You will have to understand combination of these field from MM Fuctional Consultant.
    rgds
    rajesh
    Edited by: RAJESH KUMAR on Aug 6, 2008 12:18 PM

  • Budget Approver for Purchase Requisition

    Hi,
    In MM setup for purchase requisition, 4 levels has been setup for approving based on amount. The person who will approve is configured to be determined based on user exit (value - 9) in TCode OMGQ.
    My question here is where is this user exit and how can we know to whom this PR will actually reach for approval.
    Please help me out.
    Regards,
    Binay Agarwal

    That you have to check in the Workflow settings based on the organization defined in PPOME
    User exit M06B0001
    you ca check the logic of user exit in SMOD
    enter the above user eixt and display the component logic

  • Header Noe for purchase requisition

    Hi,
    Can anyone help me for maintaining the header note as default,so that the note will come whenever someone enters into ME51N.
    How to maintain the header note for purchase requisition as default for a client.
    Thanks in Advance.

    hi,
    Check this BADI...may be useful to you
    ME_REQ_HEADER_TEXT   "Copy Header Text: Enjoy Purchase Requisition
    Thanks & Regards

  • BADI FOR PURCHASE REQUISITION

    CAN I GET A SIMPLE EXAMPLE FOR ACTIVATING A BADI FOR PURCHASE REQUISITION ?

    HI
    Populate PO Item Text -User Exit or BADI
    [Steps to Activate BAdI|http://help.sap.com/saphelp_nw04/helpdata/en/5f/071eed117c11d5b37d0050dadef62b/content.htm]
    Regards
    Pavan

  • BAPI for assing source of supply for purchase requisitions

    Hi,
    can any one let me know if there is any bapi or function module to assing source of supply for purchase requisitions. 
    Points will be given
    regards,
    siva prasad.

    Define fixed indicator in the source of supply , and set the source list usage of MRP to "1 "
    Below is help from sap:
    ==================================================================
    Determining the Source of Supply via the Source List
    The system first checks whether a quota arrangement has been maintained for the material, which has a validity period that covers the requirements date of the purchase requisition.
    It then checks whether only one entry exists in the source list that is relevant to MRP. The indicator for source list usage must therefore be set for a particular vendor so that purchase requisitions and delivery schedules, which are created during the planning run, are automatically assigned to this vendor. In the case of a delivery schedule, you must also have maintained a scheduling agreement for this entry.
    If you have maintained all the entries correctly, the system creates a purchase requisition with the source of supply that is recorded in the source list.

  • Can't use Overall Release for Purchase Requisitions

    I have two groups, AA and ZZ.  Each group has it's own Class.
    Group AA uses Cost Center Class (CN)  (uses Characteristics Cost Center and Line Amount)
    Group ZZ uses Order Class (OC) (uses Characteristic Order)
    I have built one and only one Release Strategy for each of these Groups.  These Strategies both work successfully when I select the other group to be the group for Overall Release.  That is, if I set ZZ to be for Overall Release, then create a requisition, the release strategy for Group AA is applied successfully.  However, if I modify the req the strategy for ZZ, does not get applied.
    The opposite is true.  When AA is set to be for Overall release, then ZZ works.  However, if I modify the req, then AA's release strategy does not get applied.
    Again, both strategies work correctly when the other Group is set to be the one to use for Overall Release.  However, neither strategy works if its group is set to be the one for Overall Release.
    What am I missing?  I only have two classes, two groups, and two release strategies.

    SAP Standard system allows only 8 levels of release codes.If client requirement is more than 8 then for excess release codes customisation is done by the technical team (Abapers).Lets take an example of 15 release levels required for a client according to his Business needs then in this case initial 7 codes are customised and remaining 8 release codes are configured in the system.
    Release procedure is of two types
    Release Procedure without classification
                 This procedure is applicable only for Purchase Requisitions.
                 Here PR is released Item by Item only.
    Release Procedure with classification
                This procedure is applicable to PR,RFQ,Service Entry sheet,RFQ,PO,Contract  and scheduling agreements.
                Item by Item and Header level releases can be configured
                For PR - both item by item and Header level release can be configured
                For external purchasing documents - Release is possible only at Header level.
    Step 1:
    Create Characteristics
    In this step we need to create characteristics - conditions to be satisfied for triggering Release startegy.For example client has asked to set release strategy based on 3 inputs.Combination of value, Plant and Purchasing group
                1) Total value of PR more than Rs 50,000
                   create  characteristic as "Release_PR_total_value" in transaction code CT04.
                  Tab -  Basic data " Data type --- CURR currency format", "Decimal places - eg. 2 " and "currency  eg. INR or USD"
                  Tab -values key in > 50000 INR
                  Tab -  Additional Data-  Table Name "CEBAN" and Field Name "GSWRT"
                  Tab - Restrictions - class type - 032 - Release strategy
                2) Plant
                     Create characteristic "Release_PR_plant" in transaction code CT04.
                     Tab - Basic data - Data type - CHAR; Number of chars - 4
                     Tab - Values - Key in all the plants for which you are required to configure release proc.  eg. 1000,2000,3000
                     Tab - Additional data - Table name CEBAN and Field Name is WERKS.
                3) Purchaisng Group
                     Create characteristic "Release_PR_PurchasingGroup" in TCode CT04
                    Tab - Basic data - Data Type - char, Number of chars eg. 3
                    Tab - values - Key in all the purchasing Groups for which Release proc. is to be configured as required by Client.
                    Tab - Addnl Data - Table Name CEKKO and field name - EKGRP
    Step 2:
    Define class in transaction code CL02
    Menu path SPRO>Materials Mgmt>Purchasing>Purchase Requisition>Release Procedure>Procedure with Classification>Edit classes
    Here we assign all the above created Characteristics to a CLASS so that a release strategy to be triggered when all the conditions are met.
    Create a new class with free choice of names as "PR_Release_proc" in transaction code CL02.*Key in the class name and select class type as 032 - RELEASE STRATEGY then click on symbol create to enter all the details as mentioned below.
    Tab - Basic data - Enter description as "PR_Release-Proc",
    status- Released, Same classification - check the push button - Warning Message
    Tab- CHAR Enter above created 3 characteristics
    1.Release_PR_total_value
    2.Release_PR_plant
    3.Release_PR_PurchasingGroup
    step3:   
    Menu path is
    SPRO>Materials Mgmt>Purchasing>Purchase Requisition>Release Procedure>Procedure with Classification>set up procedure with classification>
    here define
    1.Release Groups
    Release group 01 is used for Purchase requisitions and 02 for Purchase orders.
    Here assign class "PR_Release_proc" against release code "01"
    check "OvRelPReq" indicator for over all release (All line items )of document in one shot else it will be released line item wise.
    2.Release codes
    Release codes are assigned to Release groups, in Workflow these release codes are tagged to users' SAP IDs through which they will be able to approve or reject a PR in SBWP(Inbox in SAP Business workplace.
    PRs are released by users in transaction code ME54N.
    Eg
    Type of user            - Level -             Release code                    
    PR creator - clerk or Business user -  
    Approver    -  Supervisor                 -   R1
    Approver  -   Project Lead              -   R2
    Approver   -  Asst. Manager             -  R3
    Approver   -  HOD/General Manager  - R4
    Release codes R1 to R5 are assigned to corresponding users.Manager R4 can only approve the PR if prior approvals till R3 are completed else not in ideal situation.
    For detailed info please refer
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
    3. Release Indicator:
    Release indicators show the release status of a Purchase Requisition.
    For detailed info please refer SAP Help official site
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
    4.Release Pre requisites:
    These define the order in which individuals or departments release the PR in sequence.
    3.Release strategies
    Create a new release startegy  eg ."A1" or "U1" , write its description PR release for value >1 lakh
    Now select release codes according to the Chart of Authority set by your client.
    Eg.
    Release startegy " A1 - PR release for value >1 lakh"
    R1 - Supervisor   
    R2- Project Lead    
    R3- Asst. Manager 
    R4- General Manager
    Now click on" Release  Prerequisites "push button and check all the boxes in ascending order.Save the document
    click on "Release statuses" push button, check release statuses then click on "Continue" push button.
    In third push button you can maintain CLASSIFICATION data or later you can directly mainatain in transaction code CL20N for this strategy.
    Classification data for example
    1. Value - > 100000
    2. Plant - 1000,2000,3000 etc
    3. Purchasing groups - 101,102,103 etc
    By clicking on "Release Simulation" push button you can check whether release is getting affected for configured release codes or not.
    In this way you can configure all the required Release startegies.
    Now create a PR in T code ME51N with the above conditions then a new tab will appear in PR creation screen at the time of check.Save the document and this can be released by respective users in TCode ME54N.
    Tcode - ME54N - For Individual Release
    Tcode - ME55 - For Collective Release
    For detailed info please visit SAP HELP website
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
    Regards,
    Indranil

  • Creating structured texts for purchase requisitions

    Hello,
    I would like to know if it's possible to define structured texts for purchase requisitions. By example, the item text would be like this :
    Building :
    Room :
    and the user should only complete the missing information.
    Does anybody have an idea on how to realize this ?
    Thanks in advance.

    Hi,
    It is not a simple thing to do.
    The item text comes from the material master (if you are using one) and so you could easily have the text for that as "Building   Room" and the material text can be changed (if you configure the system correctly) so they could just add the information.
    But you are limited to the size of the material text and so many people just use a non-material approach and manually key in the information in the text options rather than the Item text on the requisition line on the main screen. But in this case it is not a standard option to preformat the text as you require.
    It is almost as if configurable materials may help, these use the classification function and so they have characteristics, it would be easy enough to have a characteristic for room and one for building. The user would then be prompted to enter just the values for each and so it would do exactly what you need.
    But I don't have enough detailed experience of configurable materials to know for sure that you could use them like this, perhaps someone who knows them well could confirm if this would work?
    Whatever happens it is not a simple standard option, but SAP is very flexible and so there may be a reasonable work-around option.
    Steve B

  • Can AME used in combination with position heirarchy for purchase requisitions ?

    Hello,
    We are using position heirarchy for purchase requisitions.
    Can we use Approval Management engine in combination with the existing position heirarchy for purchase requisitions for more flexible workflow routing ?
    regards,
    Natalia

    Hi Natalia,
    Have your inquiry been addressed? Please let me know if you need any further assistance in this, otherwise, Please mark the answer as Correct/Helpful in order to leverage the discussion and facilitate correct answer to other members who may confront the same concern of yours.
    Note: Liking the answer will not mark it as Correct/Helpful, you have to open the discussion first to be able to mark it (This is not possible by opening the discussion from your inbox)
    Thanks,

  • Workflow for purchase requisition release strategy

    Hi all,
    I need an urgent help on Workflow for Purchase Requisition Release. The requirement is that when a purchase requisition with a given combination (Purchasing Group, Material Group and Account Assignment Category) is created and saved, it should trigger a workflow for approval of release or rejection to one specific business manager. If he dont responds in 2 days, it should be sent to other business manager. If any one of them releases the requisition, it should send a mail to the requestor that the requisition is released. And if it is rejected, then also a mail to be sent to the requester informing that his requisition is rejected...
    Can anyone take some pain and guide me step by step procedure to implement this or to use any existing one.... I know its BUS2009 thats used in this but really dont know how to implement it properly.
    Its urgent...
    Edited by: Hima on Apr 11, 2008 12:45 PM

    Check this link
    http://help.sap.com/saphelp_47x200/helpdata/en/04/92762546f311d189470000e829fbbd/frameset.htm
    Thanks
    Arghadip

  • Badi for Purchase Requisition Release Strategy

    Can any help me to know about the BADI for Purchase Requisition Release Strategy .Is their any BADI to  control the PO Price for a PR release strategy
    Thanks for your help

    This badi is for schedule agreement ?
    BAdI: Release Creation for Scheduling Agreements with Release Documentation
    Use
    You can use this Business Add-In (BAdI) to influence release creation.
    This BAdI is used in the application component Scheduling Agreements (MM-PUR-OA-SCH).
    This BAdI includes the following methods:
    Change Data Before Release Creation (BEFORE_CREATION)
    Change Data After Release Creation (AFTER_CREATION)
    This BAdI is called during manual and automatic release creation.

Maybe you are looking for