How to know if a Sales order item created with or without reference

Hi,
I am working on user exit USEREXIT_MOVE_FIELD_TO_VBAP, and I just wanted to know if there is a way to know if a sales order item is created with or without reference to a contract.
I need to write the code in USEREXIT_MOVE_FIELD_TO_VBAP, however, when an SO line item is created with reference the userexit is being called twice and when the SO line item is created without reference the user exit is being called only once.
My aim is to check if a SO line item is created with reference to a valid contract. If the item is without reference to a contract or the referenced contract is not valid, then I will have to determine the contract based on the customer contracts.
Any help on this would be greatly appreciated.
Best regards,
Siva

Hi Vindo,
The Userexit USEREXIT_MOVE_FIELD_TO_VBAP is called twice when the SO line item is created with reference to contract. The first time the user exit is called there will be no value filled in vbap-vgbel and the second time it comes to the userexit then vbap-vgbel will have a value. I think CVBAK-VBELN will contain the reference if the so line item is created with reference and the value of CVBAK-VBELN contrains blank if the item is not referenced. Anyway thanks for your reply.
Best regards,
Siva

Similar Messages

  • How to know that a sales order is approved?

    Hi all,
    Can any one let me know how to know that a sales order is approved? Is there any flag or status code to pull the information from the backend?
    Thanks for your help,
    Prathima

    Hi Prathima,
    Oracle Order Management does not have any approvals, i.e. there is no status as 'Approved' for Order. You can consider an order to be final once it is booked, which you can know from the booked_flag or the value of flow_Status_code field in oe_order_headers_all.
    Hope this helps

  • Help:the sales order is created with a 0 quantity

    I am able to create the sales order now. and it is showing up in SAP too.
    But i have one more problem.
    The sales order is created with a 0 quantity.
    I was passing quantity in the field COMP_QUANT of the table ORDER_ITEMS_IN.
    Can anyone help me with this, as to what field of the table ORDER_ITEMS_IN should be updated to show the quantity in the sales order
    Thanks

    This is the mistake...
    ORDER_ITEMS_IN-COMP_QUANT you populated, but you missed
    ORDER_ITEMS_INX-COMP_QUANT = 'X'.
    because of this it is not updated.
    try this..
    regards
    vijay

  • How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)

    Hi all
    I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
    Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
    Many Thanks in advance
    Ishi

    Hi Hari
    Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
    It says in R/3 Start of Processing, I ticked to continue and its still running.
    In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
    Can you tell me how long it takes to fill the table?
    And the R/3 system is still running (Start of Processing)
    Thanks again
    Ishi

  • How to enable GOS at sales order item

    Hi Experts,
    I have a requirement where I have to provide the customer an option to see the workflow overview at sales order item level (using Generic Object Services).
    I have developed a class based custom workflow for sales order approval and wish to intergrate GOS in VA02/VA03 at item level and not header level. I know that this is possible at header level using Business Object 2032. But I wish to know if this is possible at item level and that too in a class based workflow approach.
    Please provide your valuable suggestions.
    Thanks,
    Ajay

    Hi Janos,
    Thanks a lot for your reply. The breakpoint wasn't triggered in FM SUSR_USER_LOGONDATA_GET. Please check if the steps I followed are correct.
    1. Set external breakpoint in the FM SUSR_USER_LOGONDATA_GET.
    2. Run transaction VA02 for an order pending approval.
    Am I missing something here ? Do I need any authorization ?
    Thanks,
    Ajay

  • How to supress tab for Sales Order item (VA01)

    Hi,
    Please suggest the ways to suppress tab (example "Country") which appears at Sales Order item for some countries.
    Thanks,
    Edited by: Dipesh Kothari on Oct 6, 2009 8:34 PM

    Hi
    If you want to suppress the tab which is appearing at sales order line item then using t.code SHD0  and give the t.code VA01 and business object as BUS2032 and then select the line item data and then you can suppress the fields as per your requirement
    Kindly let us know  why you want to suppress the fields ?
    Regards
    Srinath

  • How to block deleteion of sales order items

    We need to be able to block users from deleting sales order items. The objects V_VBAK_VKO and V_VBAK_AAT can be used at the 'order header' level but these do not prevent a user deleting an individual item in an order. Does anyone know of a way of achieving this through authorisations?

    Thanks for your responses. We have decided to use USEREXIT_CHECK_XVBAP_FOR_DELET in MV45AFZB with some code based on the AUTHORITY-CHECK syntax below:
    AUTHORITY-CHECK OBJECT 'S_CARRID'
                      ID 'CARRID' FIELD pa_carr
                      ID 'ACTVT' FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE e045(sabapdocu) WITH pa_carr.
      ELSEIF sy-subrc <> 0.
        MESSAGE e184(sabapdocu) WITH text-010.
      ENDIF.
    In our case we will reference object V_VBAK_AAT.

  • How to get PO from sales order item in CRM

    Hi,
    I am building a BI extractor which needs PO for a given complaint. I am able to get the sales order/item for a complaint using crm_order_read FM. Is there anyway to get the PO based on this SO-item. Are their tables that link these two.
    Thanks!

    Table CRMD_ORDERADM_I -> Give Item GUID in filed GUID and get the document header guid in field HEADER. Then use function module CRM_ORDER_READ and table ET_SALES to get the Sales Data for the right item. The PO you are interested in can be any of the fields related to PO in this set. Usually it is PO_NUMBER_UC.
    Alternately, if you want to use only the table reads use this.
    1. Table CRMD_LINK --> get the record with GUID = Item GUID and OBJTYPE_SET = 11 (for Sales Set)
    2. Table CRMD_SALES --> get the record with GUID = CRMD_LINK-GUID_SET
    Get your PO information from this Sales set record for your item. But since, PO is usually associated with the header, you can do the same as above but with the GUID = Header GUID in the CRMD_LINK table.

  • Sales Order Items align with Truck quantity

    Hello Gurus,
    We are in the design phase and there is a requirement from the client that
    The Sales Order can be with multiple line items. But every line item weight would be equal to a truck weight/capacity. The rest of the items needs to be rejected.
    Example: If 1st line item weighs 10tons and has 20 pallets, and the truck can load only 19 pallets bcoz of weight, then we should be able to reject the 20th item.
    How do we do this ?
    rgds..Ameet

    Hi
    Before going to any solution  I would like to known some open question below..
    1 Take an example that you have some container  whose size may be big but the weight may be lessu2026.
    2. In the above scenario it looks that you wonu2019t have place to load material in the truck as you have not over loaded.., what will be the action on that case
    Assuming that youu2019re  not considering any the size of the material and concentrating the weight of the material (which may be not much real scenario)
    Create a custom table say named by u201CZ_Truck_ capacityu201D which  you can define by any place in the sales order (may be by some PO type). But I would prefer to say that you maintain the custom table with respective to the Shipping Condition and the Truck capacity.
    So in MV45AFZZ in VBAP section you can write the logic that
    u201CIf the SC is u2019 10u2019  then go and check the table u201CZ_Truck_ capacityu201D to know the capacity of the vehicle .
    If the capacity is >= the total weight of all the item (I think the weight can be get from MVKE or MARA or may be some MM table, please have a look for this) then allow the sales order or give an error or massage as per the business requirement.
    Hope that may help you some how

  • How to know if a sales order exists in ASCP

    does any of you have any query to define if a particular sales order exists in ASCP ?
    can anyone provide me with one ?
    thanks!!

    Hi ,
    As a suggestion you could do it in two steps.
    1. Create a predefined query in the planners workbench that queries and returns all sales orders in the plan (Criteria: Order Type = Sales Orders).
    2. when you execute this it will bring back all the sales orders onto the supply/demand form. Here you can query again on the order number column for the speciific order or export the output onto a spreadsheet and search from there.
    Hope this helps.
    Regards
    sjt0704

  • Sales order item details with condition types

    Hi Guys,
    I am uploading the sales order details using DIRECT INPUT method in LSMW, one line item having 5 condition types, but in the item level structure BVBAKPOM, I can able to MAP  only four condition types.
    Is there any way to map more then 4 condition type in the ITEM level structure? Or do we need to loop the item level structure.
    Waiting for your valuable replies
    Thanks,
    Gourisankar.

    Hi Harish,
    INOB table key is CUOBJ, At run time the VBAP-CUOBJ is not generated yet. Its value is now "999999999999990001".
    I guess once the order is created we will get an entry in INOB.
    Do you have any other way with which INOB entry can be selected ?
    Thank You.

  • Third party sale order wrongly created with Manf plant

    Hi All
    The Scenario is as follows
    I have created a sale order with item category TAS. The system generated a purchase requisition which is expected. But it also created a Planned Order for the same sale order when MRP was run for the material. This resulted in the two Purchase Orders for the same sale order.
    Kindly advise.
    Thanks.

    Hi:
    Could it be the Schedule line Category should not be MRP relevant?
    Regards
    Aaon

  • Sales order item text to delivery item text

    Hi All,
    Please find my query below :
    sales order is maintining  item level text . is there any posibility to update same text at the item level in delivery ?  Means after creating delivery the sales order item text tranfered to delivery item  text.
    How can i update the sales order item level text to delivery item level text.
    is there any user-exit or any configuration process or any other process. please let me know
    Thanks in advance
    Regards
    Sudhakar

    Check this [link|http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf]
    Refer to page 19. you will have to assign the requirement to the access sequence of the header/item text determination, this, you can ask your functional consultant to do it,. If you want to code your own requirement, then refer to the link that I provided you above.
    KR,
    Advait

  • Sales order item gets "Fully delivered" status even if partial qty

    Hello,
    We have a depot sales configuration in SAP. I found that some sales order lines are getting completed (delivery status "Fully delivered") even if partial quantity is pending for the order line. I checked the status in VBUP table where LFSTA gets the value "C" instead of "B". This is happening for some of the order lines (specially orders with small qty, just an observation).
    Can anybody help to know why the delivery status change to "C" inspite of partial delivery.
    Thanks,
    Rajeev

    Thanks for your help but your solution doesn't give any clue/solution to my problem
    I checked the customer master for shipping-> Partial delivery tab for fully delivered & partailly delivered cases. All the customer masters have same setting. This is confired by checking in the table KNVV.
    As explained earlier we have depot configuration & all Sales orders are created with item category "TAB" & there is no completion rule mentioned in VOV7.
    Regards
    Rajeev

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

Maybe you are looking for

  • Unicode Conversion in a system landsacpe

    Hello, we are planning a unicode conversion of our productive system. Our productive system is the source system of several systems like BI, mobile engine, webshop and so on. About the problems of unicode conversion within the productive system I hav

  • Using iweb without Mac Me ?

    Hi, im new to all this and trying to use iweb to create a new site for myself. i cannot publish because Mac Me is no longer available and i dont have a previous subscription. i would like to use Mac to publish my site without going external is this s

  • J2ME Wireless Toolkit jad error

    hi every1 i'm new to this j2me. i'm having the following install error: 'the application file(.jad) for HopBoy does not appear to be the correct type'. i'm using j2me wireless toolkit. create the package then run via ota. i'm using apache web server.

  • Error message "invalid menu handle"

    When I convert files to .pdf, I cannot open it and receive an error message "invalid menu handle." How do I remedy this?

  • CS6 Extension Manager quit unexpectedly 10.8.2

    Everytime I go to open  Extension Manager it flashes for a moment and quits.  I have renstalled 6.0.5 and then tried to install 6.0.4 then upgrade to 6.0.5.  Tried all that I could research. Process:         Adobe Extension Manager CS6 [2604] Path: