Application Development and Automation 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: 
Read only

why select data from Function directly (SE37) got data , but when use funct

Former Member
0 Likes
697

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

4 REPLIES 4
Read only

Sridharnekkanti
Active Participant
0 Likes
627

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.

Read only

Former Member
0 Likes
627

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

Read only

Former Member
0 Likes
627

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

Read only

Former Member
0 Likes
627

OK