Item category determination during Purchase Requisition creation from APO

I’m creating a  SNP Purchase Requisition in APO and when it is  published to R/3, a Purchase Requisition document is created in R/3.
When this PR is created in R/3, I want the Item Category to be determined based on the Material master Special Procurement Type. ( eg: I’d like the Item category to be ‘L’ if the Material master Special Procurement Type = 30 (Subcontracting) ). But by standard, this field is coming as ‘Blank’ and this field could only be populated during the creation from APO.
I found a user exit ( CIFPUR02 :  Enhancement of Purchase Order Interface (Inbound) ) on R/3 where I tried to populate the Item Category, but  when I do this, all the purchase order related data is getting deleted and hence no PR’s are getting created in R/3.
Could anyone please tell me if this could be resolved using configuration and if not any  tips to do this technically would be very helpful.
Thanks,
Harsha

Hi Karun,
This is the code i'm using...
select single * from marc into lit_marc
where  matnr = c_eban-matnr
and    werks = c_eban-werks.
append lit_marc.
read table lit_marc with key matnr = c_eban-matnr
                             werks = c_eban-werks
                             sobsl = 30.
  if sy-subrc = 0.
  c_eban-pstyp = '3'.
  endif.
Here sobsl = 30 is the Special procurement type
But when i try to populate c_eban-pstyp = '3', during the creation of Purchase Requisitions in R/3, in the program SAPLEMPI -> LMEPIF01
this condition is encountered which deletes all the data in the tables that is used to create Purchase requisitions.
<i>* get rsnum in the case of subcontracting
      IF XEBAN-PSTYP EQ PSTYP-LOHN AND                      "RB240999
         EXITFLAG_ORDID IS INITIAL.                         "RB240999
refresh all component tables
        CALL FUNCTION 'ME_COMPONENTS_REFRESH'
             EXCEPTIONS
                  OTHERS = 1.</i>
Could you please suggest me anything to get around this.
Thanks,
Harsha

Similar Messages

  • Item Category Determination during Sales Order Creation

    Dear All,
    This is Chee Wee, i'm new to SD, i would like to seek for an advice for the topic related to Item Category in Sales Order.
    We have a material "Mat005" define as "Stocked" Item category in MM03,
    *Stocked means our MM team will always keep stock for the material.
    The document Item category assigned to this "Stocked" are "NoPo" --> No Auto Po creation and "AuPO" --> AutoPo  creation.
    During the SO creation for Mat005 with Qty50 and warehouse stock availale for 60, i'm wondering when i select the itemCat "AuPO", the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    Can any Guru advice me what is the actual setting or configuration behind to determine which are the correct Item Category that i can choose?
    Thank you very much,
    Regards,
    Chee Wee

    Dear Chee Wee,
    Basically tem category will determine based on these key combination
    Item category group(Material master)+Sales document type(We enter doc type in the creation initial screen)--->Item category
    For Example NORM+OR--->TAN.
    As per your explanation
    I hope In your case stock availability also one of the factor in the item category determination.This might have done some enhancement.
    There are two item categories in your process one is  "NoPo" --> No Auto Po creation and  second one is "AuPO" --> AutoPo creation.
    the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    60 Qty Stock available, you have created sales order for 50 Qt here requirement is less than stock availability so system will not allow you to enter AuPo item category Because there no need of auto PO creation for stock.
    When you created sales order for 70 Qty, stock available only 60 so there is shortage of 10 Qty.now system needs to allow to create Auto PO to procure the shortage stock of 10 Qty, so system is allowing you to enter Yaupon item category.
    There might be some work around kind take help of ABAPer to get the more details about your item category determination.
    I hope this will help you,
    Regards,
    Murali.

  • Purchase Requisition Creation From Release

    Dear PM Gurus,
    For Manual material availability Check to work before release, the Purchase Requisition check is to be set to Immediately in SPRO-> Define Change Docs and Collective PR or Activating Pr from Now On from Maintenance Order. The issue is that I want to restrict the creation of Purchase Requisition to Release of Maintenance Order but what is happening is upon saving the Maintenance Order, the PRs for all non stock materials are created and I also want the manual availability check to work before release.
    Simplifying above details:
    I want Manual material availability check to work and PR generation from release both in my Maintenance Order to work..
    Regards..

    Hi DP Singh,
    I had seen the configuration settings that you are telling me but you see the Problem is:
    If in Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval, you define the Res/PReq Indicator as Immediately, then the Manual Material Availability Check would work accurately but upon saving the Order, System would generate the Purchase Requisition.
    and If in Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval, you define the Res/Preq Indicator as From Release, then the Manual Material Availability Check would not work as no material is as such MRP relevant till the time of releasing the Order but the Purchase Requisition would be created only when the Order is released.
    Now What I want is both the Manual Availability Check to work and Purchase Requisition Creation From Release, but this is not possible according to the Standard SAP System. A workaround could be that I configure the automatic material availability upon release and configure the Res/Preq indicator as From Release, that way the material availability would be checked when the order is released and Purchase Requisitions would also be created from Release but still the Manual Availability Check would not work.
    The Ideal Solution should have been configuring the Res/Purchase Requisition Indicator for all Non Stock Materials to be From Release and the Res/ Purchase Requisition Indicator for all Stock Materials to be Immediately. This way your manual availability Check would work for all Stock Materials and Purchase Requisition for all Non Stock materials would only be created upon Release. But this  But still this is an ideal solution not the actual solution for standard SAP does not give you the flexibility to do such a setting in customizing or using Enhancement.
    The Work Around Solution given by SAP is as follows: The system provides the following workaround:
    After you change the indicator for materials planning-relevance to
    "immediately" you can execute the availability check as required. You must
    not save the order or network.
    Regards,
    Muhammad  Usman Kahoot
    Edited by: Usman Kahoot on May 27, 2010 1:32 PM

  • Send a purchase requisition data From APO to SNC

    Hi ,
    Is it possible to send requisition data from APO  to SNC and any  internal integration is there.
    Any Standard way or method or FM  to send the Purchase requisition details from APO to SNC.
    Thanks.

    Hi ,
    Is it possible to send requisition data from APO  to SNC and any  internal integration is there.
    Any Standard way or method or FM  to send the Purchase requisition details from APO to SNC.
    Thanks.

  • Backend exit in Purchase Requisition creation from SC in SRM

    Hello,
    could please someone tell me which exit can be called in R/3 backend system during the creation of a Purchase requisition created form a SC in SRM?
    Thanks a lot.
    Guido

    Hi Guido,
    It does exist in ECC60 !
    However, maybe your release backend does not have it....
    Kind regards,
    Yann

  • Error during Purchase Requisition Creation .

    Dear All ,
                                                       Please help i m not able to create a Purchase Requisition in testing system am gettign an error as given below ;-
    Internal number assignment not defined (please enter number)
    Message no. 06243
    Diagnosis
    The system cannot assign a number because internal number assignment has not been defined in this case.
    Procedure
    Enter a number that lies within the valid number range for the document.
    Any suitable help will b appreciated.
    rgds,
    sap11

    Hi,
    here in IMG for this doc type , there is no entry in column for " NoRngInt " but
    Maintain here 01 in front of  Nointreg your doc type and save...
    Def it will work
    Utsav

  • Re: Purchase REquisition creation with ref to SAles Order

    Hi All,
    I need help on an issue.
    I have sales order creation and when saving Purchase REq is created at the back end. But for the sales order for item category n schedule line category combination does not allow creation of Pur Req. n pur req no. is not dislayed in Sales order.
    But I have Pur Rq created with ref to sales order.
    How is it possible.
    In Pur req  I checked the creation indiacotr, it is with ref to sales order.not manually.
    Can you please help it out..
    Regards,
    Smitha

    Hi,
    Purchase Requisition creation from Sales Order is dependent on the configuration of Schedule line category not Item category. Check configuration of Schedule line category in VOV6.
    Also to see the PR No in Sales Order, double click on the Sales line item and click on the "Purchase Requisition" button under "Schedule Lines" Tab.

  • Error code 083 on LSMW - Purchase Requisition creation

    Hii all,
    I have generated a bapi program for purchase Requisition creation.
    the followings are the programe details:
    Business Object
    BUS2105
    Method
    CREATEFROMDATA1
    Message Type
    PREQCR1
    Basic Type
    PREQCR101
    I have divided the structures into 3 sections:HEADER,ITEM DETAIL,ACCOUNT ASSIGNMENT.In the account assignment group at the "Maintain Field Mapping and Conversion Rules" (E1BPMEREQACCOUNT), wbs element field marked as "move".
    At the "E1BPMEREQACCOUNTX" the wbs field was mared as "X".
    the programm can read the feild & displays the WBS element that it can read from the datafile.
    the problem is that during the stage of " Create IDoc Overview"
    it provides the following error:
    Enter WBS Element
    Message no. ME083.
    I have checked the WBS element& nothing is wrong with it.
    any one can help me out on this?
    thanks
    M S

    Hi Jurgen,
    Thanks for replying.
    1. For BAPI, at step 14. when i execute, it is a warning message
    No Data could be selected
    2. yes, I have activated the IDOC Settings.
    Please suggest.
    Thanks,
    Sahil

  • Purchase Order Creation from ME5A Report

    Hi experts,
    My client wants Purchase Order Creation from ME5A Report.
    He wants show Open Purchase Requisition through ME5A report then he will select Purchase Requisition Number or line item for po creation from there only.
    Please advice how I can map this process in sap.
    Thanks in advance,
    Chandhu

    Why don't you use ME57 to display open PRs and then assign sources and convert them to PO?
    Or use ME57 to assign sources and ME59 to automatically convert them to PO.
    You can create your very own format for report display using  custom "Scope Of List" for ME57.
    Look in SPRO under Purchasing>Reporting>Maintain Purchase requisition lists.

  • Item Category determination in Sales Order

    Hi
    How to know, how item category determined in Sales Order.  Is there any analysis available in Sales Order level, similar to output or text determination.
    Problem here is in a particular sales order, item category is different compared to configuration.  Nothing is recorded in change log.  How to know, whether system determined this item category or user changed manually.
    Regards
    Uma

    Hi
    Problem here is in a particular sales order, item category is
    different compared to configuration
    I cant take this arguement
    Sales order item cate will picked via the config maintained in VOV4
    item category is different compared to configuration
    Configuration someone might have changed after that sales order created
    Nothing is recorded in change log. How to know,
    whether system
    determined this item category or user changed manually.
    During order creation if you are inputting the allowed manual item category manually in salesorder then that is not a change
    Hence it doesnot get recorded (VA01 T code)
    During order creation  a default item cate gets determined if you chnge that to manual, then that is also not a change
    Hence it also doesnot get recorded (VA01 T code)
    But in VA02 if you change the item category manually then it is recorded in change log
    No item category determination analysis is available in standard and not reqd too
    In your case only this could have happened
    Configuration someone might have changed after that sales order created
    Regards
    Raja

  • Usage in Item category determination

    Hi friends,
    In delivery item category determination there will be in field called "Usage" . Delivery type will be coming from delivery document type, Item category group will be coming from material master. In the same way where from this Usage data will be coming. How come the system knows which is FREE, CHSP, Etc??
    Can anyone explain me in detail please.
    Ratna Kumar

    Hi ramarao
    Spro --> Sales and Distribution --> Sales --> Sales Documents --> Sales Document Item --> Define Item Category Usage
    Item usage controls how the item category should behave during a document processing. Item usage controls the usage of the item. Item usage tells wheather it is a text item , free item , product selection item etc
    We can maintain Item usage feild  at CMIR also
    Regards
    Srinath

  • User exit -Item Category Determination for a Home Delivery Shipping Condn

    Hi All
    1.     A Standard Order is created in ECC and if the shipping condition is HOME DELIVERY the default site that gets determined will be a HUB and if it is an UPS shipping condition the default site that gets determined is the PDC
    2.     The default Item category determined for the delivery relevant items (Box1 and Box2) will be “ZSNP” which is fine if the Shipping condition is UPS and the site is PDC.
    3.     However if the Shipping condition is HOME DELIVERY and the site is a HUB then the “ZSNP”  Item Category has to be flipped to “ZTBB” which then will determine the correct Schedule line category “ZB” and triggers the IPO process. This in turn auto creates a purchase requisition on the PDC when the Sales Order is saved
    plz help
    thnx
    rohit

    Hi Lawrence Tam,
             If you are going to create a new item category usage to determine an item category, you need to add a new line in transaction VOV4 for the new combination of sales document type + Item Cat. group + usage + high leve item cat. to determine the item category.
    Thanks in advance,
    Mariano.

  • What is the use of usage in item category determination?

    Hi Gurus,
    What is the use of usage in item category determination? pls give examples.
    Thanks,
    Paul

    Hi John,
    Assign Item Categories
    In this menu option, you can specify which item categories the system proposes during document processing for each sales document type and item category group. At the same time, you can specify additional item categories with which the system default can be overwritten. There is a maximum of three possible alternative item categories.
    If, for example, you enter a material with the item category group NORM in a standard order, the SAP System determines the allowed item category via the assignment of item categories to sales document types and item category groups.
    The system default and the allowed alternatives are always determined from the sales document type and one or two further criteria. The system default depends on the following criteria:
    sales document type
    item category group
    item category of the higher-level item
    item category usage
    Note
    The SAP System automatically copies the item category determined for a sales document item to the delivery.
    Recommendation
    Depending on the initial situation you can start the assignment differently:
    When you define a new sales document type, you should specify the proposed and the allowed item categories for the materials that are represented by the item category group.
    When you define a new item category, you should specify for which sales document types an item category is proposed or which item category is possible for the materials represented by the item category group.
    When you define a new item category group, you are to enhance the assignment of item categories to sales document types by this new item category group.
    Actions
    To define item category determination, proceed, for example, as follows:
    1. Choose the sales document type to which you want to assign item categories.
    2. Then choose one of the item category groups.
    3. Specify all the allowed item categories for the combination of sales document type and item category group.
    If you are dealing with a non-material item, you must specify the corresponding item usage.
    If it is a subitem, specify the item category of the higher-level item.
    If it is an item category that is to be proposed in the sales document, you must indicate the combination of item category, item category group and sales document type as a default value.
    4. If necessary, specify between one and a maximum of three item categories, with which the system default can be manually overwritten during document processing.
    Thanks & Regards
    Sasikanth.Ch

  • Sales Order - Using Item Category 'TAB' - Individual Purchase Order

    All,
    I am configuring for the first time utilizing Sales Document Item category "TAB" - Individual Purchase Order.  I have a few questions:
    Is there a best practice configuration guide specific for this process?  I have found the 'third party' document/best practice, but nothing so far  on "individual purchase order from sales order'. 
    Is there a way to default Purchase Order Type "UB" stock transfer from the Purchase Requisition NB?  I thought this could be done based on the schedule line "CB" configuration, changing the 'item category' to 7 stock transfer, then this would carry into the mapping for purchase requisition type NB/item category stock transfer to purchase order type UB/item category stock transfer.  However, when I set '7' on the schedule line CB, I then receive a hard error when creating my purchase req to set the supplying plant.  I have more than one supplying plant, so I'm not sure if setting the '7' is the right setting for this process.  From what I've been able to find for documentation, the item category of the schedule line should be set to '0' standard.
    When I perform the post Goods Issue 601 of Special Stock "E" - to the customer (once the stock has been received into the right plant), the system is not creating an Accounting/FI Document to relieve the inventory and charge cost of goods sold.  I have reviewed automatic account assignment entries and these appear correct for 601 E.  Are there special settings for special stock "E" that I need to consider. 
    If you cannot answer all of these questions, but can answer one of them, I am most interested in teh last question above. 
    Regards,
    Sandra Miner

    Hi Reazuddin,
    What I don't understand is why:
    if I don't create PO --> I can create Outobund Delivery in Individual Purchase Order but if I create PO (not MIGO) I cannot create OBD in IPO.  (Note: in both cases I agree PGI is not possible)
    The flowchart is: Sale Order (IPO) --> Purchase Requisition --> Purchase Order (PO) --> MIGO (inbound delivery) --> MIRO (Vendor invoice verification) --> Outbound delivery ( delivery [OBD] + picking + posting[PGI]) --> Sales Invoice
    As per your comments:
    System will not stop you to create delivery, though you customize delivery item cat: as Check min qtty "0" - error message. because system checks for PGI qtty, but not the delivery qtty.
    But then in the case I create Sale order (IPO) + PO (without MIGO) --> the system should not stop me executing Outbound Delivery. It should stop me only if I execute Posting goods issue. But actually in this case, the system is stopping me at outbound delivery.
    I agree with Posting Goods Issue behaviour. It is logical in the following cases:
    Only Sale order (IPO) created --> PGI is not possible
    Sale Order (IPO) created + PO created --> PGI is not possible
    Sale Order (IPO) created + PO created + MIGO executed (inbound) --> PGI is possible.
    Thank you very much for your feedback.
    Regards,
    Alberto Ramos.

  • How to copy sales order item text in to purchase requisition

    Hi Experts,
    We enter text for the sales order items in the sales order item details.
    we have done settings for the purchase requision to copy text from sales order into purchase requisition and this works for purchase requisitions automatically created from sales order.
    we need to get text from sales order to be copied in purchase requisitions which are created by converting the planned order.
    we have tried SPRO settings SPRO->Materials Management>purchasing--->text for purchase requisition.
    but this settings does not works for Pur Req. created by converting the planned order.
    is this because planned order does not have segment for text like sales order and purchase requisition?
    Please let me know if it is possible through standard SAP or with the lease development, any help will be appreciated.
    Thanks
    Anand

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

Maybe you are looking for

  • Multiple ipods on one computer

    I have one PC running Windows 7 and 2 children each with their own ipod touch. How do I set things up to permit them to have seperate libraries and to be able to sync to their own library.

  • Is this a GCC bug or what?

    Ok, i've written this simple program in C: #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) char *c,*str,C[8]; unsigned short int D,y; time_t h; struct tm *t; h=time(NULL); t=gmtime(&h); str=asctime(t); sscanf(str,"%*s %*s %hu

  • How to visually separate elements in a pre-recorded song?

    I'm hoping to use Audition in a research project to study patterns in music.  I just downloaded it last night and I'm using the trial period to evaluate if it will meet my needs.  I am running the program on a Mac. As stated above, I'm hoping to use

  • I have Word 13 and Acrobat XI. Pdfmaker.officeaddin do work but closes down Word. What to do?

    I have Word 13 and Acrobat XI. Pdfmaker.officeaddin do work but closes down Word. What to do?

  • FMLE and Windows 7 64bit

    I have been trying to install FMLE3 since august 22nd but for some reason only 2.5 will install. I have windows 7 ult 64bit . It did install before earlier this year but after a format I had to reinstall. The laptop is a Toshiba Satellite P305D and t