cancel
Showing results for 
Search instead for 
Did you mean: 

Control not going to backend

Former Member
0 Kudos

I created a custom controller and wrote the following code in the init part of Cust controller. No errors. But when i deploy control doesnt goto the back end and in the view empty table is coming up.

Requirement is to pass the userid to the backend and get the data from the BAPI and siaplay it in the table format.

input1.setUserid("USRID");

wdContext.nodeZ_Ess_Read_9099_Input().bind(input1);

try {

input1.execute();

wdContext.nodeOutput().invalidate();

} catch (Exception Ex) {

Ex.printStackTrace();

}

//@@begin others

Z_Ess_Read_9099_Input input1;

//@@end

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Pankaj,

Have you tried executing the Bapi from the ecc system i.e. using SAP Logon?

If not try that and check whether you get an output for the userid you provide as input?

I think the problem is that no data exists for the userid you provided. Or some other input must be required along with the userid.

Because your code looks fine.

If the Bapi executes fine in the ecc system,

then check the message returned in the "return node" when you execute from web dynpro. Bind it to a table and check.

Convey the results here.

Regards,

Mayuresh.

PS : xxxxxxxxxxxxxxxxxxxxxxx

Edited by: Mayuresh Kanvinde on Dec 27, 2007 7:37 AM

Edited by: Armin Reichert on Jan 1, 2008 3:48 PM

snehal_kendre
Active Contributor
0 Kudos

try {

input1.execute();

wdContext.nodeOutput().invalidate();

} catch (Exception Ex) {

Ex.printStackTrace();

}

dont invalidate output node.its like you are clearing your own data.if the requirment of bapi is only userid, then ur code is fine except that line....but please make sure form stack tress exactly wht is problem..and post it so it will be easier to solve the problem

Former Member
0 Kudos

Hi,

Try to print a message using message manager to see the code is executed as expected.

Have you invalidated the context after execution?

/docs/DOC-18495#section10 [original link is broken]

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c2...

Regards

Ayyapparaj