on 05-24-2012 5:50 AM
Hi , i have created one ALV which contains the material master data .i have following requirements .
1) want to make material number (matnr) and material type (mtart) editable .
2) to upload both the filed in db table after editing
i am not able to upload the data i am using predefind BAPI . BAPI_MATERIAL_SAVEDATA by using service call . but its not working.
i am giving you the code.
method onactionsave.
DATA:
NODE_MARA TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_MARA TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_MARA TYPE IF_INPUTVIEW=>ELEMENT_MARA .
* navigate from <CONTEXT> to <MARA> via lead selection
NODE_MARA = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_INPUTVIEW=>WDCTX_MARA ).
* @TODO handle not set lead selection
IF ( NODE_MARA IS INITIAL ).
ENDIF.
* get element via lead selection
ELEM_MARA = NODE_MARA->GET_ELEMENT( ).
* @TODO handle not set lead selection
IF ( ELEM_MARA IS INITIAL ).
ENDIF.
* alternative access via index
* Elem_Mara = Node_Mara->get_Element( Index = 1 ).
* @TODO handle non existant child
* if ( Elem_Mara is initial ).
* endif.
* get all declared attributes
ELEM_MARA->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_MARA ).
WD_COMP_CONTROLLER->EXECUTE_BAPI_MATERIAL_SAVEDATA(
).
its not working .
please suggest me anyother to upload the data after changing it in alv in sap abap wda
Hi ,
Refer following document.
http://www.scribd.com/chaps_online/d/54883988-SAP-Web-Dynpro-Edit-ALV
Regards
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello webdynpro consultant,
Go through the following link
http://saptechnical.com/Tutorials/WebDynproABAP/Column/page2.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.