BusinessTransaction - Task - Tx: CRMD_ORDER - BAPI/FM

Dear Friends,
We need to create a Business Transaction - Task by a BAPI/FM by an ABAP program. Tried with FM BAPI_SLSTRANSACT_GETDETAILMUL but could not find success.
if any one of you have created a task (Tx: CRMD_TRDER - Task ) by a program, please help me.
Best Regards, Murugesh

Hi Murugesh,
If I get you right, you need to create a business transaction using FM.
Then try BAPI_BUSPROCESSND_CREATEMULTI. You can also use CRM_ORDER_MAINTAIN for the same.
Hope this helsp!
Regards,
Saumya

Similar Messages

  • Auto Assigning of Business Partner to a task

    Hi Champions,
    I have a situation where I have to assign a business partner as soon as joining happens to a default task and default role of the project through ABAP program.
    I have been able to achieve the auto allocation of the business partner to default role using the BAPI BAPI_BUS2177_STAFFING_ADD.  This creates a link in DPR_BUPA_LINK table also.
    Now I am stuck as to how to assign this business partner to the default task.  Which BAPI shall I use and what shall I pass as input to it achieve this.
    It will be great help on hearing from on this.
    Regards, Sandeep

    Hi
    Logic can be like this:
    Get GUID of Task of which is going to be default.
    Once employee (BP) is created, the program (scheduled at backend) will run n use the FM u mentioned.
    Niranjan
    Let me know if you need more info !!!

  • How to create an uwl with a BAPI

    Hi Experts!!!
    I need someone that say me, how to create a task in the uwl with a bapi or program.
    Thanks in advanced,
    Regards,

    Hi Carlos,
    Do you have the javadocs?  It contains information in regards to the UWL API.
    http://help.sap.com/javadocs/NW04S/current/uw/overview-summary.html#Service Component Collaboration
    What is the necessity to create a task from a BAPI or from a program?  If the task is in the backend inbox (SBWP) once UWL is configured properly it will also be created in the worklist. 
    We use SWK_LOCAL_INBOX_GET to pull back the list of tasks
    We use the following wapis for the following purposes:
    SAP_WAPI_GET_HEADER to retrieve the from value
    SAP_WAPI_GET_OBJECTS to retrieve the attachment information
    SAP_WAPI_WORKITEM_DESCRIPTION to retrieve the task description text
    Have a look at the page that I sent you above.  This gives great information on the UWL structure and how it works.
    Please let me know if you require any additional documentation.
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Reg:BAPI RFC

    How to create BAPI-RFC?wht is the purpose of bapi rfc?
    plz send me urgently.........

    Hi,
    Programming a BAPI consists of some tasks like: •Defining BAPI Data structures ( using SE11 )
    •Creating BAPI Function Modules (For each method)
    •Defining BAPI Methods in the BOR
    •Documentation of the BAPI
    •Generate ALE interface for asynchronous BAPIs
    •Generate and release
    NOTE:
    Here we will not be covering the two points – Documentation of BAPI and Generating ALE Interface for asynchronous BAPIs.
    NOTE: You can use the BAPI explorer (T-code BAPI) to get a step-by-step instruction / checklist in how to create a BAPI. In the BAPI explorer select the Project tab.
    EXAMPLE – HOW TO CREATE A BAPI
    In the example we will create a BAPI that reads some information about the line items for a Sales Invoice from table VBRP based on the Invoice No. that is supplied to the import parameter of the BAPI Function Module.
    BAPI Name ZGetInvoiceItems
    Function group ZBAPIVIN
    Function module: ZBAPI_GET_BILL_ITEMS
    FM Import parameters : IV_BILLNO TYPE ZBAPI_BILL_ITEMS-VBELN
    FM Tables :IT_VBRP LIKE ZBAPI_BILL_ITEMS
    FM Export parameters : RETURN LIKE BAPIRETURN
    Defining BAPI Structures
    This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters. Use Data type -> Structure
    In our case we do not have multiple inputs but just one input i.e. Sales Invoice No. and so we have not made use of any structure for the purpose. But if required, structure can be used for import parameter also.
    The following are the components of structure ZBAPI_BILL_ITEMS:
    Field Name Description
    VBELN Invoice Number
    POSNR Invoice Item Number
    MATNR Material Number
    FKIMG Quantity
    VRKME Sales Units (Quantity)
    NETWR Amount
    Point of Caution
    It is required to define a structure for every parameter in the BAPI and use of same structures which are used in existing applications cannot be done because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them.
    Screenshot of Structure – ZBAPI_BILL_ITEMS
    Creating BAPI Function Modules (For each method)
    We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs
    Screenshot of Attributes Tab in the FM ZBAPI_BILL_ITEMS
    Screenshot of Import Parameters Tab in the FM ZBAPI_BILL_ITEMS
    Screenshot of Export Parameters Tab in the FM ZBAPI_BILL_ITEMS
    NOTE:
    Since Remote Enabled module processing type is selected and the Import/Export parameters can only be BY VALUE for an RFC enabled function module, select the checkbox for Pass Value for each IMPORT/EXPORT parameter.
    Screenshot of Tables Tab in the FM ZBAPI_BILL_ITEMS
    Code in the Function Module ZBAPI_BILL_ITEMS &
    related Includes in the Function Group
    INCLUDE LZBAPISTATUSUXX
    THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *
    NEVER CHANGE IT MANUALLY, PLEASE! *
    INCLUDE LZBAPIVINU01.
    "ZBAPI_GET_BILL_ITEMS
    INCLUDE LZBAPIVINTOP “ Global data
    FUNCTION-POOL ZBAPIVIN. "MESSAGE-ID
    TABLES: VBRK, VBRP.
    DATA: T_VBRP LIKE ZBAPI_BILL_ITEMS OCCURS 0.
    STRUCTURE FOR RETURN MESSAGES BY BAPI FUNCTION MODULE
    DATA:
    BEGIN OF MESSAGE,
    MSGTY LIKE SY-MSGTY,
    MSGID LIKE SY-MSGID,
    MSGNO LIKE SY-MSGNO,
    MSGV1 LIKE SY-MSGV1,
    MSGV2 LIKE SY-MSGV2,
    MSGV3 LIKE SY-MSGV3,
    MSGV4 LIKE SY-MSGV4,
    END OF MESSAGE.
    INCLUDE LZBAPIVINU01 - Subroutines
    ***INCLUDE LZBAPIVINU01.
    FUNCTION ZBAPI_GET_BILL_ITEMS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(IV_BILLNO) TYPE VBELN
    *" EXPORTING
    *" VALUE(RETURN) TYPE BAPIRETURN
    *" TABLES
    *" IT_VBRP STRUCTURE ZBAPI_BILL_ITEMS
    Check if the Invoice exists
    select single *
    from vbrk
    where vbeln eq iv_billno.
    if sy-subrc ne 0.
    If not return the error message
    clear message.
    message-msgty = 'E'.
    message-msgid = 'Z3'.
    message-msgno = '001'.
    message-msgv1 = iv_billno.
    perform return_bapi_message using message
    changing return.
    exit.
    endif.
    If the Invoice exists, get all the required item lines information
    in the table it_vbrp
    refresh it_vbrp.
    clear vbrp.
    select vbeln posnr matnr fkimg vrkme netwr
    into table it_vbrp
    from vbrp
    where vbeln eq iv_billno.
    ENDFUNCTION.
    FORM RETURN_BAPI_MESSAGE *
    --> VALUE(IV_MESSAGE) *
    --> XV_RETURN *
    form return_bapi_message using value(iv_message) like message
    changing xv_return like bapireturn.
    check not message is initial.
    call function 'BALW_BAPIRETURN_GET'
    exporting
    type = iv_message-msgty
    cl = iv_message-msgid
    number = iv_message-msgno
    par1 = iv_message-msgv1
    par2 = iv_message-msgv2
    par3 = iv_message-msgv3
    par4 = iv_message-msgv4
    importing
    bapireturn = xv_return
    exceptions
    others = 1.
    endform.
    Regards,
    Vineela.

  • BAPI Creation

    Hi,
         Can somebody give me the detailed procedure, including T-Codes, to create/deal with BAPIs? Also, how do I handle the BAPI BAPI_SALESORDER_SIMULATE to send the rate information from SAP?
    Thanks,
    John.

    Programming a BAPI consists of some tasks like:
    • Defining BAPI Data structures ( using SE11 )
    • Creating BAPI Function Modules (For each method)
    • Defining BAPI Methods in the BOR
    • Generate and release
    1. Defining BAPI Data structures: This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters.
    2. Creating BAPI Function Modules: We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs.
    3. Defining BAPI Methods in the BOR: When creating a new object type in BOR (Business Object Repository), there can be two possibilities. Either it is created as a subtype of an existing business object or it is created as a new business object from scratch. Create a business object using the T-Code SWO1. The business object gets created with the standard interface that contains an Interface IFSAP, an Attribute ObjectType, and two methods namely ExistenceCheck and Display. All these cannot be changed. You can add a method to the business object. For this, we will choose from the menu path, Utillities -> API methods -> Add method. To use the business object Object type status has to be set to Implemented.
    4. Generate and Release: Go to SE37 and release the API enabled Function module. In the Object created in the BOR, set the status of Object Type Component to Released.
    You can then display the BAPI in the BAPI Explorer. Invoke the same using the T-code BAPI.
    Also have a look at below links.
    http://www.sappoint.com/abap/bapiintro.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm
    http://www.allsaplinks.com/bapi.html
    http://www.allsaplinks.com/bapi_example.html
    http://www.erpgenie.com/sap/abap/bapi/example.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://www.sapgenie.com/abap/bapi/example.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • BAPI tech process

    Hello Experts,
         We have a legacy system which has a shared tables, where I have to post the accounting documents to SAP system which should be a bi directional data transfer . As the management had decided to use BAPI for these posting.
       Now my concern over these whether
       1) I have to use synchronous BAPI or Asynchrounous BAPI?
       2) In order to achieve bi directional flow do I have use two BAPI's one inboound and another outbound.
       3) Is it good to download the posting into a file and use BAPI to upload them?
       4) Please <b>thorugh some light on good Design and process to achieve it</b>.
      Please also send some documents,ppts,links....etc to [email protected]
    Thanks in Advance,
      SDN powered

    Programming a BAPI consists of some tasks like:
    • Defining BAPI Data structures ( using SE11 )
    • Creating BAPI Function Modules (For each method)
    • Defining BAPI Methods in the BOR
    • Generate and release
    1. Defining BAPI Data structures: This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters.
    2. Creating BAPI Function Modules: We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs.
    3. Defining BAPI Methods in the BOR: When creating a new object type in BOR (Business Object Repository), there can be two possibilities. Either it is created as a subtype of an existing business object or it is created as a new business object from scratch. Create a business object using the T-Code SWO1. The business object gets created with the standard interface that contains an Interface IFSAP, an Attribute ObjectType, and two methods namely ExistenceCheck and Display. All these cannot be changed. You can add a method to the business object. For this, we will choose from the menu path, Utillities -> API methods -> Add method. To use the business object Object type status has to be set to Implemented.
    4. Generate and Release: Go to SE37 and release the API enabled Function module. In the Object created in the BOR, set the status of Object Type Component to Released.
    You can then display the BAPI in the BAPI Explorer. Invoke the same using the T-code BAPI.
    To have more details abt BAPI, have a look at below links.
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm
    http://www.allsaplinks.com/bapi.html
    http://www.allsaplinks.com/bapi_example.html
    http://www.erpgenie.com/sap/abap/bapi/example.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    I hope it helps.
    I have also sent docs to you. Please check the same.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Demo on BAPI

    Hi Experts,
                    Can u help me to learn a demo on BAPI.
    Thanks&Regards:
    B.Balakrishna Reddy

    Programming a BAPI consists of some tasks like:
    • Defining BAPI Data structures ( using SE11 )
    • Creating BAPI Function Modules (For each method)
    • Defining BAPI Methods in the BOR
    • Generate and release
    1. Defining BAPI Data structures: This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters.
    2. Creating BAPI Function Modules: We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs.
    3. Defining BAPI Methods in the BOR: When creating a new object type in BOR (Business Object Repository), there can be two possibilities. Either it is created as a subtype of an existing business object or it is created as a new business object from scratch. Create a business object using the T-Code SWO1. The business object gets created with the standard interface that contains an Interface IFSAP, an Attribute ObjectType, and two methods namely ExistenceCheck and Display. All these cannot be changed. You can add a method to the business object. For this, we will choose from the menu path, Utillities -> API methods -> Add method. To use the business object Object type status has to be set to Implemented.
    4. Generate and Release: Go to SE37 and release the API enabled Function module. In the Object created in the BOR, set the status of Object Type Component to Released.
    You can then display the BAPI in the BAPI Explorer. Invoke the same using the T-code BAPI.
    Also have a look at below links.
    http://www.allsaplinks.com/bapi_example.html
    http://www.erpgenie.com/sap/abap/bapi/example.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    I hope it helps.
    Reward  Points if found helpfull....
    Cheers,
    Chandra Sekhar.

  • Function Modules / Classes to change cProject item

    Hello,
    I'am searching for function modules or classes to change the cProject item.
    Ich want to change some fields in the task of cProject. Can everbody help me?
    Kind regards Axel

    Dear Thomas,
    I've following requirements:
    - Automated Creation of a cFolders folder structure/hierarchy from a structured uploaded from an excel file
      from R/3 ABAP program
    - Search for a particular document in cFolders using R/3 ABAP program
    Would it be possible to do the above tasks using the BAPIs mentioned in your post.
    Thanks.

  • Custom Include fields not updated

    Hai all,
           I am using DPR_TASK table. for creating a task am using BAPI_BUS2175_CREATE .
          In Dpr_task table in custom include CI_DPR_TASK i have included 5 more fields..  while creating task using this bapi the include fields also i want to update.   How to achieve this can any1 pls guide me..
    thanks in advance
    Rupachandran G

    Issue solved by implementing a badi

  • COMMIT work in BADI

    Hi all,
    Can anyone tell me about, is COMMIT WORK is allowed in BADI or USER EXIT?
    If not, what is the aalternative for that?
    Thanks in advance.
    Best Regards,
    Prasad

    Hi Prasad.
    I would like to suggest a couple of references,
    [SDN - Reference - Call Transaction / Bapi and Commit work in a Update task|Call Transaction / Bapi plus Commit work in a Update task?;
    [SDN - Reference - COMMIT WORK on BADI BUPA_GENERAL_UPDATE|COMMIT WORK on BADI BUPA_GENERAL_UPDATE;
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • BAPI CALL IN BACKGROUND TASK

    Hi,
    We have a sales order workflow for exceptional demand.
    In one of the steps of the workflow,the corresponding task executes in background.
    Sales Order Change BAPI is called within this task.
    Now the problem is that in case the sales order is locked for execution by some other user, the BAPI call returns a message of type 'E'.
    Currently we send a mail to the concerned people to indicate that the sales order change has failed. However the users are concerned, since there is no immediate feeback on the errors.
    Is there any way that the user's can be informed instantly that an error has occured and also a retry option so that the BAPI call can be reexecuted at a later time.
    Regards,
    Jitender

    You can do this in two ways
    1. Put the BAPI call after a WHILE loop, that always checks for SY-SUBRC and within it you call the FM to lock the order
    OR
    2. Do this in workflow by using the return message type E to start the same task with some delay, say 30 mins or so...
    Good Luck
    Ravi

  • BAPI to create a PM notification with a task list (as in IW21)

    Hi to all,
    my question is: is there a bapi to create a PM notification in which I can add a task list? A bapi with which I can simulate the transaction IW21.
    Thank you very much,
    Antonio

    Hi,
    Try using the Bapi.
    BAPI_ALM_NOTIF_CREATE
    Also use this BAPI_ALM_NOTIF_TASK_COMPLETE  to complete the task.(if the task is not getting updated)
    Then use  BAPI_TRANSACTION_COMMIT.
    Regards,
    Raj.

  • BAPI for T-code CRMD_ORDER

    HI folks,
    Can any one help me find out a BAPI for transaction CRMD_ORDER.
    Regards,
    Abie

    Hi,
    there is no BAPI for the order processing. Instead you might want to check the SOA services http://esoadocu.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE4157EA06BD7BF1A3C7001A64D3F462&id=2771A3525CD111DA36BB000F20DAC9EF or check the XIF interface for sales order import.
    Best Regards,
    Michael

  • Using "in background task" in BAPIs

    Hello,
    I am calling a function module inside a BAPI with "in background task" addition. Basically I want that function executed in a separate background process so that the execution performance of the BAPI is not affected. Well, when executing the BAPI in SAP GUI everything works fine, but not when that same BAPI is executed by a remote .Net app that implements BAPI calls through .Net connector.
    Is there a basis parameter that I need to set or is this even allowed? Please help.
    Thanks,
    Leon

    When you are calling a function module in background task, the execution of the function module is done asynchronously. It will be exectued when a commit work happens. May be that is why you are not seeing the results. I am assuming you are not getting any error neither results.
    Read help on the syntax for "RECEIVE RESULTS FROM FUNCTION func". May be that is what you may have to do, although, I admit, I never used it.
    Regards,
    Srinivas
    Message was edited by: Srinivas Adavi
    Sorry, this works only with FMs that are called using 'STARTING NEW TASK'. So please dont look at this.

  • Bapi / Function module to change the status of transaction crmd_order

    Hello team,
    I am developing the utility in CHARM for which i need to change the
    Status of transaction CRMD_ORDER from "New to "In process" through
    report/BAPI / FM etc... I tried to use report
    CRM_socm_service_report.But it never puts status " In process" rather i
    updates only " "work in progress ".
    Also tried FM "CRM_STATUS_CHANGE_EXTERN" , but doen't work.
    After the process is put "In process" , i want to create change request
    and assign resource". Is there any report / FM /Bapi or anything in the
    system to do this.
    I tried to write BDC but dropdown list is not recorded in the recording.
    Please advice.
    Thanks and regards,
    Swapnil

    Not sure I understand your requirement but maybe FM CRM_ORDER_MAINTAIN will be of help to you.

Maybe you are looking for

  • Looking for a Splash screen for desktop login

    Thats it, I have been looking for a splash screen application that can make a splash appear since my login begins with SLIM and that disappears once all startup applications have been loaded. I tried plymouth, but I think it cannot be used for this p

  • Payment terms maintenance vs define terms of payment for installment.

    Dear all, In Payment terms we can maintain installment payments then what is the need for Maintaining installment payments again. I am not understanding the functionality any body please explain with example. Thanks, Srini.

  • HP Scan 3 error on OS X 10.9

    Hey! When I try to launch HP Scan 3 I get an error that says me to try to reinstall the software and to check the compatibility with my OS. I tried to uninstall and reinstall the printer's drivers, but HP Scan 3 still doesn't work. On HP site I can't

  • Date modified/Date Created/Date Added(timestamp) - not showing the actual date?

    In finder, none of the date info seems to be accurate. By example, I just downloaded a new app from a website (onyx in this case), todays date is Nov 13th and when I install the new app (i.e. drag and drop into Apps folders) in finder the Date modifi

  • Error in Hashtable put method-Can not resolve symbol

    Hi there!I am new to using java.util.Hashtable. I am using it for a command line instant messaging program for holding the list of clients and list of client names currently connected to the server. However when I compile my server with the command j