on 2021 Aug 26 8:36 PM
Hi Experts,
Writing Page numbers: I have merged two different Forms (Ex: Form1 and Form2) into a single one but facing Page number error as it is displaying Page 1 of 1 for both the Forms. 2 pages but displaying like Page 1 of 1 and it supposed to be Page 1 of 2 and Page 2 of 2.
Please provide the technical commands in achieving it.
Displaying Summary (Index/Content) information in the First page: Instead of creating a new Form, I would like to achieve it by enhancing the existing Form1 will have and display the Summary information as 1st Page.
Please provide some technical steps in achieving it.
Thanks.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'MY_FORM_NAME'
IMPORTING
e_funcname = ls_function
e_interface_type = lp_interfacetype.
CALL FUNCTION ls_function
EXPORTING
/1bcdwb/docparams = lp_docparams
IMPORTING
/1bcdwb/formoutput = lp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
lp_formoutput-pages <-- number of page used for the first form
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'MY_SECOND_FORM_NAME'
IMPORTING
e_funcname = ls_function
e_interface_type = lp_interfacetype.
CALL FUNCTION ls_function
EXPORTING
/1bcdwb/docparams = lp_docparams
number_page_first_form = lp_formoutput-pages
IMPORTING
/1bcdwb/formoutput = lp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = ls_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
in the form, you have to create a variable to increment with the page number to get the real page number
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frederic Girod,
Much Appreciated. Thanks for your prompt response again.
I completly understand now and I need to enhance my 2nd Form to have & provide the input for lp_formoutput-pages.
CALLFUNCTION ls_function
EXPORTING/1bcdwb/docparams = lp_docparams
number_page_first_form = lp_formoutput-pages
Hi Frederic Girod,
I need your help again, I have created the import parameter in the 2nd Form and also created the text box to increment the Page numbers but I have noticed it can be done through a Java code and not by any ABAP commands.
Can you please help how to write it and set our custom field variable into that? I don't have any knowledge in Java so I would be greateful if you would help me on this.
Many Thanks.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.