Record not getting inserted into R/3 table.

Hi Experts,
I am trying to save some information in R/3 using BAPI. I have written codes like as shown below:
Code in View
public void onActionInsertRecord(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionInsertRecord(ServerEvent)
    try {          wdThis.wdGetTimesheetCompController().executeBapi_Catimesheetmgr_Insert_Input();
               wdThis.wdGetTimesheetCompController().executeBapi_Transaction_Commit_Input();
    } catch (Exception ex)
    {wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
    //@@end
Code in Component Controller
public void executeBapi_Catimesheetmgr_Insert_Input( )
    //@@begin executeBapi_Catimesheetmgr_Insert_Input()
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    try
    {   Bapicats1 xx = new Bapicats1();
       xx.setWbs_Element(wdContext.currentWorklistElement().getRec_Wbs());
       xx.setEmployeenumber(wdContext.currentZbapi_Cat_Stech00_Getdetail_InputElement().getEmployeenumber());
       xx.setCatshours(new BigDecimal ("1"));
       xx.setWorkdate(wdContext.currentOutputElement().getDate_From());
       wdContext.currentBapi_Catimesheetmgr_Insert_InputElement().setProfile(wdContext.currentZbapi_Cat_Stech00_Getdetail_InputElement().getProfile());
          wdContext.currentBapi_Catimesheetmgr_Insert_InputElement().modelObject().execute();
          wdContext.nodeOutputnew().invalidate();
    catch(WDDynamicRFCExecuteException e)
      manager.reportException(e.getMessage(), false);
    //@@end
My records are  not getting saved in R/3 tables. Can you please let me know what is going wrong here. The BAPI input parameters values are correctly getting populated in Component Controller.
I have also created error message table in View. This error message table is mapped to output of Bapi_Catimesheetmgr_Insert. This table is not getting populated.
Due to this reason, I believe that the values of input parameters of BAPI are not getting passed to R/3. However, I am not sure where the problem lies. Can you please help me in resolving the issue?
Regards,
Brian

Hi Sumit,
I am not getting any exception. Using SE37, I can save the transaction. Can you please let me know what is going wrong here.
Regards,
Sumit

Similar Messages

  • Not getting data into 3rd int table

    Hi all,
             here i ve data in 2 internal tables. this data i want store into 3rd internal table, here am adding with inner join but am not getting data into 3rd one.
    plz check my logic.
      REPORT  ZEXCHANGE_RETES                         .
    TABLES : tcurr,           " Exchange Rates
             /msg/rabr.       " Account (Posting Headers)
    DATA : l_date type datum.
    TYPES : begin of t_tcurr,
            kurst like tcurr-kurst,  " Exchange Rate type
            fcurr like tcurr-fcurr,   " From Currrency
            gdatu like tcurr-gdatu,   " Date as of which
        end of t_tcurr.
    TYPES : begin of t_rabr,
            OW_WHGNR like /msg/rabr-OW_WHGNR,
            bil_dat like /msg/rabr-bil_dat,
            abrnr like /msg/rabr-abrnr,
           end of t_rabr.
    TYPES : begin of t_output,
            kurst like tcurr-kurst,
            fcurr like tcurr-fcurr,
            gdatu like tcurr-gdatu,
            OW_WHGNR like /msg/rabr-OW_WHGNR,
            bil_dat like /msg/rabr-bil_dat,
            abrnr like /msg/rabr-abrnr,
           end of t_output.
    DATA : it_output TYPE STANDARD TABLE OF t_output WITH HEADER LINE,
            wa_output TYPE t_output.
    DATA : it_rabr TYPE STANDARD TABLE OF t_rabr WITH HEADER LINE,
            wa_rabr TYPE t_rabr.
    DATA : it_tcurr TYPE STANDARD TABLE OF t_tcurr WITH HEADER LINE,
            wa_tcurr TYPE t_tcurr.
    getting data into 1st itab
    SELECT kurst fcurr gdatu
              from tcurr into table it_tcurr
              where kurst EQ 'M'.
              SORT it_tcurr by  fcurr GDATU DESCENDING.
              delete adjacent duplicates from it_tcurr comparing fcurr.
    getting data into 2nd itab
       SELECT * FROM /msg/rabr into CORRESPONDING FIELDS OF TABLE it_rabr.
        SORT it_rabr BY OW_WHGNR bil_dat abrnr.
    getting data into 3rd itab
    SELECT t~kurst
            t~fcurr
            t~gdatu
            r~OW_WHGNR
            r~bil_dat
            r~abrnr
            FROM tcurr as t INNER JOIN
            /msg/rabr as r on tfcurr EQ rOW_WHGNR into table it_output
            WHERE rabrnr BETWEEN '00000000000000800251' AND '00000000000000800300' AND rbil_dat < wa_tcurr-gdatu.
    printing output
    LOOP at it_output into wa_output.
    WRITE: /10 wa_output-kurst,
             15 wa_output-fcurr,
             25 wa_output-gdatu,
             50 wa_output-OW_WHGNR,
             60 wa_output-bil_dat,
             80 wa_output-abrnr.
    ENDLOOP.
    here am not getting data into 3rd i tab.
      Thanks & Regards,
    sudharsan.

    Hi,
    The select command is the most fundamental function of writing ABAP programs allowing the retrieval of data from SAP database tables.
    Try filling the 3rd internal table with Loop ... Endloop.
    Loop at t_tcurr.
    Read table t_rabr with key field1 = t_tcurr-field1.
    If sy-subrc  = 0.
    Move t_tcurr-field1 = itab_final-field1.
    Move t_tcurr-field2 = itab_final-field2.
    Move  t_rabr -field3 = itab_final-field3.
    Move  t_rabr -field4 = itab_final-field4.
    Append itab_final.
    Endloop.
    Hope this helps you.
    Regards,
    Ruthra

  • Data not getting inserted into table Hxt_Add_Assign_Info_F

    Hi,
    Can any one tell me as to when data is inserted into the table Hxt_Add_Assign_Info_F.
    Lately this table has not been getting updated.
    Thanks
    Zicky

    Hi Sharath,
    Thanks alot for the info, it seems that data had not been entered for certain employees in that form and hence the problem.
    Even then, I guess it will be a day or 2 before they will be able to see their in/out timings.
    Regards
    Zicky

  • Data not getting inserted into oracle with theAutoCommitEnabled not checked

    Hello Experts
    I have a proxy to JDBC scenario.I have 3 SQL statements and the Format is
    <DeleteStatement>
    <InsertStatement>
    <CallStoredProcStatement>.
    While excecuting with the AutoCommitEnabled box checked, the insert statement is excecuting and the data is getting updated in the oracle database..But the CallStoredProcStatement is not excecuting.
    If the AutoCommitEnabled box not checked,the data is not getting updated in the database .but in RWB log all the SQL statements are getting executed successfully.
    Are there any other configurations still to be made in the JDBC adapter.

    Hi,
    Why you not using single SP to handle all the queries?
    BTW, have you used the parameter "logSQLStatement = true" in JDBC receiver channel? It will show in audit log what query is being executed.
    Regards,
    Neetesh

  • BDC-Not getting inserted  when run in 'Display errors- (E)' mode

    Hi,
    I am doing a BDC for FS00 transaction through Call transaction method. The data is getting inserted into the table when i run the BDC program screen by screen through 'Display all screens - (A)' mode and is not getting inserted into the table when i run the BDC program through 'Display errors- (E)' mode.
    What could be the reason for it?

    If you have defined a non-existing screen or field, and error will rise and the transaction will be stoped....
    When your working on 'A' mode, you need to perform an extra "Enter" button press to get rid of that problem....So you better check your Batch catalog and add some "Enter's" when need it -;)
    Greetings,
    Blag.

  • If Records of different list items are entered, then the data is not getting inserted in the table.

    Hi Everyone,
    A Very Very Happy, Fun-filled, Awesome New Year to You All.
    Now coming to the discussion of my problem in Oracle Forms 6i:
    I have created a form in which the data is entered & saved in the database.
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      CREATED_DATE  DATE,
      CREATED_BY    VARCHAR2(15 BYTE),
      PREV_YR_TDS   NUMBER(15),
      ADD_FD_AMT    NUMBER(15),
      DESCRIPTION   VARCHAR2(100 BYTE),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    The form looks like below:
    ENTER_QUERY     EXECUTE_QUERY     SAVE     CLEAR     EXIT
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    R
    W
    P
    List Item
    There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
    The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
    The user will enter the data & save it.
    So all this will get updated in the table MATURED_FD_DTL .
    I am updating one column in another table named as KEC_FDACCT_MSTR.
    and
    I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
    CREATE TABLE KEC_FDACCT_DTL
      FD_SR_NO                NUMBER(8)             NOT NULL,
      FD_DTL_SL_NO            NUMBER(5),
      ACCT_FD_NO              VARCHAR2(17 BYTE)     NOT NULL,
      FD_AMT                  NUMBER(15,2),
      INT_RATE                NUMBER(15,2),
      SAP_GLCODE              NUMBER(10),
      CATOGY_NAME             VARCHAR2(30 BYTE),
      PROCESS_YR_MON          NUMBER(6),
      INT_AMT                 NUMBER(16,2),
      QUTERLY_FD_AMT          NUMBER(16,2),
      ITAX                    NUMBER(9,2),
      MATURITY_DT             DATE,
      FDR_STAUS               VARCHAR2(2 BYTE),
      PAY_ACC_CODE            VARCHAR2(85 BYTE),
      BANK_CODE               VARCHAR2(150 BYTE),
      NET_AMOUNT_PAYABLE      NUMBER,
      QUATERLY_PAY_DT         DATE,
      CHEQUE_ON               VARCHAR2(150 BYTE),
      CHEQUE_NUMBER           VARCHAR2(10 BYTE),
      CHEQUE_DATE             DATE,
      MICR_NUMBER             VARCHAR2(10 BYTE),
      PAY_TYPE                VARCHAR2(3 BYTE),
      ADD_INT_AMT             NUMBER(16,2),
      ADD_QUTERLY_FD_AMT      NUMBER(16,2),
      ADD_ITAX                NUMBER(16,2),
      ECS_ADD_INT_AMT         NUMBER(16),
      ECS_ADD_QUTERLY_FD_AMT  NUMBER(16),
      ECS_ADD_ITAX            NUMBER(16)
    So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
    BEGIN
         Commit_form;
              UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
              UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
    IF :P_TYPE='P' THEN
         INSERT INTO KEC_FDACCT_DTL
              SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
                   GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
                   FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
                   MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
                   NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
              FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
         WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
    END IF;
    COMMIT;
         MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
         MESSAGE(' ',no_acknowledge);
    END;
    If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
    The problem what is happening is,
    If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
    If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
    Even the records with 'P' is not getting updated.
    I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
    So, can you please help me with this.
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle Forms Builder 6i.

    Its not working properly.
    At Form_level_Trigger: POST_INSERT, I have put in the following code.
    IF :P_TYPE='P'THEN
      INSERT INTO KEC_FDACCT_DTL
      SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
      GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
      FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
      MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
      NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
      FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
      WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
      END IF;
    MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
    MESSAGE(' ',no_acknowledge);
    It worked properly when i executed first time, but second time , in database duplicate values were stored.
    Example: First I entered the following in the form & saved it.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    250398
    52
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    int1
    320107
    56
    100000
    22478
    3456
    2247
    0
    45215
    R
    456
    320108
    87
    50000
    6500
    0
    650
    0
    21545
    W
    0
    In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    But second time, when i entered the following in the form & saved.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    260189
    82
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    interest567
    120011
    46
    200000
    44478
    0
    4447
    0
    45215
    R
    456
    30191
    86
    50000
    6500
    0
    650
    0
    21545
    W
    56
    In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    250398
    P
    260189
    P
    320107
    R
    320108
    W
    There was duplicate of 250398 which i dint enter in the form second time,
    All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
    I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
    How do i do this???

  • Multi-table mapping is not inserting into the primary table first.

    I have an inheritance mapping where the children are mapped to the parent table oids with the "Multi-Table Info" tab.
    One of children is not inserting properly. Its insert is attempting to insert into one of the tables from the "Additional Tables" of "Multi-Table Info" instead of the primary table that it is mapped to.
    The other children insert correctly. This child is not much different from those.
    I looked through the forums, but found nothing similiar.

    I would expect the Children to be inserted into both the primary table and the Additional Table? Is the object in question inserted into the primary table at all? Is the problem that it is being inserted into the Additional Table first? If it is, are the primary key names different? Is it a foreign key relationship?
    If the object in question has no fields in the additional table is it mapped to the additional table? (it should not be)
    Perhaps providing the deployment XML will help determine the problem,
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Data not getting inserted in R/3 System from Webdynpro

    Hi,
    We were trying to insert some data into r/3 z-table using a Custom BAPI using RFC.
    But the data is not getting inserted.
    Through I commit is being performed explicity.
    Please help:
    Below is the code :
    Controllor code :
    public void wdDoInit()
        //@@begin wdDoInit()
         try{
            Z_Bapi_Rfq_Test_Input objStatus = new Z_Bapi_Rfq_Test_Input();
            wdContext.nodeZ_bapi_rfq_test().bind(objStatus);
    //        Create a new element in node Bapi_Transaction_Commit_Input
          Bapi_Transaction_Commit_Input inputCommit =
          new Bapi_Transaction_Commit_Input();
          wdContext.nodeBAPI_TRANSACTION_COMMIT()
          .bind(inputCommit);
            //Bapi_Transaction_Commit_Input obj;
           // wdContext.nodeZ_Bapi_Quo_Salesrep_Status_Input().invalidate();
            //wdContext.nodeOutput().invalidate();
            //wdContext.nodeRfq_Status().invalidate();
              } catch(Exception rfqException){
                        wdComponentAPI.getMessageManager().reportException("rfqException="+rfqException.getMessage(),true);
        //@@end
    public void executeBapi( )
        //@@begin executeBapi()
         try{
                   Z_Bapi_Rfq_Test_Input  obj = wdContext.currentZ_bapi_rfq_testElement().modelObject();
                   AbstractList   objAbBapiPartner = new Bapiparnr.Bapiparnr_List();
                   Bapiparnr objBapiPartner = new Bapiparnr();
                   objBapiPartner.setPartn_Numb("0000001046");
                   objBapiPartner.setPartn_Role("AG");
                   //obj.addPartner(objBapiPartner);
                   objAbBapiPartner.add(objBapiPartner);
                  obj.setPartner(objAbBapiPartner);
                  Bapisdhd1 objBapisdhd1 = new Bapisdhd1();
                   objBapisdhd1.setSales_Org("2500");
                   objBapisdhd1.setDistr_Chan("30");
                   objBapisdhd1.setDivision("20");
                   objBapisdhd1.setDoc_Type("ZRFQ");
                 obj.setHeader(objBapisdhd1);
                 obj.execute();
    //             Synchronise the data in the context with the data in the model
                   wdContext.nodeZ_bapi_rfq_test().invalidate();
              wdContext.nodePartner().invalidate();
                   wdContext.nodeHeader().invalidate();
                   wdContext.nodeOutput().invalidate();
                   wdContext.nodeReturn().invalidate();
    //               Z_Bapi_Quo_Salesrep_Status_Output outPut= obj.getOutput();
    //               if(outPut!=null){
    //                    List materialList=outPut.getRfq_Status();
    //                    if(materialList!=null){
    //                      wdComponentAPI.getMessageManager().reportSuccess("materialList="+materialList.size());
              } catch(Exception rfqException){
                   wdComponentAPI.getMessageManager().reportException("rfqException="+ rfqException.toString(),true);
        //@@end
    public void executeBapi_Commit( )
        //@@begin executeBapi_Commit()
         try {
    //       Calls remote function module BAPI_Transaction_Commit
         wdContext.currentBAPI_TRANSACTION_COMMITElement().modelObject().execute();
         wdContext.nodeBAPI_TRANSACTION_COMMIT().invalidate();
         wdContext.nodeOutput1().invalidate();
         wdContext.nodeReturn().invalidate();
         wdContext.nodeReturn1().invalidate();
         } catch (WDDynamicRFCExecuteException ce) {
              wdComponentAPI.getMessageManager().reportException(ce.getMessage(), false);
        //@@end
    View Controlloer Code:
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.wdGetCControllerController().executeBapi();
         wdThis.wdGetCControllerController().executeBapi_Commit();
                 IWDApplication wedDynApplication=wdComponentAPI.getApplication();
                 IWDApplicationInfo applicationInfo=wedDynApplication.getApplicationInfo();
                 Collection collection=applicationInfo.getApplicationProperties();
        //@@end

    Hi Gareth,
    I was not getting enough time to reply, so replying late.
    Actaully the problem was with r/3 BAPI Code itself.
    There was condition in the begining of the code to check the data in the workare of R/3, so this condition was failing here.
    But when we try to invoke that bapi from r/3 workbench it works fine because the data first comes to R/3 workarea then to R/3 Tables.
    But when we insert data from Webdynpro framework , the data directly goes to R/3 Tables rather than the R/3 Workarea. So in Bapi the first condition was failing and no data was getting inserted.
    So this was the problem, and we solved it.
    Thanks,
    Regards,
    Aditya metukul

  • XSQL Insert into Schema based Table

    Hi,
    I am struggling with this one:
    My test XML is well formed:
    <?xml version="1.0"?>
    <SC_ESP>
    <ResultSet>
         <ApplicationID>App0001</ApplicationID>
         <Reason>Sucess</Reason>
    </ResultSet>
    </SC_ESP>
    Whan I try to POST this XML data via the XSQL Servlet
    I get the following error:
    "Character '$' is not allowed in a XML tag name."
    Anyone (Mark ?) know what it means ?
    Thanks
    Martin

    Hello Mark,
    I don't know which time zone you are in but thanks for the very prompt replies.
    All I am trying to with this test is provide an XML input test facility via HTTP. The users are supposed to paste the XML into a TextAre using their browser and have that data inserted into the corresponding Table(s) via the XSQL servlet.
    The XML schema have already been registered but I note from your other reply that I have not added the annotation xdb:storeVarrayAsTable="true" to the schema tags.
    It is worth noting that the whole thing works if I create a simple table that is NOT related to an XML Shema.
    You say that you have not had to use the XSQl Servlet. Would you care to say what approach you would use for the above requirement. Shall I set about writing my own Servlet to do this.

  • How to insert into two differents tables at the same time

    Hi
    I'm newer using JDev, (version 3.1.1.2 cause the OAS seems to support just the JSP 1.0)
    and I want to insert into two differents tables at the same time using one view.
    How can I do that ?
    TIA
    Edgar

    Oracle 8i supports 'INSTEAD OF' triggers on object views so you could use a process similar to the following:
    1. Create an object view that joins your two tables. 'CREATE OR REPLACE VIEW test AS SELECT d.deptno, d.deptname, e.empname FROM DEPT d, EMP E'.
    2. Create an INSTEAD OF trigger on the view.
    3. Put code in the trigger that looks at the :NEW values being processed and determines which columns should be used to INSERT or UPDATE for each table. Crude pseudo-code might be:
    IF :NEW.deptno NOT IN (SELECT deptno FROM DEPT) THEN
    INSERT INTO dept VALUES(:NEW.deptno, :NEW.deptname);
    INSERT INTO emp VALUES (:NEW.deptno, :NEW.empname);
    ELSE
    IF :NEW.deptname IS NOT NULL THEN
    UPDATE dept SET deptname = :NEW.deptname
    WHERE deptno = :NEW.deptno;
    END IF;
    IF :NEW.empname IS NOT NULL THEN
    UPDATE emp SET empname = :NEW.empname
    WHERE deptno = :NEW.deptno;
    Try something along those lines.
    null

  • SD: Condition record not getting automatically determined

    Hi,
    Condition record not getting automatically determined for a condition type for which following access is maintained.
    The access has table containing following fields:
    Sales Organisation
    Distribution Channel
    Division
    Sales Document type
    Sales Document No.
    Material no.
    Following is the scenario:
    A sales order is created  for Project Systems attach a WBS element to the line item .
    With respect to the above created sales order a Billing request ( a sales doc. type which is different than the above sales order). When the billing request is created materials appearing in the line item will be different.Different materials will appear in the billing request because of the DIP profile maintained.
    The prerequisite is that before creating billing request the sales employee has to maintain condition master record with above access.The condition record will combine sales organisation, distribution channel, division, sales document type ,
    sales document number ( the 1st refered sales order)
    and the material are different
    than the ones maintained in the 1st sales order.
    This will enable in getting billing request generated without manual intervention in pricing for other materials for which condition records have been maintained as stated above.
    Following is the error message we get
    ===================================
    " Inactive        X   Inactive via formulae of incorrect "
    Thanks
    Aby
    Message was edited by: Aby Jacob Emmanuel

    As I know, thats just a warning message(if its a std one).
    Ignore it and save.
    Check your pricing date of the document. For execution it should be similar or after valid-from date maintain in condition record.
    But, you need not create a condition record. Simply change the existing one combination of your desire. But, this warning will come there also for your combination.
    Thanks & Regards
    JP

  • User defined fields does not get added into database

    Hello Experts
                              User defined fields does not get added into database , when i click add button it
    shows data added sucessfully , but when i check data base no entry is made , only entry is made for
    B1 fields , like DocEntry ,DocNum etc.., no entry is made for U_fields..
    I have check every thing databound is also set to true
    Actually first few 6 data was added properly but now its not geeting added for user fields
    I have used 2 document row  child table for 2 matrix and for remaining Document table
    What might be the problem
    reply soon
    plz suggest

    Hello sir
    I have checked Default form , in that entry is made into database
    but running the form in screen painter in preview mode or through coding it does not get added for user field
    this id my binding code
    LoadFromXML("updateopd.srf")
                oForm = SBO_Application.Forms.Item("updopd")
                oForm.DataBrowser.BrowseBy = "txtpatid"
                'Adding combo in Obervation
                oItem = oForm.Items.Item("txtpatid")
                oEdit2 = oItem.Specific()
                oEdit2.DataBind.SetBound(True, "@UPDATE", "U_PID")
                oItem = oForm.Items.Item("txtmnane")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_FName")
                oItem = oForm.Items.Item("txtlname")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_LName")
    Plz suggest

  • Idoc not getting posted into XI

    Hello Experts,
    I am trying IDoc-XI-File senario...
    I have configured, ALE on backend system. Configured IDX1 and IDX2 in XI system.
    At sender the Idoc has been sent without any errors.
    But when I check in XI using SXMB_MONI there are no messages. Idoc is not getting posted into XI.
    Please suggest as I am struck at this point. I am using XI 7.0
    Thanks
    Suma

    Hi,
    Kindly verify the ALE steps that you have performed...
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    Step 6)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 7)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.
    SAP r3
    sm59(status check)(no message)
    WE02(status check)
    WE05(status check)
    BD87(status check)
    Xi
    IDx5(Idoc check)
    SU53(authorization check)
    Reward points if helpful...
    PrasHaNt

  • Nologging direct-path insert into an indexed table

    Hello,
    Does anyone have an idea how I can suppress generation of undo logs for direct-path insert into an indexed table on 11.2.0.1.0:
    CREATE TABLE TBL(ID NUMBER) NOLOGGING;
    CREATE INDEX IDX ON TBL(ID) NOLOGGING;
    INSERT /*+ APPEND */ INTO TBL SELECT /*+ APPEND */ ROWNUM FROM ...; -- Source table has 400,000,000+ rows
    Regards,
    Angel Tsankov

    Pl do not post duplicates - Why does Oracle not use direct-path insert when instructed to do so - pl continue the discussion in your original thread

  • How to execute a Java method when row inserted into a database table?

    I have the need to fire off a java method when a row is inserted into a database table. I am unfortunately working with MySQL which just recently supported triggers but these new triggers can not execute a Java application on any event.
    What I am looking for is an event driven approach such that when a row is inserted into a specific table I can fire off a java method (sitting in a tomcat container) that will take the contents and send it to a web service.
    It has been mentioned that JMS may have the ability to poll and monitor a database table. Just wondering if anyone could point me in the right direction.
    thanks
    JavaTek

    A service handler might be the right way to run some code at the end of a service call (another way would be to make use of filters).
    First, make sure your static table is merged with ServiceHandlers.
    Secondary, change your custom method name into one that is not already in the service definition of COLLECTION_COPY_LOT (preferably a unique method name like collectionCopyLotLastAction that describes its purpose) and remove the following line from your code:
    m_service.doCodeEx("",this);Now create a service definition for COLLECTION_COPY_LOT in your custom component based on the original COLLECTION_COPY_LOT (copy paste from the original service definition) and add you own method collectionCopyLotLastAction as the last step in the service. Play with the load order to make sure CS is using your service definition of COLLECTION_COPY_LOT instead of the original.
    regards,
    Fabian

Maybe you are looking for