Professional Documents
Culture Documents
How To Assign Custom Purchase Order Smartforms OC
How To Assign Custom Purchase Order Smartforms OC
Replay
HOME ABAP ON HANA Q&A ABAP BASICS TUTORIALS ALV REPORT SMARTFORMS DATA MIGRATION IDOC CODE_GALLERY
CONTACT US
Home assign custom smartforms to nace How to assign custom purchase order smartforms to NACE SAP ABAP Self learning Video's
output type in sap
SAP Access
When we click on print preview in sap ME22N transaction for PO print preview
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 1/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
We can see the print preview
Intelligent
Document
Processor
This print come as per the form assign to message type in NACE.
First check the message in ME22N Auto-extract PDF
table data from
balance sheets,
income statements, &
Click on messages
financial documents
PSPDFKit
Open
abap
abap_excel abap_field_symbol
alv report
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 2/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
events in abap report
we can see the program SAPFM06P is assign with form routine ENTRY_NEU and the
F4 help from internal table
sap script MEDRUCK
Formatted Excel in SAP ABAP using XML
The main program SAPFM06P contain the include FM06PE02 which has the
lsmw module pool programming
routine ENTRY_NEU
odata oops alv rest api
Now to assign the custom smartform , we have copy this standard main program along with
sales order creation using bapi extension
include to Z program.
sap abap alv report self learning videos and
let say main program code
sap abap email sap abap for beginners
SAPFM06P is copy to ZK_SAPFM06P and its include
FM06PE02 is copy to ZK_FM06PE02 sap abap internal table to csv
Original code of include FM06PE02 routine ENTRY_NEU sap data migration sap odata
Honeywell Terminal Portátil ScanPal EDA51 5'', sap rest api smartforms
2GB, Android 8, Bluetooth, WiFi - incluye Cab…
smartforms as email attachment
Blog List
August 2
form entry_neu using ent_retco ent_screen.
June 2
March 2
data: l_druvo like t166k-druvo,
l_nast like nast,
February 2
l_from_memory,
November 5
l_doc type meein_purchase_doc_print.
October 3
clear ent_retco.
September 3
if nast-aende eq space.
l_druvo = '1'.
July 1
else.
June 1
l_druvo = '2'.
endif.
May 2
February 1
call function 'ME_READ_PO_FOR_PRINTING'
exporting
January 1
ix_nast = nast
December 1
ix_screen = ent_screen
importing
November 1
ex_retco = ent_retco
September 1
ex_nast = l_nast
doc = l_doc
August 4
changing
July 11
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
June 3
check ent_retco eq 0.
May 3
call function 'ME_PRINT_PO'
exporting
April 7
ix_nast = l_nast
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 3/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
ix_druvo = l_druvo
March 9
doc = l_doc
ix_screen = ent_screen
March 1
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
About Me
importing
ex_retco = ent_retco.
Zafar Karnalkar
endform. View my complete profile
Document
This code to be replace as below to call the smartforms.
Understanding
Note in my smartforms I am taking only PO number from NAST as input and passing this PO
number to smartforms. Webinar
FORM ENTRY_NEU USING ENT_RETCO ENT_SCREEN.
Auto-extract PDF
table data from
DATA: L_DRUVO LIKE T166K-DRUVO,
balance sheets,
L_NAST LIKE NAST,
income statements, &
L_FROM_MEMORY,
financial documents
L_DOC TYPE MEEIN_PURCHASE_DOC_PRINT.
PSPDFKit
DATA : FM_NAME TYPE RS38L_FNAM,
CONTROL_PARAMETERS TYPE SSFCTRLOP,
OUTPUT_OPTIONS TYPE SSFCOMPOP,
GV_EBELN TYPE EBELN.
Open
CLEAR ENT_RETCO.
IF NAST-AENDE EQ SPACE.
L_DRUVO = '1'.
ELSE.
L_DRUVO = '2'.
ENDIF.
CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
EXPORTING
IX_NAST = NAST
IX_SCREEN = ENT_SCREEN
IMPORTING
EX_RETCO = ENT_RETCO
EX_NAST = L_NAST
DOC = L_DOC
CHANGING
CX_DRUVO = L_DRUVO
Follow
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 4/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
CX_FROM_MEMORY = L_FROM_MEMORY.
CHECK ENT_RETCO EQ 0.
IF tnapr-sform NE ' '.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = tnapr-sform "'ZDEMO_PO1'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
CONTROL_PARAMETERS-PREVIEW = 'X'.
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
OUTPUT_OPTIONS-TDDEST = 'LP01'.
gv_ebeln = L_NAST-OBJKY.
CALL FUNCTION FM_NAME "'/1BCDWB/SF00000264'
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CONTROL_PARAMETERS
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = OUTPUT_OPTIONS
USER_SETTINGS = 'X'
IP_EBELN = gv_ebeln
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
ELSE.
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 5/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
CALL FUNCTION 'ME_PRINT_PO'
EXPORTING
IX_NAST = L_NAST
IX_DRUVO = L_DRUVO
DOC = L_DOC
IX_SCREEN = ENT_SCREEN
IX_FROM_MEMORY = L_FROM_MEMORY
IX_TOA_DARA = TOA_DARA
IX_ARC_PARAMS = ARC_PARAMS
IX_FONAM = TNAPR-FONAM "HW 214570
IMPORTING
EX_RETCO = ENT_RETCO.
ENDIF.
ENDFORM.
Now assign this customized main program and smartforms to output type NEU in NACE
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 6/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
Facebook Twitter
OLDER NEWER
sap abap smartforms output of loop in single go sap abap smartforms as PDF attachment in email
POST A COMMENT
0
Comments
Enter comment
Total Pageviews
565,097
SAP email list SOST Custom Program create rest based service (web
August 17, 2022 service) in sap abap
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 7/8
12/3/22, 4:46 PM How to assign custom purchase order smartforms to NACE output type in sap
Rollercoin free crypto 21:13
mining game
Earn real crypto by
playing games and buy
equipment to increase
mining power
SAP ABAP Function Module to https://rollercoin.com
download sap abap internal table
send email to csv with separator and
Fifa WorldCup Quiz
August 17, 2022 Complete QUiz And heading
Earn Money 18:41
Fifa.com
SAP ABAP function module to get
filename and extension sap abap sales order creation
using bapi
June 15, 2022
Ads by eLeavers.com
18:31
https://www.zktrainings.com/2020/04/how-to-assign-custom-purchase-order.html 8/8