2021 Sep 14 1:42 PM
I printed multipole sales order in smartforms but how to spit the sales order (one sales order in one page )please me on this
Hi Former Member, This is nothing to do with abap_trial.
Please only add the hashtag to developer edition questions.
Thanks Julie.
2021 Sep 14 1:45 PM
Loop your sales order table when calling the smart form function module
2021 Sep 14 1:46 PM
In your smartforms, when you call the corresponding function module, you are suppose to populate a structure type SSFCOMPOP.
In this structure you have several fields:
if you set ABAP_TRUE to this two parameters, SAP will create one spool for each form.
2021 Sep 14 1:52 PM
outparams-preview = 'X'. " To get the preview of the form
outparams-nodialog = 'X'. " To hide the print priview screen
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = outparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_HCM_FORM_CA' "LV_NAME
IMPORTING
e_funcname = lv_name
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =.
CALL FUNCTION lv_name "'/1BCDWB/SM00000039'
EXPORTING
/1bcdwb/docparams = fp_docparams
wa_final = ls_emp_details
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
ENDIF.
2021 Sep 14 7:21 PM
It seems that your question is not very clear as I understand differently from other people here.
In your Smart Form, you can define a Command Node with Go To Next Page which will generate a new page. You can embed the Command Node inside an Alternative Node, or in a Sort break event of a Table or Loop Node.
2021 Sep 15 5:10 AM
2021 Sep 15 5:16 AM
Hi
In smart form I already printed sale order numbers but what is my question
know
example:- 0,1,2,3 like sales order we have this three are printing one page now.
I want to print 0 is one page
I want to print 1 is next page
I want to print 2 is next page
I want to print 3 is one page
like this i need to print in smart form
2021 Sep 15 6:49 AM
I did understand that you printer the sales order numbers. My answer was about adding a page break between the numbers. Please clarify your question.
2021 Sep 15 7:02 AM
2021 Sep 16 4:52 PM
There should already be a TABLE / LOOP node in your form based on some Sales Order internal table.
In the table Data tab, the field SO number should already been defined as a sort criteria, if not already done check the 'Event on Sort Before' box.
An event box should now be displayed, under this node add a first node of type 'command', in this node check the box 'go to new-page' and add a condition to prevent new-page for the first document.
2021 Dec 09 11:15 AM
Hi Former Member, This is nothing to do with abap_trial.
Please only add the hashtag to developer edition questions.
Thanks Julie.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |