Create WS from BAPI with Commit

Hi,
We tried to create a WebService that uses a BAPI to post an Account and after a successfull post do the commit to store the data permanently in the system.
The service itself is no problem, but we found no option to set the transaction values for commit or anything else.
In the TX SOAMANAGER these values are displayed for a service, but there were no possibilities to change them. The BAPI itself does not contain the commit...
Any ideas where to find this config? Is there a solution without using PI and creating a proxy for the BAPI?
Thanks in advance,
Felix

Hello,
Looking at
Web Services-Based Connectivity
I saw:
Can you realize "transactional" behavior with Web services, that is, combine several RFC calls?
Yes. To include several RFCs (and BAPI_TRANSACTION_COMMIT) in one Web service, use the WS Creation Wizard and select Function Group as the WS endpoint. When creating the service definition and choose (or add if not already included) the RFCs you want to use. Also, manually add BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK. Finish creating the Web service. Finally, set the Web service communication to Stateful in the Web service definition.
Would it work? Can anybody explain me how to achieve this, if possible? I can't believe it's so easy because I posted a similar question and I got the wrapper answer from people that seemed to know their business.
Thanks in advance,
jmiturbe

Similar Messages

  • Create ZBAPI FROM BAPi

    Hi
    Can u pls tell me How to create a ZBAPI from a STD BAPI with example?
    Ur answer will be rewarded.
    Regards
    chand

    Let me say one example :
    In my system sales order ( VA01,VA02,VA03) ,we have custom fields and it is available in Additional data B Screen.
    We created append structure to VBAK,
    So we want to update custom fields regularly using batch job from other syste.
    as we have Standard FM for Sales order - BAPI_SALESORDER_CREATEFROMDAT and when we use this FM ,this will not update custom fields.
    we created new function module -> this fm calls BAPI_SALESORDER_CREATEFROMDAT and here we written logic to update custom fields using  EXTENSIONIN structure
    Thanks
    Seshu

  • Create Cursor from File with big mouse cursor

    Hi All,
    I'd like to change the mouse cursor to a picture (.cur file) and back to normal again.
    With the LabView vi "Create Cursor from File" and "set cursor" VIs it works, but the cursor is limited to 16x16 pixels (it will be shrinked if I load a biger .cur file).
    Alternatively I tried to use the windows api to set the cursor (according to the example in Thread ) .
    Setting the cursor to a biger size works now, but I'm not able to set the cursor back to normal again.
    It seems to me, that the labview behaviour is overuled by the windows api.
    Soes somebody know how to store the current cursor behaviour and reset it after I changed the cursor?
    thank you
    Mario Hirth
    Attachments:
    set_cursor_demo_8.2.vi ‏28 KB

    Hi Mario,
    I attached you an example which worked the way you want, I guess. It's saved with LabVIEW 8.6. Copy the coursor file cross_i.cur to a location you want and change the path to that location or copy it to C: and leave the path in the path control.
    Regards.
    TomBaum
    Attachments:
    example.zip ‏15 KB

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • Creating template from assembly with whitespace in image name doesn't work

    Does there exist a Bug Tracker?
    Given is the following:
    A test .ova describing a simple VM.
    1. this .ova is imported as assembly and successfully unpacked.
    2. we have unpacked following files:
    - "test vm-disk1.vmdk" (notice the whitespace in filename!)
    - "test vm.ovf"
    3. assembly is shown in web gui
    4. create template from this assembly
    5. webgui shows progress but the process will never stop. vbox-img is using 100% cpu time, and no .img in VirtualDisk directory is created.
    Workaround:
    Avoid whitespace in .vmdk filenames and reference them correctly in .ovf.
    This is OVM 3.0.3 with latest patches.

    913518 wrote:
    5. webgui shows progress but the process will never stop. vbox-img is using 100% cpu time, and no .img in VirtualDisk directory is created.Please open an SR for this so that a bug can be logged.

  • Create PDF from scanner with Acrobat 11.0.6

    Ever since Acrobat updated to 11.0.6 the create pdf from scanner option will not complete. I am running OS X 10.9.1 on a Macbook Air as well as a Macbook Pro. The Macbook Air updated to Acrobat version 11.0.6 sometime last week and that's when it stopped working. The Macbook Pro updated just this morning and stopped working as well.
    I click on File > Create > PDF from scanner, which then brings up the Acrobat Scan window. HPScan shows up as the default scanner and click the scan button leaving the usual default options unchanged. The HP Scan window then pops up and I click scan. The document scans and appears in the HP Scan window; so far so good. It will ask me if I want to scan other pages, to which I click no. I then click the return button as usual. Normally this would then return me to back to Acrobat, but this is not happening. It just hangs there at the HP Scan window. This started happening when Acrobat updated to 11.0.6. If I go into the Acrobat preferences and change the Scan driver option under Conver to PDF from Twain to ImageCapture it works. It used to work with the TWAIN option.
    Any ideas?

    Hi,
    We are investigating this issue and will get back to you once we have any updates.
    Thanks
    Varinder

  • Creating PDF from Scanner with Brother MFC9700

    Adobe Acrobat 9 Professional, latest version 9.1.2 (patched in the process of troubleshooting). We recently installed a new computer for this end user. She complained that Acrobat kept scanning the same page over and over again and only quit when clicking on Cancel. I tried it from both the auto-feeder and from the glass. Here is what I discovered as I did troubleshooting: I get 2 ways of creating PDFs from this multifunction printer/scanner. Neither are acceptable. If I choose the options of Native Mode and have it hide the native interface, the quality is good, but it keeps scanning the same page over and over again until you tell it to cancel. Checking the Prompt for new page box did nothing. If I choose Native Mode and Display the Native Interface, it only scans once, but the output is very pixellated, no matter the setting of image quality. There is only one scanner type option, WIA.
    I downloaded the newest drivers and software, no help. Anyone have a clue as to what to try next?

    Use the software that came with the scanner, save as TIF, then use Acrobat to convert the TIF to PDF

  • How to create PDF from Excel with Password Protection Using Visual Studio & Visual Basic

    Could someone provide some VB code sample(s) to create a PDF file with password protection (Security Method - Password Security - Restrict Editing & Printing)?
    I create a bunch of reports every week using an Excel 2010 addin that subsequently must be printed to PDF.  I then have to manually edit the properties of each document in order to apply the printing restriction.
    I'm using Acrobat X.
    I've downloaded the SDK but have no idea which dll's to use or where to begin.
    Thanks!
    Ross

    That's surprising & disappointing.  I would have thought that this capability would have long since been requested.
    Thanks for the heads up.

  • Create a Custom BAPI with inputs as Decimal values

    Hello Experts,
    I am new to BAPI creation, my requirment has two decimal inputs(as import parameters) and out output can be a simple add of these two numbers.
    Decimal Input has 9 characters with 7 decimals Ex: 10.0000000. How to create a structure or data type and use the same back in my BAPI.
    What is the ABAP code that, I should write to add these two inputs and export them.
    Please help ASAP, I am in a critcal position.
    Thanks,
    Suma

    Hello Suma,
    This error is caused because you are trying to use a data type rather a data element, it better if you follow the below process
    Start with creating a Structure with ZBAPI name, from SE11
    give a component name with Z and component type with Z and then double click on new component type and this will ask what to generate click on dataelement and enter discription then enter a Z new name in the Domain and double click on it, click on data type and enter DEC, no char 9 and decimal 7 then save activate, clikc on back save activate and again click on back and save activate now your sturcture will be saved. Follow the proces if have new data type or else the same for your next entres.
    For your Req....
    take component ZINPUT1 compenent type ZINPUT with domain as ZZINPUT...
    use the sam for ZINPUT2 and ZOUTPUT and then save activate. Now the structure is created.
    SE37 create new BAPI, In import parameters take parameters as T_INPUT1 and T_INPUT2 with ZBAPI_SUM-ZINPUT1 and ZBAPI_SUM-ZINPUT2.Then in export  if you wnat inputs also in there just give some export names and give the assoated type as what you have used in import, also add OUTPUT and RETURN with ZBAPI_SUM-ZOUTPUT and BAPIRETURN.Now write the source code as follows
    FUNCTION ZBAPI_TESTDEC1.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(T_INPUT1) TYPE  ZBAPI_SUM-ZINPUT OPTIONAL
    *"     VALUE(T_INPUT2) TYPE  ZBAPI_SUM-ZINPUT1 OPTIONAL
    *"  EXPORTING
    *"     VALUE(INPUT1) TYPE  ZBAPI_SUM-ZINPUT
    *"     VALUE(INPUT2) TYPE  ZBAPI_SUM-ZINPUT1
    *"     VALUE(OUTPUT) TYPE  ZBAPI_SUM-ZOUTPUT
    *"     VALUE(RETURN) TYPE  BAPIRETURN
    INPUT1 = T_INPUT1.
    INPUT2 = T_INPUT2.
    OUTPUT = T_INPUT1 + T_INPUT2.
    ENDFUNCTION.
    Now save it and then activate and then clikc on tables tab then functional module on main menu and then relase.
    Go to T-code SWO1 create new Obj with ZBAPI name and then clikc create enter Obj name,Name,Des,Program,and Application has to be * then enter.
    Click on methods,Utilites, API Methods, Add method, Select BAPI Name then contine for 3 times then click BAPI Added in the methods then on edit change relase status- object type To modeled, To impimented and To relased at 3 diff times then follow the same for Object Type component.
    Now click on red and white round button which is similar to BMW symbol. This will generate the BAPI and now you see it in BAPI T-Code.
    Hope this helps you ...
    Reward if helpfull....
    Thanks,
    Srikanth

  • Create Rebate from bapi

    Hi,
    I have a requirement like this.
    Rebate agreement is created in CRM and need to send that agreement to r/3.
    I am wondering whether we have a BAPI to send the agreement data to r/3.
    we have a problem with bdocs config so seeing for a short term solution.
    Please help me how to solve this issue.
    Thanks
    Ashok

    Hi Paolo,
    this bug is due to a misconfiguration of the endpoint.
    This is fixed already starting from SP10 and would strongly advise you to upgrade to SP11 to be able to use the numerous performance improvements and other improvements that were done!
    Hope this helps!
    Best regards,
    David

  • Returning newly created IDs from View with Instead Of

    Hi All,
    I have the following table:
    CREATE TABLE TBLSIM_SUPPLIER_H
        "SS_ID" NUMBER(10,0) NOT NULL ENABLE,
        "SS_GUID" NVARCHAR2(36) NOT NULL ENABLE,
        "SS_NAME" NVARCHAR2(50) NOT NULL ENABLE,
        "SS_H_IS_ACTIVE" NUMBER(1,0) DEFAULT 1 NOT NULL ENABLE,
        "SS_H_RE_ID"     NUMBER(10,0) NOT NULL ENABLE,
        "SS_H_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE,
        "SS_H_MASTER_ID" NUMBER(10,0),
        CONSTRAINT "TBLSIM_SUPPLIER_PK" PRIMARY KEY ("SS_ID") ENABLE,
        CONSTRAINT "TBLSIM_SUPPLIER_FK_M_ID" FOREIGN KEY ("SS_H_MASTER_ID") REFERENCES "TBLSIM_SUPPLIER_H" ("SS_ID") ENABLE
      )on which is enabled this trigger
    CREATE OR REPLACE TRIGGER TBLSIM_SUPPLIER_H_TRG BEFORE
      INSERT ON TBLSIM_SUPPLIER_H FOR EACH ROW BEGIN <<COLUMN_SEQUENCES>> BEGIN IF :NEW.SS_ID IS NULL THEN
      SELECT TBLSIM_SUPPLIER_H_SEQ.NEXTVAL INTO :NEW.SS_ID FROM DUAL;
    END IF;
    IF :NEW.SS_GUID IS NULL THEN
      :NEW.SS_GUID  := UTILITYPKG.formatted_guid;
    END IF;
    END COLUMN_SEQUENCES;
    END;UTILITYPKG.formatted_guid returns a standard 36chr GUID
    I then created a view
    CREATE OR REPLACE FORCE VIEW TBLSIM_SUPPLIER
    AS
      SELECT SS_ID,
        SS_GUID,
        SS_NAME,
        SS_H_IS_ACTIVE,
        SS_H_RE_ID,
        SS_H_DATE
      FROM TBLSIM_SUPPLIER_H
      WHERE (ss_h_is_active = 1);on which I enabled the trigger
    CREATE OR REPLACE TRIGGER TBLSIM_SUPPLIER_INS INSTEAD OF
      INSERT ON TBLSIM_SUPPLIER FOR EACH ROW
        BEGIN
      INSERT INTO TBLSIM_SUPPLIER_H (ss_name, ss_h_is_active, ss_h_re_id, ss_h_date)
        VALUES (:NEW.ss_name, 1, :NEW.ss_h_re_id, SYSDATE);
    END TBLSIM_SUPPLIER_INS;I then have a stored Procedure
    PROCEDURE SimSupplier_Create(
          cur_tblresource_id_in IN tblresource.re_id%TYPE
        , ss_name_in IN tblsim_supplier.ss_name%TYPE
        , ss_id_out OUT tblsim_supplier.ss_id%TYPE
        , ss_guid_out OUT tblsim_supplier.ss_guid%TYPE
      ) AS
      BEGIN
        INSERT INTO tblsim_supplier (
          , ss_name
          , ss_h_re_id
        VALUES ( 
          , ss_name_in
          , cur_tblresource_id_in
       RETURNING ss_id, ss_guid INTO ss_id_out, ss_guid_out;
      END SimSupplier_Create; What happens is that the RETURNING clause is not available.
    Any way of getting the ID & GUID of the just inserted record out of the prcedure?
    Thanks
    Andrea

    Why do you need this instead of trigger? Can't you simply insert into the view? Maybe enable WITH CHECK OPTION to prevent wrong values beeing entered via the view. Or simply insert into the table and not the view. As long as it is done in the procedure, you are safe that there is no priviledge confict.
    Edited by: Sven W. on Oct 17, 2012 5:38 PM

  • Acrobat X Pro - create PDF from Excel with no margins...ARGH!

    Hello all,
    Does anyone know if it's possible to create a PDF from a selection of Excel cells without a margin appearing on the PDF file? Even if I set the print margins (print to Adobe PDF) to zero, Acrobat still puts in margins in the PDF. The background of the Excel file is black (as specified by my manager), and he wants black all the way to the edges of the PDF page.
    I have to submit this weekly, and as it's several pages long I don't want to be faffing about with the crop tool each Monday morning (it already takes long enough to source the data). The current solution I have been given is to create a template in Powerpoint (HATE) and link the cells/graphs, but and paste any text boxes, and then convert from Powerpoint to PDF, as no margins are imposed this way.I know cropping would be quicker than this, but surely in this day and age it's easily possible and there's just some simple option I'm just missing?
    Regards,
    George

    I have the same setup with Win 7 and Office 2010 and have created thousands of PDF from Excel sheets, but never noticed this particular issue.  Regardless, rather than fight an issue like this where no specific documentation exists, I usually resort to other options in the interest of not getting bogged down in a maddening search for answers. 
    Go ahead and convert to PDF so that your links are retained, etc.  Open the resulting file in Acrobat, and use the crop tool to remove the blank margins that are at issue, either maintaining proportionality or not, depending on your needs, making sure to set the cropping tool to apply the scheme to all pages.  I'm assuming that all pages are formatted the same, such that this strategy will work.  Then, apply the cropping, and sanitize the file to remove the cropping data.  At this point, your blank margins should be completely gone, and the file can be scaled for printing if that is your objective, but that will obviously introduce some white margins again at the printer.
    The only other option I'm aware of to address this from the PDF side is via a third-party plug-in from Evermap called AutoPagex.  One of its features allows you to scale a document's content to the page margins, either maintaining proportionality or not.  Without proportionality, I was able to scale an Excel sheet with black background to all but a tiny sliver of the top and bottom margins in landscape orientation.  From here, I scaled the content via an additional feature to 100.5%, and all white margins were gone.  That said, it probably just as effective to accomplish this via the crop tool, assuming the page formatting remains consistent.        
    Disclosure:  I have no affiliation of any kind with Evermap, but did address the use of several of their products in my book, "The PDF Litigation Guide."
    Hope that helps!
    Jason Covey
    PDF Litigation Solutions, LLC
    www.pdflitigationguide.com

  • Creating PDFs from documents with graphics having transparent background

    I came across this problem when making PDFs of PowerPoint presentations but I have found that the same thing happens in Word.
    PDFs created from documents containing graphics having transparent backgrounds end up being very large (usually much larger than the source documents) and rendering slowly on the screen. The graphics are either JPGs with background set as transparent using the Set Transparent Color tool on the picture toolbar in MS Office applicatons, or PNGs that already have transparent backgrounds when inserted in the document. PDFs made from the same documents in which the graphics do not have transparent backgrounds are much smaller and render more quickly.
    When I try to select the graphics in the resulting PDFs using the Touch-up Object tool, I find that each graphic is actually made up of many individual graphic lines. Graphics without a transparent background select as a single object.
    I have tried several PDF creation tools and all kinds of settings but nothing seems to make much of a difference. The only way I can get a reasonable file size is to reduce resolution in the PDF creation settings to the point that they are unacceptable.
    This happens to me in the following applications:
    * MS Word 2003
    * MS PowerPoint 2003
    I have tried these PDF creation tools:
    * Acrobat 7 Pro
    * JAWS PDF Creator 3.60
    * Bullzip PDF Printer 6.0
    Has anyone else experienced this? Is there a solution?
    Thanks.

    Well we can color this one solved. What I figured out I can do is have the application tell Word to print-to-file using an Apple LaserWriter (or other PostScript) printer, and put the resulting file in a folder that is being watched by Distiller. Distiller then converts the PS document to PDF and I'm in business.
    So no change in the user process, and no need to crack open a new API and add it to the existing application. Works for me.
    Thanks to all for the suggestions and specific links and other information of interest...

  • Creating bg from deisgn with gradiant / textured bg

    I am still confused about how to create a bg.jpg file from a design file with a textured or gradiant bg.  Here is a jpg of the PSD design file that was sent to me (bg is the red and textured gradiant).  First, if I import it into FW, the texture disappears.  
    So, I took a slice from PSD and brought it into FW.  I created a 23x1440 or so file.  Here's the slice I used below.  The  problem is that when I repeat-x, it's wavy and it shouldn't be (see horizontal lines,  etc) on the website.    How do I create bg so it looks like the original design; just textured and gradiant? Designer gave me the texture files  she used if that's hepful.  Thanks soooo much!

    If you are importing the desisgn from a PSD and the bg is disappearing, it means that some effect used for the BG is not supported by Fireworks. The default options when openign or importing a PSD are set to maintain as much editability as possible, but this means that the appearance of certain layers/effects may be different.
    Check your Import and Open options  from the Preferences panel or when you try opening the PSD and change the settings so effects are flattened on open/import.
    I can't tell you which ones to change because I don't have access to your PSD file. You'll need to do some experimenting.
    If you want to build this yourself in FW, create your gradient in a rectangle, and then try linking the texture file from the Textures list
    Or you could try just adding Noise to the gradient, from the Live Filters menu. A value of 3 or 4 should do it.
    Noise, probably like the texture supplied by your designer, is random, though, so getting a decent repeating background tile may be difficult.
    HTH

  • Create collection from query with bind variable

    Apex 4.0.2
    Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
    If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?
    Thanks
    procedure create_collection_from_query_b(
        -- Create a named collection from the supplied query using bulk operations.  The query will
        -- be parsed as the application owner.  If a collection exists with the same name for the current
        -- user in the same session for the current Flow ID, an application error will be raised.
        -- This procedure uses bulk dynamic SQL to perform the fetch and insert operations into the named
        -- collection.  Two limitations are imposed by this procedure:
        --   1) The MD5 checksum for the member data will not be computed
        --   2) No column value in query p_query can exceed 2,000 bytes
        -- Arguments:
        --     p_collection_name   =  Name of collection.  Maximum length can be
        --                            255 bytes.  Note that collection_names are case-insensitive,
        --                            as the collection name will be converted to upper case
        --     p_query             =  Query to be executed which will populate the members of the
        --                            collection.  If p_query is numeric, it is assumed to be
        --                            a DBMS_SQL cursor.
        -- example(s):
        --     l_query := 'select make, model, caliber from firearms';
        --     apex_collection.create_collection_from_query_b( p_collection_name => 'Firearm', p_query => l_query );
        p_collection_name in varchar2,
        p_query           in varchar2,
        p_names           in wwv_flow_global.vc_arr2,
        p_values          in wwv_flow_global.vc_arr2,
        p_max_row_count   in number default null)
        ;

    VANJ wrote:
    Apex 4.0.2
    Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
    If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?Not tried it, but guessing something like
    apex_collection.create_collection_from_query_b(
        p_collection_name => 'foobar'
      , p_query => 'select f.foo_id, b.bar_id, b.baz from foo f, bar b where f.foo_id = b.foo_id and f.x = to_number(:p1_x) and b.y = :p1_y'
      , p_names => apex_util.string_to_table('p1_x:p1_y')
      , p_values => apex_util.string_to_table(v('p1_x') || ':' || v('p1_y')))

Maybe you are looking for

  • Security on Cost Center

    hi gurus i have a situation in which i have like 60 plus users every one has authorization to different set of Cost centers. now how can i accopmlish that. secondly suppose they run a report with a Cost Center Hierarchy with lots of cost centers at d

  • A Varation on the How do I move my music to a new computer question.

    I have a new (Win 7) computer with which I want to use my I-Tunes music library.  Currently the library itself resides on an extern (USB) hard drive connected to my old computer (Win XP).  However, the library files (itl and xml) reside on the intern

  • New hard drive and Windows 7 issues

    I bought a new 1 Tetra Samsung hard drive for my computer since 150GB was not enough. I did this because I need windows partitioned for school. After I installed the hard drive and inserted the Mac OS disk, it would not recognize the hard drive to in

  • After system copy, dump 'SAPSQL_ARRAY_INSERT_DUPREC' per every hour.

    hi experts, I did system copy solman 701. but I found short dump 'SAPSQL_ARRAY_INSERT_DUPREC' per every hour. I attach part of short dump. =============================================================================== Runtime Errors SAPSQL_ARRAY_INS

  • How do i change date in iphoto on an event?

    how do i change date in iphoto on an event?