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

Debugging a function in UPDATE TASK

Former Member
0 Likes
1,196

Hi All,

I'm debugging a function in UPDATE TASK. I have just actived the flag 'Update Debug'.

My problem is Find how the Function's parameters are passed. The function is called dynamically by a statement like this:

" PERFORM (VBFUNC) IN PROGRAM (TFDIR-PNAME) USING VBID. "

Does someone help me?

Thanks

7 REPLIES 7
Read only

Former Member
0 Likes
970

Hi,

Your question is not clear to me.

wht I understood that you want to get the parameters passing to a function module which is dynamically called.

" PERFORM (VBFUNC) IN PROGRAM (TFDIR-PNAME) USING VBID. "

this statement is not calling any FM it is calling a subroutin which exist in TFDIR-PNAME program variable after USING stat is your parameter.

You can get the name of the form, program and the parameters if you debug at this point.

Thanks,

Anmol.

Read only

Former Member
0 Likes
970

Hi,

this is not a function but a FORM in a program (function group). Have al look into the content of VBFUNC and TFDIR-PNAME, which forrm in which program is calles and llook there, how the name of the parameter for VBID is.

Regards,

Klaus

Read only

0 Likes
970

Hi Klaus,

into VBFUNC there is the name of Function Module '/SAPSLL/CTSGEN_WRITE_DOCUMENT' and into TFDIR-PNAME there is the name of Function Pool '/SAPSLL/SAPLCTSGEN_CD'.

Regards,

Giuseppe

Read only

0 Likes
970

HI,

Which tcode/prog you are debugging..

Is the VBID is having some structure which is similar to what is there in tables parameter in this FM.

Thanks,

Anmol.

Read only

0 Likes
970

I'm debugging the transaction /SAPSLL/LLNS_002 ( SAP GTS)

The structure VBID is different.

Thanks a lot,

Giuseppe

Read only

0 Likes
970

Hi Giuseppe,

as you told before you have a PERFORM and no CALL FUNCTION. So you call a FORM routine and no function module.

Can you scan for this FORM routine in the whole function group in SE80 / SE38? How is the parameter of VBID defined, maybe type ANY?. Have a look into this FORM, maybe there is a CASE, where you can see the possible structures of VBID.

Regards,

Klaus

Read only

0 Likes
970

Sorry me for the late.

I was wrong, I found the statment 'CALL FUNCTION.

Thanks at all,

Giuseppe