BAPI Input Table

Hi,
1. I need to know how to implement a table as input for a bapi.
We've created a BAPI (RFC Func.) via SE37 and added input tables to tables TAB. But no sure if this is correct.
How can we try this BAPI via SE37.
2. Is there very generic sample RFC Func. which has input table structure in standart SAP system?
regads

Dear Husyein,
       BAPI's are nothing but remote enabled function modules they are similar to any other function modules.You refer tables to function modules to pass internal tables to function modules.
      in the tables tab you declare the tables refering to standard structures.
       go look into any function module which table is passed .
      go a hhead.
cheers,
Suresh.

Similar Messages

  • Input Table for BAPI appears under "Output port"

    Hi,
    I have the following problem:
    I want to call BAPI "BAPI_BCA_PAYMITEM_POST_ITEM"
    in my Model.
    The BAPI has an input-table PAYMENTITEMS.
    The problem is, that in Visual Composer it appears as an output port.
    Therefore I can not fill this table and call the BAPI.
    Any ideas ?
    Regards
    Georg

    Hi Marcel,
    thanks for your reply. It works !
    How about I want to use a table both for in- and output ?
    Regards
    Georg

  • Input table on BAPI

    Hi all,
    I have a problem when I call a BAPI parsing a input table.
    Normaly, I can define a input using: on the Custom Controller.
         Z_Bapi_Mov_Estoc_Input input2 = new Z_Bapi_Mov_Estoc_Input();
         wdContext.nodeZ_Bapi_Mov_Estoc_Input().bind(input2);
         input2.setParam1("test");
    but this bapi have a input table.
    How can I add this values?
    I've try with this code, but no work's:
         IPublicMagatzemListCust.IItemsElement newMaterialNodeElement;
         newMaterialNodeElement = wdContext.createItemsElement(new Zdetalle());
         wdContext.nodeItems().bind(newMaterialNodeElement);
         newMaterialNodeElement.setMatnr("3233");
         newMaterialNodeElement.setQuant(1);
    the table is mapped using Items node.
    Can anyone help me?
    thanks in advance,
    david

    Hi David
      Well lets say the table name is "MYTAB"
    Then what you need to do is in the model if you see you will get a Table class called "MYTAB"
    //After your lines
    Z_Bapi_Mov_Estoc_Input input2 = new Z_Bapi_Mov_Estoc_Input();
    wdContext.nodeZ_Bapi_Mov_Estoc_Input().bind(input2);
    input2.setParam1("test");
    //code to add values to table
    MYTAB tab = new MYTAB();
    //Set table attributes
    tab.set<attribute>();
    tab.set<attribute1>();
    now add the tab to the inp created
    input2.setMYTAB(tab);
    Hope that helps you. This will add the values to the table.
    regards
    ravi

  • Problem with BAPI inputs

    Dear all,
               I need a help in webdynpro using bapi scenario
    -> my form has 6 input fields, in that 4 are drop down boxes which gets the value from respective 4 bapis.
    -> 2 input fields should be in date picker which didnt get value from bapi
    -> another table which is connected to bapi for ouput uses all the 6 fields as input
                      now my problem is, i can take the first 4 dropdown boxes values as input to grid, but i couldnt take the last 2 fields(dates) as input to it.
                      To make the field as date picker we need to create a structure in Dictionary object. There is no date picker to select from "Insert Child" option. that is if the type is date then it automatically makes the inputfield as date picker.

    Dear Lohi,
               I didnt get you what you are saying... i am not importing and Fn Module... its actually a WSDL iam importing it through WD wizards.....
                After importing it i need to pass 6 fields as input.....i have 4 fields of inputs  which are output of 4 another wsld. i can map that 4 outputs of 4 different WSDLs to input of Grid WSDL.
                 the problem here is.... another two fields those are date fields i need to send to Grid WSDL as input, if i directly create valuenodes in the context, and map to fields as input to Grid WSDL the output giving error.
                  Hope you understud my problem..... please help me out in this regard

  • Regarding BAPI Return Table

    Hi all,
    I am having an issues, when the user enters the correct value into an input field then i am getting the output properly. But if he enters any wrong value a message is populated into the BAPI return table. So how do I check if the BAPI return table is empty or not. If it is empty then it has to open the output table and if it is not empty it has to show the error message as an pop-up or table format.
    Please reply, points will be rewarded.
    Thanks & Regards,
    M.Ramana Murthy

    Hi Ramana,
    If you want to capture the message returning from the BAPI which you are using then do the following:
    1.> Drag the line from the BAPI return port and link it to a form or to a table.
    2.> Then go to the form/table click the UIelement and in properties of that assign the default value which you want to display. It may be a message coming out of the BAPI.Through this way you can capture the values coming out of the BAPI
    Regards,
    Nutan

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • Startrfc - how to call with "input table"?

    I have not been able to get sapnwrfc for Perl to compile correctly on my AIX systems so i want to try something different.
    I started to investigate using startrfc to get my data but am running in to a problem.
    Problem Summary:  I want to get information via RFC_READ_TABLE using startrfc.  I can successfully call function modules but cannot figure out how to send in a "WHERE" clause using startrfc.  Does anyone know how to send "input tables" to startrfc so that I can limit my results?
    Background:  I want to dump a list of the dialog UIDs in a SID/client.  When I do RFC_READ_TABLE via SE37, it asks for an "OPTIONS" input table that you use to put the "WHERE" clause.  I fill in the information in the "TEXT" field and all is well.
    I can call startrfc with the -T option and capture the output to a file, but I cannot figure out how to use an input file to provide the OPTIONS table.  -E doesn't work. 
    Here is what I call:
    /usr/sap/<SID>/DVEBMGS60/exe/startrfc -t -3 -h <hostname> -s 60 -c 000 -l E -u <my id> -p <my password> -F RFC_READ_TABLE -E QUERY_TABLE=USR02 -E "DELIMITER=|" -T DATA,1000,w=output.txt -T OPTIONS,100,r=input.txt
    My input file (input.txt) looks like:
    TEXT="BNAME = 'someuid'"
    Here is the error message I get when I run this.
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     A dynamically specified column name is unknown.
    Note that I know that there are other functions to check for existence.  I am attempting to get a dump of all dialog users with some information from USR02 not normally provided by the builtin function modules (ERDAT).  This is just the first step to getting there.  Once I have this figured out, I'll send in a "*" to match all.  Also, I am able to do this sort of successfully via Perl's sapnwrfc but am unable to get it compile on AIX and that is where I need to run this.
    Can anyone help?
    Edited by: Eric Young on Apr 7, 2011 5:59 PM
    Edited by: Eric Young on Apr 7, 2011 6:00 PM

    It's fairly obtuse as well, but I can see that I'm sending something.  I just don't know what it should look like so that SAP likes it.  Here's the relevant send section:
    000240 | 04000000 01033003 02000800 0001F400 |......0.......ô.|
    000250 | 00000003 02030100 074F5054 494F4E53 |.........OPTIONS|
    000260 | 03010330 00040000 00020330 03020008 |...0.......0....|
    000270 | 00000032 00000001 03020303 00325445 |...2.........2TE|
    000280 | 5854203D 2022424E 414D4520 20202020  |XT = "BNAME = 'S|
    000290 | 20202020 20202020 20202020 20202020 |SOMEUID'"        |
    0002a0 | 20202020 20202020 20202020 20202020 |                |
    Please note that I've obfuscated "SOMEUID" and the corresponding HEX dump.
    Edited by: Eric Young on Apr 7, 2011 6:26 PM

  • Alter a BAPI Result Table, how to get into the display "loop" ?

    Hello all,
    i have a problem regarding the result rows of a RFC/BAPI Call.
    There are three views, let's say 1,2,3. In View 1, i call a BAPI, and display the results in a table in View 2. I added a button in each row, which calls View 3 and displays some details concerning the selected row.
    I now want to store a flag for each row, that has been displayed in this way.
    In View 3 i store the key value of the displayed row in an own value node in the context.
    When i go back from View 3 to View 2, i want to see that flag (in an extra column) in every row, that has been selected in this session.
    So i do not know, how to alter a single row in the BAPI result table, how to get into the "loop" that is used by WD to display the table.
    already tried a supply function, but i was not able to alter single rows.
    Any suggestions/tips or perhaps code fragments of working supply functions ?
    Thank you !

    Hello,
    I'm not sure whether I understood your problem correctly, but I will try to give an answer.
    The easiest way I see is to copy the RFC Results to a Component Controller Context structure with an additional Flag field. You can use WDCopyService for copying.
    Then on the event of selecting you set your flag as appropriate for you (e.g. if you want to use an image as flag you set the Image path) on the current element of your table. Then display View 3.
    On going back View 2 should show now the new flag values...
    The trick is to copy the values (as at Time structures can not be expandend with new fields) and set the Flag on the onSelect event.
    Hope this helps,
    Frank

  • How to implement two dependent dropdown lists in an input  table row?

    Hi all,
    I am new in Jdev 11g. I try to develop an input table with two dependent dropdown list. I can create independent dropdown list in such table. When I try to implement dependent one following some examples do it in a form using bind variable in the view object I get an empty listbox. How can I do this? Is it possible. I cannot find any documents about this.
    Thanks in advance

    Hi,
    it hasn't changed between 10.1.3 and 11. The basic outline of how you do it is
    - use a managed bean to query the data
    - populate the list with f:selectItems that point to the managed bean ArrayList<SelectItem> for the master and the detail
    - obtain the master ID in the managed bean by parsing the #{row} variable when the table renders
    - then bulild the detail list
    - have the detail list referencing the ArrayList<SelectItem> you expose for the details
    Note that without proper caching, the action is quite expensive
    Frank

  • Input table sort for uncommited data

    Hi OTN,
    I have an input table on my ADF page. The table is based on a view object which has ORDER BY VALUE clause.
    There is an opportunity to insert new rows and edit Value attribute of any row.
    I would like the table always to be sorted by Value attribute before commiting the changes.
    Input fields have autosubmit=true and I also have button which performs ADFUtils.findIterator(..).executeQuery() and refreshing the table (with addPartialTarget or table's partial trigger).
    Besides I tried declarative column sorting.
    By no means I succeeded to sort the table with new values without commiting data.
    Is there any possibility to do this?
    Thanks.
    JDev 11.1.1.4

    Hi,
    After applying this code in a managed bean           System.out.println("ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS");
              trIter.getViewObject().setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
              trIter.getViewObject().setSortBy("NEnd");
              trIter.executeQuery();in-memory sorting really works.
    But now I have a row with null NEnd first in my table. Without modifying query mode it was last just as I need.
    It is now:null
    10
    20
    30Can I bring null row back to last position?
    Tried trIter.getViewObject().setSortBy("NEnd nulls last"); and trIter.getViewObject().setSortBy("deocde(NEnd, null, 9999, NEnd)"); with no success.
    Edited by: ILya Cyclone on Jul 8, 2011 3:28 PM

  • How do I change the order of input tables in joiner?

    I have 3 input tables in a JOINER, how can I change the order? for instance, the order now is: t1, t2, t3, for some reason, I want to change to t3, t2,t1.
    I use outer join among tables, different table order cause OWB generated different sql statement.
    Please help! Thanks.

    Unfortunately you cannot... The only way is to remove one group, then create a new one instead and re-connect the group...
    JP

  • Need a bapi or table for GL Report

    Hi experts,
    I need a bapi or table for generating report period balance for GL accounts. i found one bapi BAPI_GL_GETGLACCPERIODBALANCES which is closer to my requirement. But i want to get the balances for cost center and particular material. As Cost center and product ranges are in my selection fields.
    Can anyone tell me table or BAPI?

    SAP standard infoset query provides a report STDCOST for this.
    May be this will suit your requirement. It will give material wise costing.
    hope this helps.
    reward if helpful.

  • AWM dimension mapping - is it possible to load data from two input tables ?

    Hello All
    I have two tables ProductFamily (parent level) and Products (child level).
    I want to load a dimension from these two tables where the parent-child relationships are maintained (I am using AWM).
    I created a mapping with these two tables as input, but the data loaded does not maintain the relationships.
    So how do I do that? Is it possible to load dimensions where different levels get data from multiple tables?
    Is there any type of joiner available in AWM?
    thanks
    Few Notes:
    - I do not want to use OWB here as my data is clean
    - In AWM, When I loaded the data from a single view which contained data from both input tables, it worked fine. But this is my worst case option.

    You should use the Snowflake Dimension option in the Dimension mapping screen for the Product Dimension (as opposed to the default dimension mapping style - star schema).
    This will modify the mapping inputs to include a separate parent level key for each hierarchy/level i.e. for each hierarchy/level (unless topmost level of hierarchy), you need to specify the parent level key in addition to the current level key, code/name/description/other attributes etc.
    You can do the mapping in either .... use icons at the top of the mapping screen.
    the drag/drop mode by dragging the relational column onto dimension model - hierarchy/level/attribute
    -or-
    the table expression mapping mode which gives the same effect.. dragging a column onto an attribute sets the expression in <schema>.<table>.<column> format.
    HTH
    Shankar
    Note1: Complete the mapping in one go.. Switching b/w the mapping modes cause the mappings to be reset.
    Note2: Assume your data is correct, foreign key to parent level table: ProductFamily exists in child level table: Products.

  • ADF 11g Input Table createinsert operation - can I manipulate?

    Hi,
    I am an ADF newbie, and trying to figure out how to best approach this, any help appreciated.
    I am using JDeveloper 11.1.1.3.0 with ADF BC.
    I want to create/delete from a table from UI. I followed 23.3 Creating an Editable Table and 23.4 Creating an Input Table from Fusion Dev Guide.
    Basically, I:
    - Created an entity object, call it xxEO
    - Created a view object based on this entity object, call it xxEOVO
    - Dropped xxEOVO from data control palette as ADF table, and added createinsert, delete, commit operations to toolbar.
    This works great.
    But now I am trying to prepopulate one of the fields on every new row creation when createinsert is clicked. Basically, I dont want the user to be able to change this value, i want it to just show a read-only value in the new row when they hit the createinsert button.
    Is there an easy way to do this? What are my options? I dont see any generated code where I can plug my value in..
    Thanks!
    Kalp

    user514831 wrote:
    Thank you for your reply.
    The existing ActionListener JDeveloper created for me when I dropped CreateInsert as a button is : #{bindings.CreateInsert.execute}.
    So is it that if I want to do anything more complicated than showing all table columns and updating all table columns, I cannot use this and have to replace by custom code like the one you have provided?
    Yes!
    I guess, you want to make only few columns that you have defaulted to be read only & not the entire row.
    If so, make these columns as readOnly
    <af:column sortProperty="Jan" sortable="false"
    headerText="#{bindings.Results.hints.Jan.label}" id="c2">
    <af:inputText value="#{row.bindings.Jan.inputValue}"
    label="#{bindings.Results.hints.Jan.label}"
    readOnly="true"
    required="#{bindings.Results.hints.Jan.mandatory}"
    columns="#{bindings.Results.hints.Jan.displayWidth}"
    maximumLength="#{bindings.Results.hints.Jan.precision}"
    shortDesc="#{bindings.Results.hints.Jan.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.Jan.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Results.hints.Jan.format}"/>
    </af:inputText>
    </af:column>
    Thanks,
    Navaneeth

  • Input table becomes Read-Only

    Hi all,
    I'm trying to implement input table but the table shows as read-only.
    1. Node cardinality = 0...n
    2. Selection = 0...1
    3. Singleton = true
    All fields are input field.
    After i deploy and run the application, the read-only table shows up.
    Please advise me on this. Thanks in advance.
    Peerasit

    Hello Jomsri,
    The table is coming as read only because you havenot added any element to the nodes and by default there will be no element in the node as you are selecting a cardinality of 0...n. If you change it to 1..n then you can see one row will have input fields enabled.
    Best way to implement this is add a button in the layout, name it as add a new row and in the action of this button add the following code:-
             IPrivateTestingCompView.I<nodename>Element a = wdContext.node<nodename>().create<nodename>Element();
             wdContext.node<nodename>().addElement(a);
    this will add a new row to the table each time you press the push button.
    Hope this will solve the problem
    Regards,
    Sarbjeet

Maybe you are looking for

  • Can't backup to my Time Capsule -- always hangs

    So, tonight I bought a Time Capsule to back up my MacBook Air to. I've been using AirPort Base Stations for years, so I'm pretty familiar with troubleshooting them at this point. Long story short, I've not been able to get a single successful backup

  • How can I change the Number (Increase) automatically daily at 12:00 am?

    Hi, Can someone help me out to sove this problem, please? I have a text box movie clip called Text_mc. The Text_mc contains the number "1". I need this number to be updated daily at 12:00am by adding "1" to the existing number. Actually it is like a

  • Importing a table

    Hi all, Assume that I faced a db crash at 10:00 AM. and I used the rman backup set to recover the whole db and i recovered it around 13:00 and i took a rman full backup after recovery. Now it is nextday 20:00. Is that posible to flash back a table to

  • SMTP settings populating Mail.app

    Hi All, I've set up SLS Mail to serve up incoming email via IMAP and relay outgoing email through my ISP's SMTP server. The configuration is nicely replicated to the client and Mail App on the client machine picks this up. Now, the IMAP port is forwa

  • Reviews and ratings not showing up

    Hi: All of the reviews are not showing up for our podcast. How do I get them to show up and how do I access them all. I know people have reviewed but I do not see their entry. https://itunes.apple.com/us/podcast/recurring-revenue-revolution/id5302790