04-08-2009 1:53 PM
Hi all,
I have to pass the current sapcript form name in the sauroutine pool for some further processing.
I just wanted to is there any variable, method, or way to find out the current/running Sapscript form name generically so that we can pass it on to subpool.
Looking forward for your reply.
Regards,
Anuja.
04-08-2009 1:58 PM
Hi Anuja,
You can declare a variable of type TDFORM and assign your form name to it.
Then pass it for further processing.
Use TNAPR table to fetch the form name for any program.
Revert back in case of any concern.
Regards,
Nitin.
Edited by: Nitin Karamchandani on Apr 8, 2009 3:04 PM
04-08-2009 1:58 PM
Hi Anuja,
You can declare a variable of type TDFORM and assign your form name to it.
Then pass it for further processing.
Use TNAPR table to fetch the form name for any program.
Revert back in case of any concern.
Regards,
Nitin.
Edited by: Nitin Karamchandani on Apr 8, 2009 3:04 PM
04-08-2009 2:03 PM
04-08-2009 2:15 PM
Use TNAPR table to take the form name based on the access conditions specified in nace transaction. You can get to know the output types, form name etc from the access conditions which in turn can be fetched from nast (for access conditions) and TNAPR( for program name and form name).
04-08-2009 8:52 PM
Hi ,
TNAPR is a data base table for predefine forms and predefine print program........
using this u can find form name .
Regard's
SHAIK.
04-09-2009 4:54 AM
Hi All,
Many thnaks for your replies.
Actually in my case the situation is, i have to change in multiple forms.
I mean the same perform needs to be used in all the forms almost around 20 using the current form name.
So that perform should be generic. I mean is there any variable/ method or way to get the current form name so that we can pass that to the subroutine pool through form.
Looking forward for yoour reply.
Regards,
Anuja.
04-09-2009 5:43 AM
Hi All,
Many thnaks for your replies.
Actually in my case the situation is, i have to change in multiple forms.
I mean the same perform needs to be used in all the forms almost around 20 using the current form name.
So that perform should be generic. I mean is there any variable/ method or way to get the current form name so that we can pass that to the subroutine pool through form.
Looking forward for yoour reply.
Regards,
Anuja.
04-09-2009 9:50 AM
Hi,
You can check the sy-repid of the program and know the form name from TNAPR table using field FONAM.
Regards,
Nihar
04-09-2009 10:41 AM
Hi Anuja,
in each driver program, while calling OPEN_FORM, you must be passing form name in a variable. If this variable is declared as a global variable, then this variable can be accessed inside sapscript form as symbol like &form_name&. This symbol you can pass it to subroutine for further processing.