cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with debuging Model

Former Member
0 Kudos

Hi all,

i have an application, i deployed it sucessfully. unfortunately i am sending my data to model and to backend ABAP. But i am not recieving data from backend. Can any one know about this problem.

Thnak you

Regards

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

former_member189631
Active Contributor
0 Kudos

Ravi,

Thr must be the following scenarios,

1)Check your JCO connections

2)Bapi doest give the data when no data.

3)Exception May be arrosed when you try to execute the BAPI.

Try to write the code for message Manager to display the exceptions.

4)Map and Bind your return code also,this will give the return result incase your

bapi/fm contains exceptions/no data.

5)Execute your bapi from the r/3 side and check it.

Regards,

Ramganesan K.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi All

This is my code: my backend:

SELECT SINGLE usercat INTO ex_user_cat FROM /arch/arm_user WHERE

username = im_user.

ENDFUNCTION

Controller Component:

public void wdDoInit()

{

//@@begin wdDoInit()

__Arch__Arm_Get_User_Cat_Input input = new __Arch__Arm_Get_User_Cat_Input();

wdContext.node__Arch__Arm_Get_User_Cat_Input().bind(input);

//@@end

}

public void Example_GetData( )

{

//@@begin Example_GetData()

try

{

wdContext.current__Arch__Arm_Get_User_Cat_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(Exception ex)

{

ex.printStackTrace();

}

//@@end

}

View Controller:

public void onActionToGetData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionToGetData(ServerEvent)

wdThis.wdGetExampleCompController().Example_GetData();

//@@end

}

Please can anu one help me in this

Thank u

Regards

Ravi

Former Member
0 Kudos

Hi,

did u try doing external debugging to see if the value of for im_user is being set on the backend ?

regards,

prasy

Former Member
0 Kudos

Hi Ravi,

before executing the RFM call you must set the input parameters of it.

You must do this after the bind method.

Have a look at this link:

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715">wd [original link is broken] [original link is broken]

Best regards,

Gianluca Barile

Former Member
0 Kudos

Hi,

Add this code in yorur customcontroller and output node pass to view Context and bind with the table UI element.

Then it should work.

Bapi_Material_Get_Detail_Input_INPUT input = new Bapi_Material_Get_Detail_Input_INPUT

();

wdcontext.nodeBapi_Material_Get_Detail_Input_INPUTElement().bind(input);

send ur input like this.

input.setTABLE(tble);

input.setCatogory("Value");

input.setDate("dd/mm/yyyy);

input.setProjId(value);

aftert this.

try{

wdContext.currentBapi_Material_Get_Detail_Input_INPUTElement().modelObject().execute();

wdContext.nodeOutPut.Invalidate();

int i = Wdcontext.nodeMaterail_General_Data().size();

}

catch(EX e)

{

e.prstack();

}

thanks,

Lohi.

Former Member
0 Kudos

Hi all,

i have an application, i deployed it sucessfully. unfortunately i am sending my data to model and to backend ABAP. But i am not recieving data from backend. Can any one know about this problem. It is not a problem with JCO and Not problem with model. Not a Problem with Context, Then Where is the problem occuring? It is Simple one i can'n understand why webdynpro is not sending data back. i see the field is enabling which was grid out previously.

Thnak you

Regards

Ravi

former_member189631
Active Contributor
0 Kudos

Hi Ravi,

Check Please check your Bindings and Mappings.

Regards,

Ramganesan K.

Former Member
0 Kudos

Hi Ravi,

could you please be more precise? What BAPI (or RFC) are you using? what interface have it?

Can you attach the java code?

Best regards,

Gianluca Barile