Interactive document using Smartforms
Hi,
The customer wants an interactive page to be developed using Smartforms with editable text field and checkboxes. Can this be done in Smartforms? If yes then can you please tell how to do it?
I thought Smartforms in for output only. Can it be used to take inputs and perform some events based on these inputs?
Please reply asap as the customer is behind me and I need to say if it is possible or not..
Thanks in advance,
Rashmi
Rashmi,
You will have to use the new ADOBE forms, which are interactive and the user can enter data. But I think its available with WAS 6.40. The transaction code is SFP.
I am not sure which version of SAP / BASIS your on. If you are SAP R/3 4.6C or 4.7, this might not work.
Hope this helps.
Regards,
Ravi
Note : Please reward points if this helps.
Similar Messages
-
Printing a PDF document using SMARTFORMS
What is the easiest way to print a PDF document from an ABAP program? I have the data in the following formats:
Binary (XSTRING)
String (from function module HR_KR_XSTRING_TO_STRING)
OTF
What format can I use in a smartform to print the PDF in the background?
Thanks in advance.Sandipan,
If I use the UTF format, what do I use for the device type? PDF1? Also, I have the OTF data in an internal table which has to fields (TDPRINTCOM and TDPRINTPAR). I pass this table into the smartform function module but what do I do with the 2 fields when I loop through the internal table in the smartform? Do I just output a text node with TDPRINTPAR and ignoreTDPRINTCOM?
TDPRINTCOM TDPRINTPAR
========== ==========
// XHPLJ4 0700 00000000001
IN 04E/ERPIS/CARRIERLABEL
IN 05%PAGE1
OP DINA4 P 144 240 1683811906000010000100000
IN 06MAIN
IN 03TABLE_BEGIN
MT 0141701657
CP 41030000E
FC COURIER 120 00144 SF012SF012410300144E -
I created an interactive document and will export as a swf. I would like to create a button in the interactive document to launch and external "exe." file. Is this possible.
You will need to create custom web part editor. Look at the following example. It also have added button and its events. I am sure you can use this sample as base and code your logic.
http://msdn.microsoft.com/en-us/library/hh228018(v=office.14).aspx
Amit -
Missing code in "Offline Interactive Forms Using ABAP" SDN document?
I am trying to build a sample offline form scenario using the code published in the SDN document "Offline Interactive Forms Using ABAP" written by Vani Krishnamoorthy. Everything works perfectly up to the point where we instantiate the PDF Object to extract the data from the form. Then there seems to be some code missing just before we call the method SET_DOCUMENT. We are supposed to export the parameter pdfdata = pdf_data , but I cannot find where pdf_data variable is declared or assigned. Also, an ENDTRY statement seems to be missing.
Has anyone had success with Vani's offline scenario, and if so, do you know what code is missing, if any?
Thanks in advance for any help you can offer.I found the missing code in sample program FP_PDF_TEST_06. Everything works well now.
The PDF file that was uploaded from the PC first needs to be converted from binary to XSTRING before you can create the PDF object:
data: lt_rawtab type standard table of raw255,
g_pdfdata type xstring,
l_len type i.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = l_filename
filetype = 'BIN'
importing
filelength = l_len
changing
data_tab = lt_rawtab "PDF file (binary)
exceptions
file_open_error = 1
file_read_error = 2
etc. etc.
Convert binary tab to Xstring
call function 'SCMS_BINARY_TO_XSTRING'
exporting
input_length = l_len
importing
buffer = g_pdfdata "converted to Xstring
tables
binary_tab = lt_rawtab
exceptions
failed = 1
others = 2.
if sy-subrc is not initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Instantiate PDF object..
data: l_fp type ref to if_fp value is initial,
l_pdfobj type ref to if_fp_pdf_object value is initial,
l_fpex type ref to cx_fp_runtime,
l_type type string,
l_errmsg type string.
Get FP reference
l_fp = cl_fp=>get_reference( ).
Handle exceptions with Try..Endtry
try.
Create PDF Object using destination 'ADS' (<--this is how it is
defined in SM59)
l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
Set document
l_pdfobj->set_document( exporting pdfdata = g_pdfdata ).
Tell PDF object to extract data
l_pdfobj->set_extractdata( ).
Execute the call to ADS
l_pdfobj->execute( ).
catch cx_fp_runtime_internal
cx_fp_runtime_system
cx_fp_runtime_usage into l_fpex.
case cl_abap_classdescr=>get_class_name( l_fpex ).
when '\CLASS=CX_FP_RUNTIME_INTERNAL'.
l_type = 'INTERNAL ERROR'.
when '\CLASS=CX_FP_RUNTIME_SYSTEM'.
l_type = 'SYSTEM ERROR'.
when '\CLASS=CX_FP_RUNTIME_USAGE'.
l_type = 'USAGE ERROR'.
endcase.
l_errmsg = l_fpex->get_short( ).
message e010(ad) with l_type ':' l_errmsg.
endtry. -
Problem with interactive forms using ABAP
Hi all,
I am trying to create an interactive adobe form using ABAP in ECC 6.0. But while execute the form, it is creating an error saying that
Exception SYSTEM_ERROR
Message ID: FPRUNX Message number: 001
Message:
ADS: The render error log file has been written to D:\u(200101)
But i was able to create adobe interactive form using WebDynpro and its working perfectly. But the problem is while using ABAP method.
Do anyone have an idea why its happening?
Thanks and Regards,
Raja SekharHi
Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
It is impossible to make a blanket statement on what needs to be done in each of the applications using a form for output. Despite the same underlying technology, forms handling has always been a decision for each SAP application: Some do it through customizing, some through coding, some in yet anither way.
What I CAN say from a technology pespective is that all applications are in the process of creating their forms based on Interactive Forms so that by 2007 pretty much all SAP forms will be PDF-based. Obviously, each application does it within the framework of their application - but they all use Interactive Forms.
By the way, be aware that in ERP 2004 this forms solution is subject to a limitation for high-volume printing scenarios as we cannot ensure that ALL customers will be content with the performance in ALL scenarios with this release. (see SAP Note 863893).
To get an overview idea about Adobe forms ,
Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
Create the context and layout in the form.
The layout generated can be previewed and saved as PDF output.
Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
On activating and executing the form you will get a function module name just similar to smartforms.
The driver program needs to call this FM.
Refer to the below sample code :
DATA : is_customer TYPE scustom.
DATA : it_bookings TYPE ty_bookings.
DATA : iv_image_url TYPE string.
DATA : iv_sending_country TYPE adrc-country.
DATA : it_sums TYPE TABLE OF flprice_t.
DATA : docparams TYPE sfpdocparams.
DATA : formoutput TYPE fpformoutput.
DATA : outputparams TYPE sfpoutputparams.
PARAMETERS : pa_cusid TYPE scustom-id.
SELECT SINGLE * FROM scustom INTO is_customer
WHERE id = pa_cusid.
SELECT * FROM sbook
INTO CORRESPONDING FIELDS OF TABLE it_bookings
WHERE customid = pa_cusid.
outputparams-nodialog = 'X'.
outputparams-getpdf = 'X'.
*outputparams-adstrlevel = '02'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 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.
docparams-langu = 'E'.
docparams-country = 'US'.
docparams-fillable = 'X'.
CALL FUNCTION '/1BCDWB/SM00000043'
EXPORTING
/1bcdwb/docparams = docparams
is_customer = is_customer
it_bookings = it_bookings
IV_IMAGE_URL =
iv_sending_country = 'US'
IT_SUMS =
IMPORTING
/1bcdwb/formoutput = formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
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 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
/people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
/people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/company/press/press.epx?pressID=2785
http://www.adobe.com/enterprise/partners/sap.html
http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf
look at the Adobe page here in SDN:
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
Check these links on Adobe forms
http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
Use the Tcode : SFP
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
Check these links on Adobe forms
http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
Very useful
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/00f4f594-7306-2a10-8483-b45bec157093 [original link is broken]
for PDF forms
http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
See the links for debugging
Refer to this thread
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
Debugging
Check these documents.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
ABAP Debugging
http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
Look at the SAP help link below
http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
For online PDF form creation...........
https://createpdf.adobe.com/index.pl?BP=IE&LOC=en_US
for Other information use these Links
C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webpdf based print forms.htm
C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webSAP Interactive Forms by Adobe.htm
http://searchsap.techtarget.com/generic/0,295582,sid21_gci1079310,00.html?Offer=SAPwn927nw
http://www.thespot4sap.com/articles/SAP_Netweaver_Introduction.asp
http://help.sap.com/saphelp_webas630/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c7cbe08d-0c01-0010-8bac-b9ce7348246c?source=gawindev09&kw=sap+netweaver&adgroup=brand_netweaver
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
https://websmp204.sap-ag.de/~sapidp/011000358700004952682004E
/people/venkata.ramisetti/blog/2006/09/21/configuring-output-types-for-pdf-based-print-forms
http://help.sap.com/saphelp_erp2005vp/helpdata/en/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm
D:adobe livecycle designerAdobe_Designer_71BeforeInstall.htm
http://sdn.sap.com/irj/sdn/interactiveforms
very imp ADS configuration guide
http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm
Could anyone provide the complete manual of SAP Query Creation
Tcode is : SFP
chk these links:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
see these links..
https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
/people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
/people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/company/press/press.epx?pressID=2785
http://www.adobe.com/enterprise/partners/sap.html
http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf -
Printing Dunning Letters using Smartforms
Hi all,
I have a requirement wherein I need to print dunning letters using smartforms; the dunning data are extracted in program SAPF150D2;I modified the subroutine OFI_DUN_ACT to call function module FI_PRINT_DUNNING_NOTICE_SMARTF.
Now I need to extract the dunning data in program SAPF150D2 to be imported to my new form using GET_SF_DUNN_DATA, my question is where do I code the calling of FM GET_SFG_DUNN_DATA? I'm a little bit confused on the step by step process of the dunning data extraction to printing of the form... Thanks...In the INITIALIZATION of the Smartforms, after the call to GET_SF_DUNN_DATA, you have a many informations back, of which the record of MHNK and an internal table of MHND, which you can use to select other informations from database.
So fill or enrich your own internal table in the initialization.
I enclose thereafter a sample to help you
* Load data
CALL FUNCTION 'GET_SF_DUNN_DATA'
EXPORTING
is_sfparam = is_sfparam
IMPORTING
es_mhnk = mhnk
es_t001 = t001
es_knb5 = knb5
es_lfb5 = lfb5
es_t047 = t047
es_t047c = t047c
es_t047i = t047i
es_t056z = t056z
es_f150d = f150d
es_fsabe = fsabe
es_adrnr = adrnr
es_uadrnr = uadrnr
es_adrs = adrs
es_uadrs = uadrs
es_t047b = t047b
eb_testprint = testprint
e_langu = langu
e_lang2 = lang2
es_f150d_esr = f150d_esr
es_paymi = paymi
es_paymo = paymo
TABLES
t_mhnd = th_mhnd
EXCEPTIONS
no_parameters_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
sy-msgid = 'FM'.
sy-msgty = 'E'.
sy-msgno = 461.
RAISE others.
ENDIF.
h_t040a-text1 = space.
show_interest = space.
LOOP AT th_mhnd INTO mhnd WHERE xzins = ' '.
show_interest = 'X'.
EXIT.
ENDLOOP.
* Load user information
DATA: usr21 LIKE usr21, addr3_sel LIKE addr3_sel.
CLEAR: usr21, addr3_sel, addr3_val, adr6.
* Charger fiche profil
SELECT SINGLE * FROM usr21 WHERE bname = sy-uname.
* Récupérer l'adresse
MOVE-CORRESPONDING usr21 TO addr3_sel.
CALL FUNCTION 'ADDR_PERS_COMP_GET'
EXPORTING
address_pers_in_comp_selection = addr3_sel
IMPORTING
address_pers_in_comp_value = addr3_val
EXCEPTIONS
OTHERS = 1.
* load SMTP address
CLEAR adr6.
SELECT SINGLE * FROM adr6
WHERE addrnumber = usr21-addrnumber
AND persnumber = usr21-persnumber.
* date format
SET COUNTRY adrs-land1.
* Group similar posts
DATA: xbseg TYPE bseg,
xbkpf TYPE bkpf,
xpost TYPE th_outtab.
REFRESH: t_post, t_cumul_waers.
LOOP AT th_mhnd INTO mhnd.
* Select lines to use
IF mhnk-gmvdt IS INITIAL.
IF mhnd-xzalb <> space OR mhnd-mansp <> space.
CONTINUE.
ELSEIF t047b-xpost NE 'X' AND mhnd-xfael <> 'X'.
CONTINUE.
ENDIF.
ENDIF.
* Map data
CLEAR xpost.
MOVE-CORRESPONDING mhnd TO xpost.
* Load text from bseg
SELECT SINGLE sgtxt INTO xpost-sgtxt FROM bseg
WHERE bukrs EQ mhnd-bbukrs AND belnr EQ mhnd-belnr
AND gjahr EQ mhnd-gjahr AND buzei EQ mhnd-buzei.
PERFORM edit_text CHANGING xpost-zuonr mhnd-xblnr xpost-sgtxt.
* if "Payment difference" get the date of original document
IF mhnd-bschl = '06'.
SELECT SINGLE bldat INTO xpost-bldat
FROM bkpf
WHERE bukrs = mhnd-bukrs
AND belnr = mhnd-rebzg
AND gjahr = mhnd-rebzj.
ENDIF.
* Collect posts to print
COLLECT xpost INTO t_post.
* Collect amount per currency
MOVE-CORRESPONDING xpost TO cumul.
COLLECT cumul INTO t_cumul_waers.
ENDLOOP.
* Load customer information
SELECT SINGLE * FROM kna1 INTO kna1
WHERE kunnr = mhnk-kunnr.
SELECT SINGLE * FROM knb1 INTO knb1
WHERE bukrs = mhnk-bukrs
AND kunnr = mhnk-kunnr.
* Convert date to text
PERFORM convert_date USING control_parameters-langu mhnk-laufd
CHANGING text_date.
PERFORM convert_date USING control_parameters-langu mhnk-prndt_before
CHANGING text_prev.
PERFORM convert_date USING control_parameters-langu mhnk-grdat
CHANGING text_extr.
Regards -
Can I print the last page of a PDF document using command line?
Hi
I am in a situation in which I constantly have to deal with multiple PDF documents and I need to print the last page in each of these, and ONLY the last page. The total number of pages will vary for each file, so the page number for the last page will also vary.
I would really prefer to not do this manually, by opening up each file in the visible Adobe Reader window and then print.
Question:
Is there a way with Adobe Reader (maybe with the help of some other Adobe product) to print only the last page of a PDF document using some kind of command line without opening up the PDF file in the visible Adobe Reader window?
I'm using Windows.
Thanks in advance,
Regards,
EmilThank you for taking the time to reply.
I tried both ways and neither works. It gives me a prompt box that I have to click "next" for every page but after going thru all pages, nothing is sent to the printer.
Also, all directions I've read indicate it will print to the default printer. If my default printer is on a network, will that cause problems....
and...
should I be getting a prompt box on every page? I thought all this would happen behind the scenes and not force me to interact with every page.
dc -
Error "number out of range" in pdf sent through mail using smartform outpu
Hi Experts,
We have a program which sends mail using smartform output in 'PDF' format. We are able to preview smartform correctely in SAP and mail is also getting sent fine with attachment of form as PDF document. But, when we try to open the document, it gives error saying 'Number out of range'. Also, not all of the windows of smartform are appearing in document and some are coming only half.
We are not able to find out the reason for this. Any help would be appriciated.Hi Soumya,
Have you got the solution as we are facing the same issue.
Cheers,
Bharath -
Error "number out of range" in pdf sent through mail using smartform output
Hi Experts,
We have a program which sends mail using smartform output in 'PDF' format. We are able to preview smartform correctely in SAP and mail is also getting sent fine with attachment of form as PDF document. But, when we try to open the document, it gives error saying 'Number out of range'. Also, not all of the windows of smartform are appearing in document and some are coming only half.
We are not able to find out the reason for this. Any help would be appriciated.
Gouri.Hello,
How did you solve this one? We are facing the same problem in ECC6.0.
Thanks in advance,
Benjamin de Rijke -
How to stream YouTube video in PDF document using ID 5.5?
I'm using ID 5.5 and know how to insert a video into a document using the Media palette, "Insert video from URL" option. However, I need to stream a YouTube video in an interactive PDF document, and when I try to insert the link from YouTube into the "Insert Video from URL" box, ID doesn't recognize it. I assume this is because YouTube video links don't end with a typical video format file-name ending, such as ".mp4" or ".mov"
Has anyone been able to stream a YouTube video into a document using ID 5.5? If so, how did you do it?
Downloading the video and inserting it as a regular video file isn't an option because we need to keep the PDF file size down.
Thanks much for any advice you may have!It can't be done. A YouTube video cannot be streamed in any digital publishing media—PDF, EPUB, or DPS.
There are applications which claim to be able to convert a YouTube video into a real digital publishing format like H264-encoded MP4 (preferred), but you'll have to investigate those on your own. -
How to Print Employee Photo using Smartform
Dear All,
I have requirement to print Employee photo using Smartform.
Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002 after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
These employee image I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
Thanks ,
RegardsHi ABAP Programmer,
Refer this link
i want to retrieve a photo image of an Employee to display in smartforms
Regards,
Sravanthi -
Inventory Management- Printing Physical Inventory Document using Smart Form
Scenario: Inventory Management- Printing Physical Inventory Document using Smart Forms
I could found out that there is no standard smart form linked to Transaction MI21(Program-RM07IDRU). There is a sapscript ((INVNET) assigned to this transaction, but my requirement is to assign customized smartform to this transaction.If it is not possible to assign smart form to pgm then is it possible to through enhancement.If yes then let me know the enhancement as there are lot of enhancement in the pgm RM07IDRU.
If you have any solution then kindly mentioned it.
Looking forward for kind help.
Regards
AmitCheck out with your SD guy if the items in billing doc have correct pricing conditions triggered.
From the description it looks like some customizing issue.
Otherwise revert back with the logic how are you trying to get the net value of item. -
Interactive report using alv.
Hello all,
I want to create an interactive report using alv grid display.I tried it using the normal method,as in using hide n sy-lsind but could not get the display.Canu please help me out with the problem.
Thanks and Regards.
Seema.hai Seema,
for interactivereporting u can use get cursor fieldstatement.
GET CURSOR FIELD <f> [VALUE <val>] .
or try this one using the user command function.
EXAMPLE:
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TABLES : vbak. " Sales Document: Header Data
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
Data displayed in the first list
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
END OF gt_vbak,
Data displayed in the second list
BEGIN OF gt_vbap OCCURS 0,
vbeln LIKE vbap-vbeln, " Sales document
posnr LIKE vbap-posnr, " Sales document item
matnr LIKE vbap-matnr, " Material number
arktx LIKE vbap-arktx, " Short text for sales order item
kwmeng LIKE vbap-kwmeng, " Order quantity
netwr LIKE vbap-netwr, " Net value of the order item
END OF gt_vbap.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data_vbak.
PERFORM f_display_data_vbak.
Form f_read_data_vbak
FORM f_read_data_vbak.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA_VBAK
Form f_display_data_vbak
FORM f_display_data_vbak.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
Build the field catalog
m_fieldcat 'VKORG' 'VBAK'.
m_fieldcat 'KUNNR' 'VBAK'.
m_fieldcat 'VBELN' 'VBAK'.
m_fieldcat 'NETWR' 'VBAK'.
Display the first list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA_VBAK
FORM USER_COMMAND *
FORM user_command USING u_ucomm LIKE sy-ucomm
us_selfield TYPE slis_selfield. "#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_vbak INDEX us_selfield-tabindex.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbap. " Read data from VBAP
PERFORM f_display_data_vbap.
ENDCASE.
ENDFORM. " USER_COMMAND
Form f_read_data_vbap
FORM f_read_data_vbap.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbap
FROM vbap
WHERE vbeln = gt_vbak-vbeln.
ENDFORM. " F_READ_DATA_VBAP
Form f_display_data_vbap
FORM f_display_data_vbap.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
Build the field catalog
m_fieldcat 'VBELN' 'VBAP'.
m_fieldcat 'POSNR' 'VBAP'.
m_fieldcat 'MATNR' 'VBAP'.
m_fieldcat 'ARKTX' 'VBAP'.
m_fieldcat 'KWMENG' 'VBAP'.
m_fieldcat 'NETWR' 'VBAP'.
Display the second list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbap.
ENDFORM.
regards,
praba. -
Interactive reporting using web client in Hyperion Workspace
Hi all,
I was trying to create a new interactive report using following process:
1)Logon to Workspace using browser
2)File -> New -> document
3)select the option: "Create interactive reporting document"
4)Browse for .oce file
5)Click finish, once the .oce file is selected.
After these steps:
Initially I was getting message regarding checking web client status...
this was taking lots of time so I cancelled the process and restarted from step 1.
Now, after step 5, I am getting a file save option showing source of file as server of the Workspace.I am working on a local machine and accessing the workspace product through web browser.
If I save this file in local machine I don't get an option to open this file from workspace using :
File -> open -> document.
and alternatively if try to open this locally from the machine I don't have proper application on my local machine.
I am badly trapped in this viscious circle.... Kindly help.
Also, it will be gr8 if somebody could suggest some link for understanding the process of creating a new interactive report , using web client on workspace.
Thanks in advance..
Edited by: user12973893 on May 5, 2010 3:40 AMHi all,
I got to know that import and export option is available with "user->reports" and "file in report folder" respectively, when we go for Explore option.
So storing to local machine and retrieving it back is no more a problem.
But still I have hardly any idea as to how to start with interactive reporting in Workspace using web client.
If any of you come across any such tutorial on interactive reporting using web client on workspace please tell.
I come to know that Interactive reporting studio is available for interactive reporting purpose: any of you please tell me if "reporting and analysis client.." available on oracle edelivery is sufficient for interactive reporting studio or we need to install something specific for working with Interactive reporting studio. -
I have been requested to make a Return Material Authorization RMA form using smartforms.
My questions are: Is there any standard template/format in SAP I can use. And if there is, is there any standard ABAP program which i can use with the form (if one is required) and what are the steps to take to do and complete this task.
N.B i hava a Functional Spec docu for this and i'm also expected to write a Tech Design Docu. for it.
I'll be grateful for your helpHi,
I think there are some examples you can use, but smartforms is quite easy to learn. I think that the SF "/SAPDII/RETPA_LIST" might be sort of what you are looking for, but if you find it to dificult, just start a new one. The SAP Help is pretty easy to follow.
As for the program to "call" the form, you will have to develop yourself, but unlike SAPSCRIPT you won't need to control the drawing of the form. In smartforms, the form generates a Function Module with an Interface, which will control the drawing of the form. The program only needs to get the info necessary and then call the FM generated with the parameters you defined in the form.
You will need only to know one FM to call the form within the report.
FM SSF_FUNCTION_MODULE_NAME - This one will return the name of the FM that was generated by the form. Parameter is the name of the smartform and return is the name of the FM.
Then you just call the FM that was returned in the previous FM (usually names are something like "/1BCDWB/SF00000006").
Reward points if found helpful....
Cheers,
Chandra Sekhar.
Maybe you are looking for
-
How do you set-up multiple NT Auth servers per Domain, but one per role
I have a domain with three roles. These roles correspond to subsidiaries of our company, each with their own NT Auth Server. Shouldn't I be able to put in the NT information at the role level and not in the code for the iwtLoginChannel or on the doma
-
Shopping Cart workflow retrigger for changes done to SC already created
Hi all, A shopping cart is created and later on in "Check Status" when the shopping cart is opened in change mode and any changes are made to the shopping cart either header or item level, the whole approval workflow is retriggered and the approvers
-
I Have an export exp scott/tiger@oracl2 tables=emp query='where empno!=''EMC'' ' file=emp_bck.dmpBut It throws multiple values not allowed for 'query' option. Please help Thanks Hena
-
Is there a way to set up multiple iPad identically from 1 computer with the same apps in the same folders on the same home page. I am doing this for a school. They have a cart that can sync 30 at a time.
-
How to manage privilege for presentation catalog in OBI 10g
Hi All, i have presentation catalog say "abc", abc catalog have some privilege. But by mistake it delete so how can i recover it. is it possible to recover privilege when deleted..... please give me suggestion if possible Thanx & Regards Prashant.