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

SAPScript Print Program Entry Point

Former Member
0 Likes
851

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
745

se78 upload log.

goto standard program copy the program and script.

zstandad.

script name ->change.

add new window.

6 REPLIES 6
Read only

Former Member
0 Likes
745

well the ENTRY-routine is the one which gets triggered from RSNAST00.

this is the entry point.

Read only

Former Member
0 Likes
746

se78 upload log.

goto standard program copy the program and script.

zstandad.

script name ->change.

add new window.

Read only

Former Member
0 Likes
745

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

Read only

JozsefSzikszai
Active Contributor
0 Likes
745

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

Read only

0 Likes
745

Dear Eric,

If it is done in customizing, where can i assign the entry point in config??

Regards,

Kit

Read only

0 Likes
745

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.