Standard BAPI or wrapped in a ZBAPI?

Hi folks,
Iu2019m doing a scenario File to RFC (BAPI_PO_CREATE).
The file has several purchase orders to create and Iu2019m wondering which the best approach to follow? Iu2019ve been thinking in the following two approaches:
1 u2013 As BAPI_PO_CREATE only creates one PO per call, with help of ccBPM and a block ParForEach I can call BAPI_PO_CREATE synchronously for each header line plus items. However, this scenario must be atomic (or we create the entire POu2019s or nothing is created) so Iu2019ve to set the test parameter of this BAPI, collect each exception and in a switch step ask if there is exceptions. In case of exceptions a new message is created with all exceptions and mailed to the business process responsible. If everything is ok, Iu2019ve to repeat the BAPI calls but now without the test parameter set, in order to crate all PO in R/3.
I didnu2019t try it before but I think it can work.
2 u2013 Wrapping the BAPI_PO_CREATE, BAPI_TRANSACTION_COMMIT and respective rollback in a ZBAPI; with this I can model the development as I wish. I can create a ZBAPI to receive all POu2019s and inside it in a loop create each PO and also do the exception handling there.
The first approach seems aligned with SAP best practices; however it seems complex to handle and heavy for PI system performance compared with second approach.
Another point is we are going to upgrade SAP ERP; therefore we will get the local integration engine to develop ABAP proxies. I think with the 2ª approach we can move quickly (migrate) these developments to ABAP proxy.
Which are the best practices for integration with RFC adapter? Should I always use standard BAPIs or in this case is recommended to wrap the BAPI?
Thanks in advance,
Jorge.

Hi,
>>Which are the best practices for integration with RFC adapter? Should I always use standard BAPIs or in this case is recommended to wrap the BAPI?
there are a few alternatives to your approach because of which
I wouldn't use any of those two which you proposed
this is what I'd so:
since you don't have ABAP proxies yet - you should use IDOC
PORDCD101 to create purchase orders - this way you can send all of them
in one call (IDOC bundling) but in ERP they will appearch as one by one
so even if one of them will not work you will know which one is it
(this is not the case with RFC calls as they are not persistent in ERP)
if you can wait for abap proxies - you can also choose the abap proxy approach (also does not matter if you do them one by one or all at once
as they will be persistent in ERP so you will know which one failed
and you can reprocess - the same as with IDocs)
since RFCs in your two scenarios are not persistent you'd
have to build some functionality to cover that - but there is no need to do it
as you have :
1. stasdanrd IDOC
2. you can do it with proxies
Regards,
Michal Krawczyk

Similar Messages

  • Proceedure to copy the standard BAPI into ZBAPI

    Hi Gurus..
       I found the standard BAPI and I want to copy the standard BAPI into ZBAPI(for my company purpose) and use it in SAP xMII.
      Please give the steps for copying.
    Thanks
    R M

    Hi,
    To copy the standard BAPI into ZBAPI.
    check this link:
    how to copy BAPI
    How to Copy standard BAPI to ZBAPI....
    Regards
    Adil

  • Copy standard bapi to Zbapi in the same standard package

    Dear SAP,
    I wanted to copy a standard bapi into Zbapi. As soon as i do this it is asking for access key.
    Is it ok to use the access key and create??
    Is there any exit to do this ?
    Please help me in this regard.
    The Bapi name  /AFS/BAPI_SALESORD_CREATEFDATA
    from this Bapi, i want to create the ZBAPI.
    Regards,
    Arati

    If you put it in the same function group as the original, when new function modules are added to that function group, your BAPI will be affected - possibly disappear (depending on settings). it will certainly be an upgrade issue.
    If you put it in a SAP package, you are violating the principle of separating custom developments from SAP standard, but it's unlikely to cause issues.
    However, copying a BAPI (indeed any cloning of SAP standard code) is a bad idea. The reason is that the copy won't benefit from any notes or upgrades. If there's an error in the standard fixed by note application, you won't get it applied in the copy. Your copy will gradually become out of date. At some point it will probably break, and then you'll have to reclone the original, which can be quite difficult if it has changed radically.
    You should first try to find user exits (CMOD, BADI, explicit enhancement points), and implicit enhancement points, and finally direct modification of the original bapi.
    I repeat, cloning a SAP standard object is 99.9999% of the time the worst things to do. Far worse than a customer modification. Ignorant project managers, team leads etc. prefer clones because they don't need an object key. Don't be stupid. Do the right thing.

  • Issue while creating Outbound Delivery using Standard BAPI

    Hi all,
    I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
    Regards,
    Vimala P

    Hi Vimala,
    I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
    1) Delivery Type
    2) Delivery selection date
    Needs to be passed in import parameters.
    Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
    Thanks in Advance..
    Regards,
    Rajasekar .M

  • Support message creation using "BAPI_NOTIFICATION_CREATE" standard BAPI

    Hello Experts,
                         I am a ABAPer making use of  "BAPI_NOTIFICATION_CREATE", for creation of support desk message in SOLMAN 4.0 . The problems that i am facing , when i create message using this BAPI are,
    1)By default the notification type is taken as 'SLFN',though i pass 'SLF1' as my input parameter to BAPI.WHY is this happening?
    2)The description part of the message is not coming up in the support desk screen ,though i pass it in NOTIF_TEXT_LINES in TDLINE.
    3)Support Team value is getting picked up in the partners tab of Transaction data in support desk screen.
    4)I would like to ADD ATTACHMENTS also ? where should i pass this parameter ?
    Other than this i am getting the rest of the feilds,in the message created
       If some one has worked with this standard BAPI pls send me the details of the input parameters that i have to pass for the message creation and give solution for my problem ASAP.
    If  there are any SAP notes or blogs that are related to this,pls send me those details also, its a urgent requirement.
    Thanks & Regards,
    Mohana Priya

    Was this resolved? I am having same issue I need to get the Description and Attachements fixed, Any help is appreciated, Thanks

  • Standard BAPI to post payment in SAP-ISU

    Hi Experts,
    My client's requirement is the payment via third party should be posted synchronously in SAP-ISU system means payment is accepted by third party and we just need to update that payment in SAP-ISU system. We are trying to achieve this by RFC.
    I came across BAPI_CTRACCTRCTACCNT_PAYBYCARD which post the payment in the system but it need credit card detail. I want to post the payment from third party which can be cash/cheque. I just wanted to know if there is any standard BAPI which can be used to post payment in SAP-ISU system?
    Thanks in Advance,
    Mansoob
    Edited by: Mansoobkhan on Oct 21, 2010 4:08 PM

    Hi you can try with the following BAPI'S
    BAPI_CTRACPAYMINC_CREATE
    BAPI_CTRACPAYMINC_APPEND
    BAPI_CTRACPAYMINC_RELEASE
    BAPI_CTRACPAYMINC_CLOSE
    If you have PI available you should check out the external cash desk functionality.
    Best regards.
    Cristóbal.

  • Standard BAPI or Function Module for FB01posting

    Hi Experts,
    My requirement is as follows.
    Invoice details would be sent across from Middleware to SAP and for which I have developed a Custom Remote Enabled Function Module. The Function Module needs to post the data using FB01 Transaction.
    I had planned for recording a BDC for FB01 and post the data, however, we are on the verge of getting upgraded from 4.7 to ECC 6.0. To avoid problems that we might face for change of screens in ECC 6.0, I would prefer using a BAPI or Function Module for FB01 posting, if available, instead of BDC.
    Data coming from Middleware are as follows.
    HEADER:
    BKPF-BLDAT :  Document Date
    BKPF-BUDAT : Posting Date
    BKPF-XBLNR: Reference (Invoice#)
    BKPF-BLART : Document Type
    BKPF-BUKRS : Company Code
    BKPF-BKTXT : DocHeader Text
    BKPF-WAERS : Currency
    LINE ITEM:
    BSEG-LIFNR : Vendor no
    BSEG-WRBTR - Total amt -Debit/Credit -Vendor
    BSEG-ZUONR : Assignment field
    BSEG-EMPFB : Alternative Payee
    BSEG-UZAWE : Payment Method Supplement
    BSEG-ZTERM : Pmt terms
    BSEG-KOSTL : Costcenter
    BSEG-HKONT : GL AccountNumber
    BSEG-WRBTR : Amount for GL
    BSEG-SGTXT : Line item text
    The Vendor Line Item would be one where as GL line items could me more than one.
    Can any of you suggest me a standard BAPI or Func Mod?
    Points will be awarded for valuable inputs.
    Thanks to all!!!!

    You can use RFBIBL00 program for FB01 postings. Go through the program help on how to use this program.
    This program requires a file to be on application server in a certain format.
    You may also refer the program RFBIBLT0 on how the file format should be.
    Hope this helps.
    Thanks,
    SKJ

  • Are there any standard BAPIs available to load Vendor and Park invoices?

    Hi Gurus,
    do we have standard BAPI;s available to load "Vendor" master data and to "Park Vendor Invoices"? Please advise,
    1) I wanted to load vendors from the flat file, with input fields and it is a mass update.?
    2) I wanted to park the documents around 100 or so at one time, not posting?
    Any suggesttions on the Bapis available?
    Thanks
    Surya

    Ravi,
    Thanks for your suggestions. But BAPI_VENDOR_CREATE doesnt have any input fields, am not sure how it is used???  And also, I am sepcifically looking for BAPI;s LSMW will do but looking for more of a web service kind of service with BAPI. I am looking for a service which reads fields from input file and store in LFA1 table.
    Also regarding the second BAPI, i read in some threads that we need PO number to park it, but my invoices have only reference from the old system, not PO number, does this matter??
    Thanks
    Surya

  • Is there any standard BAPI available to vendor , customer and G/L ?

    Hi all,
    any standard BAPI available to vendor , customer and G/L? I found BAPI_CUSTOMER_CREATE and BAPI_VENDOR_CREATE but when i traying to execute , then control directly taking to XD01 and XK01 initial screen's .i need to create vendor and customer master data using BAPI(data will come from legacy system).
    Other than these , is there any standard  BAPI available .Pl tell me
    Regard's,
    Pratap.

    Hello Pratap
    For customer the following BAPI is available:
    BAPI_CUSTOMER_CREATEFROMDATA1
    "This fm uses a reference customer as template for the new customer.
    " Using this BAPI you cannot create a new customer from scratch
    Regards
      Uwe

  • Standard BAPI for PO and PREQ Rejection

    Hi All,
    Do we have a standard BAPI for PO Rejection and Purchase Requisition Rejection?
    Regards,
    Murtuza

    The standard process is that you should configure the sales order as Third party sales order (or Inter company SO-PO process whatever is the requirement here) then Purchase requisition will be created automatically when the sales order is saved. You can then create PO with reference to the Pur.req. The item category TAS is configured in standard SAP for Third party / inter company processing requiring SO - PO process.
    A PO in a third party/inter company SO-PO process is linked to SO through Purchase requisition and the linkage happens at item level because a single sales order can have both PO related items and items that are directly delivered and billed.
    You can refer these links
    how to configure third party order ?
    http://sapsdforum.com/2007/10/23/third-party-order-processing/

  • Is there standard BAPI which can used to read substitution material?

    Is there any standard BAPI which can be used to read substitution Material code for material?
    Even better if there is some table or struct under MATERIAL_GET_ALL which can returns this. I didn't manage to spot anything related from there though.
    It seems that replacement material code information is stored in KONDD table as SMATN together with condition record num. KNUMH

    There is a function Module called 'PRODUCT_SUBSTITUTION' used in include FV45PF0M_MATERIALFINDUNG. check if it helps.
    I would rather choose to join KOTD001  & KONDD

  • Standard Bapis or FMs

    Hi,
    Can you plz update me on the standard Bapis or Function Modules for Purchase Order, Sales Order, Goods Receipt and Invoice??
    Thanks in Advance,
    Srinu.

    Hi
    Kindly check the following BAPIs:
    <b>Purchase order</b> - BAPI_PO_CREATE1
    <b>Sales Order</b> - BAPI_SALESORDER_CREATEFROMDAT2
    <b>Billing (Invoice)</b> - BAPI_BILLINGDOC_CREATEFROMDATA & BAPI_BILLINGDOC_CREATEMULTIPLE
    <b>Goods Receipt</b> - BAPI_GOODSMVT_CREATE
    You can get all the standard BAPIs in SAP transaction <b>BAPI</b>
    best regards,
    Thangesh

  • Please Tell  me the Standard Bapi for Purchase Order Creation

    Hi,
      Please tell me the standard BApi for the PO creation. How to excute the standard Bapi. Please help me.
    Regrads
    Mohan

    Hi Mohan,
    Use this BAPI BAPI_PO_CREATE1.
    Check this post, you have program aswell
    https://forums.sdn.sap.com/click.jspa?searchID=7294168&messageID=1172796
    Regards,
    Satish

  • Is there any standard BAPI to update the standard transaction GS03 ?

    Is there any standard BAPI to update the standard transaction GS03 ?
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 16, 2011 2:02 PM

    hi,
    I think this link will help you to find that.
    list of all bapis:
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • Standard BAPI for editing Contract in R/3

    I am new to SAP.I want to implement a BAPI to edit the contract details.Is there any Standard BAPI for doing this????
    Regards
    Achin

    Hi
    Refer
    BAPI_CONTRACT_CHANGE
    Regards
    N Ganesh
    assign points if useful***

Maybe you are looking for

  • How to convert OS X 10.3.9 Applescripts to run on Lion?

    I have recently upgraded my computer from a G4 iMac running Panther to an Intel 21" screen model which runs Lion 10.7.3. I found that neither the Set Up Assistant or Migration Assistant worked as far as transferring the contents of the old system and

  • How do I add hyperlinks in the PDF output

    I am generating the PDF output from my DITA sources by using the menu option File > Save as PDF and hyperlinks are not taken into account. What can I do to get them working? Thank you for your help.

  • OIM SSL cert with AD

    I have a OIM on a cluster with two nodes running on WLS. I have a VIP URL that I connect to OIM with. i am going to upload the OIM cert to AD for provisioning etc and get AD cert in OIM jdk keystore. What I need to know is what hostname shall I use i

  • EM12c: OS Command job stopped, not being rescheduled?

    This morning I had an OS Command job running long (normally < 10 seconds, this time over 20 minutes). This job is scheduled to run every 10 minutes, so there were 2 skipped executions. As with similar jobs, I stopped the run, expecting it to be resch

  • Glitches during Export from Illustrator

    I recently went from CS2 on an old G5 to CS5 on a newer, more powerful IMac. Now, when I Export from Illustrator to Photoshop, the resultant files have small glitches: horizontal white lines one pixel high by several or many pixels in width. The only