Help on the Transactional BAPI - Writing to R/3 BAPI

1)I have imported and created Model for a custom BAPI ZPM_CREATE_ORDER and TRANSACTIONAL BAPIs i.e., COMMIT & ROLLBACK bapis.
2)I have mapped the context from Model to Custom Controller and then to View Controller. Also, did the UI Element Binding.
3) Added the methods callBapi_Create_Order and callBapi_Transaction_Commit which contain the Bapi executin in Cust Controller.
But nothing happening if I click on the Create Order button of the View.
My onActionCreateOrder() Method contains just 2 lines of code 1) To call the callBapi_Create_Order of Custom Controller 2) To call callBapi_Commit()
No issues with connecting to R/3 i.e JCO Destinations etc., are good since the Retrieval BAPI works with no problems.
Am I missing something here ? Any help is appreciated....

Thank You. Here is my code. I am only showing the code that I have changed:
View Controller Action Method:
public void onActionCreateOrder
    //@@begin onActionCreateOrder(ServerEvent)
    wdThis.wdGetCreteOrderCustControllerController().callBapi_Zpm_Create_Order();
    wdThis.wdGetCreteOrderCustControllerController().callBapi_commit();
    //@@end
The Custom Controller code:
  public void wdDoInit()  {
  Zpm_Create_Order_Input input = new   Zpm_Create_Order_Input();
  Zpm_Vmo_Hdr ordHdr = new Zpm_Vmo_Hdr();
  input.setOrder_Header(ordHdr);
  wdContext.nodeZpm_Create_Order_Input().bind(input);
Bapi_Transaction_Commit_Input
  Bapi_Transaction_Commit_Input inputCommit =
  new Bapi_Transaction_Commit_Input();
  wdContext.nodeBapi_Transaction_Commit_Input().bind(inputCommit);
  public void callBapi_Zpm_Create_Order( )  {
     IWDMessageManager manager = wdComponentAPI.getMessageManager();
     try{
       wdContext.currentZpm_Create_Order_InputElement().modelObject().execute();
       wdContext.nodeOrder_Header().invalidate();
     }catch(Exception e){
          manager.reportException(e.getMessage(),false);
  public void callBapi_commit( )
     IWDMessageManager manager = wdComponentAPI.getMessageManager();
     try{
       wdContext.currentBapi_Transaction_Commit_InputElement().modelObject().execute();
     }catch(Exception e){
          manager.reportException(e.getMessage(),false);
    //@@end

Similar Messages

  • Adding search Help - In the transaction MIGO for the Field WEMPF.

    Hi All,
    In the Transcation MIGO there is a field - Good Recipient ( WEMPF ) -this does not have any F4 help.
    Now i need to create a search help for this field.
    Can any one suggest me how to proceed.
    I am thinking about -- creating a search help - and assigning it to a data elemet(WEMPF) of that field.
    is this a right way. if so please guide me the steps to do.
    Thanks in advance.
    Guru

    hie
    to add a search help to a particular field u need to get the table name where that field is located. secondly go to se11 and enter an appropriate name for your search help, allocate the table where values are going to be taken as well as the search criteria. Afterwards to the table where WEMPF is and on the search help enter your custom search help. save and activate and you shud try MIGO once more and the field WEMPF should have an F4 help.
    regards
    Isaac Prince

  • Any body able to help me : The transaction log for database 'KDS' is full

    Hi Experts,
                      I am facing the follwoing problem when i entered into the portal.
    [NWMss][SQLServer JDBC Driver][SQLServer]The transaction log for database 'KDS' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases.
    Exception id: 10:51_28/09/07_0006_3439451
    See the details for the exception ID in the log file
    Please give me a solution urgent.
    Message was edited by:
            Ramanan Panchabakesan

    Ameya,
    The log file seems to be....[ i have bolded the warning number and bold+underline the error number].kindly see this
    #1.5 #001320E973F2004900000281000010D400043B2BF18A5CFD#1190959829445#com.sap.engine.services.deploy##com.sap.engine.services.deploy######01eb74206d8811dc8114001320e973f2#SAPEngine_System_Thread[impl:5]_5##0#0#Warning#1#/System/Server#Plain###
    Warning occurred on server <b>3439450</b> during startApp sap.com/cafruntimemonitoringear : Application sap.com/cafruntimemonitoringear has weak reference to application sap.com/com.sap.jdo and is starting it!#
    #1.5 #001320E973F2004900000283000010D400043B2BF18A5DCF#1190959829445#com.sap.engine.services.deploy##com.sap.engine.services.deploy######01eb74206d8811dc8114001320e973f2#SAPEngine_System_Thread[impl:5]_5##0#0#Warning#1#/System/Server#Plain###
    Warning occurred on server <b>3439450</b> during startApp sap.com/cafruntimemonitoringear : Application sap.com/cafruntimemonitoringear has weak reference to application sap.com/caf~km.proxies and is starting it!#
    #1.5 #001320E973F2004900000285000010D400043B2BF18A5E85#1190959829445#com.sap.engine.services.deploy##com.sap.engine.services.deploy######01eb74206d8811dc8114001320e973f2#SAPEngine_System_Thread[impl:5]_5##0#0#Warning#1#/System/Server#Plain###
    Warning occurred on server <b>3439450</b> during startApp sap.com/cafruntimemonitoringear : Application sap.com/cafruntimemonitoringear has weak reference to application sap.com/cafruntimeear and is starting it!#
    #1.5 #001320E973F2004900000287000010D400043B2BF18A5F72#1190959829461#com.sap.engine.services.deploy##com.sap.engine.services.deploy######01eb74206d8811dc8114001320e973f2#SAPEngine_System_Thread[impl:5]_5##0#0#Warning#1#/System/Server#Plain###
    Warning occurred on server <b>3439450</b> during startApp sap.com/cafruntimemonitoringear : Application sap.com/cafruntimemonitoringear has a weak reference to resource jmsfactory/TopicConnectionFactory with type javax.jms.TopicConnectionFactory but the resource is not available and the application may not work correctly!#
    #1.5 #001320E973F2001100000002000010D400043B2BF18FC93A#1190959829805#com.sap.jms##com.sap.jms.LOCK_EXCEPTION######837a4dd06d8911dcbe35001320e973f2#SAPEngine_System_Thread[impl:5]_34##0#0#Warning#1#/System/Server#Java###Couldn't acquire Lock $service.jms_provider. Current JMS lock owner is server node with id = .#1#<i><b><u>3439451</u></b></i>#
    #1.5 #001320E973F200490000028D000010D400043B2BF1A40473#1190959831134#com.sap.engine.services.jndi##com.sap.engine.services.jndi######01eb74206d8811dc8114001320e973f2#SAPEngine_System_Thread[impl:5]_5##0#0#Path##Java###Caught #1#com.sap.engine.services.jndi.persistent.exceptions.JNDIException: Error during s object serialization.
    at com.sap.engine.services.jndi.implclient.ClientContext.serializeObject(ClientContext.java:3335)
    at com.sap.engine.services.jndi.implclient.ClientContext.serializeDirObject(ClientContext.java:3224)
    at com.sap.engine.services.jndi.implclient.ClientContext.rebind(ClientContext.java:1032)
    at com.sap.engine.services.jndi.implclient.ClientContext.rebind(ClientContext.java:957)
    at com.sap.engine.services.servlets_jsp.server.runtime.context.WebApplicationConfig.bind(WebApplicationConfig.java:455)
    at com.sap.engine.services.servlets_jsp.server.runtime.context.WebApplicationConfig.parse(WebApplicationConfig.java:116)
    at com.sap.engine.services.servlets_jsp.server.runtime.context.ApplicationContext.init(ApplicationContext.java:617)
    at com.sap.engine.services.servlets_jsp.server.container.WebContainerHelper.createContext(WebContainerHelper.java:540)
    at com.sap.engine.services.servlets_jsp.server.container.StartAction.prepareStart(StartAction.java:51)
    at com.sap.engine.services.servlets_jsp.server.container.WebContainer.prepareStart(WebContainer.java:475)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4450)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2610)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2464)
    at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
    at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
    at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
    at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.JNDIException: Error during s object serialization.
    at com.sap.engine.services.jndi.persistent.RemoteSerializator.toByteArray(RemoteSerializator.java:55)
    at com.sap.engine.services.jndi.implclient.ClientContext.serializeObject(ClientContext.java:3332)
    ... 24 more
    Caused by: java.io.NotSerializableException: com.sap.engine.system.ORBProxy
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    at com.sap.engine.services.jndi.persistent.RemoteSerializator.toByteArray(RemoteSerializator.java:48)
    ... 25 more

  • Doubt in layers of the Transaction

    Hi Gurus,
    Can anyone explain what is the difference between following 4 at the transaction level. How each individual will helpful in the transaction process....
    1) Item Categories.
    2) Item Category Group
    3) Item Categories Usages
    4) Item categories Determination.
    With example is greatfull......
    Regards,
    Sap Adherent.
    Moderation: Kindly search before you post

    Hi Pepe,
    Thanks for the response. 
    As you mentioned they have different statuses.
    In the status profile they maintained the lower and higher values (1-10) for all the listed.
    So, does this impacts the visibility of the drop down?
    I thought that, it (high/low) only acts not to allow the user to change the statuses from bottom to top.
    Regards,
    Fedor.

  • Bapi for the transaction FBRA, FB08, FB01 anf FD02

    hi,
    can any one please help me with BAPI for the following transaction?
    FBRA - reset cleared items
    FB08 - reversal of the documents
    FB01 - post documents
    FD02 - change customer.
    regards kriti

    Hi
    Copy the below  program in se38 and execute the program and along with the transaction code you need to specify the program name to obtain the program name all you have to do is execute the t-code and go to system--> status and copy the program name from the screen and paste it in the above program.
    tables : tstc,
             tadir,
             modsapt,
             modact,
             trdir,
             tfdir,
             enlfdir,
             sxs_attrt ,
             tstct.
    data :
       jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode,
    p_pgmna like tstc-pgmna .
    data wa_tadir type tadir.
    start-of-selection.
      if not p_tcode is initial.
        select single * from tstc where tcode eq p_tcode.
      elseif not p_pgmna is initial.
        tstc-pgmna = p_pgmna.
      endif.
      if sy-subrc eq 0.
        select single * from tadir
        where pgmid = 'R3TR'
        and object = 'PROG'
        and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
        if sy-subrc ne 0.
          select single * from trdir
          where name = tstc-pgmna.
          if trdir-subc eq 'F'.
            select single * from tfdir
            where pname = tstc-pgmna.
            select single * from enlfdir
            where funcname = tfdir-funcname.
            select single * from tadir
            where pgmid = 'R3TR'
            and object = 'FUGR'
            and obj_name eq enlfdir-area.
            move : tadir-devclass to v_devclass.
          endif.
        endif.
        select * from tadir into table jtab
        where pgmid = 'R3TR'
        and object in ('SMOD', 'SXSD')
        and devclass = v_devclass.
        select single * from tstct
        where sprsl eq sy-langu
        and tcode eq p_tcode.
        format color col_positive intensified off.
        write:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        skip.
        if not jtab[] is initial.
          write:/(105) sy-uline.
          format color col_heading intensified on.
          * sorting the internal table
       sort jtab by object.
          data : wf_txt(60) type c,
          wf_smod type i ,
          wf_badi type i ,
          wf_object2(30) type c.
          clear : wf_smod, wf_badi , wf_object2.
          * get the total smod.
          loop at jtab into wa_tadir.
            at first.
              format color col_heading intensified on.
              write:/1 sy-vline,
              2 'Enhancement/ Business Add-in',
              41 sy-vline ,
              42 'Description',
              105 sy-vline.
              write:/(105) sy-uline.
            endat.
            clear wf_txt.
            at new object.
              if wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              elseif wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              endif.
              format color col_group intensified on.
              write:/1 sy-vline,
              2 wf_object2,
              105 sy-vline.
            endat.
            case wa_tadir-object.
              when 'SMOD'.
                wf_smod = wf_smod + 1.
                select single modtext into wf_txt
                from modsapt
                where sprsl = sy-langu
                and name = wa_tadir-obj_name.
                format color col_normal intensified off.
              when 'SXSD'.
                * for badis
             wf_badi = wf_badi + 1 .
                select single text into wf_txt
                from sxs_attrt
                where sprsl = sy-langu
                and exit_name = wa_tadir-obj_name.
                format color col_normal intensified on.
            endcase.
            write:/1 sy-vline,
            2 wa_tadir-obj_name hotspot on,
            41 sy-vline ,
            42 wf_txt,
            105 sy-vline.
            at end of object.
              write : /(105) sy-uline.
            endat.
          endloop.
          write:/(105) sy-uline.
          skip.
          format color col_total intensified on.
          write:/ 'No.of Exits:' , wf_smod.
          write:/ 'No.of BADis:' , wf_badi.
        else.
          format color col_negative intensified on.
          write:/(105) 'No userexits or BADis exist'.
        endif.
      else.
        format color col_negative intensified on.
        write:/(105) 'Transaction does not exist'.
      endif.
    at line-selection.
      data : wf_object type tadir-object.
      clear wf_object.
      get cursor field field1.
      check field1(8) eq 'WA_TADIR'.
      read table jtab with key obj_name = sy-lisel+1(20).
      move jtab-object to wf_object.
      case wf_object.
        when 'SMOD'.
          set parameter id 'MON' field sy-lisel+1(10).
          call transaction 'SMOD' and skip first screen.
        when 'SXSD'.
          set parameter id 'EXN' field sy-lisel+1(20).
          call transaction 'SE18' and skip first screen.
      endcase.
    Regards
    Pavan

  • BAPI for the transaction VCH1 and VCH2 (Batch Search strategy)

    Hi Experts,
    I need to create a new condition record or change a condition records using the transactions VCH1 and VCH2 respectively.
    But BDC recording should not be used at any cost (acc to Client).
    So next go for me is to search for a BAPI or any Function modules..
    Can anyone please help me in this regard.....
    Has anyone worked with this transactions before...
    waiting for the replys
    Rajiv

    Hi Rajiv,
    I have a similar requirement as yours. Could you please let me know if you found any function modules or bapi's to create batch search strategy.
    Thanks in advance.
    Manohar Dubbaka.

  • Can we use BAPI in place of BDC for the transaction KB15N?

    Hi,
      I have a requirement where in i need to upload an excel sheet using KB15N (transaction for MANUAL COST ALLOCATION).
    I have found an bapi BAPI_ACC_MANUAL_ALLOC_POST. Does this bapi serve my purpose completely.
    Thanks and Regards,
    Gatham

    Hi,
    The bapi <b>BAPI_ACC_MANUAL_ALLOC_POST</b> is for Accounting: Post Manual Cost Allocation.
    This is the correct BAPI, you can use this one, for more information, you can read the documentation of this BAPI
    Regards
    Sudheer

  • I modified the budget categories on the numbers template so now the transaction tab does not communicate with the budget tab. I figured out how to change the drop down options but how do I get it to reflect on my budget sheet? Please help.

    If you are familar with the Numbers Budget Template it has two tabs 'Budget' and 'Transactions'. If you use the template as it is designed when you input expenses on the transaction tab it will automatically add that amount into the selected category on the budget tab. I have madified my budget tab to reflect the caegories that I need, which included adding several to the template. I also added to the table so it reflects my income and expenses so I can track where I am at with a glance. Since I did this, I can't get my transactions tab to communicate with the budget tab. I figured out how to change the options in the drop down box for category but I con't figure out how to get it to reflect onto my budget tab. I'm sure that it is an easy fix, however, I am just not well versed in Numbers. I appreciate your time in helping me with this issue.
    Respectfully,
    Jon

    My guess is that while you added catetories to your Budget Sheet by adding new lines and filling in the category column, you didn't also add the formulas to these new budget lines.
    The proper way to add those lines would have been to select a cell in the line just above where you want to add a line and type Option/Alt-DownArrow. This would have copied the formulas into the new line. Maybe you did this, and maybe not. You didn't give details on how you added the lines.
    Select C2 and D2 and Command-C to copy them to the Clipboard.
    Select all the cells of Columns C and D except for the top and bottom rows and Command-V to Paste.
    If I have properly guessed the problem, you should be in business. This assumes that your Categories are exaclty the same as the entries in your Pop-up menus. Spelling counts, as does case.
    Jerry

  • To get the transaction data..please help

    Hi all,
    i need to retrive the transaction datas..like deleted ,n updated datas..
    I tried this query
    SELECT * FROM FLASHBACK_TRANSACTION_QUERY WHERE TABLE_OWNER='CFMSDEV'
    AND TABLE_NAME='M_REGIONS'
    but this is givng the feilds of details..not showing a fied what data is translated..
    please help me...
    thnks&regards

    Hi,
    To my knowledge this can be achieved only by Change Data Capture in 10g.
    Let us wait for others opinion.
    Regards
    K.Rajkumar

  • Need help in defining the Transaction Variant using MM02

    Hi Experts,
    I had a requirement that I need to disable the <b>Purchase order Text</b> tab in MM02 T-code,I tried using Transaction Variant(SHDO) ,but I unable to disable the PO text Custom Control.Iff you have any info Please share it with me on  [email protected]
    Apriciated your contributions by Assinging the points.
    Thanks,
    Sridhar.

    Hi Nani,
    The transaction used to create transaction variant is SHD0.
    Using this you can change the screens, for example is you want certain fields to get a default value in XD03 / MM03 etc you can do so with the help of transaction variants.
    Also you can go thru this links for more help .... please go thru and I believe that you problem will be solved....
    Check the following threads:
    Re: How to create a transaction variant
    Transaction variant
    Regards,
    Jayant
    Please award if helpful
    Message was edited by:
            JAYANT KUMAR

  • BAPI in order to replace the transaction FB01L  ?

    Does someone know if there is a BAPI replacing the transaction FB01L ?
    Thanks

    Sorry but based on my knowledge this answer is NOT correct,
    except if you can show me which field in the BAPI,  I have to filled in with the content of the "Ledger Group" !! 
    Thanks anyway
    Philippe

  • Bapi function module  for the transaction VBO2 in 4.6 version

    can u please tell me the how to proceed for the uploading rebate agreement data into transaction VBO2(change rebate agreement) USING the which bapi function module in 4.6c version.

    I am also looking for the same requirment . could you please let me know if you find any BAPI.

  • Function module or any BAPI that lets park the document in the transaction

    Function module or any BAPI that lets park the document in the transaction FBV1.
    I need to park the invoice by providing some test value in FBV1. I want to know is there any function module or BAPI that is used to park the doucument in transaction FBV1

    hi,
    Use the BAPI BAPI_INCOMINGINVOICE_PARK to park the Document
    Regards
    Sudheer

  • BAPI or RFC for replicate the transaction LX03

    Hi experts,
    anyone know any BAPI or RFC for replicate the transaction LX03?
    Thanks

    There are no alternate transaction for OBY6

  • BAPI replacement for the transaction VT02

    Hi All,
    We are doing upgrade from 4.6C to ECC 6.0 version where we need to replace existing BDC with BAPI or a function module.
    In a program we are using BDC for the transaction VT02 to update the fields End date (VTTK-DATEN) and End time (VTTK-UATEN) for the given shipments. Please suggest a BAPI or Function module to replace the existing BDC for VT02 transaction.
    The BAPI 'BAPI_SHIPMENT_CHANGE' is not released officially in ECC 6.0 version. Can we use it in ECC 6.0 version? If yes, please let me know how to call this BAPI with only these three fields(Shipment number-TKNUM, Shipment end date-DATEN and Shipment end time-UATEN).
    Thanks in advance.
    Regards,
    Siva.

    hi,
    try this...
    SD_SHIPMENT_HEADERS_CHANGE_DIA
    Prabhudas

Maybe you are looking for

  • How to delete the data from SAP R/3 DB table from BW

    Hi,    I am facing an issue... I have populated the data into custom r/3 DB table by running a user exit.I am getting the data and loading(Full Load) it in BW ODS. But my problem is when i rerun the user exit it is giving me a short dump saying "SAPS

  • 8.2 will not find Panasonic raw files

    DNG converter will not find the RW2 files from my Panasonic camera.  It will not even convert files I alredy converted.   Any help would be appreciated.  Since it will not see the files, the convert option is not available.

  • Mac Mail 3 html formatting issues

    I have some people I've been working with who recently upgraded to Mac Mail 3 and since a quarantine report they receive about email that was filtered no longer displays correctly. It displays correctly for anyone using anything other than Mac Mail 3

  • Anyone for poplog?

    It is the language developed allot at Sussex Uni, If you wan't to get it working I can post a howto about how I bashed it together. Does AI and stuff like that as well as being able to do a factorial of 1000 instantly and more importantly very accura

  • JNI / external programs / big apps

    Hi. We want to develop a hotel management software using Java Web Start and have a few short questions: 1. Is it possible to use JNI in Java Web Start programs for platform-specific functions? For example to access external harware on the serial port