Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
Requirement : Generating custom PDF Factsheet.
Standard Smart form: CRM_ACC_ACCOUNT_OVERVIEW_PRN
Standard Class: CL_UIU_PRN_ACCOUNT
Method that gets called: COLLECT_DATA
Copy the standard form to Z*SMARTFORM
Copy the standard class: ZCL_*PRN_ACCOUNT (Including all methods)
Settings in SM30: CRMV_PRN_CONTROL
Role:                        SAP_CRM_UIU_SLS_PROFESSIONAL     or (Z*role)
External Object:    BuilHeader
Form Name:           Z*SMARTFORM
Class Method:        ZCL_*PRN_ACCOUNT
View:                       001
Settings in SM34: CRMVC_BUIL_PRT
Same as Above.
Can cross check the tables
CRMC_PRN_CONTROL and CRMC_PRN_CONTR2.
Will display some fields like name, employee responsible territory some marketing attributes, custom fields, in the factsheet:
Create the pages and windows as per your requirement and variables to print on the factsheet.
On UI, when you select the PDF Factsheet option, the method collect method of the class ZCL_*PRN_ACCOUNT     gets triggered.
When you select PDF fachsheet ,
So the BP value gets stored in the print variable, you can access the same in the smart form.
Now the coding for displaying the account fax ,telephone ,name can be done in the INITILIZATION TAB.
First create the page and Text variables to hold the name and the data.
Declare the variable data to be print on the factsheet in the output parameters and in the global declaration.
If you  consider the BP ID ,fax ,telephone
To get the name fax city write the coding in initialization tab
Output:
If you want to display the factsheet on the user logon language then, first maintain the required translations and then make changes in the collect method (ZCL_*PRN_ACCOUNT ).
Declare and change the control parameters and pass the FM lv_fm_name
Output :
Checks to be done:
If Z* business role is used, it should mapped to PFCG role, you can check in the table crmc_ui_profile, else the more option will be in disabled mode.
Hope it helps!!
5 Comments
Labels in this area