cancel
Showing results for 
Search instead for 
Did you mean: 

Table input

Former Member
0 Kudos

Hi Gurus,

Need some advice here. I have a table in my application with few columns which is populated by a RFC call (table returns list of employees reporting to the logged on user). What i need now is to read 1 of the columns data, and use these values as an input parameter to another RFC. This will then return a second table. Any suggestions? Thanks

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Make use of supply functions.

Regards

Ayyapparaj

Former Member
0 Kudos

Thnaks all for the quick reply. Can you guys help to explain furhter on these ideas..The input of my second RFC is a table input..Is there any help/documentation on this? Thanks

Regards

Former Member
0 Kudos

Hi Gurus,

Any help/documentation on this table input issue? Thanks in advance

Former Member
0 Kudos

Hi Guys,

Any help on this? At the moment, in my controller context i have the RFC that i want to use.


Z1HR_DATA_INPUT (model node - cardianility 0.1)
      OUTPUT (model node - cardianility 0.1)
      T_INPUT (model node - cardinality 0.n)
            OBJID - model attribute
            OTYP - model attribute

Both OBJID and OTYP are the table input for the rfc. How can i pass data to this fields and execute the model. Thanks

Edited by: Nahoj Deys on Feb 19, 2008 1:35 PM

Former Member
0 Kudos

I think we already provided several solutions. Did you try any of them?

Former Member
0 Kudos

Hi All,

Thanks for all the replies. I have tried some of the proposed solutions but i'm still stuck. First, i'm not too sure how to use the supply function. What i have now in my controller is:- I'm trying to just set a fix value for the time being so that i can proceed further. Based on the below code, i'm getting a 'java.lang.nullpointer.exception'. What am i doing wrong. Thanks


 public void executeZ1Hr_Disp_Cep_Datatab_Input( )
  {
    //@@begin executeZ1Hr_Disp_Cep_Datatab_Input()
	IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
    
//  Z1Hr_Disp_Cep_Datatab_Input model = wdContext.currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject();
  Swhactor ObjIDList = null;
  
  String a = "11000991";
  String b = "P";
  
  wdContext.currentInputElement().setObID(a);
  wdContext.currentInputElement().setObType(b);
  String objectID = wdContext.currentInputElement().getObID();
  String objectType = wdContext.currentInputElement().getObType();
  try {   		
  	for( int i = 0; i < wdThis.wdGetContext().nodeInput().size(); i++  ) {
	ObjIDList = new Swhactor();
	IPublicVcMainCEPData.IInputElement tn = wdThis.wdGetContext().nodeInput().getInputElementAt(i);	
	ObjIDList.setObjid(tn.getObID());
	ObjIDList.setOtype(tn.getObType());							
	wdContext.nodeZ1Hr_Disp_Cep_Datatab_Input().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().addT_Input(ObjIDList);
	}
//	execution of Bapi
	wdThis.wdGetContext().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().execute(		  
 } catch (Exception ex) { 
        msgMgr = wdThis.wdGetAPI().getComponent().getMessageManager();
	msgMgr.reportException("Error from bapi: " + ex.toString(), true);
        ex.printStackTrace();
        }
	wdContext.nodeOutput().invalidate();
	wdContext.nodeT_Input().invalidate();
	
    //@@end
  }

Edited by: Nahoj Deys on Feb 19, 2008 1:21 PM

Edited by: Nahoj Deys on Feb 19, 2008 1:23 PM

Edited by: Nahoj Deys on Feb 19, 2008 1:29 PM

Edited by: Nahoj Deys on Feb 19, 2008 1:29 PM

Former Member
0 Kudos

Can you please edit your post and use the code tag ( without spaces)?

Former Member
0 Kudos

Hi,

Thanks for the reply. I've edited my earlier posting. Thanks

Former Member
0 Kudos

[SAP Help - Model Tutorials - Adding the Implementation of the Backend Connection|http://help.sap.com/saphelp_nw04s/helpdata/en/5d/3c96e4c1c3934cbd9c19fb9df49944/frameset.htm]

Former Member
0 Kudos

Hi Pascal,

I've managed to solve most of the issue. There is just one main bit left. I have awarded full points to you for this. I'll create a new topic for the other issue that i have. Thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Make Use of Supply Function.

In the component context,assign supply function to your desired node and create it using forward navigation..

best regards:

vikram salvi..

Former Member
0 Kudos

Manually create a value node with a value attribute. Use context mapping to map column 1 of the RFC output to the value attribute.

You might also be able to map it directly to the input parameters of the second RFC.

Edited by: Pascal Willemsen on Feb 13, 2008 3:55 PM

Former Member
0 Kudos

Hi Nahoj

U can do this by creating new action leadselect.

Add this action to table. then assign data to variable and assign that variable to input.

This should work

Regards

Pratyush