‎2007 Oct 16 10:31 AM
Dear all,
I try to modify the standard SAPScript form and its related print program. What is the program entry point for those associated print program?? Since, i want to add my own logic and don't know where should i start. I can only find the subroutine FORM_OPEN and ENTRY.
Regards,
Kit
‎2007 Oct 16 10:35 AM
se78 upload log.
goto standard program copy the program and script.
zstandad.
script name ->change.
add new window.
‎2007 Oct 16 10:34 AM
well the ENTRY-routine is the one which gets triggered from RSNAST00.
this is the entry point.
‎2007 Oct 16 10:35 AM
se78 upload log.
goto standard program copy the program and script.
zstandad.
script name ->change.
add new window.
‎2007 Oct 16 10:35 AM
hi,
u can add u r logic by using form routines.
FORM .. ENDFORM is used when retrieved data
needs to sent back to print program.
In SAPscript:
PERFORM < routine_name> in <report_name>
USING &var1&
CHANGING &var2&.
ENDPERFORM.
in case of reports,
i am giving the sample example for this,
FORM < routine_name> in_tab type ITCSY
out_tab type ITCSY
READ TABLE in_tab WITH KEY NAME = var1.
{Data Selection based on above value. It returns ret_value.}
READ TABLE out_tab WITH KEY name = var2.
out_tab-value = ret_value.
MODIFY out_tab.
ENDFORM.
Reward points if useful,
Thanks,
usha
‎2007 Oct 16 10:36 AM
hi Chun,
this is done in customizing, but usually the FORM routine ENTRY is the entry point into the print program. Pls. let me know, which form you are modifiing and probably I can help more.
On the other hand it is not suggested to change standard SAP objects, better to copy thm and change the copied object.
hope this helps
ec
‎2007 Oct 16 10:46 AM
Dear Eric,
If it is done in customizing, where can i assign the entry point in config??
Regards,
Kit
‎2007 Oct 16 12:08 PM
it is usually defined in customizing as well, just give me the form name and the printing program and which area belongs to and I will tell.