on 01-14-2008 8:51 AM
Hi All..
I am new to webdynpro. I want to pass values through input fields (user input) to a bapi, which stores it as a table. i get the following error :
"Adapter error in INPUT_FIELD "INPUT_FIELD1" of view "Z_BACKUP_14TH.MAIN": Context binding for property VALUE cannot be resolved: The COMPONENTCONTROLLER.1.BAPI_BCA_PAYMITEM_PO.1.CHANGING_1.1.PAYMENTITEMS node++ "
Please help out.
hi bichoo...
you can follow the link below to get an idea of how a value is passed to he bapi......
[link|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600]
the error is due to some context binding which you have not properly done.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi again Alex,
Here's what actually happening.. I've interfaced BAPI's successfully before. I've done this by binding an InputField with the import parameters of a BAPI.
However, I'm now trying to get to a BAPI that requires a whole table as one of its parameters. For the normal import parameters, InputFields still work fine. When I map the same Inputfield with that of an attribute of the table, I get the above said error..
Therefore, can we pass values to a table using an Input Field? If we can't, what are the other options, besides using a direct table mapping. Moreover, is there a way to store values that can be used over other methods and actions (sorta like a global variable)? Sorry for this laundry list of errors, but hope the problem makes more sense now.
hi bichoo.......
you cannot pass an input field to a table....
you can pass values from one method to another by using the ikport export parameters that every method has on the top. a small tablular column or a table control.
the best method is to create attributes in the context and update it whenever needed.
there should be no situation where you are going to pass only one field as a parameter to a table.
---regards,
alex b justin
hi bichoo........
i will give you a scenario.....
consider you are having an internal table with fields like po no, user who created it. but your input field will have only the po no.
in that case.
create a work area for that internal table.
let it be wa.
so:
wa-pono = <input field>.
append wa to itab.
now pass this itab to your bapi which will have only po no and not the user name ho created it.
---regards,
alex b justin
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.