Hi i am trying to disply image in adobe forms using ABAP, But i can't abl ?
hi friends,
I am using adobe forms to display the VORNA , NACHN and EMPPHOTO.
for this i created an interface with the 3 import parameters like IM_VORNA, IM_NACHN and IM_PHOTO.
Then i desingned the form with this interface.
I dragged the IM_VORNA, IM_NACHN to ADOBE form layout.
And for employee photo i created the IMAGEFILED in layout.
And i setted the imagefield binding property to $record.IM_PHOTO.
To call this ADOBE form i using the ABAP code.
My code is like this......
*& Report ZHR_EMP_PHOTO1
REPORT ZHR_EMP_PHOTO1.
TABLES: PA0001, PERSON.
DATA: ITAB_EMPDATA LIKE TABLE OF PERSON,
ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
DATA: P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE,
P_DOCUMENT_TYPE LIKE TOAV0-RESERVE,
URL TYPE char255.
DATA: VORNA TYPE VORNA, "VALUE 'SHANKAR',
NACHN TYPE NACHN, "VALUE 'REDDY',
PATH TYPE XSTRING,
TPATH TYPE STRING.
DATA: FM_NAME TYPE FUNCNAME.
DATA: FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS,
FP_DOCPARAMS TYPE SFPDOCPARAMS,
FP_FORMOUTPUT TYPE FPFORMOUTPUT.
PARAMETERS: PERNR LIKE PERSON-PERNR.
START-OF-SELECTION.
CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
EXPORTING
PERSON_ID = PERNR
SELECTION_BEGIN = SY-DATUM
SELECTION_END = SY-DATUM
IMPORTING
PERSONAL_DATA = ITAB_DATA
EXCEPTIONS
PERSON_NOT_FOUND = 1
NO_ACTIVE_INTEGRATION = 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.
MOVE ITAB_DATA-VORNA TO VORNA.
MOVE ITAB_DATA-NACHN TO NACHN.
*Function Module To check Existance of Image
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = PERNR
IMPORTING
P_CONNECT_INFO = P_CONNECT_INFO
EXCEPTIONS
OTHERS = 2.
P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
*Function Module To Get the URL of Image
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
STOR_CAT = SPACE
CREP_ID = P_CONNECT_INFO-ARCHIV_ID
DOC_ID = P_CONNECT_INFO-ARC_DOC_ID
COMP_ID = 'DATA'
DP_URL_ONLY = 'X'
IMPORTING
URL = URL
EXCEPTIONS
OTHERS = 10.
IF SY-SUBRC <> 0.
ENDIF.
MOVE url TO tpath.
CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
EXPORTING
* CODEPAGE_TO = '8500'
unicode_string = tpath
* OUT_LEN =
IMPORTING
XSTRING_STREAM = path
EXCEPTIONS
INVALID_CODEPAGE = 1
INVALID_STRING = 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 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'ZHRIN_EMP_PHOTO'
IMPORTING
E_FUNCNAME = FM_NAME
* E_INTERFACE_TYPE =
*WRITE: fm_name.
*/1BCDWB/SM00000204
*SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA
*MOVE 'SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA' TO PATH.
FP_OUTPUTPARAMS-NODIALOG = 'X'.
FP_OUTPUTPARAMS-GETPDF = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = FP_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.
fp_docparams-langu = 'E'.
fp_docparams-country = 'IN'.
fp_docparams-FILLABLE = ' '.
CALL FUNCTION fm_name
EXPORTING
/1BCDWB/DOCPARAMS = fp_docparams
I_VORNA = vorna
I_NACHN = nachn
I_URL = path
IMPORTING
/1BCDWB/FORMOUTPUT = fp_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.
DATA: lt_att_content_hex TYPE STANDARD TABLE OF solix. "TABLE OF TEXT80.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = fp_formoutput-PDF
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
TABLES
BINARY_TAB = lt_att_content_hex
tables rlgrap.
DATA: ld_filename TYPE string,
ld_path TYPE string,
ld_fullpath TYPE string,
ld_result TYPE i,
gd_file TYPE c.
DATA: flength TYPE i.
*selection-screen begin of block m with frame.
data: p_file TYPE rlgrap-filename.
*selection-screen end of block m.
flength = xstrlen( fp_formoutput-PDF ).
* At selection screen
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
* Display save dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = 'Enter File Name to Save'
default_extension = 'PDF'
default_file_name = 'accountsdata'
initial_directory = 'c:\temp\'
CHANGING
filename = ld_filename
path = ld_path
fullpath = ld_fullpath
user_action = ld_result.
p_file = ld_fullpath.
call function 'DOWNLOAD'
exporting
bin_filesize = flength
filename = p_file
filetype = 'BIN'
importing
act_filename = p_file
tables
data_tab = lt_att_content_hex.
with this code I am able to see the VORNA, NACHN field data in ADOBE Forms. But i am unable to see the employee photo.
Any helps will be appreciated.....
Regards,
Shankar.
Or post a URL.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Alan" <[email protected]> wrote in
message
news:C0E592D7.29A315%[email protected]..
> go back to the dialog box, and re-browse to pick the
image.
> Find the pulldown in the "browse to file" dialog box
that gives a choice
> of
> Relative to site root, or Relative to document.
>
> set to relative to document.
>
Similar Messages
-
How to update image in adobe form
Good Day
I am trying to update image in adobeform. i used object library->image->and double clicked it and i got a popup and given the path. i got my image there
but when i am running my adobeform in url I am unable to see the image on it. is it because the path is from my desktop. there is no binding done with any field on the context of adobeform.. do i need to upload the image in se78 and then do binding....
pls help
Regardshi battula,
1.upload the image in se78
2.Get the xstring of image by function module
data img_ x_string type xstring.
data img_string type string.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = 'GRAPHICS' " SAPscript Graphics Management: Application object
p_name = 'LOGO' " Name of image
p_id = 'BMAP' " SAPscript Graphics Management: ID
p_btype = 'BCOL' " SAPscript: Type of graphic
RECEIVING
p_bmp = img_x_string.
and convert this xstring to string by function module
CALL FUNCTION 'SSFC_BASE64_ENCODE'
EXPORTING
bindata = V_FIELD
* BINLENG = BINLENG
IMPORTING
B64DATA = img_string.
* EXCEPTIONS
* SSF_KRN_ERROR = 1
* SSF_KRN_NOOP = 2
* SSF_KRN_NOMEMORY = 3
* SSF_KRN_OPINV = 4
* SSF_KRN_INPUT_DATA_ERROR = 5
* SSF_KRN_INVALID_PAR = 6
* SSF_KRN_INVALID_PARLEN = 7
* OTHERS = 8
3.bind the img_string to imageField in adobe form ..
if you want to update image then update image in se78 keeping name same.
4.and write also javascript code
on initialization event of ImageField
this.access = "readOnly";
hope it will help.
regards
Jitendra.. -
I was trying to make a new screen recording using quicktimeplay, but when I watched the video after recording it all I could hear was me talking while the video was showing on the screen. How do I turn off that recording and turn the right one on? thanks
Hi j2399123,
It sounds like your screen recording is doing what it was designed to do, capture what is happening on your screen, with optional voice over with the microphone.
Screen recording is for recording what you see on the screen, it is not a "video capture" option, like for capturing a movie with sound that is playing on your screen.
For the QuickTime recording options, check out "Recording with QuickTime Player" in
Mac Basics: QuickTime Player creates, plays, edits, and shares video and audio files
http://support.apple.com/kb/ht4024
And for screen recording specifically, there's
QuickTime Player 10.x: Record your computer’s screen
http://support.apple.com/kb/PH5882
Thank you for thinking of Apple Support Communities for your support needs.
Nubz -
I am being charged for international msgs which i haven't sent to a number of the UK.i tried to activate my iMessage and FaceTime using wifi but then it didn't connect. all settings have been turned off in my phone! i also have reset my phone with all the settings. but when i contacted my carrier, he said that the balance deduction is because of the international messages i have sent, but i have sent NONE! every time i switch on my phone, balance gets deducted. imessage and facetime are all disabled! but then the problem started since yesterday when i tried to activate them but had disabled them all at the next moment! but the charges are still being applicable for some international messages as per my mobile carrier. what to do? is there some problem with my phone or carrier?
I am being charged for international msgs which i haven't sent to a number of the UK.i tried to activate my iMessage and FaceTime using wifi but then it didn't connect. all settings have been turned off in my phone! i also have reset my phone with all the settings. but when i contacted my carrier, he said that the balance deduction is because of the international messages i have sent, but i have sent NONE! every time i switch on my phone, balance gets deducted. imessage and facetime are all disabled! but then the problem started since yesterday when i tried to activate them but had disabled them all at the next moment! but the charges are still being applicable for some international messages as per my mobile carrier. what to do? is there some problem with my phone or carrier?
-
I am trying to back up my mail (5.1) directories but I can no longer locate them. They used to be in the user library. Would be grateful for some assistance.
They're stil there; Apple decided to hide your Library folder. Hold the Alt/Option key while selecting Go in a Finder menubar and select Library.
Do you have other backups, made with a proper backup app? If not, that's the best way to back up your data, rather than doing it "piecemeal" via drag & drop.
You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Questions. -
I HAD TO BUY A NEW HARD DRIVE FOR MY LAPTOP. I AM TRYING TO RE-INSTALL MY ADOBE PHOTOSHOP ELEMENTS 12 BUT IT KEEPS SAYING MY SERIAL NUMBER IS INVALID. WHAT DO I DO?
jessicar
Just user to user....based on past and current history, Adobe Tech Support is not going to help you with a technical issue which is preventing you from using your purchased serial number for Photoshop Elements. Version 12 is not the current version. And, the Adobe Tech Support is limited even for the current version which is 13. If this matter involves a purchased activated serial number trapped on a crashed computer while you are trying to install on a 3rd computer, then probably Adobe Chat Activation can be of assistance. If that is the case and you want to explore that possibility, then click on the following link
Contact Customer Care
Photoshop Elements
Adobe ID, Signing In
Adobe ID, Sign In, Account Help
Chat Panel
If the above link does not hold its set, then you will need to navigate to the Chat Panel using the above titles as guides.
Are you getting one of those "too many computers with your serial number" messages? Then the above should apply to your situation.
Before the above consider....
a. For Photoshop Elements technical issues please post your question in the Adobe Photoshop Elements Forum. Somehow your
question got posted in the Adobe Premiere Elements Forum.
b. Have you verified your Photoshop Elements serial number at the Adobe web site (http://www.adobe.com) - after signing in with your
Adobe ID and Password, type My Products in the Search field and follow the path to your product in My Products. Click on Adobe
Photoshop Elements 12 in your list to reveal the serial number.
c. Do the install with antivirus and firewall(s) disabled.
ATR -
Got a new iPhone today and tried to restore from my old phone using icloud but kept coming up with a message that said problem with my icloud back up please help
Hi there Clairemcaula,
You may find the troubleshooting steps in the article below helpful.
iCloud: Troubleshooting restoring an iCloud backup
http://support.apple.com/kb/ts4036
-Griff W. -
Find raster Image & Vector image in adobe indesign using apple script?
Find raster Image & Vector image in adobe indesign using apple script?
Find raster Image & Vector image in adobe indesign using apple script?
-
Hello All,
I want to display images in Adobe form. I've done the following. The images are not static but dynamic - for each time the form loads the images are different.
1. Created the image field (Va_Image)
2. The URL for the image comes from a Context node which is mapped to the PDF DataSource.
3. i mapped the context node to a invisible TextField (Image_URL)
4. I wrote the following script (to set the href of image dynamically) in the initialize event of the Page1 on which the text field and image are present
xfa.form.Vn_MasterRecord.Page1.Va_Image.value.image.href = xfa.form.Vn_MasterRecord.Page1.Image_URL.rawValue
5. On preview of the PDF in Adobe Live Cycle Designer, i get the image correctly.
However, when i execute the Webdynpro application (java), the image doesn't appear on my final screen.
Any pointers? am i missing something?
Points assured for good answers.
Thanks in advance,
Regards,
akHi Arun -
For dynamic image,
You cannot directly display a logo which is uploaded in se78 on an adobe form. The image format needs a conversion.
- You can write this code in your interface section.
- Create a global variable g_logo of type xstring."converted logo and v_name of type STXBITMAPS-TDNAME. "logo name in se78.
- Pass these parameters of the image in se78 to this method.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = v_object " 'GRAPHICS'
p_name = v_name " Name of the logo as in se78
p_id = v_id " 'BMAP'
p_btype = v_btype " 'BCOL' (whether the image is in color or black and white)
RECEIVING
p_bmp = v_field
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
g_logo = v_field.
- The variable g_logo will have the converted image.
- Drag g_logo into the context from the interface.
- Finally, in the context of the adobe form, make a graphics node and choose Graphic Type as Graphic Content.
- The Field should have the global variable g_logo and the mime type is 'BMP' (with quotes).
- Create an image field (not just image. That would be static) and in binding, bind it to g_logo and check the check box u2018Embed image datau2019.
I think, this should work. -
I'm trying to extend my wifi network with time capsule but it can't find the existing wifi network
I'm trying to extend my wifi network with time capsule but it can't find the existing BT wifi network even though it is there with a good signal strength. The Time Capsule is connected to a Netgear router via ethernet.
You will need to start over on the setup of the Time Capsule as follows:
Disconnect any Ethernet cables that might be connected to the Time Capsule, but leave it powered on
Hold in the reset button on the back of the Time Capsule for 8-10 seconds and release. The reset button is located next to the AC power socket.
Allow a full minute for the Time Capsule to restart to a slow, blinking amber light
Connect the Ethernet cable from a LAN <--> port on the Netgear to the WAN "O" port on the Time Capsule. The Ethernet cable must remain connected at all times.
Click the WiFi icon at the top of the Mac's screen
Look for a setting of New AirPort Base Station
Click on Time Capsule
The example below shows an AirPort Express. You will see Time Capsule on your screen.
That will get the setup wizard going. It will take a minute to analyze the settings, then display a screen that looks like this, except you will see a picture of the Time Capsule
Network Name..........Type in the exact name that the Netgear wireless is using
Base Station.............Type in a name that you want to call the Time Capsule. Use something short and simple. Mine is TC, for example
Password..................Type in the exact password that the Netgear wireless requires
Verify.........................Verify the Password again
Click Next
The setup wizard will configure everything for you automatically. When you see the message of Setup Complete, click Done.
That's it. Now you have one big "extended" network. Technically, this is called a "roaming" network. -
I tried to update my OS (Mountain lion) to mavericks, but i can't seem to download. There's a 'an error has occurred' in red beside the free upgrade bar.. what should i do?
It's possible something has become corrupted in your AppStore cache folder. I had the same problem that occurred after I did a partial download, paused it, and attempted to restart it again later. Here's how I fixed my problem:
Enable AppStore Debug menu:
1. Quit AppStore completely.
2. Run Terminal and enter the following on the command line: defaults write com.apple.appstore ShowDebugMenu -bool true
3. Restart the AppStore. You should see a new menu called "Debug".
Clear the download cache:
4. In AppStore, select Debug menu / Show Download Folder
5. Quit AppStore completely, but leave download folder open
6. In the download folder, select all files/folders, then delete them.
7. Restart AppStore. You may need to sign in to your Apple account again.
You may need to restart your computer to be able to delete the files from the trash.
You can then try the download again. -
G'day,
I need some help, i am trying to type into an adobe document using the typewriter function.
However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
This is not the case as the works are not visible regardless of the background color.
The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
I would appreciate any help i can get, i cant seem to do anything using properties or view.
Thanks
TiernanHi Sara,
See response to your questions below:
1. Are you running into this issue in a specific PDF, or in all of them?
A. All of them
2. What version of Acrobat are you using (and, are you on Mac OS or Windows?).
A. Using Acrobat 10.0\Acrobat on Windows
3. If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
A. Test swatch for the text is black
4. What happens if you change the text color?
A. Nothing.
I look forward to hearing back from you. -
I am trying to download CS5.5, which I purchased. But I can only find the upgrade software to download. Where is the non-upgrade version of CS5.5???
There is no upgrade version. The serial number that you use dictates whether or not the software is treated as an upgrade. If you purchased it as an upgrade then the serial number you have is an upgrade serial number and that will require you to provide proof that you qualify ro install/use the upgrade.
-
HT201656 i am trying to update my iphone 4 to ios 7 but i can not see general then software update
i am trying to update my iphone 4 to ios 7 but i can not see general then software update
Update it as described in this article; devices running an iOS version prior to 5.0 can't be updated straight from the device and must be updated from iTunes on a computer. It will be updated to the newest iOS release supported by the device’s hardware, which is iOS 7.0.4 for an iPhone 4.
(97574) -
I'm trying to connect my iPad to my apple TV but I can't fine airplay on my iPad neither my iPhone what should i do?
Welcome to the Apple Community tarekra.
Try the following steps, check whether things are working after each step where appropriate, before trying the next.
1. Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
2. Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
3. Restart the Apple TV (Settings > General > Restart).
4. Restart the Apple TV by removing ALL the cables for 30 seconds.
5. Restart your router. (Also try removing it’s power cord for at least 30 seconds)
6. Restart your mobile device.
Maybe you are looking for
-
When ITunes changed their format it duplicated songs in my library. How do I get rid of the duplicates without having to indivdually delete them?
-
Query regarding perl in Oracle Home
Hi All, One of my customers has asked the following question There is Perl 5.6.1 present in OracleHome but I can't use it like Perl is meant to be, because there is no makemaker ... so I can't use modules provided by CPAN. I want to know if it is po
-
SSIS failed to execute in SSDT-BI for Visual studio 2012 after SQL 2012 SP2 upgrade
Hello, I have applied sql server 2012 sp2 on my dev workstation and I am currently having this error message when trying to execute a SSIS package from SSDT-BI for visual studio 2012 : "Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.Visual
-
ClassCastException in InvocableMap.ParallelAwareAggregator
I am using InvocableMap.ParallelAwareAggregator to sort results set on cache server side. But I'm keep getting ClassCastException like below : 2008-02-14 17:33:28.603 Oracle Coherence DC 3.3.1/389p1 <Info> (thread=main, member=n/a): Connected to 10.5
-
Hi, I have a hierarchical tree in one my forms that one branch of it has about 2000 nodes the hierarchical tree does not display all the values. I've tested with about 1500 and it show correctly. Any limitation? any workaround? regards