Function module to get Service Order details created with a Sales Order

Hi,
Could anyone tell me if there is any function module to get the details of the Service order that is created automatically for a line item in a sales order. Let me explain my requirement clearly.
When a sales order is created with specific line item, a service order is automatically created for that line item. I need to get the information about the associated service order. I can't find this information in VBAK, VBAP or VBEP tables obviously. But, i can see the link between the service order created and related Sales document # and item #  in the DB view  CAUFV. But, the key field here is Service order #. But my requirement is to get the service order details from the key field of Sales document.
I tested the FM SD_SALES_DOCUMENT_READ_POS that reads the sales document header and item material tables, but this doesn't help me in getting the service order details associated with the material line item.
Your early response is greatly appreciated.
Thanks in advance,
venu

Hi Akshay,
I actually saw this , but surprisingly, there is nothing stored in this field in either of the tables VBAK or VBAP. I mean, even for the sales orders which have associated service orders, nothing is stored in either of the above tables.
Can you please tell me if there is anyother way.
Thank you,
venu

Similar Messages

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 1
         OTHERS          = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • Function module to get the BOM details for a material-plant combination

    hi
    Is there any function module to get the BOM details such as
            BOM Usage       -STLAN
            Alternative BOM -STLAL
            Items                -POSNR
            Required Quantity-EMENG
            Resulting Quantity-MENGE
            Unit of measure    -BMEIN
            Base unit of measure-MEINS
    for a given material-plant combination
    if so please suggest me some FMs.................
    Awaiting for ur reply..............

    try the below fm it may be useful for you
    DATA : BEGIN OF I_BOM OCCURS 0.
            INCLUDE STRUCTURE STPOX.
    DATA : END OF I_BOM.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          DATUV                 = SY-DATUM
          MEHRS                 = 'X'
          MTNRV                 = P_MATNR
          WERKS                 = P_WERKS
        TABLES
          STB                   = I_BOM
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          CONVERSION_ERROR      = 8
          OTHERS                = 9.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
    Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
    regards
    shiba dutta

  • Function module to get the payment details for PO

    Hi,
    Is there any standard function modlue to get the payment details for specific purchase order  or is there any table where we can get the payment details till date.
    My requirement is purchase order wise how much already paid to vendor  and what is the balance amount  to be paid vendor.
    thanks in advance....
    Regards,
    Sree

    Hello
    BAPI_PO_GETDETAIL will help you.
    Look at structures PO_ITEM_HISTORY and PO_ITEM_HISTORY_TOTALS
    Also you may use table EKBE

  • Function module to get GR IR details for Purchase Order

    Hi
    Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
    One way to create a custom fuction to fetch the details from MSEG and BKPF.
    Can somebody suggest a better solution.
    Thanks in advance.
    Ruhi Hira

    Hi,
    u can get the GR/IR Information from purchase Order history table EKBE..The field VGABE will contain value for GR/IR as '1' and '2'.
    Regards,
    Nagaraj

  • Any Function Module to get Service Conditions in Service Contracts???

    Hi All,
    I have created a function module inside which I have written BDC code for changing Service Contracts (ME32K).
    I have used Item_condition and item_cond_validity structures in Table parameters.
    For changing the conditions related to services, I need to know first which ones of those conditions were already there in the database for the contract and which ones are newly put in item_condition structure.
    Similar reqmnt I had for Services also, for which I got the FM - MS_FETCH_SPEC_FOR_LIST, wherein I am giving Package number from Ekpo and getting the services related to item. I need something similar for Conditions also.
    Is there any Function module wherein by giving the item and service info, I can get the conditions related to that particular Service? Or else any way using SAP std tables, I can get this info.
    Please respond if anyone has this info.
    Thanks a lot!
    Navita

    Hi Mukesh,
    Step 1. Use FM SO_USER_READ_API1 to get the folder details of the user
    Step 2. Use FM SO_FOLDER_READ_API1 of the respective folder. You can read the Inbox, Workflow Inbox depending on what folder you read. The function modules are documented well as well with examples.
    Hope this will  help u,
    Thanks & Regards
    Kiran

  • Bapi or Function module for getting Bom Item Details (Urgent)

    Hi All,
    I Want to get the Bom Item Details Corresponding to Production Order Number.
    So Please Provide me Some Function Module or Bapi So that by giving the
    Production Order number I will get all material related to that PO.
    Thanks In Advance.

    Hi,
    use the function module.
        call function 'CS_BOM_EXPL_MAT_V2'
          exporting
            capid                 = 'STD1'
            datuv                 = sy-datum
            mktls                 = 'X'
            mehrs                 = 'X'
            mmory                 = '1'
            mtnrv                 =  matnr
            werks                 = werks
          tables
            stb                   = it_stb2
            matcat                = it_matcat
          exceptions
            alt_not_found         = 1
            call_invalid          = 2
            material_not_found    = 3
            missing_authorization = 4
            no_bom_found          = 5
            no_plant_data         = 6
            no_suitable_bom_found = 7
            others                = 8.
    Regards,
    Sankar.

  • Function module for getting the partner details and Classifications

    Hi,
    Can any one tell me FMs for getting the Partner Details and for getting the characteristics associated with an equipment??
    Thanks

    Hi Anu,
    are you talking about the SAP Business Partner???
    Well, if yes, then just check the FM 'BAPI_BUPA_CENTRAL_GETDETAIL'.
    Or just search for oher FMs with BAPI_BUPA*.
    Hope this helps...
    Ciao Bernhard

  • Force an error against an order when creating a Distributed Sales Order...

    We're raising Distributed Sales Orders via IDOC (Type ORDERS05). There are however certain bueiness checks (which probably should be made at the order level but are not) being checked for by the IDOC processing code. When certain checks fail I need to ensure that the IDOC is updated with a suitable error messagem but also that the Sales Order fails and therefore does not get distributed through to SAP. Is there a standard way for forcing an order to fail, or should the sales order itself check this and fail the order. Are our Functional people just being idle ?.
    Gary

    We're raising Distributed Sales Orders via IDOC (Type ORDERS05). There are however certain bueiness checks (which probably should be made at the order level but are not) being checked for by the IDOC processing code. When certain checks fail I need to ensure that the IDOC is updated with a suitable error messagem but also that the Sales Order fails and therefore does not get distributed through to SAP. Is there a standard way for forcing an order to fail, or should the sales order itself check this and fail the order. Are our Functional people just being idle ?.
    Gary

  • Duplicate planned order is generated with  one sales order item.

    dear :
    when the production order is confirmed with sales order item.the other new planned order is generated.
    the   requiremet quantity of sales order item  is  1,but the custstock  is 2 .display exception:26. in md04.
    please help me analyze it .
    best regards.

    Hi
    Please check rescheduling horizon in OPPQ(by default it would be 100).
    May be you would have shifted the dates of production order after converting from planned order which had crossed rescheduled horizon. This would generate additional planned order to maintain initial dates.
    If this is the case, increase Rescheduling horizon.
    Regards,
    Krishna Mohan

  • Function Module to get PO details based on Plant and PO date

    Hi
    1. Is there any Function Module to get PO details based on Plant and PO date?
    2. Is there any Function Module to get Material document details based on PO number?
    Thanks
    Narendra

    hi,
    check these standard reports.
    ME2L - By vendor
    ME2M - By material
    MSRV3 - By service
    ME2K - By account assignment
    ME2C - By material group
    ME2B - By tracking number
    ME2N - By PO number
    ME2W - By supplying plant
    also chck this func module.
    REPL_LIST_PURCHASE_ORDER_READ
    reward if hlpful.

  • Function module to find the ibase details

    Hi,
    what is the function module to get all ibase details..

    Hi,
    you have many,
    but u can check CRMIBASEGETDETAIL*.

  • BAPI or Function Module to get MSEG table data based on PO Number (EBELN)

    Hi
    1. Is there any BAPI /  Function Module to get PO details based on Plant and PO date?
    2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
    Thanks
    Narendra

    Hi,
    check the Bapis Givem below
    BAPI_PO_GETITEMS
    http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
    you will get the detail.
    Regards

  • Order Type Group - CRM 7.0 B2B Ecommerce with ERP Sales Order Scenario

    Hello Experts
    Scenario: CRM 7.0 with ERP Sales Order
    How can we use ORDER TYPE GROUP in CRM 7.0 B2B E-commerce with ERP sales order?
    With CRM as a back end this ORDER TYPE GROUP functionality is available as OOTB, but with ECC as a back end is this available?
    As per out understanding, we can use more than one TRANSACTION TYPE by seperating the TRANSACTION TYPES by COMMA in shopadmin? Is it a right understanding?
    Kindly let us know if we have ORDER TYPE GROUP functionality in CRM 7.0 B2B E-commerce with ERP sales order?
    Thanks and Regards
    DJ

    Hi DJ,
    In fact the Order Type Group is only available when you are connected to CRM Backend. For ERP Webshops, you only have the option to add the Order Types separated by coma.
    In addition, be aware that B2B only supports Sales Document with category "C - Sales Orders" on ERP backends, for example:Credit Memo Requests won't work. For more information, I created Note 1567713 that explain the restrictions.
    Kind Regards,
    Diego Felix.

  • Function module to get BOM which WOULD be created if I open a production

    Is there a function module to get the BOM which WOULD be created if I open a production order?
    note that I don't have the produciton order created.
    I already tried with the FM CS_BOM_EXPL_MAT_V2 and CSAP_MAT_BOM_READ.
    I debuged the CO01, but I did not find it.
    This BOM should include materials which are under a phantom component.
    Edited by: Rodrigo Pelos on Jul 20, 2011 6:55 PM

    Hi Greetson Shunmugasundaram,
    thanks for the reply, but for the FMs CO_SD_RESB_FROM_BOM_CREATE and CO_SD_NEW_BOM_ASSIGNEMENT it's necessay to have an production order but I don't have it. And with CS_ALT_SELECT_COUPLED_PRODUCT I could not get a BOM.
    Let me explain in more details how I'm going to use this information, I think I was not clear in my post.
    I'm creating a report to compare the BOM of a production order with BOM which would be created today if I open a production order.
    Then I can check if there was changes in the reservation (RESB) of the production order. If this changes happened, how many pieces. I'll check also if there was differences in consumption, because during the production order confirmation it is possible to make changes.
    I would not like to make the BOM explosion "manually" because there are too many variables in the BOM like phantom, alternative, scrap and so on, but I don't know if the function module that I'd like to use exists.

Maybe you are looking for

  • *** dv4-1413tx No HDMI Audio to TV

    Please help. When I plug in the HDMI cable, I only get the Video on LCD TV screen. But there is no audio sound from LCD TV speakers. The audio only output thru dv4-1413tx speakers. I have tried changing the Default Sound to NVida HDMI audio - but sti

  • WebDAV Client Troubleshooting

    I'm using WebDAV to access files through Windows File Explorer stored in my SharePoint 2013 farm.  There have been some issues with users getting disconnected from these network locations, such as the network location going offline from the client wh

  • How to make a ringtone in iTunes and then transfer to iPhone?

    How do I make ringtones for iPhone using iTunes 11.1.5? I purchased a disc/album/cd of ringtoones and they are not in ringtone format.  There is no tab for file sharing for me to find , as advied in some tabs. Help?!

  • WebDynpro for Java.....Book

    Hi All, I would be really thankful to you, if any one can provide me a copy of Inside WebDynpro for Java, author is Chris Whealy. Plz forward to my mail id: <b>[email protected]</b> Thanks in advance

  • QT opens when computer powers up??  later computer shuts down unexpectedly

    I seem to remember this a while back when I installed a QT update that the computer would shut down unexpectedly and I had to reinstall QT. Does anyone else remember this? Sara