Sample WebDynpro for Java for BAPI error

Hi,
I have created one BAPI which will take matnr as an input and gives table of matnr, maktx.
This BAPI i have used (through Adaptive RFC) to create sample WebDynpro Application (JAVA) through NWDS.
I have deployed it and tried to run it, but it failed with following error.
500   Internal Server Error
  Web Dynpro Container/SAP J2EE Engine/6.40 
Failed to process request. Please contact your system administrator.
What could be the problem?
I have also tried sample application without any BAPI, It worked fine.
Please let me know what could be the possible error.
-Thanks

if its 500 Internal Server Error  it would have created a DUMP on the ABAP side. check tcode ST22 in the ABAP engine to find more details.
Raja

Similar Messages

  • Jabber Guest Sample code for iOS - ERRORS

    I am trying to develop a Jabber Guest app for a customer. I downloaded the sample xcode projects and attempted to run ABC Bank, to see how a it one would work. The build failed and I received the error: " No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). " Any help is appreciated.
    I've attached a screenshot of the error message

    From the screenshot it looks like you are using a simulator to run the sample apps. For the sample apps to work you have to build using a device. Running on a simulator is not supported.
    It's on our roadmap to add support to build via simulator. 

  • Sample program for BAP_salesorder_create...........

    Hi all
    Can anybody provide me sample program for BAPI_SALESORDER_CREAT..............
    Regards
    Mona

    Hi,
    Please check this link for sample code for BAPI 'BAPI_SALESDOCU_CREATEFROMDATA1'.
    https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Simpleprogramtocreatesalesorderusing+BAPI
    Regards,
    Kiran Sure

  • How to use BAPI in webdynpro for java application

    Hi all,
    Please help in getting started with calling a BAPI in a webdynpro for java application. I have got only the content needed to call a BAPI in a webdynpro for abap application but not in java. Kindly provide me some documents if possible.
    Thanks in advance

    Hi ,
    U have Created One Bapi u want to work with web Dyn pro for java Application Right .
    U need the Following
    1) NWDS (Netweaver Devloper Studio )
    2) jdk1.4 or Above installed in your system .
    After Installation of NWDS .
    1) Just Take J2EE Enginee Details
      a) Go to Window -> preferences  -> J2ee Enginee - > give ur port number , Host name Details . and click finsh .
    Go To Web Dyn Pro Perspective Click onj2EE engine .
    Click On Refresh U will see Green Colour button .
    Now ur Ready to import Ur BAPI .
    1) Go to File -> New -> Project - > Web Dyn pro Project -.
    Give Name , pkg Name Click On Finish .
    2) Expand ur project hirarchy -> go TO Application -> Right Click -> Create Application - > Give Application name and Pkg name -> Click on Finish .
    3) Now ur View And Controller Are Created by Default .
    4) Go to Model-> Right Click on it-> Create Model -> Give Model Name & Pkg name Should diff from Application pkg the Click On Next
    a) Here u have to Two JCo Destination Name Like Model Data And Meta data & R/3 System Details like System Number , Host name  Etc -> then Click on next .
    b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name Click on Search . Ur bapi will be displyed In Down . click on Next .
    c) Now Ur model is Importedint into NWDS .Map ur model data To Controller and Controller Element to View Elements .
    After ur Model .
    Go to -> Project Name -> Right Click -> go to -> Deploy New Archive .
    after wards u have to go Apllication -> Right click -> deploy and Run .
    ur output will be displyed thru Browser .
    Thats it
    Regards ,
    venkat

  • Table as Input parameter for BAPI in Webdynpro Application

    I am creating webdynpro JAVA application to create RFQ, for which ABAP guy written a Custom BAPI called Z_BAPI_INQUIRY_CREATE. I tested this BAPI  in SAPGUI it is working fine. From my webdynpro application when I passes header and item parameter, my header getting inserted but my item data is not. It is giving me error like "Table input parameter not found". I am passing table to this bapi. When I tried my code to standard BAPI's (NOT CUSTOM), I am able to insert both HEADER and ITEM data.
    In above scenario I have few questions,
    1. Is there anything extra we have to do with custom BAPI's? (my BAPIs are in BOR).
    2. What is the datatype in webdynpro parallal to table parameter?
    3. is there any tutorial available for table parameter? (except FLIGHT examle).
    Thanks and regards,
    Nitin

    Hi Vijayakhanna Raman,
    Thanks much for your reply.
    Yes I did the same as you mentioned, but still I am getting an error "Table parameter not avaliable is empty".
    I am not getting were is the bug. And this is happening only with ZBapi's not with Standard Bapi's.
    I am really stucted becouse of this, answer will really get all 10 points.
    Here is my code,
         1. First create an instance for bapi and bind the instance to the bapi node.
         Z_Bapi_Inquiry_Change_Input input = new Z_Bapi_Inquiry_Change_Input();
         Zbapirfqitem item =new Zbapirfqitem();          
         wdContext.nodeBapi_RFQ_OnHold_Update_Input().bind(input);
         2. Then if u have the import parameter u have to set them by using
         input.setRfq_Number("6");
         input.setCreated_By("NLNS0000");
         //wdContext.currentBapi_RFQ_OnHold_Update_InputElement().modelObject().setRfq_Number("6");
         //wdContext.currentBapi_RFQ_OnHold_Update_InputElement().modelObject().setCreated_By("NLNS0000");
         3. If the bapi has a table parameters then the structure for the table parameters will also be imported In the model class.
    DONE!
         4. Set the table parameters by creating the instance for that structure and using this instance set it.
                             item.setUpdateflag("I");
                             item.setItm_Number("000030");
                             item.setMaterial("MAT-NITIN");
                             item.setMatl_Desc("Inserted by Nitin");
                             item.setQuantity(new BigDecimal(4));
                             item.setBase_Uom("PCE");
                             item.setReq_Qty(new BigDecimal(4));
                             item.setBase_Uom1("PCE");
                             item.setList_Price(new BigDecimal(3));
                             item.setList_Curr("");
                             item.setReq_Price(new BigDecimal(4));
                             item.setCurrency("EUR");
                             item.setIndirect_Price(new BigDecimal(4));
                             item.setCurrency_2("EUR");
                             item.setFinal_Price(new BigDecimal(4));
                             item.setCurrency_3("EUR");
                             item.setText_Line("");
                             item.setReq_Date_H(new Date(12-05-06));
                             item.setDirect_Dis(new BigDecimal(4));
                             item.setIndirect_Dis(new BigDecimal(4));
                             item.setFinal_Dis(new BigDecimal(4));
                             item.setProfit_Margin1(new BigDecimal(4));
                             item.setProfit_Margin2(new BigDecimal(4));
                             item.setBrand1("");
                             item.setModel1("");
                             item.setVal_Loccurr1(new BigDecimal(4));
                             item.setCurrency1("");
                             item.setBrand2("");
                             item.setModel2("");
                             item.setVal_Loccurr2(new BigDecimal(4));
                             item.setCurrency2("");
              5. Then add the structure instance to the bapi instance.
         input.addItem(item);
         6. Then Execute the bapi after setting the import parameters.
              //wdThis.wdGetContext().currentBapi_RFQ_OnHold_Update_InputElement().modelObject().execute();
              input.execute();
    Message was edited by: Nitin Kamble

  • Suggestion for a good book for webdynpro for java

    Hi, I am new to this technology,and i know a little bit basics,but i want to learn in depth regarding Webdynpro For Java and my backend is SAP R/3
             can anyone suggest me  a good book for webdynpro for java

    Hi padma,
    Check this link.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#9">Web Dynpro Sample Applications and Tutorials</a>
    Re: Guides for new entrant to Webdynpro
    Regards,
    Mithu

  • Problem in Uploading excel file using WebDynpro for Java

    Hi  All
    I have followed for Uploading excel file using WebDynpro for Java added by  Tulasi Palnati
    I done all, but I'm getting 500 Exception please contact u r system admin meag  at run time also  Jxl/Workbook class not found msag  but i downloaded Jxl.jar file and  there is no error signals  in coding part. How can I solve the Problem.
    Thanks
    Polaka

    Please ask the people in the Web Dynpro Java forum for a solution.

  • How to start to work on MDM JAVA API by using webdynpro for java

    Hi all
    I have basic idea on MDM business package thru portal by using standard iViews.
    now i am planning to work on MDM JAVA APIs by using Webdynpro for Java as UI.
    1) can you please share the required documents on the same. how to start working on this by using MDM JAVA APIs in webdynpro for java
    2) what are the JARs files are required and how to integrate those jar files into webdynpro for java application.
    3)  is there any SDN help on MDM JAVA API with webdynpro for java? . can you please send the link on the same.
    4) can you please help by providing sample code on how to use JAVA APIs for retrieving,deleting,inserting and Updating the data in the database.
    if anybody helps on the same then it is the great help to me.
    points are always rewardable...
    Regards
    Suresh babu

    Hi Suresh,
    You can have the MDM JAVA API javadocs from the link
    http://help.sap.com/javadocs/MDM/SP06P2/index.html
    There you can see a package named com.sap.mdm.examples.The classes in it contains some examples using which you can start understanding the code.
    You need to have MDM JAR files for it. And these JAR files to be used at build time can be added to the project thru :-
    Right click on project-> properties->Java Build Path - > Add external JARs
    At run time you can add them the reference in
    Right click on project-> properties->web dynpro references->library reference.
    Thanks
    Namrata

  • Reading/Writing .xlsx files using Webdynpro for Java

    Dear All
    I have a requirement to read/write excel files in .xlsx format. I am good in doing it with .xls format using jxl.jar. The jxl.jar doesn't support .xlsx format. Kindly help me in understanding how do I need to proceed on reading/writing .xlsx files using Webdynpro for Java.
    Thanks and Regards
    Ramamoorthy D

    i am using jdk 1.6.22 and IBM WebSphere
    when i use poi-3.6-20091214.jar and poi-ooxml-3.6-20091214.jar  to read .xlsx file. but i am getting following errors
    The project was not built since its classpath is incomplete. Cannot find the class
    file for java.lang.Iterable. Fix the classpath then try rebuilding this project.
    This compilation unit indirectly references the missing type java.lang.Iterable
    (typically some required class file is referencing a type outside the classpath)
    how can i resolve it
    here is the code that i have used
    public class HomeAction extends DispatchAction {
         public ActionForward addpage(
                             ActionMapping mapping,
                             ActionForm form,
                             HttpServletRequest request,
                             HttpServletResponse response)
                             throws Exception {     
                             String name = "C:/Documents and Settings/bharath/Desktop/Book1.xlsx";
               FileInputStream fis = null;
               try {
                   Object workbook = null;
                    fis = new FileInputStream(name);
                    XSSFWorkbook wb = new XSSFWorkbook(fis);
                    XSSFSheet sheet = (XSSFSheet) wb.getSheetAt(0);
                    Iterator rows = sheet.rowIterator();
                    int number=sheet.getLastRowNum();
                    System.out.println(" number of rows"+ number);
                    while (rows.hasNext())
                        XSSFRow row = ((XSSFRow) rows.next());
                        Iterator cells = row.cellIterator();
                        while(cells.hasNext())
                    XSSFCell cell = (XSSFCell) cells.next();
                    String Value=cell.getStringCellValue();
                    System.out.println(Value);
               } catch (IOException e) {
                    e.printStackTrace();
               } finally {
                    if (fis != null) {
                         fis.close();
                return mapping.findForward("returnjsp");

  • Books and Documentation on Webdynpro for Java

    Hi,
       I'am planning to start developing Webdynpro for Java applicatios.I know only Core java and iam not familiar with J2EE.I need some help on this.Any books on webdynpro for java basics and any documentation avail and prerequisite befor going to strat developing Webdynpro for JAVA
      Can anybody please give me suggestions on this.
    With Regadrs
    Praveen

    What is Webdynpro?
    What is Web Dynpro?
    Webdynpro Sample Applications and Tutorialshttps://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    SAP WebAs Samples And tutorials
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/7d646a6c-0501-0010-b480-bf47b8673143 [original link is broken]
    Basis Webdynpro tutorials....
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/1fc0bdb1cdd34f9a11d5321eba5ebc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3a/d08342a7d30d53e10000000a155106/frameset.htm
    Web Dynpro Sample Applications and Tutorials:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d [original link is broken]
    http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf
    Check the following thread u can get lot of materials,
    WeB Dynpro Documents
    Refer these linkshttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web%20dynpro%20tutorial%20and%20sample%20applications.faq
    Why WebDynpro ?Why WebDynpro ?
    Why  webdynpro and not BSP or JSP?
    Why webdynpro and not BSP or JSP?BSP to WEB Dynpro
    BSP to WEB Dynpro
    Benifits of using Webdynpro Benifits of using
    Webdynpro
    Java vs. ABAP WEbDynpro Java vs.
    WebDynpro ABAP
    regarding Java related webdynpro
    Regarding Java related Web Dynpro vs. Struts - a few questions
    Web Dynpro vs. Struts - a few What kind of applications are being developed with Web Dynpro?
    What kind of applications are being developed with Web Dynpro?
    http://www.sappro.com/downloads/OptionComparison.pdf
    Hop this will helpful for u..
    Urs GS

  • Start to learn WebDynpro for Java Development

    Hy @all,
    i want to learn WebDynpro for Java. What expirences do you have? How i can start to learn first the fundamentals?
    Java is not completely new, I develope some programms in C# before.
    I buy the following books: WebDynpro for Java and Java Programming with SAP Netwaver....
    thx
    Micha

    Hi, Michael,
                      First and formost, Welcome to the amazing world of WD Java. Since you have some experience with C#, coding will not be a mammoth task for you. As per, basic concepts of WD Java are concerned, you can refer the following Link:[Concepts Of WD Java|http://help.sap.com/erp2005_ehp_04/helpdata/DE/14/c897427f18d06ae10000000a155106/frameset.htm]
    To try your hands on WD Java, there are few sample applications that you can refer:
    [Sample Applications WD Java|/docs/DOC-8061#61 [original link is broken]]
    I hope this solves your issue, if you are looking for something else, please revert. I'll be happy to help you.
    Cheers!!!
    Umang

  • Changes in Webdynpro for Java MDM appl for Italian

    Dear Expert,
    I came across one requirement in my project where in we have to rollout our existing MDM applicaiton in Italian. The current code is working very fine in English but now we have to modify our code to work with Italian as well.
    In our SAP landscape the Vedor/Master is created from the Portal(Customized Webdynpro for Java code). I got following document on this requirement but i want some more guidense on this...
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e8aedc-cdfe-2c10-6d90-bea2994455c5?quicklink=index&overridelayout=true
    Thanks and Regards,
    M.D.Sahu

    Just giving you few more detail about my issueu2026.
    For a multilingual text field I have written the code like below u2013
    MultiregionValue multiregionValue = new MultiregionValue();
    multiregionValue.setValue(Region_Properties.getRegionCode(),new StringValue(wdContext.currentRequestInformationElement().getMDM_CITY()));
    NewRec.setFieldValue(FID_MDM_CITY,multiregionValue);
    Which is working fineu2026.
    But the following code for multilingual Lookup field is not working..
    LookupValue lookUpValue = new LookupValue(wdContext.currentAccountGroupElement().getId());
    multiregionValue.setValue(Region_Properties.getRegionCode(),new LookupValue(wdContext.currentAccountGroupElement().getId()););
    NewRec.setFieldValue(FID_AccountGroup,multiregionValue);
    I am getting following error while running this codeu2026
    Can not set value of type 'LOOKUP' to MultiregionValue of type 'STRING
    Please help to get it resolved.

  • RE:(URGENT)WebDynpro For Java

    hi all,
    I have done an application in webdynpro for java that i.e accesing a java Bean by creating a model.
    In my model i have taken three variables i.e a,b,c
    after that i have exported the jar file of that bean...and i have created model in my webdynpro application.
    in that model i have taken that jar file and i have taken in used model to....
    After that in  diagram view of the webdynpro componnt i have mapp that model to cntroller and from controller to the view after that i am able to use the three variables from the bean as my context attributes.....
    so i have binded those attributes(from Bean) to inputfields in view layout....
    so after that when i have deployed the webdynpro application the input fields are getting disabled so iam not able to give any values....
    and when iam clicking the submit button the error iam getting is null pointer exception....
    even i have tried with different cardinality values of that node ......but my problem was not solved so plz help me out in solving this issue as soon as possible.............

    HI Mahesh,
    If you have mapped variables correctly then check following
    Your variables a,b,c wherever you declared them instantiate them.
    and be sure that that getter setter methods are exist.
    e.g if a,b,c are in your bean file then
    as a = new a's class,
    and check getter methods for a
    i.e. getA() and setA(a's class) methods.
    after this export as jar and use this new jar to create model.(It will be good if you create a new model deleting prv one)

  • Instalation to try webdynpro for java

    Hi Experts,
    I'm trying to perform an instalation to make some tests with webdynpros for java.
    In our office we have a 2003 Server Standard edition, but I don't know if I have to install the programs on the  Server or on a Personal Computer.  I don't know anything about sistem managing or administration
    We have downloaded this tryal versions:
    - SAP NetWeaver 2004 SP16 --> version java+webdynpro
    - SAP NetWeaver 7.0 (2004s) SP9 --> version JavawebdynproComposite Application Framework
    A workmate of mane have tryed to install them but he says that he can't complete the installation c'ause an error is recieved at the middle of the instalation.
    Does anybode please can give me a clue about how do I have to instal it, where; and wich version? The tests i want to make are about creating webdynpro applications with netweaver developer studio.
    Thank-you very much.
    Artur.

    Hi,
    You can get installation guides for every installation you require in service market place.
    Try refering this link
    https://service.sap.com/instguides.
    Hope it helps..
    Regards,
    Srujana.

  • How to invoke Workflow and UWL through Webdynpro for Java

    Hi,
    In my Development Component there are three applications .The requirement is that the data will flow between one application to another only through workflow in
    UWL.
    Can anybody help me out as to how to invoke workflow programatically from Webdynpro for Java .
    After data goes from one application to workflow UWL, how the second application will work on it . If possible please send me the links of some tutorials .
    I searched in Webdynpro Tutorials site but there are no tutorials available there .
    Thanks a lot .

    Hi,
    Check the following Threads,U will get lot of details......
    WebDynpro application that can work with SAP workflow work items?
    /thread/142477 [original link is broken]
    Configuring UWL with WebDynpro
    /people/niharika.jeena/blog/2006/06/06/launching-webdynpro-from-universal-worklist
    Sample Application,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/how%20to%20configure%20the%20universal%20worklist.pdf

Maybe you are looking for

  • Media browser is NOT playing the game!

    PLEASE can someone tell me why my media browser won't show me my photos or movies! Audio is no problem (the one section i hardly use) but iWeb is NO GOOD TO ME without my photos! This has been going on for several weeks now and I am at my wits end. P

  • Error 102 + Password Problems

    Hey guys, I'm having a problem with fixing my BlackBerry Torch 9800. My first problem was when it stated that I had this "Error 102" and I tried resolving that with the guide in BlackBerry's website but then I had to type in my password and every tim

  • Safari crashing unexpectedly.

    Safari keeps quitting unexpectedly. I have been using Firefox instead, but want to continue working in Safari. Here is the crash report: Process:           Safari [621] Path:              /Applications/Safari.app/Contents/MacOS/Safari Identifier:    

  • My new iphone5 will not charge,any suggestions

    Hello, my new iphone5 will not charge, when I plugged it in to recharge, it was making beeping sounds for about 5 minutes then stopped, any suggestions? thanks

  • External Networked HDD iTunes Server Question

    Hello,      I have a pc laptop and an Apple TV. I am considering buying an external, network, HDD with iTunes Server. My hope is that I will be able to leave my laptop at work and stream music from the HDD w/iTunes Server to my Apple TV. Is this poss