03-27-2015 9:00 PM
Hi
I have a form on SE71 and would like to find the program or enhancement where this variable is populated.
The Where-Used-List Button indicates me the program SAPLMEDRUCK, but I do not find the variable.
Thanks!!!
03-30-2015 12:45 PM
Hi Guys,
Thank all of you for the tips!
I already know the program that calls the form. The program is SAPLMEDRUCK.
This is an Standard Program from SAP calling the Z form.
The variable is also an Z. I am not finding where the variable is "populated".
I did a search in all program and includes, but probally the variable is populated in an enhancement session which I do not know where is it.
Thanks!
03-28-2015 1:15 PM
03-29-2015 9:19 AM
Hi,
You can find the zprogram where the variable values are populated by using the below.
Goto SE71 give script name and disply. Then choose Utilities--> Form Info from the menu bar.
Then using Find search with the name 'Include' there u can find the Zprogram which they have used for populating values to variables.
Regards,
Ramesh
03-29-2015 11:49 AM
Hi,
just one more way that can e used if the form output is done online (i.e. in SD it may be configured as "immeditate" form creation, then the form is created in background).
1 - acticate Sapscript debugger in SE71
2 - start form creation, sapscript debugger will pop up
3 - enter /h to enter abap debugging
4 - display call herarchy. Here you can see the program that triggers the form
It may be good to continue in sapscript debugger until a (specific) text element is processed.Abap debugger call hierarchy will show you where function WRITE_FORM is called. This will be the printer driver program.
Regards,
Clemens
03-30-2015 12:45 PM
Hi Guys,
Thank all of you for the tips!
I already know the program that calls the form. The program is SAPLMEDRUCK.
This is an Standard Program from SAP calling the Z form.
The variable is also an Z. I am not finding where the variable is "populated".
I did a search in all program and includes, but probally the variable is populated in an enhancement session which I do not know where is it.
Thanks!
03-30-2015 5:03 PM
Hi,
you can
- set a watchpoint on the variable in initialization event of SAPLMEDRUCK (You did not mention if you found the declaration and where-used-list of the variable)
- use transaction code_scanner and search all Z packages for the name of the variable. This takes less than a minute even if you have many Z packages. If not successful, check what packages in customer namespace (/*) may be involved.
- Set a breakpoint at function module CONTROL_FORM. This may be used to execute a sapscript command in your current form like DEFINE &ZVAR& = <value>.
- Use Tools - Form Info in SE71, check all PERFORM statements, search for ZVAR.
Good luck and regards,
Clemens