cancel
Showing results for 
Search instead for 
Did you mean: 

Pages to be seleted at runtime

Former Member
0 Kudos

Hi,

I am using SAP Script,

When the user try to print the layout, he want to select the pages to print.

I know there is a field in ITCPO-TDPAGESLCT, using this i can pass the page number. But i don't want to hardcode any page number, User can be able to select the pages during the runtime.

How can i do this?

Regards,

Satish

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Call a Small screen which will have the input parameter for the PAGE NO, where user can put the page number and than you can pass that to your ITCPO.

Regards,

Naimesh Patel

Former Member
0 Kudos

Naimesh,

I have created a screen 1122 and calling that in my print program as below, but it is giving dump saying that "Screen Does not exist".

CALL SCREEN 1122 STARTING AT 5 5 ENDING AT 45 55.

What is the problem?

Regards,

Satish

naimesh_patel
Active Contributor
0 Kudos

You might forgot to activate it.

Regards,

Naimesh Patel

Former Member
0 Kudos

I have activated screen, still it is giving dump. Do i need to create it as Normal screen or subscreen? Where do i need to call this screen in print program?

Regards,

Satish

Message was edited by:

Satish Panakala

naimesh_patel
Active Contributor
0 Kudos

Normal screen only.

Where do you calling this Screen?

You should call this screen before the OPEN_FORM and then adjust your ITCPO parameters and pass it to OPEN_FORM.

Regards,

Naimesh Patel

Former Member
0 Kudos

I am doing the same. But i dont know why it is giving dump. any other idea?

Regards,

Satish

Former Member
0 Kudos

Am i missing some thing in PBO & PAI. What should i write there?

Regards,

Satish

naimesh_patel
Active Contributor
0 Kudos

In your PBO you should have the buttons for "Save", Exit or Cancle.

In your PAI you should set the ITCPO parameters from the vlaue from the screen field.

Regards,

Naimesh Patel

Former Member
0 Kudos

I am calling the screen just before calling OPEN_FORM, still it is giving dump. I think program will not allow to call screen from there.

Is there any other option.

Thanks,

Satish

naimesh_patel
Active Contributor
0 Kudos

Which type of program it is?

If you are trying to put this screen for the output which will be generated throught the message type than I think we will not able to call the screen.

Try to warp the screen inside the FM and then call the FM before the OPEN_FORM.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

It is Include Program.

Regards,

Satish

naimesh_patel
Active Contributor
0 Kudos

That's why it is giving us an error.

Try to wrap that screen into the FM and call the FM which should return you the page number entered on the screen.

Regards,

Naimesh Patel

Former Member
0 Kudos

Yes, it worked thanks a lot.

Thanks,

Satish

Answers (0)