BAPI not commiting

I am using the BAPI, BAPI_ACC_GL_POSTING_CHECK to park a GL doc.
After using the BAPI the get the below message.
Document posted successfully: BKPFF 010000024512002008 DE2CLNT400
Structure name : BKPFF
In this Doc no is : 0100000245
Company code : 1200
Fiscal year :  2008.
Server details : DE2CLNT400
I have used BAPI_TRANSACTION_COMMIT to commint the trasaction code.
But it does not park the document (i.e) I cant see it in FBV3. But I can see the document number in tables BKPF & BSEG.
While pasiing the header details in BAPI 'BAPI_ACC_GL_POSTING_CHECK', I am leaving the fields OBJ_T, OBJ_KEY, OBJ_SYS blank.
Do I have to fill them or is there any thing I am missing.
If more information is required from my side,Please let me know, I ll provide.
Thanks in advance.
Ravindar.

Hi,
when you use BAPI and execute it, one table return the error values.
use the following logic.
CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
EXPORTING
  DOCUMENTHEADER       =
  TABLES
    accountgl            =
  CURRENCYAMOUNT       =
    return               =                      it_returm  <------ pass this.
  EXTENSION1           =
if it_return is initial.
then commit work.
endif.
this shd solve ur problem

Similar Messages

  • RFC fetching data from table which is not commited

    Hi Experts,
                   I have a query regarding commit work.Below is the RFC that i have written
    FUNCTION ZBAPI_CREATE.
    *"*"Local Interface:
    *"  TABLES
    *"      IT_ZABAP_RFC STRUCTURE  ZBAPI_RFC_STR OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
    CALL FUNCTION 'ZBO_BAPI_CREATE'
    TABLES
       IT_ZABAP_RFC       = IT_ZABAP_RFC
       RETURN             = return
    Break-point.
    DATA lt TYPE TABLE OF ZBAPI_RFC_STR_MAIN.
    CALL FUNCTION 'ZBAPI_SEARCH_RANGE'
    * EXPORTING
    *   IS_STR        =
    TABLES
       ET_TAB        = lt
    *   RETURN        =
    ENDFUNCTION.
    here in first RFC call i am creating a record in ZTABLE , and then at break-point
    i check the ZTABLE where it does not create any record because data is not commited into ZTABLE upto this point, but just after it i have written code for fetching data from ZTABLE but i am able to get this new record in lt.
    Can anybody please explain that from where this serach RFC is providing data because inside serach i am simply selecting data from ZTABLE.
    Regards,
    Abhishek Bajpai
    Edited by: ABHISHEK BAJPAI on Jan 28, 2009 1:12 PM

    Hi Thomas,
                     Thanks for reply , i checked in ZTABLE ,before search RFC call data is not there but if i commit explicitly only then it is showing data in ZTABLE. Actually my requirement is different -
    I have two RFCs 1. Create 2. Search , Now  from web dynpro user will call first Create RFCs but at this point it should not insert record in ZTABLE and just after it user will call another search RFC and in this search he should be able to get these newly created records.
    I want to have the functionality which a user gets when working with normal database front end like SQLPLus for Oracle. In these scenarios we see that whenever user does any insert or update the data sits in the table but still it is not committed. So there he fires Select query he sees the inserted data. But if he logs off from SQL PLUS and then logs in again, and fires Select query he does not see the data as it was not committed. I want a similiar functionalty in which if user inserts the data through Create RFC and fires the Select query through Search RFC then he can see the newly Created data also even though this data is not committed.
    Although if i call create RFC in update task it will not update ZTABLE but in this situation , if user will call search RFC he will not be able to get newly created records.
    So my requirement is that i should be able to get those records which are not commited in ZTABLE .If you have still any doubt regarding my question then please let me know.
    Regards,
    Abhishek

  • Why is my  CLEAR_BLOCK(no_validate) not committing to the database?

    What I need is when the alert button 1 is selected fo to the detail block(ADM) and just delete everything for the current master id. When I click on the button it deletes for a split second and all the data comes back.Quite confused..
    IF Id_Null(al_id) THEN
    Message('Alert does not exist');
    RAISE Form_Trigger_Failure;
    ELSE
    al_button := Show_Alert(al_id);
    IF al_button = ALERT_BUTTON1 THEN
         :global.cl_blk := 'Y';
         go_block('ADM');
         CLEAR_BLOCK(no_validate);
         synchronize;
         go_item('adm.dci_name');
         execute_query;
    else
              :global.cl_blk := 'N';
    GO_ITEM('AM.MAPPING_LEVEL');
    END IF;
    END IF;

    Why is my CLEAR_BLOCK(no_validate) not committing to the database?Better read the Clear_Block on-line help. I think you are mistaking the No_Validate parameter with the Do_Commit parameter.
    The No_Validate parameter "*+Form Builder flushes the current block without validating the changes, committing the changes, or prompting the end user.+*"
    With No_Validate, your changes are discarded, and NOT committed.

  • Trigger changes are not committing to the database

    I have 9iAS and 9i DB both on my laptop.
    I am having a problem in which a trigger run off a WHEN_BUTTON_PRESSED function is not committing the changes to the database. In the trigger I have:
    1 record insert into table A.
    1 record update to table B.
    1 record insert into table C.
    1 delete from table D.
    None of the data is related.
    I have tried various combinations of the below to get the changes to commit:
    POST;
    COMMIT_FORM;
    Exit_Form(NO_COMMIT, NO_ROLLBACK);
    MESSAGE('Got past COMMIT');
    COMMIT;
    CLEAR_FORM(NO_COMMIT);
    ENTER_QUERY;     
    I am getting varying amounts of "FRM: 40508 Oracle Error: Unable to INSERT record" statements. Even so, many times the form would act as if the changes had been properly applied. But when I did a separate DB verification, I would see that the changes are not being committed. Also, most of the time the changes would also be reflected in the calling form queries, but when I exit, all changes are rolled back no matter how many commit stmts are in the trigger.
    I have finally gotten the form to do what I want to do (the 4 steps noted above), but I had to add a FORMS_DDL('COMMIT'); stmt and I am still getting a FRM 40508, but at least the changes are appearing in the db.
    Any ideas on why so many troubles in getting the changes to commit??? I have spent a ton of hours trying "what ifs" to see what might work. Also, this trigger is the only real "code" in the forms.
    Kim

    Brett -
    You're probably right about the intention, but this is a place where people can come and share styles, ideas, and coding tricks, I don't understand why someone would say that. Additionally, I had a professor who was a complete momo that said that all the time (consequently, his lax attitude towards teaching crippled the IS program where I graduated and most likely will cause it to no longer be available). It's a personal peeve of mine, just to let you know where I was coming from.
    Secondly, the problem I'm having may have to do with what you said, however I can't be sure. To give a better description of my scenerio, I created a form that allows the user to load information about an employee by querying a SSN. Most of this information is for display only. Six fields are available to be updated and I wrote a DML UPDATE statement that I placed inside a WHEN-BUTTON-PRESSED trigger. However, these changes won't be written to the DB because Forms is attempting to write my entire datablock, instead of just following the specified DML statements. I'm at a loss as to why this would happen, but for simplicity's sake, I would listen to ideas of how to suppress this from happening so only my statements are used when updating the DB. If you can help, thank you, if not, then thank you for your time.
    Steve

  • Scenario File to RFC (BAPI): BAPI not executed successful

    Hi Dear Friends!
    At execution of asynchronous Scenario File to RFC (BAPI BAPI_ACC_DOCUMENT_POST)
    I have the following error in RWB Communication Channel (RFC receiver):
    - Error: 2007-07-25 11:08:25 EEST: Message processed for interface BAPI_ACC_DOCUMENT_POST:
    com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message
    to remote system:com.sap.aii.af.rfc.core.client.RfcClientBapiException:
    BAPI not executed successful
    Simultaniously <b>Test Configuration</b> was executed successfully. And mapping is good.
    But I don't any message in <b>target system</b> in <b>sxmb_moni</b> (formed by BAPI).
    In <b>XI system</b> I see in <b>sxmb_moni</b>:
    <Trace level="1" type="T">--start sender interface action determination</Trace>
      <Trace level="1" type="T">select interface mi_sender*</Trace>
      <Trace level="1" type="T">select interface namespace urn:file:to:bapi</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--start receiver interface action determination</Trace>
      <Trace level="1" type="T">Loop 0000000001</Trace>
      <Trace level="1" type="T">select interface *</Trace>
      <Trace level="1" type="T">select interface namespace</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
    Please help me understand my error.
    With the best regards,
    Natalia Maslova

    Hi, Dear Friends! Thanks for support!
    My settings of
    Connection between systems:
    DX7 01 (client 001) - XI Integration Server and DE2 13 (client 200) - target system.
    Phisically both systems are in one server: 10.20.30.24 (srv24)
    Business system DE2_200 has Communication Channel: cc_bapi_r, its settings (in Integration Builder Configuration):
    Adapter Type: RFC
    Receiver
    Transport Protocol: RFC
    Message Protocol: RFC (RFC XML)
    Adapter Engine: Integration Server
    RFC Client Parameter:
    RFC Server Type: SAP System
    Application Server: 10.20.30.24
    System Number: 13
    Authentication Mode: Use Logon Data for SAP System
    Logon User: n_maslova
    Logon Password: *******=*******
    Logon Language: EN
    Logon Client: 200
    Maximum Connections: 1
    x Advanced Mode
    x Send 'Confirm Transaction'
    x Commit Handling for Single BAPI Calls
    x BAPI Advances Mode
    Successful RETURN-TYPE Values: 0
    As I understand these settings are the settings of RFC-destination for target system DE2 13 (200) from XI (DX7 01 001).
    In SLD, Business system DE2_200 is defined as:
    Integration:
    Role: Application System
    Related Integration Server: DX7_001
    Technical System: DE2 on srv24
    Client: 200 of DE2
    Logical System Name: DE1CLNT200
    In target system DE2 13 (200) with the help of transaction sm59 I created
    RFC-destination DX7_001 of type H:
    Technical setting parameters:
    Target Host: 10.20.30.24
    Prefix Path: /sap/xi/engine/?type=entry
    Service Number: 8001
    Registration and Safe:
    SSL: Non active.
    SSL: client certificate: DFAULT SSL-client
    Enter to system:
    Language: EN
    Client: 001
    User: PIAPPLUSER
    Status PW: saved
    Password: ********
    After that in this system DE2 13 (200) with the help of transaction sxmb_adm I set in Integration Engine -> Configuration -> Configurate Integration Engine
    (Change Global Configuration Data):
    Role of Business System: Application System
    Related Integr. Server: dest://DX7_001
    Best regards,
    Natalia

  • Records Not Commiting - PLSQL Block

    Hi,
    Good Day to all..
    DECLARE
      v_annotation_id_1   VARCHAR2(200):='101';
      v_annotation_type_1 VARCHAR2(200):='OMG';
      v_j                 NUMBER;
      v_user_id_string    VARCHAR2(200);
      v_user_id           NUMBER;
    BEGIN
      FOR v_j IN 1..2
      LOOP
        SELECT MAX(TRUNC(NVL(user_id,0)))
        INTO v_user_id_string
        FROM TABLE_XXX;
        v_user_id:= to_number(trim(v_user_id_string))+1;
        dbms_output.put_line('v_user_id_string-->'||v_user_id_string);
        dbms_output.put_line('v_user_id-->'||v_user_id);
        INSERT
        INTO TABLE_XXX
            TTT_annotation_id,
            user_id,
            digital_package_id,
            annotation_id,
            time_code,
            annotation_type,
            created_date,
            created_by
          VALUES
            seq_TTT_annotation_id.nextval,
            v_user_id,
            1004,
            v_annotation_id_1,
            100,
            v_annotation_type_1,
            sysdate,
            'TTTService'
           dbms_output.put_line('v_user_id 1 -->'||v_user_id);
        INSERT
        INTO TABLE_XXX
            TTT_annotation_id,
            user_id,
            digital_package_id,
            annotation_id,
            time_code,
            annotation_type,
            created_date,
            created_by
          VALUES
            seq_TTT_annotation_id.nextval,
            v_user_id,
            1004,
            v_annotation_id_1,
            100,
            v_annotation_type_1,
            sysdate,
            'TTTService'
          dbms_output.put_line('v_user_id 2 -->'||v_user_id);
         COMMIT;
         DBMS_OUTPUT.PUT_LINE('SQL%ROWCOUNT -->'||SQL%ROWCOUNT);
      END LOOP;
      COMMIT;
    END;
    Sample Output
    v_user_id_string-->100002828932367
    v_user_id-->100002828932368
    v_user_id 1 -->100002828932368
    v_user_id 2 -->100002828932368
    SQL%ROWCOUNT -->0
    v_user_id_string-->100002828932368
    v_user_id-->100002828932369
    v_user_id 1 -->100002828932369
    v_user_id 2 -->100002828932369
    SQL%ROWCOUNT -->0
    TABLE_XXX --> Primary Key - TTT_annotation_id NOT NULL Datatype: NUMBER
    Data is not getting committed; when i checked the SQL%ROWCOUNT it shows "0".
    I have no idea why it is not commiting the data.
    All the sessions are either COMMITTED or ROLLBACK.
    Thanks for reply....

    You are over committing.
    SQL> create table t (n number);
    Table created.
    SQL> set serverout on
    SQL> begin
      2    insert into t values (1);
      3    dbms_output.put_line ('Rows inserted: '|| sql%rowcount);
      4  end;
      5  /
    Rows inserted: 1
    PL/SQL procedure successfully completed.
    SQL> edi
    Wrote file afiedt.buf
      1  begin
      2    insert into t values (1);
      3    commit;
      4    dbms_output.put_line ('Rows inserted: '|| sql%rowcount);
      5* end;
    SQL> /
    Rows inserted: 0
    PL/SQL procedure successfully completed.Commit ends the current transaction and will result in subsequent sql%rowcount being zero.

  • Delete operation not commited

    Hello,
    I have a Delete operation which is never commited. When I click on delete button, the view object's row is deleted. But when I click on Commit button (which is the Commit operation of the Root Application Module), the delete operation is not commited. Debugging, I see that doDML method is not called.
    Any idea on what happens?

    Yes the View is editable.
    I can't create a fresh page to test this, but I can test directly debugging the application module. And I have the same problem. If I update or create a row, I can commit. But if I delete a row, the Commit button is not enabled.
    With "Commit Button from Application Module Data Controls > Operations > Commit/Rollback", did you mean to execute Commit operation from bindings? If yes, it's same problem.
    Maybe it is because of some hacks I have done in VOImpl classes. I will see if I can test this without my hacks.

  • BAPI not extracting orders with category BD and BC

    Hi ,
    i  tried following BAPI to extract orders category datas from live cache.
    BAPI_POSRVAPS_GETLIST2
    BAPI_POSRVAPS_GETLIST3
    But both the BAPIs  not extracting orders with ATP category BD , BC .
    Any one faced this issue? Or  do i missing anything.
    Is there any other BAPI or functional module available  to extract this??

    Hi rajesht ,
    On which version are you working on?; check that the order is on the validity of the planning version. Once I get this behavior, I re-transported the data source and replicate data sources; after that I could see the information; nevertheless, there are on OSS some notes could apply (depending on your version).
    Best regards,
    Gustavo Pérez

  • UnitOfWork is not committing in JBOSS

    Hi All,
         I'm using Toplink in Jboss 4.0.5 and getting the JDBC connection as:
    uow = session.acquireUnitOfWork();
    DatabaseLogin login = session.getLogin();
    conn = (java.sql.Connection)login.connectToDatasource(null);
    After performing the transactions its not commiting to the database, instead it gets committed as soon as I stop Jboss server.
    Please help me to fix this issue..
    Thanks

    You should first make sure your session.login is completed before starting to use the session. I am unsure why you are accessing the connection. The connection returned will not necessarily be the one used by TopLink. You should just use the UnitOfWork and then rely on TopLink to properly access the configured data source during the transactional write.
    The real issues surrounding TopLink's UnitOfWork and integration with the container is the type of transaction control and the type of data source being used.
    JTA: Ensure you have a managed data source where the container controls the transactions. Then ensure you configure TopLink to use external transaction control. The UnitOfwork will be registered with the active JTA transaction and will write its SQL during the JTA call-backs and not on UnitOfWork.commit()
    RESOURCE_LOCAL (JDBC): Ensure the data source is not managed (i.e. no JTA). Here the UnitfWork.commit() will cause Toplink to begin the transaction and write your changes.
    Doug

  • Transaction not committed

    Hi
    how can i find transaction not committed? I cannot find in v$lock, but i want find first transaction, which is not committed and block others.
    Any ideas?
    Thanks

    Use v$transaction view to check uncomiited transactions.
    See here it's already discussed:
    Re: How to query uncommited transactions
    Locked objects can find with this select:
    select
    c.owner,
    c.object_name,
    c.object_type,
    b.sid,
    b.serial#,
    b.status,
    b.osuser,
    b.machine
    from
    v$locked_object a ,
    v$session b,
    dba_objects c
    where
    b.sid = a.session_id
    and
    a.object_id = c.object_id;

  • Sales order change BAPI not updating items Profit center

    Dear ,
    I am facing the problem in using the BAPI for Item 's profit centre  in blank space.
    I write down the below code <but it's not at all updating the profite centre .
    please ccorrect the code if any required'
    TYPES: BEGIN OF file_data ,
           vbeln TYPE vbap-vbeln, " order numner
           posnr TYPE vbap-posnr, " orderitem
           profit_ctr TYPE vbap-prctr, " [profite centre
          END OF file_data.
    DATA: t_data TYPE STANDARD TABLE OF file_data .
    DATA : wa_data LIKE LINE OF t_data.
    DATA: t_data_item TYPE STANDARD TABLE OF file_data .
    DATA : wa_data_item LIKE LINE OF   t_data_item.
    **DATA: t_data_item TYPE file_data OCCURS 0.
    *DATA: return TYPE STANDARD TABLE OF bapiret2.
    *DATA: wa_return LIKE LINE OF return.
    DATA: wait LIKE bapita-wait VALUE 'X'.
    DATA: s_order_header_in LIKE bapisdh1.
    DATA: s_order_header_inx LIKE bapisdh1x.
    DATA: BEGIN OF i_order_item_in OCCURS 0.
            INCLUDE STRUCTURE bapisditm.
    DATA: END OF i_order_item_in.
    DATA: BEGIN OF i_order_item_inx OCCURS 0.
            INCLUDE STRUCTURE bapisditmx.
    DATA: END OF i_order_item_inx.
    DATA: BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_return.
    ***********************selection
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS : file LIKE rlgrap-filename OBLIGATORY.
    "ctu_mode  TYPE ctu_mode  DEFAULT 'N'.
    SELECTION-SCREEN END OF BLOCK b1.
    *********assign file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
      CLEAR file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = file
        EXCEPTIONS
          OTHERS    = 1.
      DATA:  it_text TYPE truxs_t_text_data .
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_field_seperator    = 'X'
          i_line_header        = 'X'
          i_tab_raw_data       = it_text
          i_filename           = file
        TABLES
          i_tab_converted_data = t_data[] " Your internal table of structure of Excel sheet
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      t_data_item[] =  t_data[].
      DELETE ADJACENT DUPLICATES FROM t_data COMPARING vbeln.
    Header update indicator
      s_order_header_inx-updateflag = 'U'.
    Line items
      REFRESH: i_order_item_in, i_order_item_inx.
      LOOP AT t_data INTO wa_data.
        LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
          i_order_item_in-itm_number = wa_data_item-posnr.
          i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
          i_order_item_inx-itm_number = wa_data_item-posnr.
          i_order_item_inx-updateflag = 'U'.
          i_order_item_inx-profit_ctr = 'X'.
          APPEND: i_order_item_in, i_order_item_inx.
        ENDLOOP.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = wa_data-vbeln
          IMPORTING
            output = wa_data-vbeln.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            salesdocument     = wa_data-vbeln
            order_header_in   = s_order_header_in
            order_header_inx  = s_order_header_inx
            behave_when_error = 'P'
          TABLES
            return            = it_return
            order_item_in     = i_order_item_in
            order_item_inx    = i_order_item_inx.

    i already used same But it's not working
    s_order_header_inx-updateflag = 'U'.
    Line items
      REFRESH: i_order_item_in, i_order_item_inx.
      LOOP AT t_data INTO wa_data.
        LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
    BAPISDITM
          i_order_item_in-itm_number = wa_data_item-posnr.
          i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
    BAPISDITMX
          i_order_item_inx-itm_number = wa_data_item-posnr.
          i_order_item_inx-updateflag = 'U'.
          i_order_item_inx-profit_ctr = 'X'.
          APPEND: i_order_item_in, i_order_item_inx.
        ENDLOOP.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = wa_data-vbeln
          IMPORTING
            output = wa_data-vbeln.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            salesdocument     = wa_data-vbeln
            order_header_in   = s_order_header_in
            order_header_inx  = s_order_header_inx
            behave_when_error = 'P'
          TABLES
            return            = it_return
            order_item_in     = i_order_item_in
            order_item_inx    = i_order_item_inx.

  • Why is creation of a service notification using BAPI not working?

    I need to create a service notification.
    I have found 2 BAPIs.
    BAPI_SERVICENOTIFICAT_CREATE
    BAPI_SERVNOT_CREATE
    The code below using the second BAPI is not creating a notification and the return parm does not have any errors.
    You can see it does a call to commit after the BAPI call
    Perhaps I am missing something critical in the parms.
    We are trying to creat a service type notification using equipment.
    DATA ls_notif_h TYPE bapi2080_nothdri.
    data ls_notif_e type BAPI2080_NOTHDRE.
    DATA lt_return  TYPE STANDARD TABLE OF bapiret2.
    DATA ls_return  LIKE LINE OF lt_return.
    ls_notif_h-equipment = '10000044'.
    CALL FUNCTION 'BAPI_SERVNOT_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
        notif_type               = 'S3'
        notifheader              = ls_notif_h
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
        NOTIFHEADER_EXPORT       = ls_notif_e
    TABLES
      NOTITEM                  =
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
      LONGTEXTS                =
      KEY_RELATIONSHIPS        =
        return                   = lt_return
    IF lt_return IS INITIAL.
      COMMIT WORK AND WAIT.
      write: / ls_notif_e-NOTIF_NO.
    ELSE.
      LOOP AT lt_return INTO   ls_return.
        WRITE:/ 'errors'.
       ls_return.
      ENDLOOP.
    Thanks.
    Scott

    Try this way
    CALL FUNCTION 'BAPI_SERVNOT_CREATE'
    EXPORTING
    * EXTERNAL_NUMBER =
    notif_type = 'S3'
    notifheader = ls_notif_h
    * TASK_DETERMINATION = ' '
    * SENDER =
    * ORDERID =
    IMPORTING
    NOTIFHEADER_EXPORT = ls_notif_e
    TABLES
    * NOTITEM =
    * NOTIFCAUS =
    * NOTIFACTV =
    * NOTIFTASK =
    * NOTIFPARTNR =
    * LONGTEXTS =
    * KEY_RELATIONSHIPS =
    return = lt_return
    * IF lt_return IS INITIAL.                                               " <<< Comment this lie
    read table  lt_return into ls_return with key type = 'E'. " << Change
    if sy-subrc ne 0.                                                             " << Change
    COMMIT WORK AND WAIT.
    write: / ls_notif_e-NOTIF_NO.
    ELSE.
    LOOP AT lt_return INTO ls_return.
    WRITE:/ 'errors'.
    * ls_return.
    ENDLOOP.
    endif.

  • BAPI not able to connect with Livecache

    Hello All,
       I am using "BAPI_PIRSRVAPS_GETLIST" .
       But not get pegging detail. When I debug it is not able to connect with livecache.
       How to use BAPI FM in Program, How to connect with livecache ?
       Anybody has sample ABAP program for this ?
    Thanks in Advance
    Amisha

    Hi All,
    When I try to use BAPI <b>BAPI_PIRSRVAPS_GETLIST</b> I am not getting pegging information, please help me.
    Thanks,
    Srinivasa.

  • Cost center not committed on shopping cart,  for account assign cat "Asset"

    Hello,
    We are implementing extended classic scenario in SRM 5.0 with ECC 6.0 backend.
    While creating a shopping cart in SRM, in the cost assignment tab when we select an account assignment category as “Asset", and then try to enter a value in the cost center in the basic details of cost assignment, it is not getting committed to shopping cart screen. The cost center field value is lost when we move to the next screen for ordering the shopping cart. For the asset related purchases, we are using main account assignment category as "asset" and it also requires cost center, because while the asset master record is being created in R/3 for these items,it requires the cost center. We also using internal order. So for the account assignment category "Asset", the other account assignment fields that can be entered are cost center, internal order and one custom field called "project code".
    We have created this user-defined field in the cost assignment tab in the shopping cart, purchase order and confirmation documents in SRM in accordance with the OSS note 672960. We have implemented BBP_CUF_BADI_2 & BBP_DOC_CHANGE_BADI, BBP_DOC_CHECK_BADI for the shopping cart object.
    Can someone please help me with this issue?
    Thanks,
    Krupa

    thanks Ramakrishna and Yann for your prompt reply..
    Ramakrisha,
      I know that for assets, SC requires asset number and G/L is automatically derived from the corresponding asset class from the backend. In our case, we are putting dummy asset number in shopping cart and this asset number exists in R/3. But we are not generating asset creation during shopping cart creation but we are doing it during the PO creation in doc change badi. During this asset generation you also need cost center on the asset record. So we have added cost center field for Asset account assignment category and I can see it in the details of account assignment. But when I enter this cost center on shopping cart, it doesnot get committed, it disappears when I order the shopping cart.
    Does anybody have any clue why this might be happening?
    Thanks,
    Krupa

  • BAPI not working in Java Webdynpro

    Hi,
    My BAPI from SAP is working in Netweaver perfectly, but when I call the same with the equal parameters in Java webdynpro, no results.
    I'm using following function: 'CVAPI_DOC_VIEW'.
    Any idea why the BAPI is not working in Java Webdynpro?
    Regards,
    Tim

    Hi Tim,
    AFAIK 'CVAPI_DOC_VIEW'  will work only in standard SAP Dynpro. Inside Webdynpro it is forbidden to save files in the background and using GUI class with execute, so you cannot use that Standard FM.
    Check this thread .
    Thanks
    Katrice

Maybe you are looking for

  • Having trouble with multiple lines of text in a JTable

    Hello, I am trying to use a JTable rather like a table in Word so that as I type text into a cell that row of cells grows in height to accomodate the text typed. I used custom cell editors and renderers to put a JTextField (I think it was) into each

  • Airport Base Station update has disconnected my internet

    i recently updated my airport, during the installation i pressed change all to key chains, it said my internet might be temporarily unavailable however it never came back. I can no longer connect to the airport base station, or connect to my original

  • ABAP report for caluculating the average days between invoice day  &posting

    Hi All, i have a requirement where in  i should create a report for caluculating average days between the invoice days and posting days.  By counting the total day in a month for which invoice were generated and counting the days on which payements w

  • Error implementing dynamic callback from BPEL process

    Hi, I am trying to use dynamic callback from a BPEL process.. Created a variable of type EndpointReference by importing the ws-addressing.xsd. in the partnerlink wsdl.. I assigned the URL to the variable's address field ... <copy> <from expression="'

  • Panasonic HDC 900 series

    HI I am thinking of purchasing a Panasonic SD900, and will store and edit the movies on my imac. A couple of questions, for the collective brain of this forum, if I may: - I believe FCE will handle the AVCHD files much better than other applications


HashFlare