How to send replacements in Repair Order in SAP CS
Dear CS Experts,
We have a scenario where in we need to send replacements before repairing the returned goods. I have maintained the Repair Procedure as below and maintained all the item category customizings. But when I try to add this manual step of "Send Replacement", the system is not creating a replacement item for the outbound delivery.
I tried to automate this step by setting the "Automatic" flag, then the replacement item is generated by default. But then the system is not determining that this item is Delivery relevant. I had maintained all delivery relevant settings and also the copy control settings for delivery. Still I get an error saying that there are no delivery relevant item.
So I was just wondering how can we send replacements after the initial step of repair goods receipt. Any help is highly appreciated.
Send Replacement will actually create a Outbound Delivery item or it has to be achieved using a different movement type. Please help!!!!
Thanks,
Siraj
Dear CS Experts,
I think I have sorted out the issue.
I changed the Repair Procedure as below.
1. I create a Repair Order and enter 4 goods to be returned.
2. I want to send 1 replacement item.
So I add this manual step in the repair scheme for 1 item to be replaced.
3. So the replacement item is created. The mistake I was doing initially was that - I was trying to do this manual activity after the return delivery. After return delivery, the repair procedure has already gone to the next step of Start Repair. Hence this replacement FLAG was not showing.
4. Now I do the return delivery of the 4 goods.
5. I trigger the outbound delivery of the replacement item. The issue with the Outbound Delivery before was that - I have not assigned the correct Schedule Line Category to the replacement item category. I assigned the correct Scheduled Line Category as IA. Now the system allowed me to create outbound delivery without any issue.
In the outbound delivery I mention from which storage location this replacement item should be picked from.
6. After the outbound delivery of the Replacement Item - now I see the correct figures in the Repair Scheme.
From now I can proceed with the other steps successfully.
So to summarize - these are the steps which needs to be checked for Replacement Item Delivery
A. The Replacement Item Category should have the Scheduled Line Category IA assigned.
B. Adding the Replacement Step should be done before the Returns Delivery (with the repair procedure settings which I had).
I could sort out the issue now with the above two settings. I hope this could be helpful for others who are trying to sort out the same issue.
Thanks,
Siraj
Similar Messages
-
How to send a Mail purchase order automaticaly from ME22N
How to send a Mail purchase order automaticaly from ME22N
Hi,
First create an entry via NACE with medium = 5 ( External send ) with all other details same as normal print option. Now ensure that vendor master of the po has got the external e-mail id of the vendor. Now go to ME22n in mesages create a message with medium = 5 ( External Send ). Go to communication method, key in Communication strategy.Go to Further date & against Despatch time pick up option 4 viz. Send immeidately while saving an application. Now once you press the save button it will be sent to the address maintained in the vendor master of the vendor of the PO. Please note you require some basic settings from BASIS side as well.
I hope this helps,
You may also refer to the SAP note 191470.
Regards
Raju Chitale -
How long does replace or repair of ipad 3 takes?
Just want to know if how long does apple replace or repair an ipad because i think im gonna do a repair for my ipad 3rd gen. Due to its sound problem suddely lost all its sound
Apple's Limited Warranty http://www.apple.com/legal/warranty/ for iPad excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications.
Out-of-Warranty Service
If you own an iPad that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will replace (Apple doesn't repair) your iPad with an iPad that is new or equivalent to new in both performance and reliability for the Out-of-Warranty Service fee listed below. (The replacement will most likely be a refurbished iPad in a brown box, however, it has a new screen, back and battery.)
iPad model
Out-of-Warranty Service Fee
iPad mini
$219
iPad 3rd, 4th generation
$299
iPad 2, iPad
$249
A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in US dollars and are subject to local tax.
Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPad that has failed due to contact with liquid may be eligible for out-of-warranty service. See http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
Make a Genius Bar Reservation
http://www.apple.com/retail/geniusbar/
You may can get the iPad repaired at 3rd party repair sources for less $, however, any remaining Apple warranty will be voided.
iPad Repair & Screen Replacement Services
http://www.ifixyouri.com/16-ipad-repairs
RepairZoom iPad Repair
http://www.repairzoom.com/ipad-repair.html
Mission Repair
http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
iGadgetResQ
http://www.igadgetresq.com/ipad-repair/
Cheers, Tom -
How to send an attachment thru mail in SAP?
Hi all,
I have an file which has been sent by the customer. The file type may vary each & every week (sometimes XLS, sometimes CSV & sometimes notepad). This file has to be sent to another person thru mail as an attachment.
Is it possible to send thru the fun mod 'SO_SEND_NEW_*'.
If so how to send as attachment. If not thru this fun mod, how to send?
Thanks,
Vijay.I am enclosing the sample code to trigger an email, The logic for this is in comments, check this I am shure yuor problem will be solved.
*& Report ZGBL_SLA_PER
REPORT zgbl_sla_per NO STANDARD PAGE HEADING LINE-COUNT 26(3) MESSAGE-ID
zmsg2.
DECLARATION OF DB TABLES
TABLES: zncrfid, zrule_id.
DECLARATION OF INTERNAL TABLES
DATA: BEGIN OF ncrf OCCURS 0,
zncrf_id(15) TYPE c,
zncrf_l4_name(60) TYPE c,
z9gl_sla_flag(1) TYPE c,
zowners(30) TYPE c,
zowners_value(30) TYPE c,
zdate_changed(8) TYPE n,
ztime_changed(6) TYPE n,
END OF ncrf.
*DATA: NCRF LIKE ZNCRFID OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF it_ruleid OCCURS 0,
zrule_id(10) TYPE c,
zowners(30) TYPE c,
zowners_value(30) TYPE c,
END OF it_ruleid.
*data: wa like ncrf occurs 0 with header line.
DATA: BEGIN OF itab OCCURS 0,
zncrf_id(15) TYPE c,
zncrf_l4_name(60) TYPE c,
z9gl_sla_flag(1) TYPE c,
zowners(30) TYPE c,
zowners_value(30) TYPE c,
zdate_changed(8) TYPE n,
ztime_changed(6) TYPE n,
END OF itab.
data: file(10) type c,
dates type date.
EMAIL DECLARATION
*CONSTANTS: c_subject LIKE sodocchgi1-obj_descr VALUE 'Subject',
*c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
*DATA: g_time TYPE char8,
*g_email(40) TYPE c,
*g_sent_all(1) TYPE c,
*g_doc_data LIKE sodocchgi1,
*g_error TYPE sy-subrc.
*DATA: i_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,
*i_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
*i_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
*DATA: BEGIN OF mailid OCCURS 0,
zemail_id TYPE zrule_id-zemail_id,
END OF mailid.
*data: mailid like zrule_id occurs 0 with header line.
UPLOADING FLAT FILE TO INTERNAL TABLE NCRF
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\VAMSY\file.txt'
filetype = 'ASC'
has_field_separator = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = ncrf[]
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF sy-subrc EQ 0.
Checking internal table ncrf is empty then
*delete records from TABLE ZNCRF_ID ******************************
IF ncrf[] IS INITIAL.
MESSAGE i003(ZMSG2).
ELSE.
DELETE FROM zncrfid.
ENDIF.
*****Values are read from rule table and checking owner and owner_value
*from zrule_id table and inserted into ZNCRFID **************
SELECT * FROM zrule_id INTO CORRESPONDING FIELDS OF TABLE it_ruleid
WHERE zrule_id IN ('OWNER1', 'OWNER2').
append IT_RULEID.
LOOP AT ncrf WHERE z9gl_sla_flag EQ 'Y'.
READ TABLE it_ruleid WITH KEY zowners = ncrf-zowners
zowners_value = ncrf-zowners_value.
IF ncrf-zowners = it_ruleid-zowners AND ncrf-zowners_value =
it_ruleid-zowners_value AND ncrf-z9gl_sla_flag ='Y'.
itab-zncrf_id = ncrf-zncrf_id.
itab-zncrf_l4_name = ncrf-zncrf_l4_name.
itab-z9gl_sla_flag = ncrf-z9gl_sla_flag.
itab-zdate_changed = sy-datum.
itab-ztime_changed = sy-uzeit.
itab-zowners = it_ruleid-zowners.
itab-zowners_value = it_ruleid-zowners_value.
APPEND itab.
ENDIF.
ENDLOOP.
modify database table zncrfid FROM ITAB
LOOP AT itab.
WRITE:/ itab-zncrf_id, itab-zncrf_l4_name, itab-z9gl_sla_flag,
itab-zowners, itab-zowners_value, itab-zdate_changed,
itab-ztime_changed.
zncrfid-zncrf_id = itab-zncrf_id.
zncrfid-zncrf_l4_name = itab-zncrf_l4_name.
zncrfid-z9gl_sla_flag = itab-z9gl_sla_flag.
zncrfid-zowners = itab-zowners.
zncrfid-zowners_value = itab-zowners_value.
zncrfid-zdate_changed = itab-zdate_changed.
zncrfid-ztime_changed = itab-ztime_changed.
INSERT INTO zncrfid VALUES zncrfid.
ENDLOOP.
ENDIF.
ENDIF.
*CALL FUNCTION 'DATE_TO_DAY'
EXPORTING
DATE = sy-datum
IMPORTING
WEEKDAY = file.
**CHECKING FOR THE FIRST MONDAY OF THE MONTH.
dates = sy-datum.
shift dates by 6 places left.
if file CO 'monday' and dates < 7 and dates >= 1.
else.
message e004(zmsg2).
endif.
EMAIL SEND TO OWNERS LIST
**Fill the mail body in i_message.
get email id's from database into internal table et_mailid
Fill the document data.
*g_doc_data-doc_size = 1.
Populate the subject/generic message attributes
*g_doc_data-obj_langu = sy-langu.
*g_doc_data-obj_name = 'SAPRPT'.
*g_doc_data-obj_descr = c_subject .
*g_doc_data-sensitivty = 'F'.
Describe the body of the message
Information about structure of data tables
*CLEAR i_packing_list.
*REFRESH i_packing_list.
*i_packing_list-transf_bin = space.
*i_packing_list-head_start = 1.
*i_packing_list-head_num = 0.
*i_packing_list-body_start = 1.
*DESCRIBE TABLE i_message LINES i_packing_list-body_num.
*i_packing_list-doc_type = 'RAW'.
*APPEND i_packing_list.
Add the recipients email address
*LOOP AT mailid.
*CLEAR i_receivers.
*i_receivers-receiver = mailid-zemail_id.
*i_receivers-rec_type = 'U'.
*i_receivers-com_type = 'INT'.
*i_receivers-notif_del = 'X'.
*i_receivers-notif_ndel = 'X'.
*APPEND i_receivers.
*ENDLOOP.
Call the FM to post the message to SAPMAIL
*CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
*EXPORTING
*document_data = g_doc_data
*put_in_outbox = 'X'
*commit_work = 'X'
*IMPORTING
*sent_to_all = g_sent_all
*TABLES
*packing_list = i_packing_list
*contents_txt = i_message
*receivers = i_receivers
*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.
Store function module return code
*g_error = sy-subrc.
Get i_receivers return code
*LOOP AT i_receivers.
*ENDLOOP.
**Instructs mail send program for SAPCONNECT to send email(rsconn01)
*WAIT UP TO 2 SECONDS.
*IF g_error EQ 0.
*SUBMIT zgbl_sla_per WITH mode = 'INT'
*WITH output = 'X'
*AND RETURN.
REWARD IF FOUND USEFULL,
Cheers, -
How to send data from WEBI HYPERLINK to SAP R/3
Can someone please help in sending the data from WEBI to R/3 system.
We created a universe on top of a BEX Query and on Top of that we created a web intelligence report.
Now our requirement is when we click on any record in BO web ntelligence report that data should get populated in SAP R/3 system FAGLL03 screen . How to send the data from WEBI to R/3 system.
Edited by: SAP BPS on Feb 5, 2010 6:23 AMHerry,
You can refer the below docs for reference. Instead of receiver JDBC , you have to use Receiver as R/3.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
I hope it helps.
Best regards,
raj. -
IDOC :: how to send data from Custom Infotype in SAP HR to third party
Hi,
I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
Please help me in doing it.
I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
ZTALENT Talent Management
5 E1PLOGI Header for an HR Object (Master Data or Organizational Data)
5 E1PITYP HR: Transported Infotypes and Subtypes for an Object
ZPUSER User base Data File
ZPERSON Personal Information File Segment
ZPOST Position File
ZOPE Overall Performance
ZPWORK Outside Work Experience
ZPEDUC Education Details of Employee
E1P0000 HR: HR Master Record Infotype 0000 (Actions)
E1P0001 HR: HR Master Record Infotype 0001 (Org. Assignment)
E1P0002 HR: HR Master Record Infotype 0002 (Personal Data)
E1P0016 HR Master Record: Infotype 0016 (Contract Elements)
E1P0022 HR Master Record: Infotype 0022 (Education)
E1P0023 HR Master Record: Infotype 0023 (Other/Previous Employers)
E1P0041 HR Master Record: Infotype 0041 (Date Specifications)
E1P0105 HR: HR Master Record Infotype 0105 (Communications)
ZE1P9020
ZPLANG Language Details
ZACTION Actions Changes
Regards,
KrishnaHello Shankar,
Technically TEMSE files are read by calling the following 3 function modules in sequence,
1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
2) RSTS_READ : read the object
3) RSTS_CLOSE: close the object
Regards,
Rajesh -
How to send automatic EMail from SQL or SAP B1
hi experts as we are using SQL as DB i ned to send E-mails from sap system automatically but from SBO mailer or Scheduler is not working from my side now i was planning to send emails from SQL can any one help me how to send emails automatically from SAP business one or from SQL
Hi
In SQL under Management\Database Mail
You can configure account you use to send mails from SQL
Then you can prepare procedure that will send mail
for example
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Hurtpol',
@recipients = '[email protected]',
@query = 'select isnull(syncherror,'''') collate polish_ci_as
from np.dbo.OITM
where U_SynchStatus=''Failed''',
--@body = @tresc,
@subject = 'synch error'
read about sp_send_dbmail -
My Fan(s) have stopped working properly. - How to send in 4 repairs?
I have a HP Pavillion dv6-2111er.
I bought it in Russia.
The warranty is ofcourse long gone.
I, however, live in Belgium.
Problem: fans SEEM to still rotate, but very slowly. "Speedfan" shows that they're not rotating at all as the RPM = 0. Because of that, average temperature is at 70degrees, going up to 100 when doing something more intense then browsing. When it reaches ~105+ the pc shuts itself down to prevent (further) damage.
Question: how to either repair it myself, or send it in for repairs?
Specs (a copy-paste from "Speccy"):
Operating System
Microsoft Windows 7 Home Premium 64-bit SP1
CPU
AMD Turion II Ultra M620 84 °C
Caspian 45nm Technology
RAM
4.00 GB Dual-Channel DDR2 @ 401MHz (6-6-6-18)
Motherboard
Hewlett-Packard 3637 (Socket S1G3) 83 °C
Graphics
LP156WH2-TLQ1 (1366x768@60Hz)
ATI Mobility Radeon HD 4650 (HP)
Hard Drives
466GB Hitachi HTS725050A9A364 ATA Device (SATA)
Optical Drives
DTSOFT Virtual CdRom Device
hp DVD RW AD-7586H ATA Device
Audio
IDT High Definition Audio CODEC
This question was solved.
View Solution.I think you can send the notebook to HP. There is a charge for the repair and for the shipping, too, of course... This sort of repair is not difficult (for the shop), so I assume it would not be horribly expensive.
One advantage of sending the unit in to HP for repair is that, if you choose to do so, you might be able to opt for a "Tune-up", that is, ask for a "going over" of the computer and have them look at the box and maybe do whatever else may need to be done at the same time... this depends entirely on what they find, what you want to spend, and how long it would take. I did this on one of my older notebooks when I had to have it in for a NIC replacement.
Contact HP – USA and Worldwide
You could do the same thing at any local repair shop, too. The trick is to find a reputable shop. Assuming you live near a city where the resources are available, this should be possible and without undue risk. You might even be able to get a "loaner" system. (I do not know whether that is possible; it is something I'd ask about!) The advantage of using a local shop might be that it takes less time, and you are supporting your local economy.
If you are delayed at all while you are making a decision, get over to your local electronics store and buy a notebook cooler for that notebook. A notebook cooler is a good thing to have under that box even after it's fixed -- coolers can cost a little bit or a moderate amount of money and they keep the notebook happy, especially when you are pushing it hard - gaming, number crunching, whatever ... or poor fan / air circulation.
Good Luck!
Kind Regards,
Dragon-Fur -
How to send Equipment for repair
Hi,
i want to send a machine or euipment for repairing.how to do it..iam having inventory and purchase,finance modules..pl provide solution
regards,
venkatYou might need the service module other wise you have to create a custom solution with the existing modules.
Srini C -
How to send Chinese Characters from BPEL to SAP through JCA Adapter
Hi All,
We want to do a POC using a BPEL process to send Chinese characters to SAP System through a JCA Adapter.
If anyone has implemented the similar requirement, please share your thoughts on how to achieve it? Or if there had been any problems?
Also, please let us know which SAP API we can use to test this?
Appreciate your quick help!Hi Srini,
I am working on 9.0.3 EBS 11i.
Now i am able to encode using the below code:
in = new BufferedReader(new InputStreamReader(uploadedByteStream.getInputStream(),"UTF-8"));
if(linetext[7]!=null&&!"".equalsIgnoreCase(linetext[7]))
col8=linetext[7].toString();
vendor = new String(linetext[7].getBytes("UTF-8"),"EUC_CN");
Now i am able to encode to chinese character when the file is in ANSI encoding, i see the CSV data in some form(not chinese).
But when the file is in UTF-8 , and i can see the CSV data in Chinese (when i open in edit plus) , the encoding is not proper. when i remove the encoding the chinese data is coming properly.
The data i am printing on the OAF screen.
Now my doubt is : What type of file shd i be uploading ANSI/UTF-8????
When i see on the local jdev as sop's , the data is seen as ???? but on the screen its printing correctly.
but the data has to be passed to pl/sql procedure.
Regards,
Roopa. -
How to send a ALV report as a workitem
Hi All,
How to send a ALV report to the SAP Inbox for approval.
Requirement: When the reviewer executes the report and click on send button.
It will go to the approver for report approval.
How to send a report when reviewer click on the send button.
I am unable to find a solution when the user click on the send button the report will go to the approver.
Please help me out on this...
Regards,
Siraj,
+918008322278.Hi Siraj
I do not have a ready sample with me; however, here can be a logical sequencing of steps which you can follow to achieve this:
1) Define a custom PF STATUS in the ALV with the SEND Button
2) In the User Command routine for ALV, code for SEND
3) See how standard ALV - EXPORT to EXCEL Works - Debug and find the steps to generate an EXCEL - in the SEND Functionality
4) Once Excel is downloaded, create a SOFM document for the same - Check the method CREATE of object SOFM on the coding required to do it
5) Generate the SOFM Object Instance using the document created and calling FM SWO_INVOKE
6) Now you have the run time instance of the report output as a document
7) Define a custom Business object and a custom workflow based on that object
8) Define a custom event with the event parameter of type SOFM
9) From your SEND routine of the report -> trigger the event and pass the SOFM Instance of the excel as event parameter
10) Workflow will have this object via binding from event to workflow container
11) In the decision step to approver, bind this to _ATTACH_OBJECTS
For each of these, you will find some link already on SCN.
Hope this helps.
Once you have the solution, by the above steps or a better one, do remember to create a document on SCN in order to help others - this is a valid requirement and it would be good to have a ready reckoner :-)
regards,
Modak -
Hi Friends,
I have Configure All the things require to send idoc for purchse order..........when i m creating purchase order from source system
it's getting send to traget system....................
but in target system giving error in idoc.that
VKORG, VTWEG, SPART cannot be determined for customer S004 , vendor 0006000023
i m using message type....ORDERS............
can antbody pls tell me how to maintain VKORG, VTWEG, SPART
in oreders message type.......there no fields in this message type.......i have checked it through se19...............Hi ,
I have same problem ,
How to send IDOC of Purchase Order to URL of our vendor.
The Idoc is created , but how to send it to the web?
Anyone knows?
Thanks
Edited by: Moshe Stein on Feb 28, 2008 11:08 AM -
Service repair order link broken
Hi, I'm trying to track the repair for my TX that I sent in to Palm. The link that I was given to check on my order tells me that it has an invalid security certificate and won't open it. The link i was given is below and the error message follows it. How can I track my repair order?
https://web.palm.com/sro/status.jhtml
web.palm.com uses an invalid security certificate.
The certificate is only valid for js.palm.com
(Error code: ssl_error_bad_cert_domain)
Post relates to: Palm TXHi, and welcome to the Palm Community Forums.
I will ask a Palm Support agent to communicate with you with you about this.
smkranz
I am a volunteer, and not an HP employee.
Palm OS ∙ webOS ∙ Android -
How to send the email to different email addresses from Workflow
Hello,
i an not getting that how to send the email from Workflow in SAP.
plz give the steps to do that.
i have done lots of time but system is not sending the email to different email address.Hi,
lot of configuration is invloved in sending
mail to external email id. check BASIS to
configure for external mails ans also check
debug FM and see which conditions exceptions
(Document not sendis raised)
also check below code
CLEAR: DOC_CHNG, OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST,
RECIPIENT_INT, DOC_SIZE,TAB_LINES.
REFRESH: OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST.
OBJBIN[] = CONTENT_OUT[].
Populate e-mail title
DOC_CHNG-OBJ_NAME = 'MAIL'.
CONCATENATE 'EETS for Contract #'(245)
OIA01_TAB-EXGNUM
INTO DOC_CHNG-OBJ_DESCR SEPARATED BY SPACE.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
It is a text document
CLEAR OBJPACK-TRANSF_BIN.
The document needs no header (head_num = 0)
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but it has a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type RAW
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Create the attachment (the list itself)
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
It is binary document
OBJPACK-TRANSF_BIN = 'X'.
we need no header
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type PDF
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'Attachment'(239).
CONCATENATE 'EETS_' OIA01_TAB-EXGNUM '_'
IT_ZMMTACCUID-ACCTUSRID
'_' SY-DATUM '_' SY-UZEIT '.PDF'
INTO OBJPACK-OBJ_DESCR.
READ TABLE OBJBIN INDEX TAB_LINES.
DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJBIN ).
OBJPACK-DOC_SIZE = DOC_SIZE.
APPEND OBJPACK.
Get e-mail address
CLEAR IT_ADDRESS.
READ TABLE IT_ADDRESS WITH KEY ACCTID = IT_ZMMTACCUID-ACCTUSRID
BINARY SEARCH.
IF SY-SUBRC = 0.
RECIPIENT_INT-ADDRESS = IT_ADDRESS-SMTP_ADR.
ENDIF.
*Send email to external mail address
RECLIST-RECEIVER = RECIPIENT_INT.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
CLEAR RECLIST.
*Send email to SAP Office mail address
RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
CLEAR RECLIST.
SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE
FOR SENDING DOCUMENTS WITH ATTACHMENTS
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
importing
sent_to_all = sent_to_all
tables
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
also check
https:/Re: mail sending problem
Regards
amole -
How to send IDOC to DataWareHouse Systems
Can anyone tell me how to send an IDOC to Datawarehouse systems.
Hi,
please have a look at thread [How to send an IDoc from MII to SAP|http://forums.sdn.sap.com/click.jspa?searchID=60546363&messageID=8112660].
Does this help?
Michael
Maybe you are looking for
-
Less than a month and its already broken
Dear BT and Forum users, I am not very happy with my BB service right now and have come on here in the hope that I might get more that platitudes and fob offs. So... a few weeks ago my husband finally gave into the sales calls and agreed to have Inf
-
Hi, for some reason I can't add more music to my iPod and it doesn't give me the choice of choosing iTunes to show my iPod. I want to add more music but all it gives me the option to do it put pictures my computer. I really need help and I have no cl
-
How can I make a slideshow of animated slides in Edge?
I've watched Paul Trani's great tutorial on making an interactive slideshow of images in which people can click through the images (https://www.youtube.com/watch?v=teYOHY5bGyk) and I've made a nice slideshow. But I now want to make a slideshow just l
-
Calendar Doesn't Show Appointment End Dates in Month View
I'm trying to use iCal as my family calendar, but when I look in month view I only see the start time, not the end time as well. Is there a way to see and print both? Thanks!
-
Hi All, I have a customized subview which provides me the required tasks and for the same I have added two more columns for Approval and Rejection which are basically checkboxes. I have a Submit button as well. Based on the selection of the check box