Call smartform to smartform
Hi @ll,
I`d like to add an attachment to the standard invoice form. Therefore I`ve created a second smartform. As suggested at this
[forum entry|Calling another smartform from a smartform; I call the second form on initialization of the first smartform.
This procedure works fine - the problem is that the pages of the second form are printed first.
Is there a possibility to call the second form at the end of the first form?
Regards,
Flo
Hi florian,
In dont think that is possible,
because you are calling the second smartform before the process of the 1st ends...
so...this happens...
process 1st smart -> call 2nd smart ->process 2nd ->show 2nd -> ends 1st -> show 1st.
just a question: Why you need to do this?
Regards, Sebastiá
Similar Messages
-
Hi,
I am using a 'Read_Text' function in smartform, but smartforms does not allows it , while executing it gives dump stating
'The call to the function module "READ_TEXT" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "NAME".
It will be helpful if any one can throw more light on this.
Thanks
Ranifrom where are you reading the text ie : form which transaction adn which tab..
for example if you are reading from text from sales item.. ie : sale order item
go to VA02 --> give sales orde number , double click on the line item, then select the tab texts.
now double click in the editor screen where you give text..
after that go to menu path go to --> header
you can check the text name it is 16 digit number but which i nothing but sales order number + item no
you need to concatenate sales order number and item number and pass it to name in the read text fucntion module which basically read texts..
how to use read_text fuction module you can check in forum you will get many links.
If you need further info please let me know..
Regards
Satish Boguda -
How to call and reuse smartforms from ECC to CRM?
Hi Experts,
I would like to seek help from all of you, I would like to know if it is possible to call and reuse smartforms created in ECC to CRM environment. The requirement is to create smartforms in ECC (R/3 system) and reuse and call it in CRM environment whenever the 'PREVIEW OUTPUT' button is ticked in CRM webclient. This is to reduce the creation of smartforms from both systems.
Hope to hear from all of you. Your help will be very much appreciated.
Thanks and Regards,
MonicaYou can not reuse it directly but I guess you can download form from ECC and then upload it to CRM. I guess based on your requirement you might end up with few changes to form in CRM to display correct data.
http://help.sap.com/saphelp_nw70/helpdata/en/c9/452f2d33ca11d5b697006094192fe3/content.htm
http://www.howforge.com/how-to-upload-smartforms-from-pc
Smartform Download/Upload problem
Regards,
BJ -
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 structure in Smartforms
Hi,
For single table in Smartforms,we will do...
1)In form Interface,
Parameter_name Type_assignment Associated_type
itab like vbak
2)In Main window ->Table->Data
Loop...
Operand....itab into itab...
3)In Main Area->Row->Text
&itab-vbeln& &itab-ernam&....
It is working well in Abap editor by calling function module...
For Multiple Table fields,How to do in smartforms?
vbak-vbeln,vbap-posnr,kna1-kunnr....
suppose i create one structure....
data : begin of jtab occurs 0,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
kunnr like kna1-kunnr,
end of jtab.
where i will have to call this structure in Smartforms...
In Global Definitions, How to configure this structure...Hi
Define one table type with these fields, and use this table type when declaring Form interface data in smartform.
REF:
You can create that structure in SE11
extras ---> change table category -->> select structure radio button
Reward if useful
Thanks
Krushna -
Problem in calling fm in smartforms
Hi Friends,
I m modified one form & i got the value in my internal table. but the problem is that when i m executing my print prog i got the runtime error.
In dump analysis it is showing error in my fm.
Anybody will help me regarding this???Hi,
What is the ERROR ANALYSIS for the DUMP? What is the error in the FM.
Thanks and Regards,
Bharat Kumar Reddy.V -
Hi Experts,
i want to know , is it possible to call the RFC in side the smartform. In my requirement, i need some data from ECC system to display in the smartform of the CRM.
currently i am trying to call outside the smartform and pass to the same, but smartform is triggered from actions and due to other constrints i am not able to to do so..
hence kindly suggest me the other options or is it possible to fetch the data from the ECC to CRM usinfg the RFC inside the smartform.
Thanks in advance
PradeepHi,
I hope yes you can write the RFC fm code inside the layout of the smartforms, but the problem is if RFC could not able to fetch the data from R/3 some times, or if it could not able to find the right records then it will return with error / blank records. To avoid all this kind of problems its better to write the same code in your driver program. In case if you dont get the data from R/3 then you can control the layout set from triggering.
Regards,
Satya -
Calling smartform for PO from ME22n
Hi all,
I had created a smartform for PO and print program for the same.
My requirment is that I want to call the PO smartform from ME22n and all the details ie PO number,supplying plant,doc date, PO qty etc will be displayed on the smartform but I am not getting that.
I had gone to Tcode NACE and in the processing routine of output type ie NEU I had entered the Form name and printprogram.But I am not aware of form routine whether I ve to write separate Form Routine for the driver program.
Pls tell me the necessity of form routine here.
Pls experts its an urgent requirement and help me out regarding the same.
I will reward points for the same.
With regards,
Abir.The routine name is the the soubroutine in your print program.
For eg in Script:
If your print prog starts as
FORM entry USING return_code us_screen.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing.
IF retcode NE 0.
return_code = 1.
ELSE.
return_code = 0.
ENDIF.
ENDFORM.
Then "entry" will be the routine you are looking out for.
Message was edited by: vinodh balasubramaniam -
Calling two smartforms in one Abap program
Hi ABAPers,
Can anybody know how to call 2 smartforms in 1 abap program?actually i used the FM SSF_FUNCTION_MODULE_NAME...and two smart forms are called...but my main problem is...the first smartforms is called and the print dialog box appeared...once i click the button back ...the second smartforms is called and print dialog box appeared again..
I want to correct this...i want this to be happen once i click the print button...the two smart forms will be combined in a one printing...meaning the first page is the first smartforms and the next page will be the second smart forms...no matter how many pages will be the first smartforms...the second smartforms will concatenate or will append to the last page of the first smartforms..how can i do this?
Please help...this is my sample code..kindly correct the error.
Will reward points...
suppressing the dialog box****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = space.
cparam-getotf = 'X'.
Call the First Smartforms *******************
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSF_CHEQUE'
IMPORTING
fm_name = ly_formname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION ly_formname
EXPORTING
prepared_by = p_prepb
approved_by = p_apprb
TABLES
it_cheque = it_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Call the Second Smartforms *******************
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSF_TSHEET'
IMPORTING
fm_name = ly_formname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION ly_formname
EXPORTING
prepared_by = p_prepb
approved_by = p_apprb
TABLES
it_cheque = it_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Thanks in advance
aVaDuDzhi,
i never used these function but i've found this link.
[http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450]
[http://help.sap.com/saphelp_nw2004s/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm]
[http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/frameset.htm]
[SMartform printing;
hope that is useful.
bye
Marco
Edited by: nicolai marco on Jan 14, 2008 12:36 AM -
Calling smartform application in ITS
Hi all,
I am workin on SRM 5.0 with integrated ITS.I have created a custom report and assigned a tcode to it as well as created an internet service for it.
Now i have added the tcode for the report in my SRM roles so that it is displayed as link in the ITS screen.However in my report i have a custom icon on the screen on click of which i call a custom smartform.I need to display this smartform in ITS.(In ITS.all forms are displayed in PDF format).However when i click on the custom icon in ITS,it doesnt open the smartform application.
Can anyone pls explain me the steps for calling a smartform in ITS?
ALL suggestions will be appreciated and rewarded.
BR,
SRM TechHi,
Yes, you can do this like this:
call function 'BBP_OUTPUT_SC_PREVIEW_SMART'
exporting
iv_guid = lv_guid
iv_smartform = 'ZBBP_SC_PREV'
iv_html = space
importing
ev_pdf = lv_pdf
ev_bin_filesize = lv_bin_filesize
exceptions
no_smartform = 1
no_partner = 2
no_data = 3
psf_error = 4
otf_error = 5
its_error = 6
no_printer = 7
others = 8.
- LV_GUID - SC GUID
- ZBBP_SC_PREV - name of smartform document
- lv_pdf - content of PDF document in XSTRING
- lv_bin_filesize - size of generated PDF document
Now when you get lv_pdf content you can do something like this:
*FROM BSP CALL
data: cached_response type ref to if_http_response,
guid type guid_32,
display_url type string.
create object cached_response type cl_http_response exporting add_c_msg = 1.
lv_bin_filesize = xstrlen( lv_pdf ).
cached_response->set_data( data = lv_pdf
length = lv_bin_filesize ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
call function 'GUID_CREATE'
importing
ev_guid_32 = guid.
concatenate runtime->application_url '/' guid '.pdf' into display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
navigation->exit( display_url ).
For ITS call you can user FM CALL_BROWSER.
Regards,
Marcin -
Smartforms - How to call more form in one print propgram ?
Hello expert,
how is possible call in one time more forms. The forms are the same, and I have to print ( and print preview ) all togehter
and not one to one .
What is the parameters to use ?
tks,U loop ur internal table with 10 document no's in the internal table.
Now, in the loop u call the Smartform FM..
eg:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = itab-form_name
variant = ' '
direct_call = ' '
IMPORTING fm_name = fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
LOOP at itab.
call function fm_name "smartform Function name
endloop.
or, u can also do this, by calling SSF_OPEN & SSF_Close.
Hope it helps!!
Rgds,
Pavan -
Now that I created a SmartForm and I called the FM
"SSF_FUNCTION_MODULE_NAME",
How can I call my created Smartform.Hi Shaheen,
1. First call the below FM and pass the name of the Smart Form in Formname and :
DATA:
w_fname TYPE rs38l_fnam. " Form Name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'SMART_FORM_NAME'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = w_fname
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.
ELSE.
*" Subroutine Call to Call the Smart Form .............................
PERFORM call_smart_form.
ENDIF.
2. Goto your SMART FORM, then go to ENVIRONMENT and click on FM name and copy the FM name.
3. Then in Driver Program click on Pattern and paste the FM name.
4. Then Replace the Name with w_fname (i.e. Import Parameter from First FM), as shown below:
CALL FUNCTION w_fname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
p_vbeln = p_vbeln " User Parameter
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Refer Below Site for More Info:
http://www.****************/Tips/SmartForms/FMImportance.htm
Regards,
Sunil. -
How to call more then one smartforms from SE38 ?
Hello Expertise,
Good Afternoon,
Hope all r fine. Do anybody knows,Is it possible to call more than one smartform from SE38?
If possible then how?
Please help me.
Thanks n regards,
Tripod.Hi,
what you meaning with: call more than one...
call & show as smartform (print preview ) > I think that´s not possible
Call & create PDF > show as PDF in IExplorer ? > Yes could work when you crate the PDF > and send it to different Internet explorer
Call & create PDF > show as PDF in GUI ? > Yes could work when you crate the PDF > and send it to different Containers...
Best Regards
Robert -
Hi, we have developed a smartform in one system and we want to call to these smartform from another system by RFC, Anybody knows if is possible?
We have tried to copy the function module that smartform create and change the attribute in order will be remote function module but the attributes are reference parameters and say that is not possible.
Thanks in advanced.
BR
MANUELHi, I have solved my problem.
My scenario:
We want create a smartform with color lines and color shadow box.
SYSTEM1 46C-> Not possible have color lines and color shadow box.
SYSTEM2 4.7-> More easy develope smart form and is possible have colors.
SOLUTION: 1.Have smartform in SYSTEM2.
2. Call the smartform from system1 to system2.
The key is do a rfm that call to the function module of the smart form.
BR
MANUEL -
Hi All,
My requirement is like this....
Multiple smartforms are created by different programs..And now I want trigger all these smartforms with my program..Is it possible?
When I tried to do like this it needs to come back and again print preview to go next smartform....Is is possible to call all the smartform at single execution.........
Edited by: sundeep singh on May 30, 2008 9:06 AMg_output_options TYPE ssfcompop, " Output Options for Smartform
g_control_options TYPE ssfctrlop. " Control Options
Control Options
g_control_options-device = 'PRINTER'.
g_control_options-preview = ''.
g_control_options-no_dialog = 'X'.
Output Options
g_output_options-tdnoprev = 'X'.
g_output_options-tdimmed = 'X'.
Call Smartform
CALL FUNCTION lv_fmname
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = g_control_options
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = g_output_options
user_settings = ''
rwrd points if useful
Bhupal
Maybe you are looking for
-
New MBP and installed wrong administrator
Please help, Yesterday I bought me a new MBP (lion) and wanted to transfer all the information from my previous MBP (died on me) from TimeCapsule. First I could not get access with my administrator password which I use for years, so I reset the passw
-
I just upgraded to 10.6.8 and my saved files open with "Color-Sync Utility". How can I change it back to Preview?
-
Please Help me with Oracle Reports (10G)
Hi , I have created a report in Oracle 10G and save it as .JSP file, while i tried to open that .jsp file through edit plus i observed that reportbuilder have generated a code for what i have done in Layout but all the code is commented, why was it h
-
How can I change a Class from LOCAL and add to transport?.
For some reason one of my Z classes has been created as a local object. I need to add into my transport. I could do this manually by just editing the transport, I think, but I can't remember how to change the class itself to point to a transport. Has
-
Lightroom catalog previews dissapeared!
Hello, about a week ago i got some problems with my pc, and decided to use some clean-up applications. I fear these might have deleted some of my lightroom files. What is happening is, that whenever I go into lightroom, it shows the photo names, fold