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

testing Sapscript

Former Member
0 Likes
1,046

I have created a sapscript.

It is usually tied up to an output type and assinged to the billing doc.

But without tyine it up to an output type can i test my sapscript with a billing doc?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,009

Hi,

Without attaching the layout to output type you cannot see test the same. Output type is mandatory to test the layout.

You can check the table TNAPR for output types attached to layouts.

Regards,

Ram

Pls reward points if helpful.

9 REPLIES 9
Read only

Former Member
0 Likes
1,010

Hi,

Without attaching the layout to output type you cannot see test the same. Output type is mandatory to test the layout.

You can check the table TNAPR for output types attached to layouts.

Regards,

Ram

Pls reward points if helpful.

Read only

0 Likes
1,009

Thanks Ram.

in that case, can i create a dummy output type to test my layout? If so then how can i do it?

And you are talking about Tnapr, how can it help in my case? as i said ealier, i am creating a new script.

And Tnapr is used to find the Ot for existing layouts.

Are you trying to say that i can use one of tose output types?

Read only

0 Likes
1,009

for creating output type .

go to NACE transaction.

select application for billing v3.click on output type.

now select output type and double click on that ...

and now change program name and script name with ur program and script.save .

Read only

0 Likes
1,009

Is there any standard program name i need to use?

Read only

0 Likes
1,009

standard program?

i think u create sapscript layout and driver program for that now just attech it to output type nothing else.

Read only

0 Likes
1,009

thanks kishan,

I came to know from my functional person that he wants me to use the std prog RVADIN01.

Which means i would have to write a script which would work with this program.

Will i be able to find a template for this?

Or just have to analyse this program?

Read only

0 Likes
1,009

ok..

its means output type is rd01.

u can check associated script with this output type is RVINVOICE01 u can make a copy of this script into zscript and do the changes and use standered program

RVADIN01 as a driver program.

and only attect ur zscript with output type in nace.

Read only

Former Member
0 Likes
1,009

Create program and call the script there with all the data populated in that program. But it is all inter related with the program.

Read only

0 Likes
1,009

Phani, I cannot use a program in my case as i am using the structures,fields which are related to transaction, so i would need to test it along with the transaction.