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

how to know print program for SAP Script

Former Member
0 Likes
2,925

Hi friends,

how to know print program for SAP Script form name ?

11 REPLIES 11
Read only

Former Member
0 Likes
2,307

Go to table TNAPR.

PGNAM = Program name:

FONAM: Form name(SAP Script or smartfrom).

Read only

Former Member
0 Likes
2,307

Hi,

Press F1 on the form and click the Technical information in the Performance Assistance window. then you get the Program name.

regards

-Rakesh

Read only

Former Member
0 Likes
2,307

Hi Christoper,

There are 3 methods up to my knowledge.

1) Go to table TNAPR give the forname you will get the driver program.

2) open the script and follow the path:

FORM->CHECK->TEXTS and then a diaglog window comes just press enter you see a table which shows the list of driver programs using the script.

3) using NACE you need know the application area of the script like sales or shippind etc.. and u need to know the output type also.procedure below.

Go to NACE.

select the application.

press output types on application tool bar.

select the output type.

double click on processing routines folder

you will see the programs and sap scripts configured.

Please let me know if any clarifications needed.

Regards

Anil Kumar K

Read only

0 Likes
2,307

I found standard program attached to my z form.

I need to add fields to this prog. and based on that fields i hav to configure printer settings. How to do this?

Because Print prog. is standard SAP Program

Read only

0 Likes
2,307

Generally for print programs you dont modify the standard program. You make a copy of it and modify it.

Read only

0 Likes
2,307

Hi ,

You can use the following code changes in the layout & see..

You have to create a program Z_BC460_EX4_HF for that..

***********

/:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF

/: USING &CUST&

/: CHANGING &NAME&

/:ENDPERFORM.

Dear &NAME&

The ABAP routine could be defined as follows:

IMPORTANT: The structure itcsy must be used for the parameters.

REPORT Z_HENRIKF_SCRIPT_FORM .

tables scustom.

form get_name tables in_tab structure itcsy

out_tab structure itcsy.

read table in_tab index 1.

select single * from scustom

where id = in_tab-value.

if sy-subrc = 0.

read table out_tab index 1.

move scustom-name to out_tab-value.

modify out_tab index sy-tabix.

else.

read table out_tab index 1.

move 'No name' to out_tab-value.

modify out_tab index sy-tabix.

endif.

    • You could also fill the ouput parameter table this way

  • READ TABLE out_par WITH KEY 'NAME1'.

  • out_par-value = l_name1.

  • MODIFY out_par INDEX sy-tabix.

endform.

Read only

0 Likes
2,307

Hi All,

how are you doing,Please help me in how to proceed to the solution.

We are

My problem is We are upgrading SAP from 4.6C to ECC 5.0,

In the print program we getting error saying the

"Processing log for program SAPFM06P routine OLD_ENTRY_NEU"

"Processing routine OLD_ENTRY_NEU in program SAPFM06P does not exist"

Could please help me out how to do print program in new version.

Thanks in advance

Madhavi

Read only

0 Likes
2,307

Hi Madhavi,

SAP standard program SAPFM06P (Printin for purtchase documents) has no routine OLD_ENTRY_NEU.

Look at your old system, the may have modified the module pool and added this routine. The best way is to analyze the difference between SAP routine ENTRY_NEU and the called routine OLD_ENTRY_NEU. Then you could consider to do the same modification in your new system - I'd rather not do that.

Better change customizing to SAP standard routine ENTRY_NEU and find a way to circumvent modification.

Customizing for print programs and entry routines is done within purchasing - messages - message types.

Regards,

Clemens

Read only

Former Member
0 Likes
2,307

HI

ITS ALL DEPENDS UPON THE KIND OF PROGRAM NAME YOU R SEARCHING FOR.

YOU CAN SEARCH USING TWO PROCESS

BY USING TCODE SPRO

BY USING TCODE V/G7

I HOPE THIS WILL HELP TO SOLVE YOUR PROBLEM.

THANKS

Mrutyunjaya Tripathy

Read only

0 Likes
2,307

if you can create the form online, then start SE71 first, use utilities-start forms debugger.

The call your form. The sapscript debugger breskpoint popup comes up, Use OK to continue. It then stops in the sapscript debugger. from there, use /h to start ABAP debugger. In ABAP debugger, use the call stack. You can sse the RSTX sapscript modules and then below the calling program.

This is not the customizing path for setting the program, but you know for sure where you come from.

Sorry, it won't work for smartforms. Many things don't work for smartforms.

regards,

Clemens

Read only

0 Likes
2,307

Please check the table TTXFP. It has form name & program name. Please reward points if it helps.

Regards

Yogesh