Enhancement during BAPI Call

Hi All,
I have created an enhancement in VL01N while creating Delivery.
Now when I do manual Delivery the code is working fine . Enhancement gets triggred and the desired output is achived.
But the problem comes when the I uase BAPI to create the Delivery,  whenevr I use BAPI 'BAPI_OUTB_DELIVERY_CREATE_SLS' to create the delivery the enhancement does not get triggered & that logic is not performed so the final result is wrong .
This is not olny in case of delivery, this is in all cases like Creating Invoice, Sales Order etc. We have written some checks in these creation after which these documents should be created. But now when I use BAPI's instead of manual creation these checks dont work and the document get created even when they had not to be created.
Can you please help me in this ASAP.
Thanks,
Sameer

Hi Sameer,
You have to implement the same piece of code in BAPIs also, even BAPI : BAPI_OUTB_DELIVERY_CREATE_SLS enahncement points.
Please check the feasibility of the same. This BAPi is also calling two BADis badi_dlv_create_sls_extin and badi_dlv_create_extout, probably the implementation of the same will help you to solve your problem.
Please check feasiblity, best wishes,
regards,
Antony Thomas

Similar Messages

  • Suppress the Information message during BAPI Call

    Hi, I am getting the information message pop up during the BAPI Call "BAPI_BUS2054_CREATE_MULTI". Is there any possiblity to suppress the message?

    Hi,
    use call function with destination. Here is a short example:
    REPORT  zhabitest.
    DATA:
      et_return LIKE bapiret2 OCCURS 0.
      CALL FUNCTION 'ZTEST'
        DESTINATION 'NONE'
        TABLES
          et_return = et_return.
    DATA:
      ele_return LIKE bapiret2,
      rc LIKE sy-subrc.
    CLEAR rc.
    LOOP AT et_return INTO ele_return.
      IF ( ele_return-type = 'E' )     "error
         OR ( ele_return-type = 'A' ). "abort
        rc = 8.
        EXIT.
      ENDIF.
    ENDLOOP.
    IF rc IS INITIAL.
      WRITE: / 'Call OK'.
    ELSE.
      WRITE: / 'Call error'.
    ENDIF.
    And the function is here:
    FUNCTION ztest.
    *"*"Lokale Schnittstelle:
    *"  TABLES
    *"      ET_RETURN STRUCTURE  BAPIRET2 OPTIONAL
      MESSAGE i208(00) WITH 'Separate I/O and processing!'.
      GET TIME.
      DATA:
        ele_return TYPE bapiret2.
    * return error randomly
      IF sy-uzeit+5(1) CA '13579'.
        ele_return-type = 'E'.
        APPEND ele_return TO et_return.
      ENDIF.
    ENDFUNCTION.
    Pay attention to the documentation of call with destination (db commit).
    Regards
    Walter Habich

  • Problem facing during BAPI call for an inbound interface.

    I have requirement where in i need to make a BAPI call from SRM system using RFC adapter.
    After importing the BAPI(Z_INV_REF_PO) in the Integration Repository the structure looks to be a follws,
    1.Request
    2.Response and
    3.Exception (fault) Message types.
        In my BPM i did a transformation for my source structure with BAPI request. But while doing a BAPI call it throws me Application error as follows,
    RFC adapter is working fine.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_INV_REF_PO.Exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please help me out on this. Itz very urgent

    Hi,
    As the error is Applcation_error, the data reached the target system but the BAPI call fails. So you mignt not be providing all the mandatory fields to the BAPI.
    Perform a standalone testing of your BAPI, with the data being passed from XI See if the BAPI call is successful..
    Hope this helps you.
    cheers,
    Siva Maranani.

  • Print during BAPI call in backround

    Hi all...
    I am creating 351 movement using BAPI_GOODSMVT_CREATE in backround,during transfer Order confirmation...I want to print the details after job as been completed,is there any option to give in the BAPI function module...
    Note: If I do manually I am getting printout

    Hello,
    the problem is in this line:
    function.getImportParameterList().setValue(0000000001 , "DEBTORID");
    it should be:
    function.getImportParameterList().setValue("0000000001" , "DEBTORID");
    if you had read the RETURN Structure you would have get more information
    JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
    System.out.println("BAPI_DEBTOR_GETDETAIL RETURN: " + ret.getString("MESSAGE"));
    If you want more information about the Customer I think it's better to use "BAPI_CUSTOMER_GETDETAIL2".
    Reagards
    Gregor

  • Problem with mutiple BAPI calls during the commit

    Hi all,
    I am trying to create accounts for a given partner i the transaction F9K1 using the BAPI BAPI_BKK_ACCNT_CREATE. After calling the BAPI I am committing it too.
    The problem is if I try to create multiple accounts like RCA, ACA, MCA, IOE and so on, the first time the BAPI is called to create RCA account it is successful an it is even committing. When I call the BAPI to create the the ACA account the return table from the BAPI shows success message but the commit fails. If I restart the program and try creation of accounts now the RCA will throw a error msg saying account already exist, ACA account will be created and then the MCA account creation fails in the same manner explained above.
    I see the issue is with multiple BAPI calls and I tried using all sort of methods like clearing buffers, start new task in local and wait command and all.  But none of them seems to be working for me.
    Can anyone please guide me on how I can overcome this problem.
    Thanks.

    BAPI :
    BAPI BAPI_BKK_ACCNT_CREATE
    Functionality
    Use this method to create an account in Bank Customer Accounts. This method returns the following values:
    Identification details for the newly created account such as the internal and the external account number, and the bank area details
    A table containing error messages
    To create an account by using this method, you must specify values for the import parameters Bank Area (BANKAREA) and Product (PRODUCTNAME).
    Note: You must also specify a value in the External Account Number (EXTERNALACCOUNTNR) parameter if you have defined an external number range for the bank .
    REgards,
    Jayan.

  • "SYSTEM FAILURE" during JCo call.java.lang.reflect.UndeclaredThrowableExcep

    Hi All
    I have developed Java mapping program where I am calling three BAPI in sequence and trying to map all three bapi data to single Target XML file or Multiple target xml files depends on the in coming data.
    Now I want these files name should be genereted dynamically .So I have used below  Dynamic Configuration code in my java mapping program.********************************************************************************************************************************************************************
    try
         String currDate = new String();
         String currTime= new String();
         DateFormat dFormat=new SimpleDateFormat("yyyyMMdd");
         DateFormat tFormat = new SimpleDateFormat("HHmmss");
         java.util.Date date = new Date();
         TimeZone cetTimeZone = TimeZone.getTimeZone("CET");
         tFormat.setTimeZone(cetTimeZone);
         currDate = dFormat.format(date);
         currTime= tFormat.format(date);
         String pubDate=currDate + currTime;
         String ext=".xml";
         String event="-1_1-";
         trace.addInfo("********  Before  Dynamic Configuration ***************" );
         DynamicConfiguration conf =(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                                            DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File","FileName" );
         trace.addInfo("********  After  Dynamic Configuration ***************" );
         String tempFileName="NL09-"eventponum+ "-" pubDateext;
         trace.addInfo("The name of the file is  : " + tempFileName);
         conf.put(key, "tempFileName");
                catch (Exception e)
                     trace.addWarning("Error While creating File Name"+e.getMessage());
                     throw new Exception("Error While creating File Name",e);
    Now the problem is when I am using above code I am getting following error
    "SYSTEM FAILURE" during JCo call.
    java.lang.reflect.UndeclaredThrowableException
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1>java.lang.reflect.UndeclaredThrowableException</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>&quot;SYSTEM FAILURE&quot; during JCo call.
    java.lang.reflect.UndeclaredThrowableException</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    Could please tell me why I am facing this problem only when I am using  Dynamic configuration code.
    If I dont use  Dynamic configuration code then I am not getting any error .But my requirement is to generate dynamic file name (Note I have tried with Variable Substution also, It is also not solving my problem as I need time stamp of ("CET") time zone).

    Hi Abhishek,
    Yes I have appended throws StreamTransformationException and imported the relevant StreamTransformationException class also.
    Here I am getting strange thing when  I am adding dynamic configuration code " SYSTEM FAILURE" during JCo call. But Jco cal is something to internal systems which does not relate to Dynamic Configuration.
    If I run my code with out any Dynamic Configuration code then it is running with out any errors.
    But I need this  Dynamic Configuration inorder to generate dyanamic file name.

  • Enhance standard BAPI

    Hi All,
    I have a standard BAPI called BAPI_BUPA_CREATE_FROM_DATA. I need to enhance that BAPI. Could you please let me know how to enhance this standard BAPI. Any help will be very much appreciated.

    You can enhance a standard bapi if it has EXTENSIONIN , EXTENSIONOUT Parameters.
    check this.
    [Enhance standard bapi|https://forums.sdn.sap.com/click.jspa?searchID=25041527&messageID=3667604]

  • How to suppress message popup during RFC call

    Hi  expert,
    I have a scenario where in my RFC i am calling a SAP Bapi. But while this BAPI calling few popups appear which should be clicked as YES and then it has to run further.
    This "Pressing Yes" in popup is a manual way , i want it to be done automatically so that during my RFC call there is no interruption.
    Is there any FM which can suppress this popup by saying YES and there is no stopping for my RFC.
    Regards,
    Abhishek

    Hi ,
    I am facing the similar problem. Let me know how did you solve this problem ?
    Thanks,
    Krupali

  • Error while transporting objects:Internal error during pvc call: Parameter

    Dear all,
    We are facing the following error while transporting the individual configuration objects from our PI development system.
    Export failed: Internal error during pvc call: Parameter versionSpecifier or version has the invalid value null .
    However, it works fine when the complete configuration scenario is transported.
    We tried to transport the objects with different user id's, even then the issue still exists.
    Any inputs to resolve this will be highly helpful.
    Thank you,
    Younus

    Hi Mohammed,
    Answer is inside this oss [Note 1554387 - Error during export from Integration Directory|https://service.sap.com/sap/support/notes/1554387]. In this oss note, solution is to apply a patch (just a patch, not a SP). as it's a litle sap bug...
    Note: your issue is also explained with picture in this one "1550549 - PI transport: Internal error during pvc call" (sorry for this one I cannot insert a link)
    regards
    Mickael
    Edited by: Mickael Huchet on Jan 26, 2012 2:50 PM

  • Treo Pro - Speakerphone turns on during a call, even though I didn't ask it to.

    Hello
    Whenever an incoming call comes in the speakerphone on my Treo Pro turns on without being prompted. Have tried hard resetting and disabling the touchscreen during a call (incase it was my ears activating it) but none of this has worked. Can't seem to find anyine else with the same problem.
    Please help!
    Thanks
    Ben.
    Post relates to: Visor Pro

    If you have hard reset the device, and you have disabled the screen this sounds like it may be a hardware issue that you may want to address with Palm customer care at 877-426-3777. There will not be any charge for this if it is a hardware issue and you are still under warranty; however there is a initial fee of 14.95 if you are out of your 90 day free tech support period for tech support to determine this. This would be waived if it turns out to be hardware issue.

  • HT4623 Please help ! My Iphone 5 is restarting during a call or internet browsing, o just simply browsing the meniu. I can not us it any more !

    Please help ! My Iphone 5 is restarting during a call or internet browsing, o just simply browsing the meniu. I can not us it any more !
    It is functioning max 5 minutes. I have tried to restore it via Itunes but it sitais to less opened.

    Hello neegie
    Try putting your iPhone into recovery mode and then use iTunes to restore it. After that then test it out. If during the restore you get and error code, check it against the second article for further assistance.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Regards,
    -Norm G.

  • My bionic has started having my calls hang up unexpectedly and tries to dial calls during a call by my face touching screen I guess, can I fix it?

    This started about 2 weeks ago, when I get calls they either can't hear me and we gotta call back, or during a call my screen lights up and either my face causes it to hang up or phone does, or it try's to dial another phone number for me, it tried an international number, I can not afford this for sure, but I have cleaned senors and screen per protocol and tried updates.  At the same time my camera started only focusing every now and then, it doesn't alert me for some of my calls and texts randomly, and starts to make a call on its own while it is sitting on a table with no one touching it, is it me and my phone or is others having these issues and can I fix them?

        osubuckeyebest, I am sorry to hear about your phone issues! How long has this been an issue for you? Is there any physical or water damage to the phone? Have you tried to do a master reset on the device http://bit.ly/RFtIqk ?^SP

  • Remove push and sms notifications during a call

    it is possible to remove audio (push and sms notifications) during a call?
    if not, fix it!!!!

    Sorry but there isn't any options for what you are asking.
    http://apple.com/feedback if you care to suggest it.

  • Message and Email notifications during phone calls

    Whenever I am on a phone call and an email is received a very loud notification occurs.  In my settings I have the sound for notifications, media and system off.  When I am not on a phone call I do not have hear anything when an email or text comes in only during an active phone call.  Is there something I am missing?  I did not have this issue since upgrading to Android 4.1.1.

    You might want to check the call settings.
    Press the Phone icon
    Press the Menu button
    Select Call Settings
    There is a setting called "Use extra vol. for calls" which when checked puts a option on the screen during a call to increase the call volume this may be affecting your notifications.
    Try unchecking it and see if that solves your problem.

  • Iphone 4, people can't hear me during a call

    Hello,
    I'm reporting an issue related to "phone call" that seems to be common with Iphone 4, but I can not find the proper fix.
    First of all My mobile is an Iphone 4 out of warranty, and thus no chance to get any replacement from apple.
    Few weeks ago the phone just falls and then my problems during phone call starts:
    During calls or right at the start of a call peolpe can not hear me. If I just tap at the rear of the phone or just push hard on the back of the phone, it comes back.
    But this is a pain as few seconds after people can hear me again...then tap on the phone...this back...and again and again..
    I've tried all these fixes found on forum, but it does not solve the problem.
    - Itune restore/updqte under DFU: no change
    - Use earphones : no change
    - try without 3G: no change
    - check sim card: no change
    - change the iphone  micro (bottom one): no change
    - clean the ambiance micro hole (top one): no change
    - put some plastics spacer like there http://www.youtube.com/watch?v=0jhWxYTVxe4 : no change
    Note that face time: is working fine and sound recorder also!!!!
    Please any idea? Does apple plan to update IOS. I heard it was linked to Audio conversion CPU that was poorlu soldered?!!
    Thanks

    Yeah,
    That *****.  I've been a super loyal customer.
    I'm basically an apple freak and have dragged a number of my friends down the apple road... Macbook pros, ipads, iphones.. and now I'm stuck with a broken iPhone..
    I've found that the people at the "Genius Bar" are not that genius.  Once... ONCE I've come one that was super helpful and smart, but all the other times, they were trying to give me lame excuses and beat around the bush.  That's when I started to explain to them.  (I seriously contemplated on working at Apple as one of the genius guides.)   I'd rather have a plain "I don't know" answer than tell me a bunch of nonsense (if you know what I mean).
    Anyways.  Thanks for the reply.
    I really don't know what to do with my phone now.. And I'm not really willing to pay $190 to trade/replace my iPhone 4.  It's a bit too much for me. And its not even an upgrade to the iPhone 4s!!
    Thanks for letting me vent..
    Thanks Vazaria!
    Let me know if anything turns up!
    God bless!

Maybe you are looking for

  • PC-Suite sync fails after Firmware upgrade of E65

    After firmware upgrade of E65 PC-Suite stops syncing Calendar & Contacts from outlook. No error messages, just "0 entries has been updated". - PC-Suite updated to 7.0.9.2 - Outlook 2003 - XP Prof. Any ideas? Solved! Go to Solution.

  • How to get pdf file from sap presentation server using java connector

    Hi Friends, with the below code i am able to get po details in pdf in presentation server. DATA : w_url TYPE string        VALUE 'C:\Documents and Settings\1011\Solutions\web\files\podet.pdf'. CALL FUNCTION 'ECP_PDF_DISPLAY'         EXPORTING        

  • ITunes and Quickplayer Will not open!!!!!!

    My husband recently reset our entire computer on accident. He was able to recover everything, but now when I try to open iTunes in the start menu or on the desktop it WON'T OPEN!!!!! The same is true for Quick Player. Both come up with an error messa

  • I cant hear sound....WHY

    i cant hear sound out of my internal speakers. the meter reads something when i hit a note but no sound.... WHY

  • Tracking Transports for confi/dev overwritings in sap srm system

    Hi, could anyone please suggest the best way to track and identify any code/config overwritings due to any new change being transported into the client under a new transport? in m previous organization we had a custom developed tool for identifying s