‎2010 Jul 04 5:42 AM
why select data from Function directly (SE37) got data , but when use function in program donot found data
i use function
CS_BOM_EXPL_MAT_V2
when i run function directly at SE37 .
i found data.
but when i use same function in program .
system not found.
please see my attachment.
help me please.
[http://www.quickfilepost.com/download.do?get=c974356a498b3a4d369aa0c50622e50b]
http://www.quickfilepost.com/download.do?get=c974356a498b3a4d369aa0c50622e50b
‎2010 Jul 04 8:02 AM
put the break-point in the program at the function module, & check the whts the values its passing to the function module. And try in se37 with the same values.
‎2010 Jul 04 9:29 AM
Hi,
Is it a RFC and being called using a RFC user ID when called through a program and tested using SE37 with another ID?
In that case check the authorizations.
Regards,
Sagar
‎2010 Jul 05 4:33 AM
I know why U get empty data.
In Program U should follow the rules:
U'd better data a variant typed the function parameters's type.
for example:
in your program the parameter: stlal = '1'
U'd better like follow:
Data l_stlal type STKO-STLAL
l_stlal = '01'. *Attention: '1' <> '01'.
stlal = l_stlal.
in this way U may have less mistake
and the parameter MTNRV
U should use material convernt : "CONVERSION_EXIT_MATN1_INPUT" to change material into internal types before U put into function's parameter.
why se37 has no problem? because In se37, the data you filled was be processed before use
‎2010 Aug 02 11:40 AM