on 07-13-2011 8:36 AM
Hi Experts,
I working on a web dynpro component ,for which i created a view.
i layout i created a button -SAVE .
which should save the data in the custom table .
can any one pls help with the logic
Hi
To achieve this following steps need to be followed:
1. in the property "On action" create a new method.
2. now in this method, using code wizard select the appropriate node from which your table is binded. Select "Read option" and "As Table operation" check box.
3. This will automatically generate some lines of code.
4. Identify the internal table, declared as the type of that node.
5. write a insert or update query on the corresponding DB table with this internal table.
Hope. this will help u.
Cheers
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi...
In that button action...
first fetch the node values like
CALL METHOD LO_ND_N_FAMILY1->GET_STATIC_ATTRIBUTES_TABLE
EXPORTING
FROM = 1
TO = 2147483647
IMPORTING
TABLE = IT_FDATA.
here N_FAMILY1 IS NODE NAME.
IF your node structure is similar to ztable, then use modify statements.
modify ztable from it_data...
Hope you got idea.
Regards
Srinvias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Every button needs to have Action defined ( an event handler method) where you can write your logic for saving data to your table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to write your bussiness logic statement in on action of SAVE.
For save button create one Action say SAVE. In that action code like to save data.
Use MOIDFY or INSERT Statement as per your requirement.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.