Any function module available to create return order?

Hi Experts,
Is there any Fucntion Module to create a return order? In my scenario, I want to make an RFC call to this FM from CRM system and create a return order.
Is this scenario possbile?
Waiting for your inputs!
Thanks and Regards,
Rohit

Hi Rohit,
As we all know that we can create standard orders by using this function module: IDOC_INPUT_ORDERS
We can as well create returns order. We can copy the above FM into "Z" customize it as per requirements and use the same in RFC call.
With this i think you can create returns order in the background.
Hope this helps
Regards,
Syed Nasir

Similar Messages

  • Is there any Function module available for GR IR 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

    Which table in BAPI_PO_GETDETAILS exactly has these information ?
    PO_HEADER_TEXTS
    PO_ITEMS
    PO_ITEM_ACCOUNT_ASSIGNMENT
    PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS
    PO_ITEM_TEXTS
    PO_ITEM_HISTORY
    PO_ITEM_HISTORY_TOTALS
    PO_ITEM_LIMITS
    PO_ITEM_CONTRACT_LIMITS
    PO_ITEM_SERVICES
    PO_ITEM_SRV_ACCASS_VALUES
    RETURN
    PO_SERVICES_TEXTS
    EXTENSIONOUT
    NFMETALLITMS
    Regards
    Ruhi Hira

  • Any function module available for...

    hi all,
    i need a function module to do a goods receipt for the PO using
    movement type 161,
    movement ind B,
    goodsmvt code '01'.
    i couldnt able to post using BAPI_GOODSMVT_CREATE as iam getting
    'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXX XXXXX'.
    So is there any function module other than bapi to do a goodsmvt with my requirements.
    Thanks in advance,
    Prem.

    hi,
    the code i use is,
    loop at gt_final into gs_wa_final.
            gt_item-move_type     = '161'.
            gt_item-entry_uom     = gs_wa_final-meins.
            gt_item-stge_loc        = gs_wa_final-lgort.
            gt_item-entry_qnt      = gs_wa_final-menge.
            gt_item-entry_uom_iso = gs_wa_final-meins.
            gt_header-ref_doc_no                   = gs_wa_final-submi.
            gt_item-base_uom = gs_wa_final-meins.
            gt_header-doc_date                      = gv_last_date.
            gt_header-pstng_date                   = sy-datum.       
            gt_item-ind_propose_quanx           = 'X'.
            gt_item-serialno_auto_numberassignment = 'X'.
            gt_item-material                           = gs_wa_final-matnr.
            gt_item-plant                               = gs_wa_final-werks.
            gt_item-po_number                      = gs_wa_final-ebeln.
            gt_item-po_item                          = gs_wa_final-ebelp.
            gt_item-mvt_ind                          = 'B'.
          append gt_item.
          clear gt_item.
    *call bapi goodsmvt create to do the gr
        set update task local.
        call function 'BAPI_GOODSMVT_CREATE'
          exporting
            goodsmvt_header       = gt_header
            goodsmvt_code         = gt_bapigm_code
          importing
            goodsmvt_headret      = gs_headret
          tables
            goodsmvt_item         = gt_item
            goodsmvt_serialnumber = gt_serialno
            return                = gt_return.
    call bapi_transaction_commit to commit if success
        if gt_return-type <> 'E'.
          call function 'BAPI_TRANSACTION_COMMIT'
            exporting
              wait = 'X'.
        else.
          call function 'BAPI_TRANSACTION_ROLLBACK'.
        endif.
    After executing iam getting an error mess in gt_return[]
    'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXXXX XXXXX'
    i cant understand y the function module is returning this error message,
    can any one help me in this issue,
    Thanks in adavance,
    Prem.

  • Is there any function module to get the purchase order conditions from EONP

    Hi,
    I want to get the EONP and EONH table details for the purchase orders with the help of function module. Can anyone tell me any function module name which would give me those details.
    Thanks,
    Atanu

    Hi
    Check with BAPI function module BAPI_PO_GETDETAIL and BAPI_PO_GETDETAIL1.
    Regards
    Srilaxmi

  • Any function module available for updation of Configuration data

    Hi experts,
    i want to know the function module which updates the configuration data.Please help me regarding this,its very urgent..I have some configuration data which needs to be updated .This data is present in the item level configuration data..
    Please help me ...
    Regards,
    Nagaraj

    Hi Nagaraj
    I assume that one of the Sales document(SO/DO/Billing/Shipping,etc) has this custom field YF_ZZZ_STATUS.
    If so, this custom field would be available in any one of sales tables (VBAK/VBAP/VBRk/VBRP/LIKP/LIPS, etc)
    You have to find out where exactly this field is existing.
    If this field is avilable in sales document screen, simply you can write one BDC code to update this field at any one sales userexit.
    For example if you want to update this field at the time of saving sales order, then use MV45AFZZ include..there you will find userexit_save_document (FM). There you can write simple BDC code OR direct update query to update particular table.
    NOTE: YOU CAN NOT FIND OUT ANY FM TO UPDATE CUSTOM FIELDS (IN CONFIGURATION AND DEVELOPMENT)
    Thanks
    Bala

  • Is there any function Module available?

    Hi,
    Could you please tell me whether the function module is  available for the scenario below.
    If we pass RFC Name to the function module it should return success or failure message for the particular target server maintained in the RFC.
    We need to check with the help of RFC we just need to know whether the particular target server is running fine or not?
    Please help me in this regard.
    Thanks & Regards,
    Swathi

    Hi Swathi,
    Actually there is a program available that can check an RFC destination (regardsless of what type it is). In fact within transaction SM59, behind the "Connection Test" button this report is runned and the results shown on screen.
    I have made a small ABAP objects method to encapsulate this.
    This method has an interface and ABAP code:
    -->INTERFACE:
    import: RFCDEST  TYPE RFCDEST (OPTIONAL) - Destination to test
    change: REACHED  TYPE BOOLEAN            - Is destination active?
    change: DETAILS  TYPE RFCSI              - RFC system info (see FM RFC_SYSTEM_INFO)
    -->ABAP CODE:
    METHOD reach_rfc_destination .
    * Test RFC destination connection (all types)
      DATA:
        loc_rfcsi TYPE rfcsi.
    * Answer is unknown at the start of the method
      CLEAR:
        loc_rfcsi,
        reached.                  " In this way it is always set to GC_FALSE
    * Only if an RFC Destination is supplied
      IF  rfcdest IS SUPPLIED
      AND rfcdest NE space.
    *   Clear memory area before call
    *   so no details about previous RFC test calls do exist
        FREE MEMORY ID '%_rfctest'.
    *   Remote test call
        SUBMIT rsrfctes
          WITH dest = rfcdest AND RETURN.                    "#EC CI_SUBMIT
    *   Collect possible RFC information
        IMPORT rfcsi TO loc_rfcsi FROM MEMORY ID '%_rfctest'.
    *   Reached
        IF loc_rfcsi IS INITIAL.
    *     Answer is not reached
          reached = gc_false.
        ELSE.
    *     Answer is reached
          reached = gc_true.
          details = loc_rfcsi.
        ENDIF.
      ENDIF.
    * Housekeeping
      CLEAR:
        loc_rfcsi,
        sy-subrc.
    ENDMETHOD.
    This will supply you with gc_false (=constant value with space) or with gc_true (=constant value with X).
    When gc_true the destination is OK and reachable.
    Regards,
    Rob.

  • Any function module or BAPI for PM order confirmation

    Hi all,
    I'm trying to confirm a PM order (IW41) background. Is there any existing BAPI or FM for me to do that? Thanks in advance.

    Mil,
    check this
    BAPI_PRODORDCONF_CREATE_TT,
    below are other ones which may use for you...
    BAPI_PRODORDCONF_CREATE_ACT Enter Activity Confirmation
    BAPI_PRODORDCONF_CREATE_HDR Enter Order Confirmations
    BAPI_PRODORDCONF_CREATE_TE Enter Time Event Confirmation
    BAPI_PRODORDCONF_CREATE_TT Enter Time Ticket Confirmation
    BAPI_PRODORDCONF_EXIST_CHK Existence Check for Confirming Production Order
    BAPI_PRODORDCONF_GETDETAIL Detailed Data for Production Order Confirmation
    BAPI_PRODORDCONF_GETLIST Confirmations List
    Don't forget to reward if useful....

  • Any Function module/BAPI to create Service Notification wrf to Contract

    Hi Experts,
    Is there any BAPI/FM to create service notification with reference to Contract.
    Thanks & Regards,
    Vishnu Priya

    .

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • Function module for to Create fund/Grant management Derivation rules

    Hi All,
    Is there any function module for to create a derivation rules for fund/Grant management.
    Thanks in Advance.
    Nara.

    Hi,
    Please try with FM KED0_CREATE_DERIVATION_TABLE
    Please let me know if you have some issues,
    Regards,
    Lijo Joseph
    *Assign Points ifuseful.

  • Any function module to get Stock and value of material on a given date?

    Hi Friends
    Is there any function module available to get Stock/and  value of material on a given date?
    Thanks
    Harish

    Sorry I didn't elaborate the requirement.
    I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
    I need function module to use in Zreport.
    Thanks
    Harish

  • Any Function Module to get date by passing week and year

    Hi,
       Is there any Function Module available to get date by passing week and year. For example, Week 24, Year 2005 and you get the date.
    Regards,
    Mira

    WEEK_GET_FIRST_DAY
    pass 'YYYYWW' (200524) to WEEK parameter it will give you the week start date
    Raja

  • Is there any function module for converting text to hyperlink?

    Hello all,
              I am designing an application in BSP wherein the user can enter hypertext values for some
              of the data enteries in the database table. Is there any function module available for converting
              text into hypertext. Eg. if the user enters 'www.mypersonalwp.com' then it should convert this
              text value into a hyperlink.
    Thanks in advance.
    Gurmahima.

    Hi,
    Refer the given below link
    http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm
    Hope it helps you
    Thanks
    Arun Kayal

  • Any inbuilt Function Module available in CRM to create a Business Partner

    Hi All,
    I need to create a business partner in CRM not manually through GUI. I need to develop a function module that will create a Business Partner in CRM.
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create a business partner in CRM.
    When i researched i found that there is a BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 which can create a business partner in CRM.
    I dont know how to use this BAPI, can some one help me with some sample code.
    Also will the development of a function module differ in CRM when compared to ECC?

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

Maybe you are looking for

  • Workflow Created Tasks not showing up in My Tasks

    I'm relatively new to SharePoint and am having trouble with the My Tasks list in SharePoint 2013.  Tasks created manually in any task list show up in My Tasks as expected.  However, tasks that are created by a workflow using create item in list for t

  • Portlet Consumer Error in webcenter spaces

    Hi I'm using oracle webcenter spaces PS3. When I'm using external application in web clipping portlet in webcenter spaces ,its giving an error "portlet consumer error" <Mar 15, 2011 2:09:47 PM GMT+05:30> <Error> <Modules> <BEA-000000> <Error during I

  • Vk15 BDC.

    Dear All, I have got a issue in VK15 BDC, here we are using the same to upload price for a condition type where in price is maintained time wise. However some times, we face a typical problem wherein, if a price of 100 USD is uploaded in SAP, then in

  • Windows 8.1 first boot time too long

    After Sysprep, windows 8.1 tooks long time to boot, is it normal? N.A.Malik

  • Illustrator CS4 can't open Mac Mavericks10.9.2

    i got this error message when i open illustrator. Exception Type:  EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ffffff5a How to solve this problem? Thank you.