Problem in  BAPI_SALESDOCU_CREATEFROMDATA1 returning item category

Hi Gurus,
I have a problem in FM BAPI_SALESDOCU_CREATEFROMDATA1
the sales order is created sucessfully using this .
here i want to return back the item category which is generated by BAPI
i have used the itemx table
and also set the flag like
  itemx-ITEM_CATEG = 'X'.
but cud nt find the item category back in item table
i cud c the entry  of item category in VBAP table
Any Inputs ?

BAPI will give you the sales order number only, it it is success . it will not return any item category back. if you want to know what is the item category you have all the information with you. if the sales order created successfully then you can use SALES_ITEMS_IN-ITEM_CATEG .

Similar Messages

  • Return Item Category??

    Hello Friends,
    I am workind on issue which has order type ZBSR (voucher). There is only 1 return itrm category which returns the stock into unrestricked use immediately. I need to  configure a new item category which mirrors the original SAP return item category, which will post the returned quantity into return stock first (instead unrestricted stock) ,
    Could you please explain how can process this issue. Appreciate your help.
    Thanks.
    MD

    hi,
    The item category does not decide the movement type.
    You attach a schedule line to your item category. The configuration for schedule line category is done in VOV6.
    If you go through schedule line configuration, you will see a field call movement type. Here you need to enter the movement type which will transfer the material to inspection stock/ return stock.
    If you go to VOV5 and check your item category - you will be able to see a schedule line attached to it. Note the schedule line and go to VOV6 and check the properties of this schedule line category. If you see there, you can see the movement type as 631..which is sending materials to unrestricted stock. Change it here to a different movement type as per your business requirement and save it.
    now if you run your returns order, the stock will not go to unrestricted stock.
    thanks

  • Problem in Supplier Invoice - Item Category

    Hello all,
    When trying to create an Invoice, the system returns the following error:
    [Item category 40100 not allowed in accounting transaction 0300/0001]
    Where/How can I solve this problem?
    Kind Regards,
    Miguel

    Hi ,
    Please check wherther that item category is relavant for billing in VOV7.
    If its blank there you won't be able to generate any billing doc..
    Thanks,
    AMOD

  • Hi all.. what is the item category for third party returns

    Please also include a brief about third party returns procedure
    thanks
    adi

    Hi,
    In third-party order processing, your company does not deliver the items requested by a customer. Instead, you pass the order along to a third-party vendor who then ships the goods directly to the customer and bills you. The standard sales order automatically creates a purchase requisition for the materials to be delivered by the third-party vendor.
    In this scenario, the vendor sends a shipping notification. The incoming invoice from the vendor updates the billing quantity, so that the customer-billing document is only possible after entering the invoice from the vendor.
    <b>If the customer does not accept</b> the delivered goods from the third party vendor, the customer disposes of the goods. A credit memo is issued to the customer reversing the revenue and cost of goods sold. Then a MM credit memo is created for the third party vendor. A statistical goods receipt reversal is performed for the goods in order to close out the original purchase order. The vendor credit memo may initially be blocked for payment, if previous agreement for this with vendor exists.
    And REN would be returns item category. But you can always have your own cutomized item category if there are any special requirments from the business.
    Hope it helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • How to restrict free goods determination based on item category

    Hi All,
    We have a process where when goods for a sales order are returned , we add a line item to same sales order with a return item category.
    The issue is we have free goods determination activated for this document type and it works even for the returns item added to this order latter, whereas we don't want free goods determination to work for the returns item.
    Can anyone please advise how this can be achieved.

    Hi,
    I can think of one of the probable solution for your requirement.
    Your need to create new condition table with item Category as one of the key combination.  I think you need to update the item category in field catalog as well as in Doc Structures. Then maintain free goods condition record all the item categories except for the Return item category. This way you can exclude free goods activation for return items.
    Note : If the number of active item categories are more then it may be difficult to maintain condition records for the item categories.
    Hope this will help
    Regards,
    Sanjay

  • Change in Screen Layout of PO for a particular Item category

    Hi,
    We are facing a typical issue after Upgrade of our system from 4.6C to ECC 6.0.
    Whenever we try to create a PO (in the newly upgraded system) with the Item category S (Third Party PO), the material number field goes blank and it becomes Non-Editable (even before saving the PO)...
    However, on saving, EKPO table has the entries for the material number specified before entering the Item Category S. If we try to display the PO, it shows blank in the MATNR field.
    This works fine with other item categories......we see this problem only with the item category S.
    All the configurations (Screen Layout for Document Type, External Representation of Item category) are fine....but still we are facing this problem....
    Any suggestions on this?
    Thanks and Regards,
    Gaurishankar

    Hi Ninad,
    I think I have mentioned it very clearly that it works for other item categories assigned to the same document type. It is a very basic setting that one has to check for issues related to PO screen layouts and I have done all those checks.
    As stated earlier, this issue has come up after Upgrade, so just want to know if there is any known SAP Note or solution to this problem (if someone has faced it earlier).
    However, thanks for your reply...
    Regards,
    Gaurishankar

  • Item category group of a product

    hi experts..
    is thier any function module or table which will return item category group of a product..
    where my input is product guid or product id.
    thnks in advance
    sam

    hi mcg...
    thnks for ur reply ...
    but is not working ....
    it tryed in this way and i able to get item category
    Get the prodcut id(PRODUCT_GUID) for the product using table COMM_PRODUCT.
    call function module com_prodcat_api_get_settypes
    exporting 
            product_guid
    importing
         settypes
    then
    read settypes into workarea with key frgtype_id = 'CRMM_PR_BTR'.
    and from table crmm_pr_btr i selected item_cat_group where condition is
    frg_guid = workarea-frgtype_guid.
    and it is working
    thnks
    sam

  • Item category group during service order replication is incorrect

    Hi,
    We are trying to replicate Service order from CRM to R/3 and the service product that is used in CRM service order is got from r/3 named SRV_REPAIR.
    In CRM when we enter SRV_REPAIR in Service order the item category YSRP(copied from SRVP) should be determined.
    when i use the item category group LEIS(service w/0 delivery) in R/3 for service product then the item category is determined as YSRP correctly but the replication of service order fails with the message
    "It is not possible to upload from mixed documents with scen. A activated "
    please suggest which item category group should be used in a service product for replicating a service order from CRM to r/3.
    Regards
    Prathiba

    Hello,
    The problem might be that item category is assigned to object type BUS2000140.
    This object type is not relevent to upload so you get the error.
    Please check FM CRM_SALESDOCUMENT_FILTER.
    FM   CRM_SALESDOCUMENT_FILTER
        check for upload relevant item object types
          if ( lv_obj_type = gc_object_type_item-sales                  or
               ( lv_obj_type = gc_object_type_item-cust_contract   and
                 lv_sales_contract_active = true )                      or
               ( ( lv_obj_type = gc_object_type_item-credit_req or
                   lv_obj_type = gc_object_type_item-debit_req )   and
                 lv_trans = true )
             and
               <ls_orderadm_i>-product_kind <> gc_product_kind-iobject
          fill table with item guids which are relevant for the upload
            insert <ls_orderadm_i>-guid into table lt_item_guids.
          else.
            insert <ls_orderadm_i>-guid into table lt_item_guids_delete. <-!
          endif.
        endloop.
      endif.
    if scenario A is active no mixed documents are supported
      if <ls_orderadm_h>-scenario+3(1) = gc_scenario_r3chg-int_chg.
        if not lt_item_guids_delete[] is initial.                        <-
          perform fill_bapiret2
                  using 'W' 'CRM_ORDER_MISC' '036'
                        lv_msgv1 lv_msgv2 lv_msgv3 lv_msgv4
                        space 0 gc_object_name-sales 0 space.
          raise upload_not_relevant.
        endif.
      endif.
    Please see note 772267 to prohibit data transfer in this case. The error
    message is related to scenario A you are using.
    Scenario A is not working for
    service items as scenatio A allows changes of doc in both systems so
    CRM and ECC. As service items won't be replicated this can't work at
    all.
    In other words, if scenario A is used the sales order in ECC has to be
    identically to the sales order in CRM. This is not the case in service
    processing.
    So again you have to prohibit data transfer from service orders to ECC
    when using scenario A.
    Hopefully the information helps!
    Regards, Gerhard

  • FMMPRELE - have error - FMKU135: The commitment item category is wrong

    Hello,
    In current project we use BCS and SAP ECC 6.0.
    We also use auto-release function in FMBB when entering budget documents (plan).
    I want to reduce the plan value and use FMMPRELE transaction for it. In message log i have the following error:
    The commitment item category is wrong
    Message no. FMKU135
    Diagnosis
    The commitment item category entered is not correct.
    Procedure
    Check how the commitment item category is filled by your application. Notify your system administrator in case of problems.
    The commitment item category (FMCIA) is 3 - Expenditures. I don't know why SAP doesn't like this commitment item category because this category is selected in "selection of FM Account Assignments". Have any the same problems with FMMPRELE?

    Thank's a lot
    solved!

  • FM returing Item Category Group for a Product GUID or ID

    Hello All,
    If any one know any Function module which returns Item Category Group for the particular product.
    I had tried it with the tables COMM_PRODUCT = > COMM_PR_FRG_REL => CRMM_PR_BTR but i wanted some standard function module.
    Thanks in advance.
    Regards,
    Santosh

    Hi Santosh,
    Check the FM COM_PRODUCT_GETDETAIL_API.
    Pass the product guid or product id and Required Settype as CRMM_PR_BTR.
    You will get the Item category group.
    Hope it helps.
    Regards,
    Shahina

  • Return of Free goods item - Problem in item category

    I am trying to create return order of Free sample billing
    (ZFDP). The return order type for the free sample is ZFDR.
    We have specified Item category for the ZFDR is RENN (Free good item) in IMG Activity -> Assign Item categories.
    When I create order and save it, it prompts me to enter G/L Account.
    This material is free. It should not prompt G/L Account for it. There is no revenue recognition specified for the item category. I tried changing item category to ZKLN i.e Free of charge item. This item category does not prompt for G/L Account while creating order. but I can not use this item category because it prompts me for Avialability. I can not remove the Avaialabilty check for it because the same item category is used in the Free sample order where availability check is required
    In ZFDP order type, we are issuing 100% discount by using R100
    discount condition.  Please let me know how can I solve this problem.
    I think there is some problem in my item category itself. .
    My setting for Item category in IMG - Define item category is
    same for both ZKLN and RENN. Only difference is RENN has returns
    tick and pricing field is blank. In ZKLN pricing is defined as B- 100%
    discount. I also tried changing the pricing option of RENN to B.
    But still it is asking for G/L Account.
    I can not use ZKLN instead of RENN because my ZKLN is used in the
    Free item Sales order.
    Please help.
    Regards
    Saurabh Gothivrekar

    Hi
    I got answer to my query. YOu need to specify the bill type while defining sales document type. This bill type should not have account assignment mentioned in it.
    I changed the bill type, which does not have Account assignment procedure attached to it.
    It has solved my problem

  • Return Check Box in Item Category

    Dear Friends
    In Item Category Example REN and G2N Return check box is activated what is use and what it affects to sales document.
    Thanking You All
    Arun

    Dear Amitesh,
    Whatever you explained me that I know that so why I am asking this question My question is what it affect to sales document and Item Line of sales document. Without this any problem to system?
    Kindly Understand my need and give me solutions.
    Thanking You for effort
    Arun

  • Problem while updating Item category using Bapi_salesorder_change

    Hi,
    Iam facing a probelm while updating item category using bapi Bapi_salesorder_change
    In the Return table iam getting the folowing mesages.
    Inforation mesage : Field 'PSTYV' cannot be changed, VBAPKOM 000010  ready for input
    Error Message : Item 000010 cannot be processed.
    Please find the code below
    CLEAR wa_bapisdh1x.
      wa_bapisdh1x-updateflag = 'U'.
      CLEAR wa_order_item_inx.
      wa_order_item_inx-itm_number = wa_vbap-posnr.
      wa_order_item_inx-item_categ = 'X'.
      wa_order_item_inx-UPDATEFLAG = 'U'.
      APPEND  wa_order_item_inx TO it_order_item_inx.
      CLEAR wa_order_item_inx.
      CLEAR wa_order_item_in.
      wa_order_item_in-itm_number = wa_vbap-posnr.
      wa_order_item_in-item_categ = 'ABC'.
      APPEND wa_order_item_in TO it_order_item_in.
      CLEAR wa_order_item_in.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = w_vbeln
          order_header_inx = wa_bapisdh1x
        TABLES
          return           = it_return
          order_item_in    = it_order_item_in
          order_item_inx   = it_order_item_inx
    How can i correct it..
    Regards
    Kumar

    Actually iam facing a strange problem here.
    When i copy the program into another sample program and execute it iam able to change both the item catgegory and delivery block for particular sales order and item number.
    But in my main program i have BDC for MB1B transaction to create the material document.
    Once the material document is created succesfully iam using BAPI Sales_order_change to change the item category and delivery block..
    In my main program iam not to change the item catgeory getting an error field PSTYV cannot be changed.
    But the same code is running percfectly in the copied one..
    How can i correct that..
    Regards
    Kumar

  • TANN item category item not picking for return sales order

    Hi all,
    I have a question regarding TANN item category. This TANN item category item is not picking for return sales order type. As far as i know RENN is the free goods for return sales order. Can you please clarify the above question further

    Hi
    If you are making return order by copying sales order then please see this procedure also.
    Try to check in the copy control also.
    Go to the following path IMG u2013 Sales and Distribution u2013 Sales u2013 Maintain Copy control for sales documents. (Tcode VTAA)
    Select copying control : sales document to sales document.
    Search your return delivery order from the reference sales document type.
    Then select the item from the left side Colum.
    Go and find out TANN item category and click on detail.
    Check out Item Cat proposal. If it is empty then type your RENN condition type over here.
    Now try to create the return sales order it might work.
    Raj.

  • Item Category for returns order and delivery

    Hi,
    We are using BOM. As we know basing on the Item cat group ERLA, LUMF there are 4 different item categories TAQ,TAE,TAP,TAN respectively for main item and sub items. Now my business wants to do return process for a BOM item which has been already delivered and invoiced.
    Please could any body tell me what would be the item cat for BOM item in return process?
    Is there any SAP standard item cat available for this?
    Can we configure an Item cat for the same?
    Your quick answer would deffinately appreciated.
    Regards,
    Revan.

    Hi Revan,
    In standard procedure there is no item Category assigned for the returns of ERLA or LUMF material. You may have to define new Item category similar to REN but with the structurescope defined as 'A' or 'B' as per the requirement.
    Regards,
    Karthik.

Maybe you are looking for

  • Tried the Restore and Reset to get rid of the invalid passcode but it is still there!

    I've had my iPhone 4s from new and can't even remember ever doing a Passcode but after doing the last few updates I have struggled with issues with the phone-some of my contacts vanish. I used to be able to do In App Purchases. I can buy Apps direct

  • "This computer is not authorized to play the selected song."

    This is the error I get when I try to play purchased music with Front Row, even though the computer is authorized, and the songs play just fine in iTunes. I just purchased a new MacBook Pro and transfered my music from my iPod to my iTunes library us

  • Help installing Windows 7RC

    I am hoping that someone here can help me. I am trying to install Windows 7RC, but ran in a road block. I have a late 2007 MacBook with 2gig ram. When I try to start up the computer with the Windows 7RC (just downloaded from MS) I get following on my

  • Uninstall Quicktime Pro 7

    Forgive me if this has been answered before, but I've been searching the forums and can't find an answer to my problem. I accidentally deleted files from my main Library > Quicktime folder. I thought I was trashing components installed by a third par

  • New Tabs appear as :Blank, why don't they open in my home page every time?

    I have set my home page to the standard Google Ireland search page and this works fine. But when I open a new tab, it opens as a blank tab every time. The TAB section under TOOLS does not allow me specify what I would like a new tab to open as.... It