on 06-16-2006 1:06 PM
Hi,
I have made a search engine with input fields
In the back-end the Bapi is working. on the portal only 1 of the three input fields are working. What could it be?
Regards
Sven
Please give us more information.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Y_Tf_Employeelist_Input.First_Name =input field
Y_Tf_Employeelist_Input.Last_Name = Inputfield
Y_Tf_Employeelist_Input.Perno = input fioeld and is working
Y_Tf_Employeelist_Input.Output.Employee_List1 is table result
code on iview
public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionSearch(ServerEvent)
wdThis.wdGetProcesStartController().executeY_Tf_Employeelist_Input();
//@@end
}
Code Controller
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
{
//@@begin wdDoInit()
Y_Tf_Employeelist_Input input = new Y_Tf_Employeelist_Input();
wdContext.nodeY_Tf_Employeelist_Input().bind(input);
//@@end
}
//@@begin javadoc:executeY_Tf_Employeelist_Input()
/** Declared method. */
//@@end
public void executeY_Tf_Employeelist_Input( )
{
//@@begin executeY_Tf_Employeelist_Input()
try
{
wdContext.currentY_Tf_Employeelist_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch (Exception ex)
{
ex.printStackTrace();
}
//@@end
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please change temporary error handling in executeY_Tf_Employeelist_Input:
public void executeY_Tf_Employeelist_Input( )
{
//@@begin executeY_Tf_Employeelist_Input()
/**/
try
{
wdContext.currentY_Tf_Employeelist_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch (Exception ex)
{
wdComponentAPI.getMessageManager().reportException
(
new WDNonFatalException(ex), false
);
}
VS
Ok, then try this variation:
public void executeY_Tf_Employeelist_Input( )
{
//@@begin executeY_Tf_Employeelist_Input()
/**/
final IWDMessageManager msgs = wdComponentAPI.getMessageManager();
try
{
msgs.reportSuccess("Call BAPI with " +
"first-name=" + wdContext.currentY_Tf_Employeelist_InputElement().getFirst_Name() + ", " +
"last-name=" + wdContext.currentY_Tf_Employeelist_InputElement().getLast_Name() + ", " +
"number=" + wdContext.currentY_Tf_Employeelist_InputElement().getPerno()
);
wdContext.currentY_Tf_Employeelist_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
if ( wdContext.nodeOutput().size() < 1 )
msgs.reportWarning("Empty output");
else
msgs.reportWarning("Rows selected: " + wdContext.currentOutputElement().nodeEmployee_List1().size() );
}
catch (Exception ex)
{
msgs.reportException( new WDNonFatalException(ex), false );
}
and tell what you see on screen.
VS
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.