Why weneed to call two BAPIs to create a notification in SAP

HI Experts,
           There are two BAPIS namely BAPI_ALM_NOTIF_CREATE and BAPI_ALM_NOTIF_SAVE for creating a notification.
We have to call the first one with proper data and it returns a dummy number which we need to send to the second bapi to save it.
Why SAP has provided two BAPIS? is there any strong reason for this.
Good answers will be rewarded.
Thanks,
Prasanna

Hello Roli,
If your requirement is to launch Transaction IW52 after clicking apply button then you can use Transaction Launcher tool in CRM to integrate to CRM WebClient UI.
Calling Transaction Launcher on user action
BOR object or ITS based Transaction Launcher
Regards,
Ashik

Similar Messages

  • A proxy and in that proxy we will call the BAPI for creating Purchase Requi

    HI all,
    I am explaining a situation please resolve if possible.
    I got source data to create purchase requisition .  the source data was not cleaned and requires lot of validations and crossmapping with actual sap tables . I did it for testing and used bapi ( bapi_requsition_create) and was able to test the data to create a pr in sap. but now as per the instructions from my onsite co-ordinator , they told thy will use  a proxy( in place of idoc) and in that we will call bapi to create purchase requisition in sap. please explain about what kind of proxy it may be and how we call bapi in it . thanx in adv..

    HI all,
    I am explaining a situation please resolve if possible.
    I got source data to create purchase requisition .  the source data was not cleaned and requires lot of validations and crossmapping with actual sap tables . I did it for testing and used bapi ( bapi_requsition_create) and was able to test the data to create a pr in sap. but now as per the instructions from my onsite co-ordinator , they told thy will use  a proxy( in place of idoc) and in that we will call bapi to create purchase requisition in sap. please explain about what kind of proxy it may be and how we call bapi in it . thanx in adv..

  • Calling two  BAPIs from single input field from Webdynro for ABAP

    Hi experts ,
    here i hve a small problem .
    i hve two BAPIs , both  having olly one import parameter and hving messages as the export parameters .
    so how i hve to call them , give the correct method .
    thanks in advance
    setu

    Refer to this thread
    How to call two Bapi with same inputfield in webdynpro application

  • Calling two BAPIs in the sequence in same transacon

    Hi ,
    I am caling Two BAPIs in a sequnce in MII Transaction. I am using Jco Interface for this. My first Bapi is getting called and for second bapi call , I am etting the following error.
    Problem retrieving JCO.Function object: Function [] not found.
    Now I would like use session action and in session I will be calling two function with bapis and if something goes wrong i have to roll back the session. suggest me the sequnce of steps.
    Thanks, Eswar

    Hi Rohit,
    Thanks for the reply.
    I have used JCo interface for calling two bapis and i have given time delay of 5 seconds between calls and it served my purpose.
    Thanks , Eswar

  • How to create event/notification in SAP using PI.

    Hi there,
    How to create the event/notification in SAP that triggered by the PI system. Any suggestion appreciated.
    Thanks

    Hi Mistry
    You call a bapi to add the event message to SAP EM.
    Below an example:
    SAP EM ABAP - Calling a BAPI to create an Event Message in SAP Event Management - Code Gallery - SCN Wiki
    Best regards
    Eduardo Chagas

  • Performance issue: Calling a BAPI PO create in test mode to get error msgs

    Hi,
    We have an ALV report in which we display purchase orders that got created in SAP, but either got blocked due to not meeting PO Release strategy tolerances or have failed output messages. we are displaying the failed messages even.
    We are looping the internal table of eban(PR) & calling bapi po create in test mode to get failed messages.
    Now we are facing performance issue in production. What can be the alternate efficient way to get the error msgs with efficiency
    Regards,
    Ayub H.
    Moderator message: duplicate post (different ID, same company...), see below:
    Performance issue calling bapi po create in test mode to get error messages
    Edited by: Thomas Zloch on Mar 9, 2012

    Hi Suvarna,
    so you need to reduce the number of PO-simulations.
    - Likely you checked already, that all EBAN-entries should already be converted into POs. If there would be a large number of "new" EBAN-entries, they don't need to be simulated.
    - If it's a temporary problem: give aid to correct the problems (maintain prices or whatever the error-reasons are) Then the amount of not-converted purchase requisitions (PR) should drop, too
    - If it's likely, that your volume of open PR will stay high: create a Z-Table with key of EBAN and a counter, simulate (once a day) PO conversions and store the results in the Z-table. In your report you can use the results... if they are "new enough". From time to time new simulations should be done, missing master data might be available.
    Maybe users should be allowed to start this 2nd report manually (in background), too -> then they can update the messages after some data corrections themself, without waiting for the result (just check later in online report and do something different in between).
    And you might need to explain, PO simulation takes as long as PO creation... there is no easy or fast way around this.
    Best regards,
    Christian

  • Stateless session's one method to call  two bmp's create method

    JSP calls one stateless session's one method and the method calls two bmps'
              create method.
              However, When the second bmp run the create operation, the exception
              happens.
              But the date that the first bmp insert is not rollbacked.
              How can I rollback all data, when the exception happens?
              

    Use JSP actions.
    <jsp:useBean id="shoppingCart" class="com.package.Cart" scope="session">
    <jsp:setProperty name="shoppingCart" property="userName" value="Guest" />
    </jsp:useBean>

  • Why windowClosing is called two times?

    Hi,
    I'm saving my project in JFrame windowClosing event. But it is called two times...
    How to prevent it?
    this.addWindowListener(new java.awt.event.WindowAdapter() {
         public void windowClosing(java.awt.event.WindowEvent e) {
         saveCurrentProject();
    Thanks,
    Andr�

    Thanks, problem solved.
    this.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
    saveCurrentProject();
    System.exit(0); // <-- new line
    Andre

  • BAPI to create an account in SAP Banking

    I'm trying to create an account in SAP Banking using BAPI BAPI_BCA_ACCOUNT_CREATE.
    The path for account creation is given below for reference.....
    SAP Menu->Financial Services->Account Management->Account->Account Master Data->Create Account (Transaction BCA_CN_ACCT_01)
            The execution of BAPI is successful and it's generating an internal id. How to get the Account number from this internal id?
            May be, internally it's reserving an account number. For example, If last created account was IN/969696/0000000122/, after running the BAPI, if I try to create an account manually again, then it's creating an account with number IN/969696/0000000124/. But I'm unable to view A/c IN/969696/0000000123/ created by the BAPI in BCA_CN_ACCT_03 as it says the account number doen't exist.
           The same process is working fine when i'm using BDC for transaction BCA_CN_ACCT_01 and I'm able to see the account number in BCA_CN_ACCT_03.
    I'm calling BAPI_BCA_ACCOUNTAM_SAVE_ALL and BAPI_TRANSACTION_COMMIT after calling the BAPI as well.
    Is there any other process involved? Do I have to call any other BAPI to get the account no in external format?
    Kindly help.........

    Hello Keshav,
                           Thanks a lot for your reply......
    The BAPI BAPI_CREATE_ACPOOL is not available in SAP Banking. Currently, I've done it with BDC, to provide a temporary solution.
    KIndly share sample code or documentations for this BAPI, if someone has worked on it.

  • 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

    .

  • Getting error while calling two BAPIs

    Dear ABAPers,
    I'm stuck into a problem.
    I have a situation where I'm using BAPI, WS_DELIVERY_UPDATE to update a delivery.
    Then after this I have post a GR so for that I'm using BAPI_GOODSMVT_CREATE.
    Now my problem is when I'm calling BAPI_GOODSMVT_CREATE it gives me an error
    "CODE is not supported by BAPI2017_GOODSMVT_CREATE". I check my code thoroughly, but didn't find anything in that
    which was wrong.
    Again, if I try to do the same, in debugging mode, its processes me in the way it should, without any error.
    Also, If I use a hard coded DELAY of 2 mins, in my program after WS_DELIVERY_UPDATE, it again processes perfectly.
    Now I've put COMMIT AND WAIT and FM DEQUEUE_ALL after WS_DELIVERY_UPDATE, but still not working, and this I'm getting
    error from BAPI_GOODSMVT_CREATE - "No Items Transfered".
    Please help me sort this issue.
    Regards,
    Varun

    Hi varunchopra,
    the SAP documentation is not 100 % clear here: They say, with COMMIT WORK all high-priority ("VB1") update function modules are executed in the order of their registration and in a shared database LUW.  With WAIT addition, the calling program will continue after the update work process has executed the VB1 function modules.
    Probably BAPI_WS_DELIVERY_UPDATE will also trigger one or more VB2 update functions that will keep the objects locked.
    Ten years ago we used this code in a similar situation to wait for the update task for a material being changed:
    FORM WAIT_UPDATE.
      USING P_MAX_WAIT_SECONDS TYPE I
      CHANGING P_SUBRC LIKE SY-SUBRC.
      DATA:
      L_ENDTIME LIKE SY-UZEIT,
      L_TABIX LIKE SY-TABIX,
      L_TRIES TYPE I,
      L_SUCCESS LIKE SY-SUBRC,
      L_ANSW TYPE C,
      L_TRY_AGAIN LIKE RMCLS-XFLAG VALUE 'X'.
      GET TIME.
      L_ENDTIME = SY-UZEIT.
      ADD P_MAX_WAIT_SECONDS TO L_ENDTIME.
      WHILE L_TRY_AGAIN = 'X'.
        LOOP AT ITAB.
          PERFORM CHECK_LOCK_EMMARCE
            USING ZAUF-WERKS ITAB-MATNR CHANGING P_SUBRC.
          GET TIME.
          IF P_SUBRC <> 0 OR SY-UZEIT >= L_ENDTIME.
            EXIT.                          "Loop
          ENDIF.                           " sy-subrc = 0.
        ENDLOOP.                           " AT itab.
        IF P_SUBRC = 0.
          CLEAR: L_TRY_AGAIN.
        ELSE.
          IF SY-UZEIT >= L_ENDTIME .
            PERFORM POPUP_TO_CONFIRM_WAIT
              USING P_MAX_WAIT_SECONDS CHANGING L_ENDTIME P_SUBRC.
            IF P_SUBRC <> 0.
              CLEAR L_TRY_AGAIN.
            ELSE.
              CLEAR P_SUBRC.
            ENDIF.                         " p_subrc <> 0.
          ENDIF.                           " sy-uzeit >= l_endtime.
        ENDIF.                             " p_subrc = 0.
      ENDWHILE.                            " l_try_again = 'X'.
    ENDFORM.                               " WAIT_UPDATE
    The coding of CHECK_LOCK_EMMARCE was derived from SM12 lock overview and used FUNCTION 'ENQUE_READ'. Today I would just try to lock the object with ENQUEUE function - if you get foreign lock error, the updatze task lock is not yet released.
    Monitor SM12 during test run to identify which lock object  must be checked.
    The you have to decide: If you put a WAIT UP TO 1 SECONDS in the wait loop, you may lose up to 1 second per delivery. If you just LOOP until the locks are released you may put some non-necessary load on the machine.
    This way will be faster than any unconditional wait - which may sometimes not be long enough.
    Regards,
    Clemens

  • Why "TWO_TASK" is called two tasks?

    which two tasks do it refer to?

    A definition from Oracle documentation :
    Two-Task Common (TTC)
    A presentation layer type that is used in a typical Oracle Net connection to provide character set and data type conversion between different character sets or formats on the client and server.
    See http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14212/connect.htm#sthref1476

  • HT1414 So is there a reason why the so called amazing apple company creates a feature that if you forget your passcode they can't email the wonderful thing?

    It is annoying, I'm sure I will get some smartass comments about this because "well apple is just that best darn thing out there" or "its your fault" I don't give a **** this is annoying.

    Apple does not have your password.
    Apple does not have a magic backdoor into the device
    It's a security and privacy thing.
    If you can't remember your own passcode, it's your fault and you should not set one.
    http://www.wholehealth.com/vitamins-supplements/ginkgo-biloba

  • Bapi to create quality notification with inspection lot and defects of char

    Hello experts,
    Can any body tell me how to create notification using inspection lot.
    regards
    Narendranath Reddy

    Hi Narendranath,
    Have you tried BAPI_QNOTIFICAT_CREATE? Based on inspection lot data, you should have the data you need to create a quality notification.
    Good luck.
    Best regards,
    Guus
    Edited by: Guus Jansen on Feb 2, 2011 10:05 AM

  • BAPI to create customer records (XD03)

    Hi
    I've seen some similar threads to this but I'm not sure the question is fully answered yet.
    Is there a single, or are there multiple BAPI's available that will fully create a customer master record, by which I mean all the company code data as well as te Sales area data?  I am aware of the BAPI_CUSTOMER_CREATEFROMDATA1, but this doesn't appear to meet the full requirement.  Also I'm slightly alarmed by the 'Only for ONLINE Store!!!' comment in the documentation.
    Previous posts on this forum and on others suggest that to fully create a customer record people have had to resort to writing their own BDC programs.  Is there anyone who can confirm that this is the case?
    Thanks for your help.
    Dominic

    Hi
    Thanks for the welcome and the advice.
    While researching this further I came across SAP note 390045 which is directing me away from using the BAPI route.  I realise now that I didn't mention in the original post that the idea we're investigating is having the data for the customer accounts created externally to SAP and then call a BAPI to create the account in SAP.
    I suspect we could achieve this but it's getting a bit messy so ALE might be the better option.
    Thanks,
    Dominic.

Maybe you are looking for