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

Using Start_form in displaying 3 different sap scripts

Former Member
0 Likes
593

Hi Friends,

In NACE transction for one outputype ZJO3 i configured three programs and sapscript forms as below

Program Name form name

1. ZVADIN_EX ZVINVOICE_EX_LI

2. ZVADIN01_UT ZVINVOICE01_UT

3. ZVGSPVVI0040 ZVGSPVVI0040

in driver porgram ZRSNAST00_UT i am having a checkbox to create spool'no.

At present 3 spool no are coming after running the program ZRSNAST00_UT.

I heard by using start_form it is possible to create single spool no for 3 programs.

So please suggest me in which program i have to use the start_form .

Regards

R.Vijayakumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

Hi,

Maybe the easy way is to check the CALL FUNCTION 'CLOSE_FORM' where the parameter result gives Spool information.

You have to change the other reports to use the same spool order. You can also check the system variable SY-SPONO.

Anything i can do to help say it.

Tks

4 REPLIES 4
Read only

Former Member
0 Likes
567

Hi,

Maybe the easy way is to check the CALL FUNCTION 'CLOSE_FORM' where the parameter result gives Spool information.

You have to change the other reports to use the same spool order. You can also check the system variable SY-SPONO.

Anything i can do to help say it.

Tks

Read only

0 Likes
566

Hi,

I checked the closes_forms in the 3 programs configured in nace . Result parameter is getting values from ITCPP structure. In that i found two

2 components .

1. TDSPOOLID ( Spool request number)

2.TDNEWID (New Spool Request (Print Parameters)

in this which parameter i have to pass to the Result parameter.

please explain the point "You have to change the other reports to use the same spool order"

system variable SY-SPONO where i have to check in driver program or other the 3 programs which i am configured in nace

Regards

R.vijayakumar

Read only

Former Member
0 Likes
566

Using START_FORM & END_FORM, you can make a single output of the 3 layouts.

And after all the START & END forms, if you use CLOSE_FORM, then all the 3 layouts will be clubbed together and finally it is going to create a single output and single spool.

Hope this sloves your problem.

Read only

0 Likes
566

Hi,

In NACE for the single outputZJ03 i included three programs.

1. ZVADIN01_UT

2. ZVGSPVVI0040

3. ZVADIN_EX

i checked this programs only start_form available there is no end_form.

So i am planning to write code as below.

Remvoing second and third program from NACE. After that in first program ZVADIN01_UT i am planning to put three start and end_forms . Is this the right approach?

Regards

R.Vijayakumar