Adding new line item to the Purchase Requisition

Hi Guys,
I have created the PR using the BAPI_PR_CREATE. Now I want to add the new line item to already created PR. I tried with BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE but nothing worked for me.
Can anyone help me in this.
Thanks in advance
Edited by: jayakrishna.k on Feb 16, 2011 12:07 PM

Hi,
Please try MEMASSRQ or change by ME52N
Regards,
Manish Jain

Similar Messages

  • How to add a new line item to a Purchase Requisition number

    Hello All,
    Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
    Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
    Useful pointers would be appreciated...!!
    Thanks & Regards,
    Tarun Gambhir

    @Gautham,
    Thanks for the quick reply.
    I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
    Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
    Regards,
    Tarun Gambhir

  • Adding new line item while save

    Hi all,
    use an implementation of BADI  ME_PROCESS_REQ_CUST in the MM-Purchase-Requisition, method IF_EX_ME_PROCESS_REQ_CUST~POST while save.
    based on the line items available(USER ENTERED) i have to add few more line items based on the account assignment category and quantity while save.
    How to create new line items (copying the existing line item and change the quantity ) and save the requestion with the additional line items. I used this code. while calling the method CRETE_ITEM  create based on the object REF_ITEM  in the MY_STATE.
    the REF_ITEM object is Initial . so while creation the empty object is created.
    kindly help to give tips/details  to handle.
    Coding:
    data: l_item_list TYPE MMPUR_REQUISITION_ITEMS,
    l_item TYPE MMPUR_REQUISITION_ITEM,
    l_item_akt TYPE mereq_item,
    l_item_ref TYPE ref to IF_PURCHASE_REQUISITION_ITEM.
    l_item_list = im_header->get_items().
    loop at l_item_list into l_item.
    l_item_akt = l_item-item->get_data( ).
    IF l_item_akt-MENGE > 1 AND
           l_item_akt -KNTTP = 'A'.
          DO l_item_akt -MENGE TIMES.
             l_item-item= IM_HEADER->CREATE_ITEM( IM_ITEM =  l_item-item).
            INSERT  l_item INTO TABLE IT_ITEMS_list.
    %%%%%  here i checked useing    get data  method  i am not getting any data other than relesing procedure data.
    I used SET_DATA method to set the data. even I am not getting data.
    endloop.
    (Debugging the code, I manage by doubleclicking while create Item  method the fieldcontent of l_item (e.g ) to show the content of the class-attribute my_state. This works only if the field “Interface” in the Debugger is empty because then I see the attributes of the class. If the field Interface is filled with “IF_PURCHASE_REQUISITION_ITEM”, there aren’t any attributes shown.)
    Thanks in advance for your kind help!!
    Nicole

    I searched sdn and found this not possible.

  • General Ledger Accounting (New): Line Items of the Leading Ledger

    Hello Guys,
    We are planning to implement
    General Ledger Accounting (New): Line Items of the Leading Ledger
    0FI_GL_14
    We are in ECC6 sap_appl 6.00 and BI 7.0 SP 14, BI Content 7.3 level 4.0
    The new GL line item is available
    Financial Accounting: General Ledger Accounting (FI-GL)
    Available as of Release - SAP Enhancement Package 3 for SAP ERP 6.0
    Shipment - SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08
    Content Versions- 1.0; 703
    Just we have  to install SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08  and on ECC side SAP Enhancement package 3 for ERP 6.0 --. Financial accounting - SAP APPL 603.
    Is it correct. Can you please confirm.
    Thanks
    Senthil

    Hello Senthil,
    Yes, thats engough, since SAP is recommending the same for that datasource 0FI_GL_14. I think you are already in that version.
    See this SAP help document
    [DataSource Transactional Data: 0FI_GL_14|http://help.sap.com/saphelp_nw04s/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/content.htm]
    Thanks
    Chandran

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

  • Copy service line items to new line items in the same contract (ME32K)?

    Hello friends,
    Requirement: There are many contracts (account assignment K) has service line items  (type 9). I need to copy a contract line item along with its service line items (1 or more) into a new line item in the same contract. I tried bapi_po_change but it says Contracts can't be processed with it, as only in this bapi we have a structure for ESLL services. BAPI_CONTRACT_CHANGE or create don't have structure for ESLL..how to achieve this through a bapi or a fm?
    So, in what way I could accomplish this? I came across some threads, which was helpful, but is not solving the purpose
    Any guidance here would be of great help.
    Thanks in advance.
    Mayank

    Use BAPI_AGREEMENT_MAINTAIN
    This BAPI can be used to create new service items in the contract but won't change existing lines. You can query the contract lines that you want to copy and later call the BAPI to recreate them

  • New line item in the service contract

    Hi Gurus,
    I have requirement to add the new line item in the service contract. Details are as follows.
    as per the requirment, manually we are entering the outbound category via web Ui (service -> service contract).Now I have to develope a badi/method  in standard badi exec_methodcall_ppf which will insert a new line item with the same material as of outbout category but with the item category as inboud.
    could you please help in how can I maintain the new line time. I know we have to use the crm_order_maintain FM but I'm confused what all parameter we need to pass to maintain this.
    can someone please share the code to do that. TIA

    Hi Paul,
    It seems there is no option in changing the condition records at the billing plan item level.
    Please try the following.. see if it helps. To execute the invoices with new condition record values directly, make the settings at the billing item category level goto -- the billing document frame -- under serivces frame -- pricing type select option Carryout new pricing (Option B). This option updates the billing document at the time of invoicing with new price calculation.
    please see if this can help you out.
    Have a good day!!!
    Nandu

  • Adding new line item directly to PO

    Hi,
    We have a requirement for adding a new line item directly within the Purchase Order in SRM (without using the shopping cart). We are using the FM BBP_PD_PO_UPDATE for this purpose. However, we are getting the following error while updating. " BUFFER TABLE NOT UP-TO-DATE". Please provide assistance in order to resolve this issue.
    Regards,
    Arun

    We achieved  based on the Security roles to identify if the user is Requester or Purchaser or Manager and Webdynpro changes by the portal team to activate the Change and Order button based on the required business rules.
    Transaction Code for PO Change to be added to the security role.
    Requisitioner:  Any user with out any existing A012 relationship with any existing Organizational units on the current date:
    Manager:  Any user having A012 relationship with any existing Organizational units on the current date.
    If the Authorization object checked programmatically results the value of "PUR" then the standard SAP code for "Purchaser" has to be executed.
    Some additional Info :
    Control list of PO using BADI BBP_WF_LIST - Change Work lists and Search Results Lists   Method:  BBP_WF_LIST
    Badi -BBP_AUTHORITY_CHECK for any additional authorisation checks
    Hope this helps.
    Thanks
    Balaji

  • Problem in Calling URL for Line Item of Perticular Purchase Requisition.

    Hi Experts,
       I am calling a external window from the web dynpro which is working fine. I am trying to open transaction ME53 in the browser and i am successful in that. But now when i open that transaction there were two requirements:
    *1) It should open the purchase requisition directly bypassing the initial screen {which is completed while posting this query}*
    *2) and it should open the purchase requisition according to the specific line item. eg. for PR 1234569 Line Item 0010 should only be visible.
    Please help me out with this.
    Thanks in advance.
    Regards Saurabh Kerkar
    Edited by: saurabh s kerkar on Dec 20, 2010 12:45 PM

    Currently the URL is as follows:
    lv_url = 'http://p10dev.ril.com:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=ME53%20EBAN-BANFN='.
      concatenate  lv_url lv_banfn into lv_url.
      concatenate  lv_url '&~OKCODE=/00' into lv_url.
    this is opening transaction ME 53 skipping the initial screen with all the line item.
    i want to use it for specific line item how to do it?
    Edited by: saurabh s kerkar on Dec 21, 2010 8:23 AM

  • Adding new line item in SC after it is added to PR or PO

    Hi Experts,
    Our customer wants that if line item is added to PR and PO on ECC side, it should be added to SC as well. I am sure you can't change apporved SC for which follow on document is created. But if someone did similar kind of requirement.
    Here is requirement.
    >  SC has 2 line items.
    >  PR is created in ECC for 2 line items after SC is apporved.
    > User added 3rd line item in PR on ECC side.
    > Customer wants this line item should be added to SC as well.
    Please advise.
    Regards,
    Kamal

    Hi,
    In Classic Scenario: This is not possible .when you are adding a P.O in ECC it will not reflect in
    SRM.
    In Extended Classic scenario: In SRM  only P.O is  created .You can add a new line items (or) change
    because P.O in SRM Server is the main P.O.
    Moreover in this also Shopping cart will not update. Once Shopping cart is approved you can do any changes
    Please check which scenario your client is using.
    Regards
    G.Ganesh Kumar

  • User exit - VA01 - Adding new line items while Sales Order Creation

    Hi All ,
    I have a requirement where : in VA01 , i have to add new line items using USER EXIT or BADI.
    The scenario is : we maintain Characteristics for Material. When we select a particular characteristics, Factor and length will be displayed in a Popup. we can specify the Factor and lenght.
    Here , if i specify Factor as 10 and lenght as 1000. the Material has to be cut / split into 10 items of 1000 mts each. and the ITEMs table control should get 10 ITEMS .
    How to add new items using User exit or Badi in VA01 while creating a sales order.
    i have identified the user exit . What code should be used to add new line items.
    kindly help me in solvng this.
    Waiting for your replies.
    Thanks in advance.
    Suki.

    hi
    wich user exit do you take for that ???

  • Adding new line item to Delivery

    When I try to post (Add) a delivery document based on a sales order that has a line item added that did not belong to the sales order I get the following error "[OACT] No matching records found (ODBC -2028)".  Looking in the DI API documentation I see that the Document_Lines object has a mandatory AccountCode property.  How do I go about getting the appropriate account code for the added line item?  The help documentation shows some sample code (included below), which doesn't make much sense to me. 
    Dim sStr As String
        Dim vRs As SAPbobsCOM.Recordset
        Dim vBOB As SAPbobsCOM.SBObob
        Dim vCH As SAPbobsCOM.ChartOfAccounts
        Set vCH = Vcmp.GetBusinessObject(oChartOfAccounts)
        Set vBOB = Vcmp.GetBusinessObject(BoBridge)
        Set vRs = Vcmp.GetBusinessObject(BoRecordset)
        Set vRs = vBOB.GetObjectKeyBySingleValue(oBusinessPartners, "CardName", "aaa", bqc_Equal)
        ' When working with segmentation use this function
        ' to find the account key in the ChartOfAccount object
        Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "125100000100101", bqc_Equal)
        'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).
        sStr = vRs.Fields.Item(0).Value
        'Use the sStr value to set the AccountCode
    Where does the FormatCode value of "125100000100101" come from?  Why the first call to GetObjectKeyBySingleValue?  It doesn't appear the results are being used?
    Any help would be greatly appreciated!
    Thanks,
    Jason Eiler
    BTW - I'm developing with/for SAP Business One version 2004 (or 6.7 of the DI API).

    Hi Jason,
    First of all:
    The displayed account code must be translated into the internally used code ("_SYS...") when using segmentation - when not using segemntation it is just internal code = displayed code.
    The code displayed is just a sample to give you a hint in case you are already familiar with the SAP Business One application.
    Therefore the sample code does not talk about where you got e.g. the value for FormatCode from ("FormatCode" is e.g. a field in table OACT where the account name with segments is (redundantly) stored without separators).
    The user should know on which account he/she wants to book a line on; maybe you might want to give some help to the user by displaying a dialog with suitable - or preselected accounts?
    In addition I am sure you know how to assign a string value to a string property - without explicitly writing it, right?
    HTH,
    Frank

  • Block item in the purchase requisition

    Hi expert,
    do you know some bapi to modify a purchase requisition item ?
    p.s. The modify consist to block only some item.
    tks a lot,
    bye.

    Hi Frank,
    tks for your reply, anyway I asked about some bapi ... not batch input and not transaction me52 .
    bye.

  • Line Item 00000 in Purchase Requisition

    Hi All,
    Have you encountered creating PR using MD03 and the resulting line item # is 00000 and not something 00010?
    This has been our problem when we are upgrading to ECC 6.0. With 4.6 the line item # is 00010.
    Is this a case of simple configuration in SAP?
    Please help,
    Sid

    Hi Manohar,
    Thanks for the replay. I follow the tree menu you gave in the spro. The doc type's "Item Number Interval" is set at 10. Any further suggestions?

  • How to move the item level details to line item in the Purchase order form

    Hello,
    I am in SAP SRM7.0 system, my customers requirement is that the item level details like MPN (Manufacturer Part Number) etc.. should be moved to line item field in the Puchase Order.
    Can any one give me susggestion on this. This is not the correct forum for this thread but still pls post the link of related threads which may help in this regard.
    Regards
    Madhan

    HI Masa,
    THanks a lot for your reponse, in the option given by you i could find it to make visible or required but there is clue on moving the MPN to item field in the line item level. Can you give more input on this.
    Regards
    Madhan

Maybe you are looking for