Hi, I have a little Problem, I hope that you can help me.
i have the following structure (in the View)
->Zbapi_Requisition_Change_Input (Model Node, from bapi, RFC)
--> Requisition_Items_Change (Model Node, table in the Bapi)
-
> Currenci (Model Atribut, from table, in bapi)
-
> Prq_No (Model Atribut, from table, in bapi)
-
> Preq_Item (Model Atribut, from table, in bapi)
-
> Etc...
--> Number (Model Atribut, import from bapi)
now, i Have another structure, a Value Node
-> GetDetailData (value Node)
---> Currenci (Value Atribut)
---> Prq_No (Value Atribut)
---> Preq_Item (Value Atribut)
---> Number (Value Atribut)
---> etc...
this Value node is populate from OVS, but this is not a problems.
The Value node have the value that i need for execute the Bapi Requisition Change (not all).
Then, i need populate de Zbapi_Requisition_Change_Input , whit the GetDetailData value ( the user can change this, via inputfield, in Form)
I write the following sentence in the view:
wdContext.currentZbapi_Requisition_Change_InputElement().setNumber(wdContext.currentGetDetailDataElement().getPreq_No());
this work fine, it populate de input field "Number", because the Number is "Import" form bapi, is not a "table".
My problem, is when i need populate the table "Requisition_Items_Change" (Necessary to execute the Bapi), i put this:
wdContext.nodeZbapi_Requisition_Change_Input().nodeRequisition_Items_Change().currentRequisition_Items_ChangeElement().setPreq_Item(wdContext.currentGetDetailDataElement().getPreq_Item());
this have the same logical that anterior, but don't work, result a "JaVaNullPoint Exception"
why happens this??? to set a value in a table, I need another procedure???
Please help me, i need your knowledge...
regards...