Attachment at the time of MIGO
Dear All,
Our client wants to attach some documents at the time of GRN. This attachemnt should be mandatory for certain Document types in PO.
Kindly suggest how can we fulfill the requirement.
Regards,
Vikas
There is a button "Services for Object" in MIGO click it, Create >> Attachment then you can attach any file. SAP Help gives you screen shots also here
http://help.sap.com/saphelp_erp2004//helpdata//EN/c8/96c998142f11d389940000e8216438/frameset.htm
That button may be missing so you need to have the following roles in your user profile to be able to even see that button.
[SAP_BC_SRV_GBT_USER and SAP_BC_SRV_ARL_USER|http://help.sap.com/saphelp_erp2004//helpdata//EN/1e/31a40415b711d4a39200a0c943858e/frameset.htm]
After posting the document you can access the uploaded document in MB03 "Services for Object" >> "Attachment list"
Similar Messages
-
Asset a/c entry at the time of MIGO instead of MIRO
Hi
currently we are posting asset accouting entry at the time of MIRO i.e. asset Dr and vendor Cr.
Now we want asset should debited at the time of MIGO.
we have change the setting in MM-account assingment but still we are not getting the desire result. can anybody let us know how we can achieve the same.
please reply
RegardsHi
Thanks...that is there but still not getting result.
regards
DD -
No accounting document at the time of MIGO in STO
Hi,
I am doing the following process in STO.
1.Create PO ME21N
2. In VL10B to create a delivery
3. VL02n do the Post goods issue with movement type 641
4. In VF01 create the billing document where you will stock transfer price and Excise duties involved and this procedure is defined by SD people.
5. In J1iin you will create excise invoice
6. Now we are doing goods receipt (MIGO) and capture and post the excise invoice.
But at the time of last step no accounting document is generating,only cenvat clearing a/c is generating.
So how can we get the a/c document at the time of MIGO.
RegardsHi,
It will not offset the cenvat a/c because the accounting entries triggerred are different
When u post a invoice thru J1iin
Excise expense a/c Dr
Excise payable a/c Cr
This a/c will get offsetted when u pay the monthly excise liabilities thru utilisation.
When u do GR and during that time the cenvat entries get posted as follows
RG 23 A Part II a/c Dr
Cenvat utilisation a/c Cr
This a/c will get offsetted when u utilise this cenvat towards payment of the above duties.
So when u perform GR for STO the a/c entries for stock does not get updated but it gets updated when you perform PGI during delivery.
Hope this clarifies u. -
Hi all
In our situation, we have some vendors who are both material as well as service providers.Our client wants to have the functionality of deducting/specifying the tax codes for EWT at the time of MIGO itself and not at MIRO since the person doing MIRO might make a mistake regarding TDS. Is there any way we can handle the situation or do we have to create two codes for all such vendors. We are working on ECC 6.0.(India, CIN Version)I agree with Kapil Malde
Income tax provisions are very clear on the issue that the TDS to be deducted when expense is booked and credit account could be a clearing account(instead of a vendor account).Hence TDS to be deducted on MIGO and not MIRO.
Also at the time of MIGO the Purchase order details are available in the system hence vendor name is already available in system hence technically TDS can be deducted at the time of MIGO Itself.
(As a side note I would like to mention the SAP Logic of not providing the facility of TDS deduction at MIGO stage is that as a standard procedure MIGO and MIRO should be done on the same day, hence it make no difference but in actual practice there is gap in migo and miro hence legality of transaction can be challenged by Taxation Authorities.)
In case there is change in tax rate then practice of deducting tax at MIRO stage would amount to over deduction of TDS or under deduction of tds during the period of GAP. -
Please Help its Urgent ***POPUP at the time of MIGO Posting*****
Hi all,
Please help me on this issue,
I want to display one popup at the time of migo posting and that popup ask to user that " How much labels you wants to print?" and in next of that i want one text box or input field in that user inputs the number of labels he wants to print.
I have tried using various POPUP functions but i have not got any FM which fulfill my requirement so please help me on this issue?
Kind Regards
Sudarshan GaikwadThe standart POPUP* function modules seem to either give an option to output descriptive text, or ask for a dictionary based field as an input. As you want both in one popup you may need to write your own custom pop-up.
Create a function group with a Z function module and add a dialog screen with the required text and input field to this function group.
Take a look at function POPUP_GET_VALUES as an example - A custom written one could be a lot simpler.
Then call this function from your user exit.
Andrew -
Accout postings at the time of MIGO
Hi,
We know that at the time of MIGO system posts Stock A/c Dr. and GR/IR account Cr.. We have some special requirement to post account at the time MIGO as follows.
1.While posting GRN accounting flow would be [1. Stock A/c Dr. to GR / IR cr.] and [2. Purchase A/c Dr. to Increase / Decrease in stock Cr.]
2.While Issuing material from stock flow would be [Increase / Decrease Stock Dr. to Stock Cr.]
Thanks,
GoutamHi,
follow the menu path mentioned below:
SPRO > MATERIAL MANAGEMENT > VALUATION AND ACCOUNT ASSIGNMENT > ACCOUNT DETERMINATION > ACCOUNT DETERMINATION WITHOUT WIZARD > PURCHASE ACCOUNT MANAGEMENT.
1> first u have to activate the purchase account management for your company code.
2> calculation of value for purchase account.
here u have to activate the receipt value and if required then delivery costs for the respective valuation area and company code.
3> in third step u if u want then u have activate seperate accounting document for the valuation area.
the accounting entries will be:
at gr
stock dr
gr/ir cr
purchase account dr
purchase offset account cr
regards
jash -
Auto Reconciliation of 57FC at the time of MIGO
Dear SAP Friends,
I want to do auto Reconciliation of 57FC at the time of MIGO.
I do not want to do that through the J1IFQ.
How it will be possible?
please reply.
Regards,
Chandra.Sumit,
I have couple of questions which would give a lead to understand your system settings.
1. How many phases are there in your process order?
2. What is the control key defined in the last phase of your process order?
3. Did Goods Issue happenned during confirmation?
4. Did Goods Recipet occured during confirmation?
You can check whether goods movement is happening during confirmation or not by displaying confirmation using transaction "CORT".
Once you enter the order number and pahse no, hit "enter" it should take you to the Confirmation display : detail. Now hit the Goods Movement Icon, if any goods movement has occured during confirmation you can find it here.
Please reply your feedback for further resolution, also let me know what is expected?
Reward your points if helpful,
Regards,
Prasobh -
Assets(excisable ) rejection at the time of migo
hiiiii....
i want to reject a excisable asset.I also want to know the storage location of this asset at the time of migo or quality check.
Thanks & Regards
Rekha SharmaHi
You can receive the capital goods in MIGO as 'Goods receipts'. For returning the material, you can try 'Return delivery' option in MIGO
Thank You, -
Error at the time of MIGO- not reading the excise base from invoice
hi gurus
when we do inward the material during sto using migo, the following error occurs Error at the time of MIGO- not reading the excise base from invoice
kindly suggest right answers to overcome this?
with regards
baalakrushnan.dahi,
Go to logistics general and see whether for the excise group migo settings are maintained.
See for the material in depot chapter id and excise indicators are maintained ie J1ID.
since depot also considered as plant so the chapter id and plant combination has to be maintained.
Regards
Saju -
Update Ledger group in BKPF at the time of MIGO and MIRO
Hi Friends,
In our current implementation we have requirement to update a certain Ledger group, to restrict the postings in all ledgers, at the time of positng in MIGO and MIRO.
Can you please let me know how we do this.
Waiting for your reply,
Madan MohanHi Santhosh,
Thanks for your reply. But in the substitutions at header and line item level i didnt find the 'U300' userexit.
Can you suggest me at what level i can find that user exit.
Thanks and Regards,
Madan -
Barcode Reading at the time of MIGO
Hi all,
My requirenment is to read the serial no's from a text file genarated by Barcode reader and pass it to screen field in MIGO at the time of Goods receipt. Is there any Exit/BADI for this. The text file contians Material no and serial no of the item.
Regards,
RajeshHi
If you have profit center accounting in place, we can generate profit centre B/S and P&L. For that all expenses/incomes need to be posted to the relevant Profit Centre
Special purpose ledger is an additional ledger we maintain for other than Legal requirements.
Material ledger- To calculate the actual costs and update the material master.
Hope these are useful
S Jayaram -
Hi at time of Migo, this document are generating
Accounting document : xxxxxxxx
profitcenter docu : xxxxxx
special purpose ledger document : xxxxx
material ledger : xxxxx
I knw only about accouting doucment: inventory accounting Dr
GR/IR a/c
could you explaing abotu
remaning doucment like: profice center document, special purpose ledger doucment
material ledger, what is the effect????
regarding
ssHi
If you have profit center accounting in place, we can generate profit centre B/S and P&L. For that all expenses/incomes need to be posted to the relevant Profit Centre
Special purpose ledger is an additional ledger we maintain for other than Legal requirements.
Material ledger- To calculate the actual costs and update the material master.
Hope these are useful
S Jayaram -
Price Variance at the time of MIGO
Hi All,
we have scenario where at the time of GR Mvt Type 101 system has posted below accounting entry
Stock Account Dr 1,816.00
GR\IR Account Cr 1,816.00
Now at the same time user has returned the goods Mvt Type 102
Stock Account Cr 1,816.00-
GR\IR Account Dr 1,091.52
Price Variance Dr 724.48
Now we are not able to understand why system is posting to Price Variance Account any expert advise.
Thanks!!!
Regards,
Vivek SrivastavaHi,
This might be because of the price change in PO.
If you change the PO net price, while reversing the document sytem get net price from PO.Check once price history. -
Error while opening the Pdf Attachment at the time sending mail ..
Hi Frn's ,
i am sending a mail with pdf attachment ... but the pdf is not opening ...it is giving error "There was and error opening this document . This file can not be open because it has no page ."
Please resolve the problem ...below is the code pasted ..
REPORT ZPRI_TEST_LDB.
DATA: it_pdf LIKE tline OCCURS 0 WITH HEADER LINE .
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
DATA: w_recsize TYPE i.
DATA: gd_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
data: gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT 'abc,
p_sender LIKE somlreci1-receiver
DEFAULT 'abc'.
perform write_output .
perform create_pdf .
PERFORM process_email .
FORM WRITE_OUTPUT .
write:'Listed below are the employees in your area who are due a Performance Appraisal'.
write:'during the month of May 2009 .A performance appraisal form can be found on-line'.
write: 'in the MUD template section .The Performance Appraisal is to be completed and' .
write:'discussed with the employee by the immediate supervisor .Signed forms should be '.
write: 'returned to the Human Resource Department by May 31,2009 .'.
skip 2 .
write: 'employee name' .
write: 'Job Date' .
write: 'Date of last appraisal' .
ENDFORM. " WRITE_OUTPUT
FORM CREATE_PDF .
DATA: spoolno LIKE tsp01-rqident.
DATA : p_repid LIKE sy-repid .
DATA: v_len TYPE i , v_len1 TYPE i .
DATA: v_temp(8) TYPE c .
DATA: p_uname LIKE sy-uname .
DATA: it_tsp01 TYPE STANDARD TABLE OF tsp01 WITH HEADER LINE .
DATA: it_pdf LIKE tline OCCURS 0 WITH HEADER LINE .
TABLES: tsp01.
data: var type c .
*-- STRUCTURES
DATA:
lc_rq2name LIKE tsp01-rq2name.
DATA:
mstr_print_parms LIKE pri_params,
mc_valid(1) TYPE c,
mi_bytecount TYPE i,
mi_length TYPE i,
mi_rqident LIKE tsp01-rqident.
*-- INTERNAL TABLES
DATA:
mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
mc_filename LIKE rlgrap-filename.
*-- SELECTION SCREEN
DATA:
p_linsz LIKE sy-linsz VALUE 132, " Line size
p_paart LIKE sy-paart VALUE 'X_65_132'. " Paper Format
*-- Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
IMPORTING
out_parameters = mstr_print_parms
valid = mc_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
importing variable value set at first time to restrict the infinite loop .
IMPORT var FROM MEMORY ID 'abc' .
var = var + 1 .
p_uname = sy-uname .
p_repid = sy-repid .
*checking variable to restricted scecond time exction of this block of code
IF var = 1 .
v_memid = 1 .
EXPORT var TO MEMORY ID 'abc' .
start ----p3d(02/13/2009)
EXPORT it_pernr it_pernr_quali v_memid it_pernr_status
p_file p_file1 rb_pres rb_app rb2 TO MEMORY ID 'bcd' .
EXPORT it_pernr it_pernr_quali v_memid it_pernr_status it_notqualified
p_file p_file1 rb_pres rb_app rb1 rb2 rb3 rb4 TO MEMORY ID 'bcd' .
EXPORT it_pernr it_pernr_quali v_memid it_pernr_status it_notqualified
p_file p_file1 rb_pres rb_app rb3 rb4 TO MEMORY ID 'bcd' .
end ----p3d(02/13/2009)
submitting the spool request
SUBMIT (p_repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
ENDIF.
FREE MEMORY ID 'abc'.
FREE MEMORY ID 'bcd'.
*Calculating the lenth of report name
v_len = STRLEN( p_repid ) .
*consutrucing the database variable rq2name to search the spool request
IF v_len >= 9 .
CONCATENATE p_repid+0(9)
p_uname+0(3) INTO lc_rq2name .
ELSE.
v_len1 = 9 - v_len .
DO v_len1 TIMES .
CONCATENATE v_temp '_' INTO v_temp .
ENDDO.
CONCATENATE p_repid v_temp
p_uname INTO lc_rq2name .
ENDIF.
*selecting the spool request using the above consructed varibale
SELECT * FROM tsp01 INTO TABLE it_tsp01
WHERE rq2name = lc_rq2name .
*sorting the interbla table
SORT it_tsp01 BY rqcretime DESCENDING .
*reading the first spool request
READ TABLE it_tsp01 INDEX 1.
*converting the spool request into pdf
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = it_tsp01-rqident
dst_device = 'LP01'
TABLES
pdf = it_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf.
TRANSLATE it_pdf USING ' ~'.
CONCATENATE gd_buffer it_pdf INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM. " CREATE_PDF
FORM SEND_eMAIL using p_email .
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM. " SEND_MAIL
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email using p_email1 . .
perform send_email using p_email2.
ENDFORM.
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Thanks and Regards ..
Priyankhi this is the part of code ...
PERFORM process_email .
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf.
TRANSLATE it_pdf USING ' ~'.
CONCATENATE gd_buffer it_pdf INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM. " CREATE_PDF
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email using p_email1 . .
perform send_email using p_email2.
ENDFORM.
FORM SEND_eMAIL using p_email .
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM. " SEND_MAIL
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. -
Pop up screen not coming for import PO at the time of MIGO
Hi,
I am doing Migo for import PO and not getting Pop-up screen to put commercial IV no., while MIRO is done for custom duties, Pls help me out and tell me the settings related to the same.Hi,
Follows as below in case of Import procurement.
Step 1)
Maintain J1ID check with following details
1. Material Chapter id Combination & Material Type as well.
2. Maintain Cenvat determination Input & Out put Material.
3. Vendor Excise Details - Excise indicator for vendor 1
4. Plant - Excise indicator for Plant 1
Step 2) Create PO.
Maintain all the condition manually in PO
Such as Custom duty 10%, Edu cess on Custom 2%, SHE cess on Custom 1%, BED equivalent to CVD 10%, Edu cess on CVD 2% and SHE cesson on CVD 1%, AED 4%.
Then in PO assign local vendor for these condition
Step 3) Do MIRO and select planned delivery cost in the selection on MIRO screen & Post the MIRO/ Custom invoice.
Step 4)
Capture Excise invoice with reference to custom / commercial invoice system automatically pops up the window to enter the commercial invoice.
Step 5)
Perform GR during GR system Pops up the window to enter the commercial invoice. There you can enter thsame.
Rg
Maybe you are looking for
-
I was using Firefox earlier in the day with no problem. About half an hour ago I tried to get on the Internet using Firefox (as always). When I did, I was greeted with a little dialog box showing that something was downloading. That's happened before
-
My iPod Touch (3rd generation) settings for video does not include the TV out option. It is listed but not highlighted. What do I have to do to get it to play a video out to the TV?
-
Select and move multiple keyframs
I just switched from Adobe Premier Elements on a PC to FCE 4. In PrEl, you can select multiple keyframes in their equivalent of the Viewer, you can them move them as a group. (Select them shift click or drag a square around them.) This is really usef
-
EMac won't start - clicks, fan turns on briefly
Got a used eMac 800Mhz G4 from my neighbor which is going to be my daughter's first machine. Worked fine at first, but needed a PRAM battery replacement to hold the time. Then a few days later, flickered and turned itself off after 5 minutes of being
-
Cache clear safari 6.0.2
I used iWeb and YummyFTP to update webpages, and these new pages are displayed on iPad,etc. but the old pages persist on my Macbook Safari 6.0.2. I have attempted resetting Safari without effect. Baffled!! Any advice?