BAPI / FM for Purchase Requisition Change

Hello All,
I need to add items to the existing requisition. I tried <b>BAPI_REQUISITION_CHANGE / ME_UPDATE_REQUISITION / BAPI_PR_CHANGE / FMFG_MM_REQ_CHANGE</b>, but none of them seem to be working fine for me. Anybody worked on this task or any other thoughts?
Thanks,
Chandni

BAPI_REQUISITION_CHANGE has table parameters REQUISITION_ITEMS_OLD, REQUISITION_ITEMS_NEW , REQUISITION_ACCOUNT_OLD, REQUISITION_ACCOUNT_NEW, REQUISITION_TEXT_OLD, REQUISITION_TEXT_NEW. But, there is no indicator field in these old or new structures that you are creating a new line item.
In BAPI_REQUISITION_CREATE, there is a field to block requisition (BAPIEBANC-REQ_BLOCKED) , but in BAPI_REQUISITION_CHANGE the structure BAPIEBANV does not have a field to block or unblock a req. however, this is taken care by BAPI_PR_CHANGE.
<b>My concern is how add new line items to the existing requisition?</b>

Similar Messages

  • BAPI Extension for Purchase requisition

    Hi All,
    I have to add a custom field in EBAN  and have to enhance PR BAPI to include that additional field. What steps shud I follow?
    how can I use BAPI Extensions?
    Any help will be rewarded.
    Regards,
    Pragya

    Hi,
    I am told that I have to use BAPI extension structures to add the field to BAPI.
    But I am not sure how to proceed once I have created the BAPI extension structure.
    also I am not sure of the user exit that I will have to use further?
    Please help.
    Regards,
    Pragya

  • GETLIST BAPI Wrapper for Purchase Requisiton

    HI All,
    I want to know the GETLIST BAPI Wrapper for Purchase Requisition in ECC 6.0 . I am able to find GETDETAIL but not GETLIST.
    It would be nice if anyone could help me out in this.
    Regards,
    Madhu.
    Edited by: madhu kv on Jul 8, 2008 10:53 AM

    In that case you could just write your own custom function module to do it.  All you need to do is write a simple select statement to return a table of document numbers.  It shouldn't take more than an hour to have it all up and running.  You could add a parameter to the interface so that it either returns just a list of document numbers or if the parameter is set, it calls GET_DETAIL for each document and returns the full data.
    Good luck

  • BAPI for purchase requisition

    Hi all,
             I would like to know if there is any BAPI present to create purchase requisiton.
    The fileds that I would like to give are
    Item Category ,Material no,       
    Quantity      
    Delivery date
    Plant          
    Storage Location      
    Supplying plant           
    Requisitioner Name      
    I have seen the bapi BAPI_ACC_PURCHASE_REQUI_POST, but I dont think this has input field for item category and plant, storage location, supplying plant.
    If there is no bapi present for it, then I would have to go for BDC for creating purchase requisitions.
    Thanks
    Sachin

    Hi Sachin,
                   I think this thread has to be the best to explains you the issue you are facing at this moment so please have a look.
    Link:[BAPI|BAPI to create Purchase Requisition;
    Have a best day ahead.
    Edited by: Srivastava.G on Aug 28, 2009 8:48 AM

  • Custom Event for Purchase Requisition Create, Change & Delete

    Hello Experts,
    I want to create a custom event which triggers on Purchase Requisition Create, SAP provide's standard event's for purchase requisition release but not for create.
    What are all the steps and how to create a new event.
    Thanks in Adavance,
    Sandhya.

    Hi Sandhya,
    may i know the reason why you are trying to create custom methods.
    You have business object BUS2009(for PR line item wise release) and BUS2105(for PR overall release).
    Both those business object have events RELEASESTEPCREATED (for PR creation) and SIGNIFICANTLYCHANGED(For PR change).
    Even then if you want to create custom events, create a subtype of the standard business object, then click on events, and then select create. Now create your Z-events, say ZCREATED (For creation), ZCHANGED (for changed) and ZDELETED (for deleted). Now select each event, click on edit -> Change release status -> object type component -> to be implemented. Follow the same for all the events. Then select each event, click on edit -> Change release status -> object type component -> to be released.
    Now click on your custom object, click on edit -> Change release status -> object type component -> to be implemented.Then click on your custom object, click on edit -> Change release status -> object type component -> to be released.
    After this in SWEC tcode, click on new entries. Select change document object as BANF, business object as say ZBUS2105 and event as ZCREATED. make sure radio button on create is checked.
    Similary create entries for ZCHANGED event and ZDELETED.
    Select on change and on delete radio button for event ZCHANGED and ZDELETED event respectively.
    let me know if you have any queries.
    Regards,
    Raj

  • 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.

  • Change customer for purchase requisition

    Hi gurus,
    i'm trying to change customer number for purchase requisition.
    i tried to enter this code in badi ME_PROCESS_REQ_CUST~PROCESS_ITEM but KUNNR is not changed:
      DATA : ls_item_data   TYPE mereq_item,
             ls_item_datax  TYPE mereq_itemx,
             lv_obj         TYPE REF TO object,
             lv_attr        TYPE string,
             lv_aktyp       TYPE aktyp,
             lv_kunnr       TYPE ekunnr.
      FIELD-SYMBOLS : <fs_lcl> TYPE any,
                     <fs_source> TYPE any.
      IF im_count EQ 1.  " to avoid infinate Loop"
    Access Attributes value of Local Class
    for getting the transaction mode of Line item
    H-> Create
        lv_obj ?= im_item.
        MOVE 'MY_STATE->AKTYP' TO lv_attr.
        ASSIGN lv_obj->(lv_attr) TO <fs_lcl>.
        lv_aktyp = <fs_lcl>.
        IF lv_aktyp EQ 'H' OR lv_aktyp EQ 'V'.        "While creating line item"
    Extracting existing Item Data and Modify the fields
    Requestor Name (AFNAM) & Source of supply details
          CLEAR : ls_item_data.
          ls_item_data = im_item->get_data( ).
         ls_item_datax = im_item->get_datax( ).
         MOVE ls_item_data-ernam TO ls_item_data-afnam.
          lv_kunnr = '0000100000'.
          ls_item_data-kunnr = lv_kunnr.
             ls_item_datax-kunnr = 'X'.
         im_item->set_datax(
         EXPORTING
         im_datax = ls_item_datax ).
          im_item->set_data(
          EXPORTING
          im_data = ls_item_data ).
        ENDIF.
      ENDIF.
    when trying changing other fields like AFNAM for example, the data is changed.
    the customer number exists in KNA1.
    any ideas?
    Thanks,
    Sagit.

    SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH
    Good work

  • 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

  • Report - who is the current approver for purchase requisition

    Hi Experts
    Is there a report that can give information the status / who is the current approver for purchase requisition?
    currently if we open the PR directly, we can only know the release strategy, release code, status of approver, but we cannot have the information who is the person that should approve this PR.
    Thanks in advance
    Prashanth.v

    Hi All.
    Unfortunately we want to have this information for our end user, and they will not have the access to SE16.
    Another thinks is from CDHDR we will have the information if changes are made in PR. So it will give information user that already approve the PR
    What we want to have is a report of outstanding PR (not yet released) that have information who is the user (the user complete name / user id)  that should approve the PR.
    Thanks In Advance
    Prashanth.Venkategowda

  • AME for Purchase Requisitions

    Hello All
    I am in the process of setting up AME in R12.1.2 for purchase requisitions and got struck with an issue
    My requirement is to route the requisition to a particular job based on the item category and the requisition total. I setup conditions, action types and approval groups and then the rule.
    When I used static in my Approval Group setup it works fine with out issues however we do not want to use static as employees keep changing and want my approval driven out of the job hence updated the approval group to use Dynamic usage type and used the below query to pick the name of the employee based on the job.
    select papf.full_name from per_all_assignments_f paaf, per_all_people_f papf, per_jobs pej where
    paaf.person_id = papf.person_id
    and sysdate between paaf.effective_start_date and paaf.effective_end_date
    and paaf.job_id = pej.job_id
    and pej.name like 'IT.Group IT Operations Manager.Staff'
    Now when trying to create a requisition it shows up a message that "Approval List could not be generated. Please contact your System Administrator to review AME rules setup."
    When validated the above query it says query is valid but still not working. I even tried with person_id but still no luck
    Thanks a ton in advance
    Regards
    Dilip

    Hi Dilip,
    Pl. visit following links.
    AME for iProcurement requisitions
    Re: AME-Hierarchy Deciding Feature ?
    HTH
    Sanjay

  • BAPI to reject purchase requisition

    Dear All,
    Iu2019m looking forward a BAPI to reject purchase requisition. I found below BAPIs for purchase requisition but I couldn't  find any BAPI to reject requisition? I wonder whether a BAPI exists to reject purchase requisition or not. Thanks in advance.
    - BAPI_REQUISITION_RELEASE
    - BAPI_REQUISITION_RELEASE_GEN
    - BAPI_REQUISITION_RESET_RELEASE
    - BAPI_REQUISITION_RESET_REL_GEN
    - BAPI_REQUISITION_CHANGE
    - BAPI_REQUISITION_CREATE
    - BAPI_REQUISITION_DELETE
    - BAPI_REQUISITION_GETDETAIL
    - BAPI_REQUISITION_GETITEMS
    - BAPI_REQUISITION_GETITEMSREL
    - BAPI_REQUISITION_GETRELINFO

    aarioglu,
    I am facing to the same problem.
    Did you solve it?
    Thanks in advance.
    Felipe Fernandes

  • Do not want Budget check & Commitment value for purchase Requisition

    Hi Experts,
    I hope you all are doing well.
    My client's requirement is that at the time of Creation of Purchase Requisition there should be no budget check against WBS element and also Commitment value should not be for Purchase Requisition.
    Please suggest.
    Thanks & Regards

    Hi Gokul,
    Thanks for ur quick reply.
    I have done changes in tolerence limit (activated it for PO only).
    Now i created 1 Project PR of more than value of budget (system didnt check the Budget against WBS) but when i am trying to create PO with reference to same PR, system is giving error of budget. That is OK for me.
    Now my requirement is to not take PR value as commitment in my reports, i want only PO value in Commitment column of repport.
    I have read all 3 notes suggested by you. Can u tell me whcih one should i implement to stop PR value as commitment in reports.
    Thanks & Regards

  • Need to attach document for Purchase requisition usingBAPI_DOCUMENT_CREATE

    Hi All,
    Requirement:
    Attach document(PDF,TXT etc) for purchase requisition using BSP service.
    For this i am finding one function module "BAPI_DOCUMENT_CREATE" please suggest me how to use this function module or its working my requirement or not.
    if it possible provide any sample code for BAPI_DOCUMENT_CREATE
    So that i can move to another why.
    Thanks in advance.
    Regards,
    Rajeshv.

    Hi,
    Did you check the function module documentation. It contains one example also. Please check that.
    BAPI fm BAPI_DOCUMENT_CREATE is internally calling this BAPI. Please check how it is calling.
    Please alos check program LWPLGF06. I think it has similar code.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • 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

  • What Message type and Process Code to use for Purchase Order Change in 4.6C

    I like to implement in SAP R/3 4.6C a scenario for Purchase Order Change, via inbound IDoc.
    I have been searching, but could not find what Message Type, Idoc Basic Type and Process Code to use.
    I can not imagine this functionality does not exist in 4.6C.
    Any suggestions for my problem are welcome.

    Hello,
    In this case you should use the message PORDCH and BAPI method BAPI_PO_CHANGE but only exist as of release 4.7.
    Function module    BAPI_IDOC_INPUT1
    Idoc Type              PORDCH01
    Message Type      PORDCH
    So check carefully the following OSS notes:
      [Notes 589066 - BAPI_PO_CHANGE: Incorrect account assignment to network |https://service.sap.com/sap/support/notes/589066] (not be fooled by the description)
    [ Notes 197958 - BAPIs for purchase orders - Missing Functions|https://service.sap.com/sap/support/notes/197958]
    Regards,
    Andrea
    Edited by: Andrea Olivieri on Sep 3, 2009 10:17 AM

Maybe you are looking for

  • PC  will not let me create an iCloud account.

    I have a friend with a mac that wants to share his calendar with me. I have a PC and an apple account. I installed iCloud 3 on my PC but it will not let me create an iCloud account. What can I do to share my friends calendar?

  • Help: Songs Do Not Appear When Importing an itunes Library XML file

    I have 2 apple IDs and 2 libraries I want to combine. I've been working on this for hours. I found detailed instructions on making sure all the right preferences are checked, locations are in public folders, and so on. There are no error messages whe

  • Still not receiving iMessages on my Mac

    I am Still not receiving iMessages on my Mac, even after the Moutain Lion 10.8.2 update and iOS6 on my iPhone 4S.  Does anyone know how to solve this? I was under the impression that after the 10.8.2 update and iOS6 and having all of the correct pref

  • Running 10.6.8; Quicktime Player 10.0; No sound on MPEG

    I have an MPEG file created a few days ago which I know runs on Ubuntu Linux. It's a little over 2.0 GB in length. I tried to view this on my iMac, which is runing 10.6.8, and was instructed to purchase a plug-in for Quicktime movies. Okay. I don't l

  • Modifying an existing ABAP Query - sq01 (tcode)

    Hi All,   We have a query develped (Z) long before .Now we have a requirment where in which we need to add one   more table to the existing query.Kindly let me know how can we proceed.   When am giving the query name and clicked on change , am not ab