BAPI_PO_CREATE1 to create PO with limit item (item category = B)

Hello,
I want to create a PO with a limit item (category = B). What are the important parameters/tables which have to be filled.
Currently I'm filling the following:
POHEADER + POHEADERX
POITEM + POITEMX
POSCHEDULE + POSCHEDULEX
POACCOUNT + POACCOUNTX
POSRVACCESVALUES
POLIMITS
The package number in the item matches with the one which is used in POSRVACCESSVALUES and POLIMITS. When I debugg the function module everything looks fine to me and a PO is also created BUT it does not contain any item with category = B.
Does anyone of you have an idea what is missing?
Kind regards,
Thomas

hi,
Please reffer the below link
Blanket Purchase Order and the Framework Order
Thanking you

Similar Messages

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

  • Creating contract with service line items

    Hi,
    My requirement is to create contract with multiple service line item. The issue is my system is ECC5 so i don't have BAPIS like BAPI_CONTRACT_CREATE or BAPI_SERVICE_CREATE .How do we achieve this without writing a bdc. Do we have any equivalent bapi in ECC5.

    Hi,
    Check this Fm BAPI_CONTRACT_CREATEFROMDATA

  • Creating POs with multiple line items

    Hi,
    Is it possible to create a PO with multiple line items from the Sharepoint. The developer guide shows sales order creation with a single line item. If yes, please let me know how it can be done.
    Thanks,
    Pranil

    Hi Pranil,
    You can achieve the user case to create a PO with multiple line items in 1 step by creating a custom solution UI in SharePoint. This is not possible if you simply use the out of box UI (as depicted in the guide).
    It depends on how to define the ESR data type. You can create a data type with header details of PO and collection of items with cardinality as 0..n and create a complex BDC model using SPD --> then create a custom UI.
    Other option would be keep it as 2 lists (2 step action). First create a PO header and then add item by item in 2 steps as foreign key relationship. You can see the example of Account and Activity in pre-shipped contents to get an idea.
    Thanks,
    Girimurugan

  • Error using BAPI_PO_CREATE1 for creating PO with services

    Hi,
    I'm getting an error saying 'EnTER account assignment data for item' when I use BAPI_PO_CREATE1 and try to create POs with Service Items. I have filled all the required details, even then the system throws up this error message. Thanks for any help.
    Regards,
    Vijay

    what have you passed to the table POACCOUNT? and POACCOUNTX?
    Regards,
    Ravi

  • Error using BAPI_PO_CREATE1 to create po with ref to PR

    Hi all,
         I am using FM BAPI_PO_CREATE1 to create a PO wrt PR. but while executing getting an error.
    No instance of object type PurchaseOrder has been created. External reference:
    Purchase order still contains faulty items
    Purchase requisition 10002040, item 00010, does not exist
    Purchase requisition 10002040, item 00010, does not exist.
    Any suggestions to solve this problem.
    Thanks in advance,
    Neela

    Hi ,
    i got the error message that 'Please maintain services sor limits'  message se 029.I'm using bapi (BAPI_PO_CREATE1) and pass preq_no and preq_item in poitem structure.can u help me in this issue?

  • Using bapi_po_create1 to create PO with return item - Order Combination

    Hello,
    There's a shipping tab that appears in a purchase return item, and in it there's a flag called Order Combination.
    Only i can't seem to find a way to change that flag using this BAPI, nor using bapi_po_change.
    Any ideas?
    Thank you in advance.
    Duarte

    Hi
    Its a setting that you maintain in the customer master reord that defaults it.
    So if you want this to be flagged for some vendors and for some no flag the you need to maintain accordingly in the Customer master data  - Sales are data  Shipping tab
    If you want it to be maintained through BAPI then populate the same in  POSHIPPINGEXP structure
    Thanks & Regards
    KK

  • SC with Limit line items and Desc requirements _Incorrect Overall Limit

    Hi,
    When i create SC ,combining both limit items and non-catalog items (desc requirement), i am getting my PR created.
    However, i observed that for Limit lines in PurReq, the expected value & Overall limit amounts are not being transferred correctly.
    Overall limit is also showing as equal to expected value. This is happening only when i combine limit and full text lines together in a sc. It seems like a bug. We are on SRM 55 and patch 11.
    Appreciate any inputs.
    Thanks
    Krish

    Hi Karthik,
    Thanks for your reply. I already checked these notes and they are not relevant for my issue.
    My issue is like this. SC has got 4 lines and out of them 2 are Limits and 2 of them are describe req's lines.
    for one of Limit line, overall limit is 1000$ and expected value is $500.
    where as in the Purreq, i am getting both overall limit and expected value as $500 itself. basically overall limit is overwritten with expected value.
    I found very old note something simillar to this issue: 304382.. its the otherway happening in my case.
    Thanks
    Krish

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • Error when creating PO with reference to PR

    Hello Expert,
    When creating PO with reference to PR I encountered with one error i.e. system is taking into consideration one to one relation of PR line item to PO line item. For example: I have created PR with one line item for XYZ value and with reference to PR line item I am creating one PO but with two line items in PO that means I am splitting PR value into two line items in PO, 1st line item with zero tax and second one is with tax.
    So there is one PR line item but in PO I am creating two line items with reference to single PR item. In this case system is giving error saying Item 001 WBS element XXXXXXXXXX budget exceeded. message no: BP604. However if I create single line item in PO then it wont give any error.
    Please suggest any customization setting is done for such kind of behavior of the system.
    Thanks
    Shyam

    Hi,
    SAP creates the requisition with item category "U" even in case of cross-company (intercompany) purchase requisition.
    When converting it to PO the item category becomes blank - as I tried and I got no error message.
    Please check your settings under SPRO > MM > Purchasing > Purchase Order > Define Document Types (V_T161). You will see (if standard settings have not been changed) that NB requisition type with "U" item category is allowed for NB purchase order type with " " (empty) item category.
    Regards,
    Csaba

  • How to create PO with reference to Pr through BAPI

    Hi everybody
    I wanted to create PO with reference to PR through BAPI_PO_CREATE (4.6c), but i found there is no field to set PR info in the parameter. Is the bapi right for this case, or there are other functions?
    THANKS FOR ANY ADVICE!
    Best regards,
    Egg

    Hi abappers!
    I'm using bapi BAPI_PO_CREATE1 to create PO with reference to one or more PR. I have a problem with document date:
    If the delivery date of the PR is lower than creation date of PR, the document date of the PO is the delivery date (lower than sy-datum).
    If the delivery date of the PR is the same or higher than creation date of PR, the document date of the PO is the creation date of PR (sy-datum or high).
    I'm trying to change this date in poheader-doc_date, but the system ignores me. I'm sure this is the correct variable, because I use it to create other PO's without reference.
    Another thing confuses me is that if I create the PO with reference to the same PR from ME21N, the system doesn't allow me to indicate a document date lower than sy-datum.
    Thanks in advance,
    Jorge

  • Contract Release value is not updated with Limit item value

    We have SRM 4.0 with ECS scenario.
    Contract are created in SRM and replicated to ERP.
    If we create PO with Service line and Limit line using contract in both of these line items, contract Release value is getting updated only with Service line item value.
    But the contract Total value is the addition of Service and Limit value of PO.
    Why Contract Release value is not getting updated with Limit item value. Please help as early as possible.

    Hi Sandeep
    Yes. there are various reasons .upon your contract incorrect status and linkage not establised / or more attachment in SRM GOA.
    what type of contract are you using? GOA or CCTR
    If it is GOA - which version of SRM and service pack ?are you in ?
    If it is a GOA , BLAREL idoc might failed to post the release value in the SRM .
    How contracts are created material / mat group ?
    to fix or understand the issue, you need to recreate the issue.
    what is the ERROR in BLAREL in SRM idoc monitoring ?

  • SC (SRM) = PO (BE) with limit item (Itm.Cat = B)

    Dear all,
    in SRM I create a SC with two items, the first item is quit normal (material, cost center assignment, etc). The second item is a copy of the first one, unit of measure is LE. Now when this SC is transfered into the BE I want the PO to contain a limit item ( item category = B). The customer is using the classic scenario and upgraded from SRM4.0 to SRM7.0.
    What are the important flags/tables etc. in BADI BBP_CREATE_PO_BACK, method FILL_PO_INTERFACE.
    Currently I'm filling the following parameters:
    PO_SRV_ACCOUNT,
    PO_LIMITS
    zusätzliche Kontierungsinformationen für Serviceposition
          clear ls_po_srv_account.
          ls_po_srv_account-pckg_no    = ls_po_items-pckg_no.
          ls_po_srv_account-percentage = '100'.
          ls_po_srv_account-serial_no  = '01'.
          append ls_po_srv_account to po_srv_account.
    PO Limits
          ls_po_limits-limit     = ls_po_items-net_price.
          ls_po_limits-exp_value = ls_po_items-net_price.
          APPEND ls_po_limits TO po_limits.
    The PO will be created in the backend with the two items, but the item category of them is blank (= normal item).
    Does anyone of you have an idea what is missing?
    Kind regards,
    Thomas

    Hello Laurent,
    I don't know. I think this is something from former times when they had been running on SRM4.0 and they simply took over.
    The UoM is LE and in the BE there should be an appropriate line item in the PO with category B (= Limit).
    How do I define limit items in SRM?
    Kind regards,
    Thomas
    Edited by: Thomas Mueller on Dec 16, 2011 12:36 PM

  • Blank Line Item for Rfx Response with Limit Item

    Hi All,
    I have a problem in rfx response for limit item. When creating RFx for limit item, I am using display limit as 'Available to Bid On' and using short text in RFx line item (not using product code). But when bidder creating rfx response, all field in line item is blank (no short text, product category, currency, etc) and bidder need to click on details to see item data. Is this a standard?FYI I'am using SRM 7.0 with extended classic scenario.
    I already try display limit as 'Accept or Reject Possible' but the problem still persists.
    Rgds,
    Aleluya.

    Hello Aleluya,
    As per standard system behaviour you user should be able to see these details in the Item overview screen itself. There is no need to navigate to the details of the same to view them.
    Only to enter price bidder needs to go details of the limit item.
    Have you done any custom changes for the reported scenario here or you are using the standard feature.
    Best Regards,
    Rahul

  • SC with Limit Item using Extended Classic Scenario?

    Hello,
    Can we implement SC with Limit Item using Extended Classic Scenario.
    I mention that we replicate the Product Categories from R/3 backend.
    We have tried to create a SC with Limit item, but the data on Quantity, Price and Tax is not picked up at PO level.
    Regards,
    Shaiek

    Hi
    Please try out this.
    For the time-being,
    Try de-activating all the custom BADI Implementations and check, what is happening, in the standard SRM system. How does it behave incase of limit item ?
    Incase it works fine, without any Custom Implementation active in the system, I suspect there is something wrong in your current deactivated BADI Implementation.
    Since i don't have access to your system , Please paste the code here.
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

Maybe you are looking for