Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

JCO FIELD NOT FOUND|HOW DO I ADRESS certain parameters from a(RANGES TABLE)

Former Member
0 Kudos

Hi there,

has anybody got a clue what method is the right one?

Id like to set some importparametes f.e datevalues and flags.

They are hidden in Range Tables.

How do i get the structure and how to i set these values?

This is unfortunately not the right way to set the import parametes ...for this FB

fct4statistics.getImportParameterList().setValue(sdate,

CBConstants.DATEOPTION);

Any hint would be highly appretiated

TIA

1 REPLY 1

Former Member
0 Kudos

hmmm...

this does ... not really work for me.. im getting a nullpointer exeption..

codes = function.getTableParameterList().getTable("xyz");

codes.appendRows(2); // Add two rows to internal table

codes.setValue("I", "SIGN");

codes.setValue("EQ", "OPTION");

codes.setValue("P1001087", "SO_parameterOne");

codes.setValue("", "MATNR_HIGH");....

a.) if my function module belongs to a certain namespace, lets call it "/COMPAN/" does this prefix has to be added before "xyz" here?

b.) It seems that I have to use kinds of importparameter methods....

Is that possible and do they have to be in an order ?

something like this...

first ..

JCO.PARAMETERLIST imports fct4statistics.getImportParameterList().setValue(stime, CaConstants.I_STAT_BEGINTIME);

JCO.Structure importXY = imports.getStructure("Importselectionparametername")

imports.setValue(strFlag, "ARCH_FLAG)..

and then the above mentioned jco.table..