BAPI in webdynpro

Dear All,
iam using BAPI_FLIGHT_GETLIST while creating a WD, I  have used a Service call
while using the wizard i got method EXECUTE_BAPI_FLIGHT_GETLIST for using the BAPI
now iam trying the same activity with BAPI_COMPANYCODE_GETLIST but i am unable to get any method for it, how can i find and use the methods that are related to BAPI s.
Thanks and Regards
Kumar

hi
step 1 Right Click Webdynpro componet
       2 create a servive call
Select Controller 
  Select Service Type 
  Select Service 
  Adapt Context 
all fine till here ...........
  Specify Method Name 
Component       ZWDP_FLIGHT                     
Controller      COMPONENTCONTROLLER             
Method          EXECUTE_BAPI_FLIGHT_GETLIST     
Description     Find list of flights            
EXECUTE_BAPI_FLIGHT_GETLIST      is method for BAPI_FLIGHT_GETLIST     
where do i get methods for other BAPIs example BAPI_COMPANYCODE_GETLIST
here is the problem .
  Generate Controller

Similar Messages

  • Creation of sale order using bapi in webdynpro using table control

    only first row is getting updated when checked in va03, the line items are not getting replaced, only first row is committed..
    Here is the code for table control i used...
    http://www.scribd.com/doc/51879492/creation-of-sale-order-using-bapi-in-webdynpro-using-table-control
    pls help me out with this..

    Duplicate Posting.  Original is here: Sales order creation with bapi in webdynpro using table control

  • How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

    Hi Exerts,
    When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
    So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
    Thanks in advance,
    Joeri

    Hi,
    There could be two possibility if you are storing this value in ABAP table.
    1. You are entering value in UPPERCASE in your webdynpro application.
    2. The data stored in ABAP table, converts value in small to upper case.
    1.  Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
    Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
    e.g String name = wdContext().currentContextelement().getName().toLowercase();
    Now pass this name to RFC/BAPI is should go as lowercase only..
    This is from webdynpro java side..
    2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
    There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
    Hope this information helps guy ..!!!!
    Regards,
    Jigar

  • Executing BAPI through Webdynpro

    Hi All,
    i'm trying to use the Bapi BAPI_SALES_ORDER_FROMDATA1 from webdynpro. When i'm executing the bapi from webdynpro side its getting executed but its not giving the same set of values as output as it is giving from the R3 side for same input. I'll give the codesample that i'm using to pass value from webdynpro.
    Bapi_Salesorder_Createfromdat1_Input inp = new Bapi_Salesorder_Createfromdat1_Input();
    wdContext.nodeBapi_Salesorder_Createfromdat1_Input().bind(inp);
    Bapisdhead bp = new Bapisdhead();
    bp.setSales_Org("S100");
    bp.setDistr_Chan("DS");
    bp.setDivision("D1");
    bp.setDoc_Type("OR");
    inp.setOrder_Header_In(bp);
    Bapiitemin itm = new Bapiitemin();
    itm.setMaterial("BL8");
    itm.setReq_Qty("12");
    inp.addOrder_Items_In(itm);
    Bapipartnr bpart = new Bapipartnr();
    bpart.setPartn_Numb("2330");
    bpart.setPartn_Role("SP");
    inp.addOrder_Partners(bpart);
    After this when i execute the rfc its giving me the message
    "Sales document type OR is not defined"
    But when i gave the same input from the R3 side it gave the output and a sales order got created .
    hope you guys understood the scenario. Any sort of help is very much appreciated.

    Hello Rahul,
    Try to debug/ test what you are sending to the SAP R/3. Check the following:
    1. Check if the input is going to the same R3 client? What I mean is : where you actually tried in R3 and see if WD also goes to the same client.
    I did had this kind of problem (not the same Bapi though)and found out that the Jco connection that I had created was for different client, I created for 100 and it should have been 800.
    Hope the above is clear.
    Regards,
    Dharmi

  • Problem with special charecter while calling a BAPI from Webdynpro JAVA.

    Hi Experts,
    I am calling a BAPI from Webdynpro JAVA. I am passing a special charecter  u2018 as input to BAPI. But I am getting a # as input in R/3.. Can any one explain why it is getting changed?
    Any inputs regarding this issue are appreciated.
    Thanks,
    Kasinath.

    Hi,
        I had same problem before..For this I have created function module in backend for removing #. It was for converting Stream to ITF text.
    CONVERT_STREAM_TO_ITF_TEXT.
    Try this.
    Thanks,
    Prajakta

  • 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

  • Calling a BAPI in Webdynpro which takes no parameter

    Hi all,
          I am new to WebDynpro, I am trying to implement data access to R/3 with a BAPI. The bapi takes no imports, it consists of a method(Zbapicon) which retrieves the table data, the table data is to be displayed dynamically. And how to change the properties of UI element programmatically (example setting a field readonly, making it mandatory etc). Please post the solution, the appropriate solution is rewarded

    Hello Krishna
    Please once go through these tutorials. You ll gain fair deal of knowledge
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715">accessing ABAP Functions in Web Dynpro (4)</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/20b6e990-0201-0010-5095-f3a465de5f30">handling Transactions with BAPIs in Web Dynpro (5)</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b3f6e990-0201-0010-c087-c865f2c738b3">dynamic Programming of Web Dynpro Applications (17)</a>
    Regards
    Kapil

  • How to use two BAPIs in webdynpro Applicaiton?

    Hi All,
    I'm developing one webdynpro application which is using BAPI_FLIGHT_GETLIST for gettting list of flights and then using an other bapi BAPI_FLIGHT_GETDETAIL for getting details of particular flight which is selected from getlist bapi.
    how can use these two BAPI in single application? How to get the flight details after selecting the one row in getlist view?
    please provide me the procedure.
    Regards
    Srikanth

    hi
    First create two models Bapi_flight_getlist, Bapi_flight_getDetails.
    Add these models in your component.
    Do the model binding on Component Controller.
    Comp.Controller>apply template>servicecontroller>flightlist>choose
    Airlineid
    Maxrows
    Expand Output node.
    select Flight_List node.
    ServiceController will automatically generate the method,choose ok.
    Repeat the same for second bapi also.
    choose
    Airlineid
    Connectionid
    Flightdate
    and select Flightdata
    (you can find it by expanding output node).
    after completion of all these steps u will have Getdetilas and getlist bapi details in comp.Controller.
    To avoid overloading in selecting particular node specify different name for node.(eg:output-->output1)
    Contextmapping.
    you do the contextmapping between Comp.Controller and view by choosing appropriate details from comp.controller.
    now you will have GetDetail and GetList nodes data.
    do the view binding.
    Apply template-->select Airlineid
    Maxrows from getlist node.
    again do the
    Apply template-->select Flightdata from getdetailnode.
    onleadselect of table you call the execute methods from comp.controller generated by service Controller.
    Layouttab>table>properties-->onleadselect Event
    create action for it.
    in onleadselect<actionname>
    wdThis.wdGetFirstCompController().executeBapi_Flight_Getdetail_Input();
    wdThis.wdGetFirstCompController().executeBapi_Flight_Getlistl_Input();
    in the output Getlist table will be displayed.
    by clicking on table row,onLeadselectaction will be called.
    you will get the flightdetails.
    i hope this will solve your problem.
    Regards
    sowmya

  • How to connect to BAPIS Using webdynpro for java?

    Hi guys ,
    I am new to sap world . Can any body give overview how to
    connect BAPIS FUNCTION MODULES using   in webdynpro?

    Hi Ramana,
    Welcome to SAP world.
    You have lot of tutorials at SDN on the using BAPI's in WebDynpro.
    Please go through this link and follow the tutorial :
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
    Make sure you configure your SLD and create JCO connections which is also given in the above link.
    Also go through the following link.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    Do get back incase u need further explanation.
    All the best.
    Thanks & Regards,
    Vijith

  • Calling BAPI in Webdynpro or EP

    Hi
    any one can u send how to store data in r/3 when we submit the form in either webdynpro or EP . i mean how to call BAPIs
    Regards
    sunil

    Hi Sunil
    Refer to
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e">VC</a>
    2)
    <a href="https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Webdynpro</a>
    SDN :-https://www.sdn.sap.com/irj/sdn/howtoguides
    Check for RFC there
    Thanx
    Pankaj

  • R/3 transactions(BAPI) with webdynpro

    Hi,
    A client wants to have some R/3 transactions represented in the portal.It is about the transactions ME51,ME52,ME53(purchase requisition).
    They don't have ITS server. So Iviews need to be created with webdynpro. I know about some standaard SAP Iviews, but this is not in it at the moment. But a BAPI exist.
    So my questions is, how long it takes aproximately to make this transactions in webdynpro with al the search F4 functionality included?
    I know there is also a factor experience, but I just want to know if it is days,weeks,months?

    Hi Nicholas,
    I hope I didn't make you too scared about the upcoming effort, that was not my intention..
    I was involved in a similar project last year and its purpose was to provide casual end users (service personnel) with a simple to use web enabled tool for creating, displaying and maintaining purchase reqs.
    What we did was that we first carefully analyzed the needs they really had - it turned out the casual users really needed around 10% of the functionality the SAP GUI transactions provided, the rest could be automatised or left out.
    After that it was pretty straightforward to create the application and the users were actually very happy about the new simple to use tool after having used the standard transactions. All users naturally weren't casual users and needed more functionality so we decided to leave these power users on SAP GUI for Windows/HTML.
    My advice would thus be to define the requirements in more detail and only afterwards make the decision. If it turns out they would need the whole zhabang to be web-enabled with full functionality, then ITS is clearly the winner because of the required work effort. But if they only need a small section, then the cost-benefit ratio of a Web Dynpro app could be better.
    Cheers,
    Mikko

  • 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

  • Use Bapi In WebDynpro

    Hi,
    I new To WebDynpro And i wont Simple Example how to use bapi in web Dynpro.
    Regards

    Hi,
    The above link what Jhansi mentioned" Accessing ABAP fuctions is a very good one"
    But you have some prequisities before doing that.
    Whether the BAPI is there in the R/3 sytem.
    Learn & gain some knowledge about JCO connections.
    bcoz initially u should have an SLD connection to connect to the R/3.
    nextly you should have right to connect to crete JCO connection.
    and you should map the meta destination and model destination while creting the JCO connection.
    you should have access to R/3 system.
    if you have any problem while doing it.
    Get back to me.
    Ill help you.
    Thanks & reagrds,
    Lokesh

  • Display PDF from BAPI in Webdynpro

    Hi all,
    I have a BAPI that returns a PDF file as a TLINE table, and I need to display the result in a Java Webdynpro, do you guys know how I can do that? Thank you in advance.

    Hello SAPer
    The TLINE table is not basically a PDF file but an OTF file. I suggest you to call one more BAPI 'Convert_OTF' that takes this TLINE table as input and returns a pdf_file.
    Then in JAVA Web Dynpro, use the following code in your action handler after calling the respective RFC :-
    byte[] pdfContent;
    String pdfFileName = null;
    pdfContent = wdContext.current<Bapi_name_OutputElement>().getE_Pdf_File();
    pdfFileName = "<name>"
    IWDCachedWebResource pdfResource= WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);                                         
    try
    wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),pdfFileName,true).open();
    } catch (WDURLException e)
    msgMgr.reportException(e.getMessage(),false);
    I hope this helps you.
    Regards
    Kapil.

  • Get BAPI through webdynpro

    hi
    how to get BAPI as webservice?
    how to work on this model throgh webdynpros?
    regards
    kumar.

    Hi Ravi,
       This is very easy. You Just follow this procedure.
    <b>Creating Service</b>
    SE37 -> Enter BAPI NAME -> BAPI_FLIGHT_GETLIST -> Enter - > Copy Function Group (SAPBC_BAPI_SFLIGHT) .
    SE80 -> Enter The copied Function Group to Function Group in to SE80.
    In Object name -> You will see that Function Group -> Right Click on Function Group -> Create -> Web Service -> Continue -> Give Service name(BAPI_FLIGHT_GETLIST) & Short Text. -> Continue -> Continue -> Select Service for Runtime Check Box -> Complete.
    Continue -> Packages name (SAPBC_IBF_SFLIGHT – Same package of BAPI) and Local Object (If you don’t want to transfer to another Client) -> continue -> continue -> Continue -> Continue.
    Service is created.
    <b>Check Service</b>
    To Check the service is released or not -> use Transaction Code wsconfig.
    <b>View Service</b>
    Go to Transaction Code wsadmin.
    Regards,
    Sridhar

Maybe you are looking for