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

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.

  • 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

  • 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.

  • My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?

    My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?
    Another thing is that on Skype, whenever i clicked to sharescreen it only show a complete black out window. nothing else.
    Tried restore OSX mountain lion, doesn't work. what should i do?

    kaeandcolesmon,
    If you open the recovery drive (partition) it should only have a single folder (Recovery).
    To make sure that your not saving restore points to that drive.
    See:
    Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Regarding the BAPI calls without input

    Hi all,
    We are developing on webdynpro component. I came across a scenario where we call the BAPI through Adaptive BAPI model. This bapi doesnt take any input parameters but returns 7 tables with data.
    So, My problem here is i am not getting output in the 7 tables. i am sending a dummy input and executing on the input elements modelobject.
    Could anyone ddid this scenario.. ie., calling/executing teh BAPI call which doesnt have any input s but expects output.
    Here is what i have
    <i><b>Z_Sales_Order_Header_Input bapiSalesOrderHeader=new Z_Sales_Order_Header_Input();
    wdContext.nodeZ_Sales_Order_Header_Input().bind(bapiSalesOrderHeader);                    
    wdContext.currentZ_Sales_Order_Header_InputElement().modelObject().execute();
    int ilSalesOrderTypeSize=0;
    ilSalesOrderTypeSize=wdContext.nodeZ_Sales_Order_Header_Output().nodeSalesordertype().size();</b></i>
    Thanks & Regards,
    Raghavendra Pothula

    Hi Raghavendra,
    If I read you correctly, you are printing the size of the root output node (Z_Sales_Order_Header_Output) and not that of the output node inside your 'Z_Sales_Order_Header_Input' node. When you execute the RFC, the output node inside the 'Z_Sales_Order_Header_Input' node gets populated. so try printing the size of the  'Salesordertype' node  inside the 'Z_Sales_Order_Header_Input' node.
    -Z_Sales_Order_Header_Input
    ---output (this is the default name)
       ---Salesordertype
    Infact there is no need to create the 'Z_Sales_Order_Header_Output' node itself in the controller or view.
    Hope this helps,
    Best Regards,
    Nibu.

  • 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.

Maybe you are looking for

  • Cross reference help needed

    Here is the situation: I create automatic figure number in my document. That is working fine. In my text, when I want to cross reference the figure (i.e. "FIGURE 3-3"), I click in the location in the text and use "Type"... "Interactive"... "Insert cr

  • Multiple logins - can they access the same iTunes library?

    I have multiple logins on my Mac with Leopard. Our families iTunes library resides on my account. I set up separate accounts for them to protect my documents and such. However, when they launch iTunes, the library is blank. Can I point them to the li

  • Itunes burns all but purchased music

    I'm trying to burn a playlist of existing and purchased music, but each time it burns, it excludes the purchased music. I have never burned the purchased music before, so I haven't reached the 7 song limit, and I know I checked those boxes. The sugge

  • Installed OS 10.9.5 and now screen is frozen.  Cannot restart or shut down.

    Installed Yosemite 10.9.5 and now screen is frozen.  Cannot restart or shut down.  Have done Repair Permissions but still not working.

  • ITunes 11 custom color changes all the sudden (album)

    Because I use iTunes 11 between 2 PCs, I've noticed this slight issue since, where one particular album on 1 PC gives a slightly different palette of colors than the other. All the sudden today, my Kelly Clarkson Greatest Hits: Chapter 1 Deluxe album