Blocking a running BAPI

Hello,
I am trying to work with a scenario which goes something like this -
I have a Z-BAPI which calls an RFC on an external system. The RFC processes data sent over by the Z-BAPI and generates a link.
The next steps are tricky - the generated link shall be sent back as an export parameter to the Z-BAPI. This BAPI then starts the link in a browser and then needs to wait until the application running in the browser is complete.
The problem is that the application in the browser processes further data which needs to be written into the tables of the Z-BAPI. Only after these tables have been filled, should the custom BAPI go ahead with further processing.
The problem is that after I send the generated URL back to the custom BAPI, the BAPI thinks (naturally) that the remote RFC is done with the data processing and after opening the browser goes on ahead with further processing without waiting until the application has filled tables in the BAPI.
So, is there a way in which I can temporarily block the BAPI from processing after it has started the browser? And how do I ask the BAPI to "wake up" again after the browser application has filled up the tables?
T00th.

Hi Lakshmi,
the BAPI may lock the material master data. Please try to call the FM BAPI_TRANSACTION_COMMIT with the parameter "wait = 'X'" after each call of the BAPI.
Hope this solves the problem
Uwe
grrr, was too slow

Similar Messages

  • Error in run bapi in portal

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    <REMOVED BY MODERATOR>
    Regards
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 3:51 PM

    hi,
    thanks!
    the fm running o.k. in r.3 but when i try to run it from the portal
    with same value i have error!
    from  your experience it's portal problem or bapi problem?
    i wasted on this problem 2 days...
    Regards

  • Problems with running BAPI   BAPI_SALESORDER_CREATEFROMDAT2

    Hi all,
    I’ve got a problem running BAPIs in SD invironment.
    I’m creating contract releases in SD via BAPI.
    First I run BAPI BAPISORDER_GETDETAILEDLIST in my program to get detaildata of the contract.
    Then I run the BAPI   BAPI_SALESORDER_CREATEFROMDAT2 filled with contract reference data and in addition with order data to create the contract release.This works properly so far. On both sides in the contract and in he contract release I find the correct document flow. Means: in document flow of the contract I find all the releases created . Also I find the contract in the documentflow of the releases.
    But…something does not work: In the contract the released values are not updated. When I create a release manually, the release values are accumulated  in the contract in field  ‘value released’ under flag ‘item detail’. But this does not work, when the leases are created via BAPI. However I checked several parameters in the BAPIS but I cannot find something that leads to an update .
    Can somebody help me and can tell me what is to be done to get this field updated? Thanks in advance.
    same in German...
    Ich habe ein Problem mit BAPIs im SD.
    Ich erzeuge Abrufe zum Kontrakt im SD mittels BAPIs.
    Zuerst lasse ich den BAPI BAPISORDER_GETDETAILEDLIST laufen, um mittels Kontraktnummer alle Daten zum Kontrakt zu bekommen. Dann lasse ich den BAPI   BAPI_SALESORDER_CREATEFROMDAT2 gefüllt mit SD-Abrufdaten und den Referenzdaten des Kontraktes laufen Dies funktioniert soweit sehr gut. Sowohl im Kontrakt als auch im Abruf sind jeweils die übergeordneten bzw. untergeordneten Vertiebsbelege zu sehen. Die Referenz wird also hergestellt. Jedoch wird im Kontrakt nicht die Abrufwerte aufsummiert. Normalerweise wird bei manueller Erstellung der Abrufe im Kontrakt die jeweilgen abgerufenen Werte gegen den Kontraktwert aufsummiert (Feld abgerufene Werte im Kontrakt unter Reiter ‚Positionsdetail‘. Ich habe alle möglichen Parameter im BAPI geprüft und getestet aber nichts gefunden, was mir die abgerufenen Werten aufsummiert.
    Kann mir dazu einen Tip geben, was ich tun kann, damit auch die Werte richtig referenzieren ? Danke im Voraus.

    the usage of exactly this BAPIs in the way I described  is in according to SAP note 370988.
    BAPI_SALES_DEL_SCHEDULE_CREATE ist for SD schedule agreements and not for SD contracts and does not offer Input parameters for e.g.  adding price conditions what is needed for my task.
    The field in contract I mentioned e.g. in Transaction VA42 VA43 is filled / gets its Information out of Infostructure/table S135. The BAPI seems not be able to fill this structure while creating the contract release.
    I'm looking for example an input parameter I did not found already or any other option that leads to an update of infostructure S135 while creating/posting a release via BAPI.

  • What is the Procedure to run BAPI?

    Hi,
    May i know what is the Step by Step procedure to run BAPI?
    Regards,
    Chow

    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.sapgenie.com/abap/bapi/index.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    Reward if it is useful to you.

  • Erorr in run bapi in portal

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    Regards

    hi ricardo.............
           check for the number entries that the bapi returns when run in r3.
            make sure that it is rfc enabled.
            tell the portal consulant to check whether the bapi is being called number of times so that the internal table is getting filled again and again... tell hi to debug the coding.
    ---regards,
       alex b justin

  • Erorr in run bapi

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    Regards

    does the query too large, consuming large memory?
    This is most likely to happen when the system is being used extensively and the memory is not sufficient, or the query is very large or complex.
    - any relevant dump in ST22?
    - can simplify the bapi query definition ?
    - try execute $SYNC to clear the internal
    - can it be run in background somehow ?
    - what is the value of following parameters ?
    ztta/roll_extension =
    abap/heap_area_total
    abap/heap_area_dia =
    abap/heap_area_nondia
    em/initial_size_MB =
    - are you in 64bits or 32 bits ?
    - SAP note #649327     Analysis of memory consumption
    cheers,
    Vincent

  • Just updated from iOS 6 to 8, I find the tool bar in the iBooks too wide as it blocks the running title of my books. Anyone experienced this? Any solution?

    Just updated from iOS 6 to 8, I find the tool bar in the iBooks too wide as it blocks the running title of my books. Anyone experienced this? Any solution?

    In the last few days, it seems that my computer has all of a sudden caught a virus.
    As others have pointed out, this isn't malware. That should not be your first (or even fifty-first) thought when your Mac starts misbehaving. For more on this topic, see my Mac Malware Guide.
    I know the last ditch effort (after cleaning and maintenance of disc verification and permissions and repairs, is to reboot from the system disc.
    You mention "cleaning and maintenance." Have you been running utilities claiming to do those things? If so, you may be the victim of an overly-zealous cleaning job, which has removed important files and damaged your system.
    If I'm understanding correctly, you're unable to open any applications at all... is that right? Do you have any backups? If you don't have backups, you're in a sticky situation, as it will be difficult to make backups in your current state, but you shouldn't try any kind of repairs without them. (Actually, you shouldn't do anything with your computer without backups, but this is especially important when something is going badly wrong.)
    If you have backups, reboot from your Snow Leopard install disc. From there, first, repair the hard drive with Disk Utility. Once that is done, assuming repairs were successful, reinstall the system. You can simply reinstall it on top of your current system, and it will replace any damaged or lost system files with new copies. (You'll also need to update the system via Software Update after reinstalling.)
    If you don't have backups, or if Disk Utility can't repair damage, or if the problem continues even after a reinstall, post back with those details.

  • I am using XP-SP3 & Firfox.  When installing Flash Player Software i get a message: "This Publisher has been blocked from running software on this machine". How do i unblock it - HELP.

    I am using XP-SP3 & Firefox.  When installing Flash Player Software i get a message: "This Publisher has been blocked from running software on this machine". How do i unblock it - HELP.

    Hi,
    This is a security setting on your system that is resulting in this behaviour, not Flash Player installer itself, or anything with the installer.  There are many Google search results on this.  The first hit I got, was the following from the Microsoft forums:
    To unblock a software publisher:
    1. In Internet Explorer, click the Tools button, and then click Internet Options.
    2. Go to the Content tab, Look under the Certificates section.
    3. Click on Publishers button.
    4. Select the Untrusted Publishers tab.
    5. Select the Publisher you wish to unblock and click the Remove button.
    Maria

  • Running bapi in back ground

    hi all,
    i had to upload material master basic view, iam updating using bapi,
    i want to run this program in background. i am getting problem wen calling bapi. its not executing this bapi.
    wen i run the same program its working fine.
    could any body help me in this regard
    below is the code
    *& Report  ZTEST_BAPI_BASIC
    report  ztest_bapi_basic.
    types : begin of ty_mara,
            matnr type mara-matnr,
            mbrsh type mara-mbrsh,
            mtart type mara-mtart,
            meins type mara-meins,
            maktx type makt-maktx,
            end of ty_mara.
    data: begin of it_makt occurs 0.
            include structure bapi_makt.
    data end of it_makt.
    data:begin of it_ret occurs 0.
            include structure bapiret2.
    data end of it_ret.
    data : t_mara type standard table of ty_mara,
           st_mara type ty_mara.
    data: bapi_head like bapimathead,
          bapi_clientdata like bapi_mara,
          bapi_clientdatax like bapi_marax.
    selection-screen : begin of block b1 with frame title text-001.   "SELECTION SCREEN
    parameters: p_fnam like rlgrap-filename.
    selection-screen : end of block b1.
    at selection-screen on value-request for p_fnam.
      call function 'F4_FILENAME'                              "FUNCTION MODULE TO LOCATE THE FILE ON THE DISK
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        importing
          file_name     = p_fnam.
    start-of-selection.
      perform upload.
      perform bapi.
    *&      Form  UPLOAD
          text
    -->  p1        text
    <--  p2        text
    form upload .
      data : filename type string.
      filename = p_fnam.
      call function 'GUI_UPLOAD'
        exporting
          filename                      = filename
         filetype                      = 'ASC'
         has_field_separator           = 'X'
       HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
       HEADER                        =
        tables
          data_tab                      = t_mara
    EXCEPTIONS
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " UPLOAD
    *&      Form  BAPI
          text
    -->  p1        text
    <--  p2        text
    form bapi .
      sort t_mara by matnr.
      loop at t_mara into st_mara.
        perform conversion using st_mara-matnr changing  st_mara-matnr.
        bapi_head-material = st_mara-matnr.
        bapi_head-ind_sector = st_mara-mbrsh.
        bapi_head-matl_type = st_mara-mtart.
        bapi_head-basic_view ='X'.
        bapi_clientdata-base_uom = st_mara-meins.
        bapi_clientdatax-base_uom = 'x'.
        refresh it_makt.
        it_makt-langu = 'E'.
        it_makt-matl_desc = st_mara-maktx.
        append it_makt.
        clear it_ret.
        refresh it_ret.
        perform update_bapi  using bapi_head
                                         bapi_clientdata
                                         bapi_clientdatax .
        read table it_ret with key type = 'S'.
        if sy-subrc eq 0.
          commit work.
        else.
          call function 'BAPI_TRANSACTION_ROLLBACK'
                  IMPORTING
                    RETURN        =
        endif.
      endloop.
    endform.                    " BAPI
    *&      Form  CONVERSION
          text
         -->INPUT      text
         -->OUTPUT     text
    form conversion using input changing  output.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
        exporting
          input  = input
        importing
          output = output.
    endform.                    "conversion
    *&      Form  update_bapi
          text
         -->BAPI_HEAD         text
         -->BAPI_CLIENTDATA   text
         -->BAPI_CLIENTDATAX  text
    form update_bapi  using bapi_head bapi_clientdata  bapi_clientdatax .
      call function 'BAPI_MATERIAL_SAVEDATA' in background task as separate unit
        exporting
          headdata                   = bapi_head
         clientdata                 = bapi_clientdata
         clientdatax                = bapi_clientdatax
      FLAG_ONLINE                = ' '
      FLAG_CAD_CALL              = ' '
      NO_DEQUEUE                 = ' '
      NO_ROLLBACK_WORK           = ' '
      importing
         return                     = it_ret
       tables
         materialdescription        = it_makt
      append it_ret.
    endform.                    "update_bapi
    regards
    siva

    Hi,
    I'm a bit confused now - does the BAPI call work if you run it entirely in foreground or does it fail there too?
    You need to ensure your BAPI works correctly with the data you are passing to it - preferably in foreground so you can debug it and see what is happening.  If it throws errors there then add them to this thread.
    If it works in foreground then you probably need to schedule the job in background but as others have pointed out, you can't use the GUI_UPLOAD function to do this.
    Gareth.

  • How to do validation on multi record block at run time...

    Dear Friends,
    I have to do validation at run time on multi record block.
    If user tries to enter and save two or more records in same multi record block with same data at run time, it should not allow it and display a message like, " error : Records are having same(duplicate) values. "
    I already did validation with the data coming from database table using cursor. But confused about how to do at run time(on one screen only) ??
    Please, give details about how to check duplicate records on form block before saving it to the table ????
    Regarding details would be greatly helpful.
    thanks,

    Hi...Pankaj
    thanx for your reply..
    I already did validation for the data coming from table....
    but I need to do it on form only...at run time...
    exa...
    In one multi record block
    record no : column 1 : column 2 : column 3
    1 abc 123 hi
    2 abc 123 hi
    so it should check on the form itself, here I m not getting data from table...I am just
    navigating from first record to second using down arrow.
    so, may be 2 possibilities.
    1) when user navigates using tab to third record, it should say like two duplicate records.(may be like when validate record or item)
    2) or when user tries to save, it should say two duplicate records.
    so, everyting should take place on form screen only.....
    waiting for your reply,
    thanx...

  • Jdbc connection blocks when run from jar

    The following code establishes a connection EXCEPT when run from within a jar file:
    String jdbcDriverName = "oracle.jdbc.driver.OracleDriver";
    String dbConnectionURL = "jdbc:oracle:thin:@192.168.2.7:1521:PRISM";
    String userName = "mdo";
    String password = "mdpass";
    // Load the JDBC driver and create a connection to the database
    Class.forName( jdbcDriverName );
    OracleDataSource dataSource = new OracleDataSource();
    dataSource.setURL( dbConnectionURL );
    dataSource.setUser( userName );
    dataSource.setPassword( password );
    connection = dataSource.getConnection();
    When run from a jar file, the application does not execute beyond the line:
    connection = dataSource.getConnection();
    No exceptions are thrown, it just appears that getConnection never returns.
    Do I need to do anything different to execute this code from within a jar file?
    Thanks in advance,
    Phil
    <><

    When building the JAR file, I inadvertently included files from two Oracle JDBC driver versions (1.2 and 1.4). I was building a single jar file with all files in it.
    I am guessing same named files existed in both driver JARs and caused "confussion" when combined into the single JAR.
    Still, I would have expected an exception to be thrown or a null connection to be returned instead if the thread just blocking.
    Thanks for all replies,
    Phil
    <><

  • PLSQL BLOCK TO RUN A TYPE PROCEDURE

    I have created a type called bank_account which has many member functions and procedures to open ,close,deposit and withdraw.I have created a type body where these member functions are defined.i have created a table based on this type.
    Now my problem is that the plsql block that i have written to call the member function open gives the following error:
    method dispatch on NULL SELF argument is disallowed
    the plsql block is as given below:
    SQL> run
    1 declare
    2 amount real;
    3 a bank_account(this is the type);
    4 begin
    5 amount:=&amount;
    6 a.open(amount);
    7 dbms_output.put_line('account opened');
    8* end;
    Enter value for amount: 5
    old 5: amount:=&amount;
    new 5: amount:=5;
    declare
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at line 6
    please help me to solve my problem
    null

    I have created a type called bank_account which has many member functions and procedures to open ,close,deposit and withdraw.I have created a type body where these member functions are defined.i have created a table based on this type.
    Now my problem is that the plsql block that i have written to call the member function open gives the following error:
    method dispatch on NULL SELF argument is disallowed
    the plsql block is as given below:
    SQL> run
    1 declare
    2 amount real;
    3 a bank_account(this is the type);
    4 begin
    5 amount:=&amount;
    6 a.open(amount);
    7 dbms_output.put_line('account opened');
    8* end;
    Enter value for amount: 5
    old 5: amount:=&amount;
    new 5: amount:=5;
    declare
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at line 6
    please help me to solve my problem
    null

  • GTS Block when running SPL Address simualtion does not show blocked

    When running a GTS SPL Screening for general address, transaction /SAPSLL/SPL_CHSS3; the simulation does not show a block for Transavia; however if I change the name to Transavia Network it will block.  I need this to block on the name Transavia.  I have changed my fuzzy logic in SPRO > IMG>SAP Global Trade Service>SAP Compliance Management>Sanctioned Party List Screening Service>Define Control Procedure for Address Comparison
    In Detail Control in Keyword generated from name I have the follwoing settings:
    Comaprison Procedure SPLUS
    Search Term Origin Keyword generated from name
    Check Object is selcted
    0 Linking Operator Logical OR (at least one OR operation Satisfied)
    B Relational Operator Comparison Index and Keyword from address are identical
    In Minimial Similarity I have the follwoing settings:
    Search Term 72%
    2 Search Term Origin Basis for Comparion Parallel from Sanct Party List/Address
    Originating Feature 49%
    2 Basic Val No Terms Number of Terms in Each SP List or Partner Name
    Allow Multiple Matches for Origin is NOT check
    Edited by: Kim Blair on Jan 13, 2012 3:06 PM

    Hello Jasmit and Vishal
    Sorry it has taken me a long time to repsond and this is still an issue.  I have been bogged down with other things that has consumed my time.
    I have tried to reset the buffer but to no avail.  No we are not suing TREX.  We are currently on GTS 7.2. but soon to upgrade to GTS10...This is really a strange issue...I can do a check on the name David and it will block...that is a shorter name than Transavia....so I am really confused by this...again Transavia Network will block...same country...
    Any guidance on this is really appreciated. 

  • No records in titl block when running in application server

    hi all,
    i am facing problem when running forms in application server. the error msg whcih is coming is FRM-41092: No Records in block TITL.
    can any one help pls.....
    Regards
    Natesh

    how about - directly after querying the master record...
    go_block(<block>)
    if :blk.key (or :blk.rowid) is null then
      SET_ITEM_PROPERTY('<buttonname>',enabled, property_false);

  • Bapi For Blocked sales orders & Bapi for Releasing those orders

    Hi All,
        Can anybody help me regarding <b>Bapi</b> for getting <b>Blocked sales orders</b> and bapi for <b>releasing</b> those sales orders..
    Any help will be rewarded...
    Thanks..
    Regards,
    Srinivas.

    Use bapi:
    BAPI_SALESORDER_GETLIST to get the list of all sales orders based on Parameters
    CUSTOMER_NUMBER
    SALES_ORGANIZATION
    MATERIAL
    DOCUMENT_DATE
    DOCUMENT_DATE_TO
    PURCHASE_ORDER
    Then,
    loop at the internal table
    and use the bapi BAPI_SALESORDER_GETSTATUS to get the status of each sales order.
    choose only which are blocked.
    Regards,
    ravi

Maybe you are looking for

  • Contribute: can you open a draft saved to the desktop?

    Hi - I need some advise, please. While working on a major change to our site, the surver cutout and the only place Contribute would allow a save of the draft was to the desktop. the file saved in .php, but now that the surver is up again, Contribute

  • EPrint servers accept jobs from some email addresses and NOT others

    I have an HP Photosmart Premium C410b which works a treat apart from when I try to use ePrint. I use my own (register.com hosted) domain email address for nearly all of my email. And when I send emails to @hpeprint.com I get the following bounce back

  • Ipod Classic 160 video problem

    So, I can watch all the videos I have ON the ipod, however I can only watch on tv's using my component video cable. Neither composite mini to video/R/L cable nor ipod port to svideo/r/l cable worked. Do you have to use an hd monitor to watch video on

  • Convert query made u200Bu200Bin SQ01, SQ02 and SQ03 for a transaction set

    Hello people, how do I create a transaction for a report I did in queries with the transaction SQ01, SQ02 and SQ03? ... hugs

  • ATS load testing for E-Business Suite using IE8 issue

    Hi, I am trying to record a load testing script using Oracle Application testing SUite for E-Business Suite R12.1.3 application. When I start recording I get a pop up asking me to change/disable XSS filter in IE8. I have altready done that and restar