Is it possible to edit output backend data and send as input to backend
Hi All,
In my application, Client can submit his project from one view. Once he has submitted, it stores in database. Upto here is fine. When Client wants to change his project description,when he pressed one button, it take to another view where he can see his submitted project information. if he wants to change, he can cange it. When he press submit button, it stores in database. I did context mapping, i getting data from backend. here i have to do context mapping
Input = Output+Modefied information.
Any one has some code or idea.
Thank you
Regards
Ravi.Golla
hi,
Okay what i understood from your query is,
user can get back the information about the project and then after doing some modification on it the changes should be taken back to DB.
So take value node in you WD application for showing data to user, dont directly map the output node to UI element instead map these value nodes to UI elements. Make the UI elements editable to user lets say table , so usr will change some information and when he clicks the submit , take these info from UI ie value node and put it in some tempObj, also append whichever other info you want to send to r3 into this tempObj, then give combined info of tempObj as a input for RFC and execute the RFC.
Hope it helps.
I hope i pointed to your query
regards
Similar Messages
-
How do you edit out the date and time stamp from a photo
How do you edit out the date and time stamp from a photo
You can blur it out with retouch
The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
Regards
Léonie -
Copy control for dates and disable the input
Hi All,
I have the following problem: I'm trying to copy dates in a follow-up order from the source order (which works fine by implementing the CRM_COPY_BADY method DATES) and disable the input of the copied dates in the follow-up order (which doesn't work).
In the change-parameter CT_INPUT_FIELDS you can specify the fields which have to be copied and furthermore you can control the modifiability of the field in the follow-up order via the parameter CHANGEABLE (e.g. 'A' means field can not be changed). This technique is the same in all methods of the copy BADI.
Unfortunately it doesn't work for the dates. As I said already, the date is copied but can be changed by the user in the follow-up order.
Anybody an idea?
Thanks and best regards, LutzDear John,
Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want. Anyways, thank you very much for sharing idea. -
Zip the data and send as an email attachment
Hi,
I have a requirement where I want to send the log as an email attachment. The log size is very huge about 20MB. When I try to send this log as an excel attachment through FM SO_DOCUMENT_SEND_API1 its throwing an error related to the attachment size. Is there any way to zip the data and send the zipped attachment?
Any help is really appreciated.
Thnaks,
Rajinikanth Gwhich might help you getting the file from the pc or you can change the source path and then send it to the following reciptant
data method1 like sy-ucomm.
data g_user like soudnamei1.
data g_user_data like soudatai1.
data g_owner like soud-usrnam.
data g_receipients like soos1 occurs 0 with header line.
data g_document like sood4 .
data g_header like sood2.
data g_folmam like sofm2.
data g_objcnt like soli occurs 0 with header line.
data g_objhead like soli occurs 0 with header line.
data g_objpara like selc occurs 0 with header line.
data g_objparb like soop1 occurs 0 with header line.
data g_attachments like sood5 occurs 0 with header line.
data g_references like soxrl occurs 0 with header line.
data g_authority like sofa-usracc.
data g_ref_document like sood4.
data g_new_parent like soodk.
data: begin of g_files occurs 10 ,
text(4096) type c,
end of g_files.
data : fold_number(12) type c,
fold_yr(2) type c,
fold_type(3) type c.
parameters ws_file(4096) type c default 'c:\debugger.txt'.
Can me any file fromyour pc ....either xls or word or ppt etc ...
g_user-sapname = sy-uname.
call function 'SO_USER_READ_API1'
exporting
user = g_user
PREPARE_FOR_FOLDER_ACCESS = ' '
importing
user_data = g_user_data
EXCEPTIONS
USER_NOT_EXIST = 1
PARAMETER_ERROR = 2
X_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.
fold_type = g_user_data-outboxfol+0(3).
fold_yr = g_user_data-outboxfol+3(2).
fold_number = g_user_data-outboxfol+5(12).
clear g_files.
refresh : g_objcnt,
g_objhead,
g_objpara,
g_objparb,
g_receipients,
g_attachments,
g_references,
g_files.
method1 = 'SAVE'.
g_document-foltp = fold_type.
g_document-folyr = fold_yr.
g_document-folno = fold_number.
g_document-objtp = g_user_data-object_typ.
*g_document-OBJYR = '27'.
*g_document-OBJNO = '000000002365'.
*g_document-OBJNAM = 'MESSAGE'.
g_document-objdes = 'Manohar testing by program'.
g_document-folrg = 'O'.
*g_document-okcode = 'CHNG'.
g_document-objlen = '0'.
g_document-file_ext = 'TXT'.
g_header-objdes = 'Manohar testing by program'.
g_header-file_ext = 'TXT'.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = sy-uname
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header
FOLMEM_DATA =
RECEIVE_DATA =
File from the pc to send...
method1 = 'ATTCREATEFROMPC'.
g_files-text = ws_file.
append g_files.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = g_owner
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header
method1 = 'SEND'.
g_receipients-recnam = 'MK085'.
g_receipients-recesc = 'B'.
g_receipients-sndex = 'X'.
append g_receipients.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = g_owner
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header.
this code might help you -
Read spool data and send it through e-mail as .txt or .xls attachment
Hi All,
I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
Alternatively, I can send the file as excel attachment. How can this be done?
Thanks,
AshwiniYou will have to convert string to Xstring and then to binary to acheive this.
Check this wiki to send a mail attachment with more than 255 characters.
[https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
Vikranth -
How to convert script output to excel and send through mail in the report
I need a solution for Converting script into EXCEL and sending Excel as a attachment to the mail. In my current Program I am getting OTF data from script and converting into PDF using Function module ' CONVERT_OTF'
And sending PDF as a mail attachment using Function module 'SO_NEW_DOCUMENT_SEND_API1' it is working fine but
My current requirement is I need to send Excel as a mail attachment instead of PDF.
Hope it is clear for you, please give me possible solutions with sample code..hi
good
CONSTANTS: CON_CRET TYPE X VALUE '0D', "OK for non Unicode
CON_TAB TYPE X VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO IT_ATTACH SEPARATED BY CON_TAB.
CONCATENATE CON_CRET IT_ATTACH INTO IT_ATTACH.
APPEND IT_ATTACH.
LOOP AT IT_EKPO INTO WA_CHAREKPO.
CONCATENATE WA_CHAREKPO-EBELN WA_CHAREKPO-EBELP
WA_CHAREKPO-AEDAT WA_CHAREKPO-MATNR
INTO IT_ATTACH SEPARATED BY CON_TAB. " Check here
CONCATENATE CON_CRET IT_ATTACH INTO IT_ATTACH. " Check here
APPEND IT_ATTACH.
ENDLOOP.
thanks
mrutyun^ -
How to acquire data and send via tcp/ip
well guys i'm having a problem here
i will have a client and a server....
the client will stay at my home doing some kind of monitoring
and i want that my client send this informations to me here in my work
the informations are 6 variables
3 voltages and 3 currents i already did a program for try the communication
and it works.... i used the random number only to see if i was receiving the values
and it works perfectly
now i have to put the real values... i will use a daqMX.. i don't know the exaclty daq.. but is the cheapest... because i don't need too much things...
how could i put the client to make this monitoring and send the data to me??
thanks for the help!I assume you meant the USB-6215, as there is no 6125.
I would suggest looking over this page: Getting Started with NI-DAQmx: Basic Programming with NI-DAQmx. It contains a wealth of information on using DAQmx.
You can use MAX to create a simulated 6215 so you can create tasks and
then implement your code using the simulated device. This will allow you to write the code and test it without actually having the device. Since the 6215 has only analog inputs I am assuming you're using something like a shunt to measure your 3 currents. As I noted, there are tons of examples that ship with DAQmx - just use
the Example Finder to find them. For what you're doing you can probably
get away with just using the DAQ Assistant Express VI. However, that
Express VI generates dynamic data, which you will need to convert to an
array in order to send it over TCP/IP. This can be done using the
Convert From Dynamic Data VI (in the Express palette).
Attached is a simple example using the DAQ Assistant. The task is configured to get just one sample from each channel. You will need to modify the code if you are getting N samples from each channel (i.e., basically a 2D array). In order to run this VI you will first need to create a simulated 6215 in MAX. Please read the documentation in MAX on how to create simulated devices. The 6215 is in the "M" branch when you get the dialog to select a device.
Attachments:
teste 3-B - server MOD.vi 123 KB -
Zip the data and send through JDBC adapter.
hi,
I need to retrive the data from database, zip it and send to xi. At the receiver and i need to unzip it.
I know that it can be achieved using java mapping. Is there any other solution?Hi,
This will help you
Zip-Transfer-Unzip: Increase the performance of your Java-ABAP applications
Working with the PayloadZipBean module of the XI Adapter Framework
REgards
Seshagiri -
How to use output of Data Profiling as a input in ODI project
Hi...
i have performed data profiling on DQ_CUST_INFO.CSV file and got the output folder which contains lots of file.but i am unable to understand which file to use in ODI project.please assist me as soon as possible.You can use Replacement Path Variable for this purpose. See this detailed documentation.
http://help.sap.com/saphelp_nw04s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
Abhijit
Edited by: ABHIJIT TEMBHEKAR on Nov 19, 2008 9:48 AM -
How to edit XML parsed data and save on iPhone app
Hi,
How to edit and XML retrieved data that is displayed on an iPhone app and save again in the same XML file using iPhone SDK.
In other words I want to change the XML file data or edit and save.
Thnx in advance.
Regards
AmitHello amit,
No, not at all. Surely you will parse your XML file using the NSXMLParser class. OK! i think i get it now, do you wants to change/modify the value of any tag in the XML file? For that you will be required to parse your XML file using NSXMLParser class, and fill out some data structure (according to the the XML format) do some changes into your data structure, and then write your XML to the file (according to the edited data structure) using the method i told u earlier. This is what my preferred method is, and i am pretty much sure that it is not a bad way to do this at all.
Hope this clarifies some of your queries.
Best regards,
Obaid -
Is it possible to detect change of date and/or resume from standby?
Hallo you all,
in our current project we have a java remote application and a server application connected via GPRS.
Both client and server must have a system time sinchronized with a tolerance of maximum 15 minutes.
The problem has been solved simply making a datetime check during login: server sends it's current datetime
to client and then client make the time check. All right.
The problem is that after login the user (on client app) is able to change the system time and then... the sinchronization is lost!!
My first solution: I have a background thread that each 5 seconds make a time check: if in two consecutives checks
the difference is greater that 15 mins then I assume the the user has changed the system datetime and I raise a non recoverable exception
and the client aplication is closed.
Problem: if the system goes in stand by (laptop or hand held device) then at resume I have a time difference that can be greather than 15 mins.
Question: is there a way to understand if system wake up from stand by or if a system time has been changed?
In my tests the case of system date change and the case of sysm resume from stand by are identical from point of view value of Java current date.
I found no real to this question...
Thanks in advance,
Franco.It sounds like you're trying to synchronize multiple system clocks.
Why not using an existing solution such as NTP for this?
It sounds as if your application is trying to do many things at once. -
Configure audio output graph date and time
How do I configure labview to correctly identify the two circles below?
Attachments:
audiowave.png 63 KBAttachments:
Untitled.jpg 42 KB -
Smartform output to pdf and send through mail
Hi,
I am able to save the output of the smartform as pdf file and able to send the pdf as attachment in mail.
But the problems are -
1 - As i have set the field - 'X' TO ls_control_param-getotf.
I am unable to view the print preview of the billing document and no spool is getting displayed. I want to see the print preview and create a spool and also generate a pdf file.
2- I am using the FM SO_DOCUMENT_SEND_API1 to send the mail of the pdf file. But i am getting the message like
"Cannot extract the embedded font 'FranklinGothalicITCBook'. Some charactersmay not display or print correctly" followed by "An error exists on this page. Acrobat may not display the page correctly".
Pls help me in resolving the issues.
Thanks,
RajuHi
I was worked on similar type of requirement. For your reference, please check the below piece of code which i have developed for my requirement.
FORM ENTRY USING RETCODE
US_SCREEN.
*Check if Nast key is initial or not
IF NAST-OBJKY IS NOT INITIAL.
*if nast-objkey is not initial than we need to get the smartform name
*which is ZSF_PURCHASE_ORDER01
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = C_FORM
IMPORTING
FM_NAME = G_FNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
*if sy-subrc ne 0 than we need to update the nast entry with error
IF SY-SUBRC <> 0.
RETCODE = 1.
PERFORM NAST_PROTOCOL_UPDATE.
EXIT.
ENDIF.
*check if we need to take a print out
CLEAR W_CTRLOP.
IF SY-UCOMM = 'PREVOUTPUT'.
NAST-NACHA = '1'.
ENDIF.
OUTPUT TO PRINTER
IF NAST-NACHA = C_1. " Output to Printer
W_COMPOP-TDDEST = NAST-LDEST.
W_COMPOP-TDNEWID = 'X'.
W_COMPOP-TDIMMED = 'X'.
W_COMPOP-TDDELETE = 'X'.
W_COMPOP-TDLIFETIME = 1.
W_COMPOP-TDFINAL = 'X'.
W_CTRLOP-NO_DIALOG = 'X'.
W_CTRLOP-DEVICE = 'PRINTER'.
W_CTRLOP-PREVIEW = 'X'.
*Smartform is called and print program is done
CALL FUNCTION G_FNAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = ' '
WA_NAST = NAST
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
*if print program is successful we need to update the nast entry
IF SY-SUBRC EQ 0.
RETCODE = 0.
IF US_SCREEN EQ 'X'.
PERFORM NAST_PROTOCOL_UPDATE.
ELSEIF SY-SUBRC NE 0.
*if print program is not successful than we need to update the nast
*entry
RETCODE = 1.
PERFORM NAST_PROTOCOL_UPDATE.
EXIT.
ENDIF.
ENDIF.
OUTPUT TO MAIL
ELSEIF NAST-NACHA = C_5. " External Mail
We need to get the smartform into OTF file format
W_CTRLOP-GETOTF = 'X'.
IF NAST-TCODE = 'ZLE'.
W_COMPOP-TDDEST = 'LOCL'.
ENDIF.
CALL FUNCTION G_FNAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = ' '
WA_NAST = NAST
IMPORTING
JOB_OUTPUT_INFO = WA_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
*update the nast entry accordingly
IF SY-SUBRC EQ 0.
RETCODE = 0.
IF US_SCREEN EQ 'X'.
PERFORM NAST_PROTOCOL_UPDATE.
ELSEIF SY-SUBRC NE 0.
RETCODE = 1.
PERFORM NAST_PROTOCOL_UPDATE.
EXIT.
ENDIF.
ENDIF.
*convert the smartform data into OTF file
DATAB[] = WA_RETURN-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 134
ARCHIVE_INDEX = ' '
ASCII_BIDI_VIS2LOG = 'X'
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = BINFILESIZE
TABLES
OTF = DATAB[]
LINES = PDFTAB[]
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
*if file conversion fails we need to update the nast entry
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 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
LINE_WIDTH_SRC = 134
LINE_WIDTH_DST = 255
TRANSFER_BIN = 'X'
TABLES
CONTENT_IN = PDFTAB[]
CONTENT_OUT = PDF[]
EXCEPTIONS
ERR_LINE_WIDTH_SRC_TOO_LONG = 1
ERR_LINE_WIDTH_DST_TOO_LONG = 2
ERR_CONV_FAILED = 3
OTHERS = 4.
*if conversion fails update the nast entry accordingly
IF SY-SUBRC <> 0.
RETCODE = 1.
PERFORM NAST_PROTOCOL_UPDATE.
EXIT.
ENDIF.
Hope it helps... -
Smartform Output To PDF And Send It As External Mail
Dear All,
I am sending the Smartform Output as an attachment by converting it into PDF. But when I am recieve this attachment I am unable to open the PDF file,it is giving error that FILE IS DAMAGED
So please suggest a solution.
Regards,
BhaveshREPORT ZTEST_PDF_MAIL.
Internal Table declarations
PARAMETERS : p_ebeln TYPE ekko-ebeln DEFAULT '4500000003'.
DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
WA_OBJHEAD TYPE SOLI_TAB,
W_CTRLOP TYPE SSFCTRLOP,
W_COMPOP TYPE SSFCOMPOP,
W_RETURN TYPE SSFCRESCL,
WA_DOC_CHNG TYPE SODOCCHGI1,
W_DATA TYPE SODOCCHGI1,
WA_BUFFER TYPE STRING, "To convert from 132 to 255
Variables declarations
V_FORM_NAME TYPE RS38L_FNAM,
V_LEN_IN LIKE SOOD-OBJLEN,
V_LEN_OUT LIKE SOOD-OBJLEN,
V_LEN_OUTN TYPE I,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I.
DATA:it_pdfdata TYPE TABLE OF tline.
DATA:it_pdf TYPE TABLE OF solisti1.
BREAK-POINT .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZCSF_MM_PO_ORIGINAL'
IMPORTING
FM_NAME = V_FORM_NAME
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.
W_CTRLOP-GETOTF = 'X'.
W_CTRLOP-NO_DIALOG = 'X'.
W_COMPOP-TDNOPREV = 'X'.
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = 'X'
P_EBELN = P_EBELN
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
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.
I_OTF[] = W_RETURN-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = V_LEN_IN
TABLES
OTF = I_OTF
LINES = I_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
ENDIF.
LOOP AT I_TLINE.
TRANSLATE I_TLINE USING '~'.
CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
I_RECORD = WA_BUFFER.
APPEND I_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: I_RECLIST,
I_OBJTXT,
I_OBJBIN,
I_OBJPACK.
CLEAR WA_OBJHEAD.
I_OBJBIN[] = I_RECORD[].
Create Message Body Title and Description
I_OBJTXT = 'test with pdf-Attachment!'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'smartform'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR I_OBJPACK-TRANSF_BIN.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
I_OBJPACK-BODY_NUM = V_LINES_TXT.
I_OBJPACK-DOC_TYPE = 'RAW'.
APPEND I_OBJPACK.
Attachment (pdf-Attachment)
I_OBJPACK-TRANSF_BIN = 'X'.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
READ TABLE I_OBJBIN INDEX V_LINES_BIN.
I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
I_OBJPACK-BODY_NUM = V_LINES_BIN.
I_OBJPACK-DOC_TYPE = 'PDF'.
I_OBJPACK-OBJ_NAME = 'smart'.
I_OBJPACK-OBJ_DESCR = 'test'.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = 'XYZ'.
I_RECLIST-REC_TYPE = 'U'.
APPEND I_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF. -
Editing with a DataGrid and validating user input
Editing
with a DataGrid Tutorial
How to edit the information in a Flex 2 DataGrid directly,
without data binding TextInputs to it.
Uses a Remote Object, a CFC, and a Microsoft Access database
to demonstrate how.
Uses Actionscript to validate the data the user types into
the DataGrid.We created an itemEditor for our dataColumn that was a
mx:TextInput. Then we used the textInput event to capture keys as
they are typed. You get a TextEvent from that which you can cancel
if it something you don't want the user entering. We used regexs
for are validation here. I'm not sure if this is the best way to
handle this sort of thing, but it worked.
Maybe you are looking for
-
Cálculo do custo planejado para Subcontratação
Boa tarde, Temos uma necessidade de gerar um cálculo planejado para um material de subcontratação. Neste processo recebemos o mesmo material com duas notas fiscais, uma para subcontratação (onde é agregado mais um material do fornecedor) e uma outra
-
ITunes version DLed won't work with my mac version
I had to go to the Apple store yesterday b/c somehow I lost iChat. So, they had to install everything all over agin, including iTunes. But, the iTunes they installed is the new 8.1 version and now I can't use it because it is telling me: You cannot u
-
IOS update and I lost my contacts
I just updated my iPhone 4 with the new iOS and now my contact are gone and my husband's contacts are they instead. What did I do wrong?
-
Outllok 2010 does not default to iCloud contacts or iCloud Calendar
When using Outlook 2010, when I co to contacts, it always defaults to the Outlook Data file. How do I get it to default to my iCloud contacts? Same for Calendar. I have already triued moving "up" the iCloud contacts and calendar to the top of the lis
-
I'm confused about the startup disks
When I press 'option (alt)' when booting up, the mac takes me to a screen with three startup disks I can choose from, those being: 1. Macintosh HD (which is the default and only one I use) 2. Recovery 10.9 3. Windows What are #2 and #3 for? I think #