Calling custom Smartform on execute Campaign
Hello experts,
does anybody know which steps i need to take when i wnat to execute a custom Smartform instead of sending e-mail.
I need to attach Smartform because to campaign needs to generate a phsical letter which is made in StreamServe bases on the XSF file the Smartform generates.
Waiting for reply
Greetings Richard
Hi,
As far as I understand, in order to execute a Smartform you need to implement this using BADI 'CRM_MKT_EXP_CAMP_DAT'.
(This is exit used for Connecting External Tools for Follow-Up Processing)
Follow customization path :
SPRO > CRM > Marketing Planning and Campaign Management > Campaign Execution > BADI's >
BAdI: Transport of Campaign Data to Open Channel
Use method : IF_EX_CRM_MKT_EXP_CAMP_DAT ~ EXPORT_CAMPAIGN_DATA to implement the same.
Hope this is useful and helps.
Regards,
Anup
Similar Messages
-
Configure HRFORMS to call a custom Smartform.
Hello All-
We have a custom Payroll Form created in PE51 and we have a custom smartform which uses this custom payroll form.
By using TCode HRFORMS can we configure to call a custom smartform. If so can you please let me know how? Or do you have a document of how to use HRFORMS please let me know.
Thanks-
Chakri.
Edited by: chakri somisetti on Jul 1, 2008 4:54 PMHi Chakri,
I think PE51 forms are different from what you do from HRFORMS...
PE51 uses a intermediate config table which can be maintained via PE51_CHECKTAB tcode. It allows you
to configure what data to print at waht position and other formatting options. You can enhance std. print program behind the form class (CEDT etc ) to select any custom data and print it on the form.
HRFORMS - you create a form here and choose the pre-prepared data strctures - here the front form can be a smart from or form builder (PDF forms - tcode SFP). IF you create a form from HRFORMS it will generate the underlying form and print program for you. You can then modify this form as per your requirements...
I dont have much knowledge on how to use that Infostars/info dimensions of HRFORMS. may be you can look at a standard from or search in the forums. I am sure you will find some useful info...
hope this helps
thanks -
How to call Custom RFC enabled Function Module in R/3 From XI
Hi Experts,
I want to call custom RFC enabled Function Module by sending some input parameters from XI.
How to do this
Thnx
RAMSHi RAMS,
1. Under the SWCV Go to the Imported Objects.
2. Right click on the RFC and click on the Import of SAP object.
3. Give the logon server name, system number the user name and pasword.
4. Select the RFC u want to import.
5. Execute the import and the RFC is imported under the SWCV.
Now u can use this Imported RFC in the scenarios of that SWCV.
Regards
Santhosh
Remember to set the thread to solved when you have received a solution -
Contents of a custom print program for a custom smartform
Hi...
Can you please tell me if we are writing a custom print program from scratch for a custom smartform for which there is no standard form available what are all the things that need to be coded in the print program..
My doubts on this are if we are configuring this form for output types of PO purchase order for mediums 1,2, 5 and 6 does any extra coding need to be done in the print program that is related to these mediums or is it just a configuration issue..
Apart from data retrieval part and call the function modules to send the data to smartforms what are the other things that we need to code in a custom smartform.. Anything that we need to code related to printing issues..
It would be great if someone can post a custom print program for any output type valid for mediums 1, 2, 5 and 6.
Also my last doubt is do we need to do anything in SE11 in designing a smartform and in what context do we need it...
Thanks and appreciate your help... Surely will reward for all the helpful answers..
Thanks again..
Kanthi..Hi,
yes you need to create your own print program. You need to catch printing information and to send data to your smartforms.
To send data to your smartforms you need to use structure describe in the data dictionnary.
This is a peace of code for sending information to a smartform that will be print used an external program (Esker)
DATA: it_data LIKE TABLE OF zssf_bl WITH HEADER LINE,
w_formname TYPE tdsfname ,
w_fm_name TYPE rs38l_fnam ,
is_output TYPE ssfcompop ,
is_control TYPE ssfctrlop ,
is_job_out TYPE ssfcresop .
* Récupère le nom du module fonction.
MOVE 'Z_BL_STT' TO w_formname.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_formname
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
OTHERS = 3.
* Prépare les paramètres d'impression.
is_output-xsfcmode = 'X'.
is_output-xsf = 'X'.
is_output-xsfoutmode = 'S'.
is_output-xsfoutdev = 'DOCL'.
is_output-xsfformat = 'X'.
is_output-tdnoprev = 'X'.
is_output-tdnoprint = ' '.
is_output-tddest = 'DOCL'.
is_output-tdprinter = 'PLAIN'.
is_output-tdnewid = 'X'.
is_output-tdimmed = 'X'.
is_output-tddelete = 'X'.
is_control-no_dialog = 'X'.
is_control-preview = ' '.
is_control-no_open = 'X'.
is_control-no_close = ' '.
* Prepare le formulaire
CALL FUNCTION 'SSF_OPEN'
EXPORTING
user_settings = ' '
output_options = is_output
control_parameters = is_control
IMPORTING
job_output_options = is_job_out
EXCEPTIONS
OTHERS = 5.
* Appels du formulaire.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = is_control
output_options = is_output
is_bl = zbl_soustrait
TABLES
it_data = it_data
EXCEPTIONS
OTHERS = 5.
You need to catch information from the NAST table maybe
Rgd
Frédéric -
Custom SmartForm for Purchase Order Printing
Hi,
I need a customized smartform for purchase order, which is called after the standard transaction ME9F.
I adjusted "Conditions for Output Control" by using transaction NACE ( Erased the name of the form MEDRUCK, Entered my customized smartform's name under smartform Form part and chose the type as smartform )
However, I couldn't success to see my printview whereas I continued to see the printview of Medruck.
I'd searched for the problem through here and the net, I found some names of smartforms such as: /SMB40/MMPO_L and /SMB40/MMPO_A and their driver programs like: /SMB40/FM06P . The package which consists of these elements was mentioned as " /SMB40/ "... but despite I downloaded it, my system still doesn't have the elements.
So, how can I use my own purchase order smartform or if i need the forms mentioned, in which best practice package i can find them?
SAP ECC 6.0
SAP_APPL 604
SAP_BASIS 701
Thanks in advance,Hi,
If your SAP doesnt have a standard smartform for PO, it is quite complicated to use smarform rather than sapscript.
I guess that you will need to modify the program SAPFM06P that calls the sapscript and make it call the smartform.
I will take a few time to adapt the sapscript.
Regards
Miguel -
Can we call multiple Smartforms from single Driver Prog?
Hi all,
Can we call multiple smartforms from single Driver Program. Here Driver program is custom Program.
I want to give Print Parameter only once and output should get printed one after the another smartform in same order of smarforms were called.
If yes, then how?
Thanks in advance.Yes, you can do this in your Smartform driver program.
Each time you call you Smartform function module you will need to change the values in structure OUTPUT_OPTIONS slightly.
On the first call set TDNEWID to X.
After this, set it to space
On the last form set TDFINAL to X.
This will put all of the output into one spool request, in the order they are called in the program.
Regards,
Nick -
Passing data to custom smartform from a custom program...
Hello Gurus,
Since, the function module gets generated dynamically at runtime when smartform is activated, I know that first I should use "SSF_FUNCTION_MODULE_NAME" and pass custom smartform name to it to get the name of function module. Then I have to use call function '/XXXXXXXXX'.
Now, I am writing a custom code and I want the data from my select program in custom program to be passed to smartform ? How can I pass the data from my custom program to smartform ? Do I pass it before using function module "SSF_FUNCTION_MODULE_NAME" ? If yes, how ?
Regards,
Rajesh.hi,
u have to declare ur structures in form interface and can retrive the data from custom program.
check this sample code.
declare structure in interface.
WA_MKPF TYPE MKPF.
write ur custom code lik this.
DATA: wahz TYPE zmemigo_form_header,
wa_mkpf TYPE mkpf.
DATA: t_itemz LIKE zmemigo_form_item OCCURS 0,
t_mseg TYPE mseg OCCURS 0,
waitemz TYPE zmemigo_form_item,
waitem TYPE mseg.
DATA : form_name TYPE tdsfname VALUE 'ZPS_STN'.
DATA : fnc_module TYPE rs38l_fnam.
SELECT SINGLE mblnr INTO wa_mkpf-mblnr FROM mseg
CLIENT SPECIFIED WHERE mandt EQ sy-mandt
AND mblnr EQ p_mblnr
AND mjahr EQ p_mjahr
AND bwart EQ '351'
AND shkzg EQ 'H'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fnc_module
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION fnc_module
EXPORTING
wa_headz = wahz
wa_mkpf = wa_mkpf
TABLES
it_itemz = t_itemz
it_mseg = t_mseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Calling custom wlst command in embedded mode
Hi,
Please give any idea how to call custom wlst command (Oracle Access Manager related wlst command) in embedded mode.
can we call /Oracle_IAM/common/bin/wlst.sh using java weblogic.WLST ?
thanksthanks for quick reply
i have to write a script which will register a OAM agent and create OAM Server (OAM related WLST custom command), all command comes under Fusinn Middleware product and for executing that command we have to run the wlst.sh file from <Oracle_Common>/common/bin, here if i run help('oam') command it shows all oam related command but when i run the wlst using java weblogic.WLST then it does not show any oam command because this call wlst from /WL_Home/common/bin, so i want to call that custom oam related wlst command by using java weblogic.WLST so that i can call my .py script as java weblogic.WLST *.py or in java class using WLSTInterpreter. -
Display custom SMARTFORM(PDF) not Adobe Interactive on Portal.
Hi All,
I appreciate any direction that you are able to provide.
The scenario is as follows:
The client is currently running SAP R/3 ECC 6.0
The client is implementing ESS/MSS.
A custom SMARTFORM was created in SAP
The question is:
What is the necessary code required in the Model/Application to Display this form?
I have searched the web and found some documentation, but it is incomplete and I receive errors in the NWDS.
Thanks is advance!
The following code was placed in the Init method.
public void wdDoInit()
//@@begin wdDoInit()
Ynag_Test_Pdf_1_Input input = new Ynag_Test_Pdf_Input();
wdContext.nodeYnag_Test_Pdf_Input().bind(input);
try {
wdContext.currentYnag_Test_Pdf_InputElement().modelObject().execute();
} catch (WDDynamicRFCExecuteException e) {
e.printStackTrace();
wdContext.currentContextElement().setSdfgdsfsd(e.getMessage());
} wdContext.currentInternalElement().setUrl(convertXStringToUrl(wdContext.currentOutputElement().getBin_File()));
//@@end
//@@begin others
public String convertXStringToUrl(byte[] doc_content){
String url = "";
WDWebResourceType webResType = WDWebResourceType.PDF;
IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
try {
url = webResource.getURL();
} catch (WDURLException e) {
e.printStackTrace();
return url;
//@@endHi Chintan,
Good morning. Thank you for your time and advice. While I have been programming in ABAP for over 15 years, I have not had to write SAP style JAVA before. I have written JAVA programs, but not using the NWDS. So that would lead me to ask the next question.
How would I do something like that?
Please advise.
Kind Regards,
Daniel A. La Mendola -
Not getting the tax details in me23n using custom smartform
Hi to all,
I am useing bapi to get the details of service order and printing the details in my custom smartform which is assigned in me23n. My problem is i am getting all the details like line item and all related but not the tax details. I need to print the net amount which is net amount + tax . Can any one help me in this regards.Use function module CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
dialog = lc_n
display_only = lc_x
i_taxcom = lwa_taxcom
IMPORTING
E_NAVFW =
e_taxcom = lwa_taxcom
E_XSTVR =
nav_anteil = lv_taxamt
TABLES
t_xkomv = lt_komv
EXCEPTIONS
mwskz_not_defined = 1
mwskz_not_found = 2
mwskz_not_valid = 3
steuerbetrag_falsch = 4
country_not_found = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LT_KOMV will return the tax related data.
Nabheet -
Open custom page after executing PNE_SAVE_QUERY
Hello,
I want to display custom page after executing PNE_SAVE_QUERY service. How to do that?
Thanks!Create a component. Add a template to that component. When you create the template you give it a name, something like MY_CUSTOM_PAGE. Now you need to set the Page variable to have the name of your template. For this you have a least two options:
1. You could override the PNE_SAVE_QUERY service in your component and set the variable in there. That would override whatever value Page has for every request to save query.
2. You could find where the call to PNE_SAVE_QUERY is happening and where the Page variable is getting set and override that dynamic html include and set Page there
Either way, you need to set Page to the name of the template. -
Attach customized smartform in IW32
Dear Experts,
I need to copy the standard smartform to a customized one and make some changes and attach it. The already attached form is a PM_COMMON which is a script.
1. Is there any smarform, if yes then what?
2. How can I attach standard driver program with the customized form? Will it get attached automatically if the write customized smartform name in the form below?
Regards
ManiHi Mani,
you can copy driver program RIPRCT00 to zRIPRCT00 something. and comment
PERFORM main_print. from this driver program. once you comment this Perform then your SAP script part will be disconnect from this.
you can add new perform after PERFORM order_data_import and add your SSF code here like below reference code.
-tdcopies = wworkpaper-tdcopies. " copies
lwa_outputop-tdnewid = wworkpaper-tdnewid. " new spool entry
lwa_outputop-tdimmed = wworkpaper-tdimmed. " immediately
lwa_outputop-tddelete = wworkpaper-tddelete. " delete after
lwa_outputop-tdcover = wworkpaper-tdcover. " cover page
lwa_outputop-tdcovtitle = wworkpaper-tdcovtitle. " title for cover
lwa_outputop-tdreceiver = wworkpaper-tdreceiver. " report to ->
lwa_outputop-tdarmod = wworkpaper-tdarmod. " Archive mode
lwa_outputop-tdtelenum = wworkpaper-tdtelenum.
lwa_outputop-tdteleland = wworkpaper-tdteleland.
IF NOT wworkpaper-print_lang IS INITIAL.
*... reset the default print_language with a specific language
*... if it was set in t390_u or set on the paper selection screen
print_language = wworkpaper-print_lang.
ELSE.
print_language = original_print_language.
ENDIF.
*... should a print record be written later.
IF device = c_screen
OR device = c_preview.
dont_log = yes.
ELSE.
dont_log = space.
ENDIF.
IF device = c_preview. " special print preview option
* itcpo-tdpreview = yes.
* itcpo-tdnoprint = yes. " no sneaky printing from SAPSCRIPT
lwa_outputop-tdnoprev = ''.
lwa_outputop-tdnoprint = 'X'.
ELSE.
* itcpo-tdpreview = space. " make sure preview is off otherwise
lwa_outputop-tdnoprev = 'X'.
ENDIF.
*$*$ ARCHIVE LINK
g_toa_dara_tab-function = c_dara. "archive function
g_toa_dara_tab-sap_object = archive_type. "Order or Notification
g_toa_dara_tab-ar_object = t390-ar_object. "arch object
g_toa_dara_tab-object_id = object_id. " order or notif number
g_toa_dara_tab-mandant = t390-mandt.
g_arc_params_tab-sap_object = archive_type. "Order or Notification
g_arc_params_tab-ar_object = t390-ar_object.
g_arc_params_tab-mandant = t390-mandt.
g_arc_params_tab-report = t390-abapname.
*-> SY fields not available in update task
g_arc_params_tab-arcuser = sy_uname.
g_arc_params_tab-datum = sy_datum.
lwa_ssfctrlop-no_dialog = 'X'.
lwa_ssfctrlop-preview = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lc_fname "'ZPMEU_MAINTN_JOB'
IMPORTING
fm_name = lw_fmname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION lw_fmname
EXPORTING
archive_index = g_toa_dara_tab
archive_parameters = g_arc_params_tab
control_parameters = lwa_ssfctrlop
output_options = lwa_outputop
* USER_SETTINGS = 'X' "space'
caufvd = caufvd
riwo1 = riwo1
iloa = iloa
iviqmel = iviqmel "FSTS1628
TABLES
iaffhd = iaffhd
op_print_tab = op_print_tab
kbedp_tab = kbedp_tab
ihpad_tab = ihpad_tab
ihsg_tab = ihsg_tab
ihgns_tab = ihgns_tab
iafvgd = iafvgd
iripw0 = iripw0
iresbd = iresbd.
same reference code you can call in your samrtform.
Please try to this way for your development. It may be helpful for you.
Regards,
Prasenjit -
Is it possible to call custom designed RFC function module, apart from BAPI
Hi Friends,
1. Is it possible to call custom designed RFC function module, apart from BAPI.
2. Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why cant be dynamic.
Thanx for Ur time.
Cheers,
SamAlso check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
Regards,
Christophe -
Unable to debug an exit in CALL CUSTOMER FUNCTION 003
Hi Guys,
I have an exit EXIT_SAPMV45A_003 that is called by CALL CUSTOMER FUNCTION 003. I had placed a break point at
CALL CUSTOMER FUNCTION 003 and the debugger stops here but i am unable to debug inside this to reach into
the code in EXIT_SAPMV45A_003 even after setting the system debugging on & Update debugging
ON.
Can someone help me with this?
thanks
DanYou have to include that Enhancement of that exit in the Project and Activate that project in the CMOD.
The Enhancement for the exit EXIT_SAPMV45A_003 is V45A0003.
Create a project in CMOD
And inclue V45A0003 in the project.
Activate the Project.
Now, it will stop at break point.
Regards,
Naimesh Patel -
Error in customized smartform for goods recipt
Hi experts
I have created a customized smartform for goods recipt .
I have used form entry_we01 inside my zprogram and basically fetching the material document no from NAST-objky
The problem is when i assign my program in TXN NACE
it prevents the update of material document no MBLNR in the
MSEG table .
I get an express document as soon as I try to display the goods recipt stating " UPDATE HAS BEEN TERMINATED".
and although material document has been generated it is not updated in the MSEG table.
By the way this error does not happen when i use the standard driver program and standard form (SAPSCRIPT).
Please suggest a solutionHi,
Your problem may not be related with what you done in NACE.......Check for any other recent changes made in the System...
Maybe you are looking for
-
Business partner Initial Download
Here is description of Business Partner setup: CRM - Account groups - Prospective - Soldto Soldto Shipto ECC- Account groups - soldto
-
Why can't i install ox x Marvericks on my computer.
From MC I have a Macbook Pro. 13.3 inc. 6 Gb of memory and 350gb space. OS : 10.7 Lion it meets all the requirement to upgrade to OX Marvericks. When I click on the link nothing happens. The download link goes in a circlue and then ends. nothing hap
-
When printing to PDF to a custom size of 36x85 or 85x36 the adobe PDF writer doesnt do anything. THis happens from any program I try. If I Select a size of 82x36 the PDF creator with create the file. I can even print 92 x 92 with no issues, just not
-
Data access error during workflow- import in FDM
I am trying to perform import in FDM.But getting 'Data Access Error'. Any suggestions on this......
-
DDR500 and the Mysterious Vanishing PAT
So. I don't really post here, but I lurk almost daily. Thus I'm pretty much at the end of my tether with these two (apparently unrelated) issues. First, although I have RAM specifically rated at 500 MHZ, whenever I try to change the DDR Frequency fro