Archiving GRPO Draft documents
Dear Experts,
Please help or clarify me for the below situation,
Approval procedure has been set in GRPO Document for Quality inspection. As per system behavior, every GRPO will be stored as a draft.
Over a period of time, Thousands of Draft document has been stored.
How to remove those drafts sitting unnecessarily ?
Even if we right click and remove those documents, system is throwing the error " Cannot delete drafts in approval process [Message 3612-1]"
Kindly give some solution to overcome this.
Regards
Ravindran Srinivasan
Dear Ravindran,
The business process should be re-examined to make sure the documents under approval are really in need. If not, save as draft instead of adding document to approval should be used.
For current drafts, they must be rejected before removal.
Thanks,
Gordon
Similar Messages
-
Print Draft Document using Crystal Report in SAP 8.8
I created a Crystal Report Layout using SQL View as data source for AR Invoice which prints out fine. (everthing on 1 page)
To print Draft Invoice, I copied the view to use ODRF/RDF1 instead of OINV/INV1, copied the Crystal report and updated the data source to the new view. When print Draft Invoice, it prints 3 pages - page 1 blank, page 2 just the "DRAFT" watermark, page 3 the crystal report without watermark.
Steps to print Draft Invoice: Sales-A/R > Sales Report > Document Drafts Report > Open selected Draft Invoice document > File > Select Layout and Print...
What is happening behind the scene when printing Draft documents? What is the correct way to print Drafts (e.g. special settings designing Crystal Reports)?
Thanks,
GraceThank you for your reply. It works in this specific report.
But we have both PLD and Crystal Report in the system, changing the settings means the PLD will lose their watermark...
Also, I don't know how the Draft is displayed, but when select Print Preview for Draft, it's asking for parameter (DocEntry), which I have setup a DocKey@ in Crystal Report and set it in the Selection Manager. Does SAP provide DocEntry in Draft Invoice (ODRF) the same way as in Invoice (OINV)?
Thanks,
Grace -
How to freeze the column edit in Draft document?
Hi,
I try the following code and want to freeze the column edit in Item code, Item description and quantity. However, it just work in Sales Order or PUrchase Order those normal marketing document. it doesn't work in Draft document. Anyone can help?
If BusinessObjectInfo.FormTypeEx = "133" And BusinessObjectInfo.Type = 112 And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD Then
If BusinessObjectInfo.BeforeAction = True Then
oForm = SBO_Application.Forms.Item(BusinessObjectInfo.FormUID)
oboDS = oForm.DataSources.DBDataSources.Item("ODRF")
oGenvalue = oboDS.GetValue("U_InvoiceFlag", 0)
Dim oOrderMat As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific 'Content Row'
Dim oColumns As SAPbouiCOM.Columns = oOrderMat.Columns
Dim oItemColumn As SAPbouiCOM.Column = oColumns.Item("1") 'Item No
Dim oItemColumn3 As SAPbouiCOM.Column = oColumns.Item("3")
Dim oItemColumn11 As SAPbouiCOM.Column = oColumns.Item("11")
If oGenvalue.Trim = "Y" Then
'Set Itemcode and Quantity to non-editable
oItemColumn3.Editable = False
oItemColumn.Editable = False
oItemColumn11.Editable = False
Else
oItemColumn3.Editable = True
oItemColumn.Editable = True
oItemColumn11.Editable = True
End If
End If
End IfHi Anna,
Thanks for posting your code - that helps a lot isolating the issue!
While your code could work, if the SDK would have been implemented differently, it won't do what you want it to:
- There is no et_FORM_DATA_LOAD event fired when a draft is loaded (use EventLogger from the B1DE tools - it would have told you that you are looking at an event that doesn't get fired...).
- Not sure how "BusinessObjectInfo" is defined, but oForm.BusinessObject.Type = "112" does not occurr:
The business object behind the form is the "real" business object - an Invoice ("13") in your case.
Thus your code never reaches the lines where you disable the relevant columns... - you could e.g. use .NET Profiler form B1TE to get at least a better idea of what is happening inside the add-on, if you don't like to step through you add-on code.
- oForm.BusinessObject.Type is a string (remember UDOs!) - not a number.
- Table "ODRF" is not a datasource behind form "133" - please check the form's XML!
If you would like to run that check you have to do it differently - using DI API...
HTH,
Frank
Edited by: Frank Moebius on Aug 3, 2009 4:28 PM -
Draft documents for Sales return and Goods return
Morning, Exports,
I got two questions, pls kindly help!
1) The draft documents regually if not with approval process, can be removed from draft list, but once it's with approved process, the "approved" draft document can't be removed. How to have it deleted from the list of draft documents? As there are two many drafts and we need to take them out once its data was adding into system....
2) Where we can see the serial# that picked for the draft document?
Thanks!
EmilyHere are the answers ---
1) The draft documents regually if not with approval process, can be removed from draft list, but once it's with approved process, the "approved" draft document can't be removed. --> TRUE
How to have it deleted from the list of draft documents? --> NOT POSSIBLE FOR DRAFT DOCUMENTS
As there are two many drafts and we need to take them out once its data was adding into system.... --> USE THE "OPEN ONLY" OPTION TO AVOID THE CLOSED / UNNECESSARY DRAFT DOCS.
2) Where we can see the serial# that picked for the draft document? --> GO TO ANY MODULE -> REPORTS -> "Document Drafts Report" --> Document No. [BUT THIS NO. WILL NOT TAKEN IF ANY DOCUMENT IS CREATED AFTER THIS DRAFT OF THE SAME DOCUMENT TYPE. THE FINAL NO. WILL BE THE LAST NO. + 1 OF A PARTICULAR DOCUMENT TYPE] -
Archive a pdf document in a folder in Business Workplace
Good Morning!
I've a question about archiving a pdf document in a folder in the business workplace.
I want to the it with the fm SO_OBJECT_INSERT.
But here is a problem. I upload the pdf with gui_upload into the table lt_pdfbin.
This table has the type solix_tab.
But in the fm the table content needs a table of the type soli.
What can i do?Are there other possibilities to archive the document in an folder?
Thanks for your help!
DATA: lt_pdfbin TYPE solix_tab.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_file
filetype = 'BIN'
has_field_separator = space
header_length = 0
read_by_line = 'X'
dat_mode = space
codepage = space
ignore_cerr = abap_true
replacement = '#'
* virus_scan_profile =
* IMPORTING
* filelength =
* header =
CHANGING
data_tab = lt_pdfbin
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = so_obj_id
* OBJECT_FL_CHANGE = ' '
* OBJECT_HD_CHANGE = ' '
object_type = 'PDF'
* ORIGINATOR_ID = ' '
* OWNER = ' '
* IMPORTING
* OBJECT_FL_DISPLAY =
* OBJECT_HD_DISPLAY =
* OBJECT_ID =
tables
objcont = lt_pdfbin
objhead = objheadHas nobody an idea?
I found something here:
[How to send PDF document as attachment in the send mail step|How to send PDF document as attachment in the send mail step]
Data: lt_pdfbin type solix_tab stands higher in the code, but it is there
It works...that something will be archived into my folder, but not a pdf document
With the object type 'RAW' there are only chinese symbols...hmm
With 'PDF' there is an error, with 'BIN' i can't see anything
Are there other opportunities?
DATA: so_obj_id type soodk.
DATA: objtp type so_obj_tp,
objyr type so_obj_yr,
objno type so_obj_no.
DATA: objhead type standard table of soli,
lt_mappe type standard table of soli.
DATA: wa_soli type soli,
wa_solix type solix.
FIELD-SYMBOLS: <ptr_text> type soli,
<ptr_x> type any,
<ptr_hex> type solix.
objtp = 'FOL'.
objyr = 35.
objno = '000000000457'.
* Zusammensetzung zur Folder_ID
CONCATENATE objtp objyr objno INTO so_obj_id.
* Umwandlung solix zu soli
refresh lt_mappe.
loop at lt_pdfbin into wa_solix.
clear wa_soli.
assign wa_soli to <ptr_hex> casting.
move wa_solix to <ptr_hex>.
append wa_soli to lt_mappe.
endloop.
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = so_obj_id
* OBJECT_FL_CHANGE = ' '
* OBJECT_HD_CHANGE = ' '
object_type = 'RAW'
tables
objcont = lt_mappe
objhead = objhead -
Archiving MM_EKKO (Purchasing documents with attachments)
We would like to start archiving MM_EKKO Purchasing documents. The units have been attaching items, quotes for example, to the purchasing documents. The attachments currently exist within the R/3 data base. If we archive MM_EKKO items the attachments will be lost. What we need to do is identify all the attachments and move them to content server.
Where are these attachment stored i.e in which table.?
Is there any procedure for archiving attachments?Hi
All the attchments are stored in link table that is TOA01/02/03.
Regards
Sirfraz
We would like to start archiving MM_EKKO Purchasing documents. The units have been attaching items, quotes for example, to the purchasing documents. The attachments currently exist within the R/3 data base. If we archive MM_EKKO items the attachments will be lost. What we need to do is identify all the attachments and move them to content server.
Where are these attachment stored i.e in which table.?
Is there any procedure for archiving attachments? -
Archiving - Check CO documents
Hello,
does anybody know if there are some standard checks when you want to archive a CO document if the related FI document has already been archived or not ?
If it is not foreseen in standard, is it logic to be allowed to archive a CO document if the FI one can not be (if it still contains an open item for example) ?
ThxHello Lindsay
it would be useful to know which archiving object you re making use of, to be accurate
As far as I know such a control do not exist. And anyway you can simply archive or "archive and delete.
You can check info SAP note 85708, " Archiving CO-OM: Questions and answers"
Also in txn AOBJ you can see detailed characteristic of each archiving object (and documentation)
br, Guido -
Hi All,
We are trying to archive Jan 2006 documents while doing the archive check through transaction FB99 we are getting the following error -
Account Type Life Not Reached (T071)
However the Life for all the account types related to all company codes have been maitianed as 490 days and secondary index as 761 days. So we believe it meets this criteria, but still the error occurs when we do a check with key date as 18.09.2008.
Kindly help us in resolving this issue. Waiting for your reply.
Thanks & Regards
Akrati SaxenaHi Guru
I have the same problem you had, with FI_DOCUMNT, and set the days of Life Document / Account which exceeds the limit of days to archive, when I run the archive process sends me an error that life has not been reached, any ideas?
The year archiving is 2006.
Document Life 80
Life Account 80
release 4.7
What was the solution to run for this error?
Regards -
Late Archiving for Contract Documents via OAWD.
Hi experts,
I am now configuring Late Archiving for Contract Documents but it seems that the document attachment cannot be viewed via J6NP/J6NY. My question is concerning the Business Object. When I use standard Business Object "BUS2095", documents are stored succesfully and documents can be viewed in J6NP/J6NY. But I cannot use BUS2095 because it only has Sales Document No as input. My users require fields - Sales Document No, Contract Start Date,Sales Organisation and Distribution Channel. Therefore I created a customized Business Object with those fields.These fields were taken from a new Customised Joint table between VBAK,VEDA and VBAP.
At OAWD, I am able to archive for the Document Type I created. It says that Document stored succesfully. But the problem is when I want to view the archive document at J6NP/J6NY, there is no attachments. I tested the J6NP configuration with BUS2095 and attachment can be viewed. But with my Customised Business Object, there are no attachments.
What must I look into and what do I need to check? I really need help here. Please..Hello,
Can you check the configuration of OAC3?
Hope you have deleted the configuration of BUS2095 assignment to document type.
Instead, creation of new archivelink configuration for custom business object and assign to document type you have used earlier.
-Thank,
Ajay -
Can pending draft document edit by approvals?
Hi all expert,
I would like to ask your about the pending draft document. Can it be allow edit by approvals(The person who allow approve the document)?
Example:
new Purchase Order create by originator, when the approvals received the message & want to revised the amount in the purchase order. Can he/she amend the document amount or quantity?
It doesn't make sense where the manager cannot revise the document created by users. Right?
Regards,
Eric TanHi
I think so .He can take a look from alert window and make necessary change and post it .
I think in alert window ,you need to dbl click on the message and you will see the doocument number and you can link to document and make some changes and post it .
I donot have test environment to test but i think it should be fine .
Originator cannot make changes in the document while it is in process . That's for sure.
Thank you
Bishal
Hi Bishal,
I had test before. It doesn't work.
Regards,
Eric Tan
Edited by: Eric Tan Yan Liang on Apr 13, 2009 4:42 AM -
How to create Draft Document in CR
Hi all,
I try to create draft document in CR using store procedure script.
So i can preview the document if it's in draft mode and non draft mode.
When i preview it in draft mode , every thing is ok
But when i preview it in non draft mode, the draft and non draft data combine together.
Here is my code
Create Procedure PO
@Dockey numeric(19,6)
@ObjectId numeric(19,6)
as
begin
select PO.* from
select 'DR' as tipedoc,ODRF.DocNum ,ODRF.DocEntry ,ODRF.CardCode,ODRF.CardName,ODRF.ObjType ,
ODRF.DocDate,TaxDate, DRF1.ItemCode as itemcode, DRF1.Quantity ,DRF1.unitMsr ,
OITM.ItemName ,OITM.CodeBars
from ODRF
inner join DRF1 on ODRF.DocEntry = DRF1.DocEntry
inner join OITM on DRF1.ItemCode = OITM.ItemCode
where ODRF.ObjType = 22
union all
select 'ND' as tipedoc,OPOR.DocNum ,OPOR.DocEntry ,OPOR.CardCode,OPOR.CardName,OPOR.ObjType ,
OPOR.DocDate,TaxDate, POR1.ItemCode as Itemcode, POR1.Quantity ,POR1.unitMsr ,
OITM.ItemName ,OITM.CodeBars
from OPOR
inner join POR1 on OPOR.DocEntry = POR1.DocEntry
inner join OITM on POR1.ItemCode = OITM.ItemCode
)PO
where PO.docentry = @Dockey
and PO.Objtype = @ObjectId
end
Do i miss some thing in my code
Thanks in advance
Regards
KahkianHello, I think something more efficent could be like this: (ignore the RFQ calculation as it is for integration with an external database other than SAP Business ONE)
create
procedure SP_PO_FORMAT
@DOCKEY
INTEGER,
@OBJECTID
INTEGER
AS
if
@OBJECTID = 112 begin
select
t0.docentry,T0.docnum,T0.lictradnum,T0.address,T0.address2, T0.CardCode, T0.CardName, T0.DocDate, T0.DocDueDate, T0.comments,T2.slpname,T3.officetel,T3.email,T4.pymntgroup,T5.firstname, T5.lastname, T5.E_MailL, T5.tel1,
case
when T0.doccur = 'USD' THEN T0.DocTotalFC ELSE T0.DocTotal END AS DOCTOTAL, case when T0.doccur = 'USD' THEN T0.vatsumfc ELSE T0.vatsum END AS vatsum,T0.DocCur,
case
when T0.Comments like 'Basada en Cotizacion a Proveedores%' then
case when ISNUMERIC(SUBSTRING(T0.comments,36,CHARINDEX('.',T0.comments,1)-36)) = 1
then convert(int,SUBSTRING(T0.comments,36,CHARINDEX('.',T0.comments,1)-36))
else
case when T0.Comments like 'Basada en solucitud de eProcurement%'
then
case when ISNUMERIC(SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37)) = 1
then convert(int,SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37))
else 0
end
else 0
end
end
else
case
when T0.Comments like 'Basada en solucitud de eProcurement%'
then
case when ISNUMERIC(SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37)) = 1
then convert(int,SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37))
else 0
end
else 0
end
end
as rfq,
T1
.LineNum,
T1
.ItemCode, T1.Dscription, T1.freetxt,T1.unitmsr,T1.Quantity,T1.packqty, T1.Price, T1.vatprcnt,case when T0.doccur = 'USD' THEN T1.totalfrgn else T1.linetotal end as linetotal from sbo_mno.dbo.ODRF T0
inner
join sbo_mno.dbo.DRF1 T1 on T0.DocEntry = T1.DocEntry
left
join OSLP T2 on T0.slpcode = T2.slpcode
left
join OHEM T3 on T2.slpcode = T3.salesprson
left
join OCTG T4 on T0.groupnum= T4.groupnum
left
join OCPR T5 on T0.cntctcode = T5.cntctcode
where
T0.Docentry = @DOCKEY
END
ELSE
select
t0.docentry,T0.docnum,T0.lictradnum,T0.address,T0.address2, T0.CardCode, T0.CardName, T0.DocDate, T0.DocDueDate, T0.comments,T2.slpname,T3.officetel,T3.email,T4.pymntgroup,T5.firstname, T5.lastname, T5.E_MailL, T5.tel1,
case
when T0.doccur = 'USD' THEN T0.DocTotalFC ELSE T0.DocTotal END AS DOCTOTAL, case when T0.doccur = 'USD' THEN T0.vatsumfc ELSE T0.vatsum END AS vatsum,T0.DocCur,
case
when T0.Comments like 'Basada en Cotizacion a Proveedores%' then
case when ISNUMERIC(SUBSTRING(T0.comments,36,CHARINDEX('.',T0.comments,1)-36)) = 1
then convert(int,SUBSTRING(T0.comments,36,CHARINDEX('.',T0.comments,1)-36))
else
case when T0.Comments like 'Basada en solucitud de eProcurement%'
then
case when ISNUMERIC(SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37)) = 1
then convert(int,SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37))
else 0
end
else 0
end
end
else
case
when T0.Comments like 'Basada en solucitud de eProcurement%'
then
case when ISNUMERIC(SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37)) = 1
then convert(int,SUBSTRING(T0.comments,37,CHARINDEX('.',T0.comments,1)-37))
else 0
end
else 0
end
end
as rfq,
T1
.LineNum,
T1
.ItemCode, T1.Dscription, T1.freetxt,T1.unitmsr,T1.Quantity,T1.packqty, T1.Price, T1.vatprcnt,case when T0.doccur = 'USD' THEN T1.totalfrgn else T1.linetotal end as linetotal from sbo_mno.dbo.OPOR T0
inner
join sbo_mno.dbo.POR1 T1 on T0.DocEntry = T1.DocEntry
left
join OSLP T2 on T0.slpcode = T2.slpcode
left
join OHEM T3 on T2.slpcode = T3.salesprson
left
join OCTG T4 on T0.groupnum= T4.groupnum
left
join OCPR T5 on T0.cntctcode = T5.cntctcode
where
T0.Docentry = @DOCKEY -
Archiving external pdf documents in IXOS
Hi all,
I wrote an home made application to manage links between SAP and external systems. In this application I've a document number which corresponds to a pdf document I received on a windows file server.
I'm receiving hundreds of pdf documents per day from these external systems and I want to archive them in IXOS from an ABAP program.
I wrote a program to do this using these standard functions :
ARCHIV_CONNECTDEFINITION_GET to get the archive parameters
ALINK_DOCUMENTS_CREATE_DIALOG to upload the PDF file and send it to IXOS
ARCHIV_CONNECTION_INSERT to create the link in SAP
this works perfectly.... in forground.
The function ALINK_DOCUMENTS_CREATE_DIALOG does not work in background.
I absolutly need to create a job to do this archiving because I get about 2000 - 3000 documents per day
Does somebody have a solution for this ?
I looked around in this forum and in SAP but I didn' find a solution at the moment
Thank youHello,
As i understand with your question - You have to archive the incoming documents which are in PDF format and link it with SAP business document.
If so, then you can achieve by using OpenText Document Pipeline functionality.
Below are the steps need to be performed:
1. For each incoming document there should be control files which is essential for the IXOS job to archive and send the updates to the SAP
- You can refer to OpenText Document Pipeline for the attributes of control file
2. Schedule EXR3 job - agument the exchange directory - where your incoming document with control file are located
Pre-requisites are - ArchiveLink configuration should be defined in SAP.
In this way you can archive the incoming documents to link to SAP transaction data.
You can see the archived information in table TOA0* and also in respective SAP transaction data using GOS service you can display the document.
Hope this will help.
-Thanks,
Ajay -
Archiving of Purchasing Documents
Hi Flocks,
I am trying to Archiving of Purchasing Documents but i am getting the following error. please suggest << removed >>.
"Delivery completed" indicator set
No provision for IR
Thanks in Advance you all,
Saleem.
Edited by: Saleem Shaik on Apr 1, 2010 9:35 PM
Edited by: Rob Burbank on Apr 1, 2010 3:51 PMIn general only closed business cases are archived.
I have not seen a system yet, that was that clean, that one could archive any single purchase order in a given date range.
I would never re-use old number ranges for two reasons:
- even you have archived all documents, you cannot really be sure that SAP deleted all single entries from any table.
- When you archive the documents with the reused number some day in future, then you will have 2 times the same number in the archive -
Hi All,
I have setup archiving for sales document printout. Did uat in test system no issue but when move to live system, the output type could not be issued. I have set Print and Archive for the output type. The error as below when i view the sales document output. I have setup a ARCH device type in SPAD. But it is still not working. Any idea what config is missing?
Unknown archiving device
Message no. PT 040
Diagnosis
In archive customizing, you can assign an archive device to an archive. Otherwise, the value from the profile parameter 'rspo/default_archiver' is used, or the default value 'ARCH'. However, none of these devices exist.
Procedure
Maintain an appropriate device in Transaction SPAD.
Thanks
DylHi,
See whether this link helps in tackiling the issue.
ftp://ftp.software.ibm.com/software/dw/dm/db2/0308kammerer/CommonstoreSAPArchive.pdf
Regards,
Saju.S -
Save as draft - Document Number
hi experts,
Can we reserve a document number for draft document?
I added a Purchase Order (draft) and then i created another PO but for this PO i want its number to auto-start with 2.
Document No 1 is reserved for Draft PO.
Is that possible?
I do not want to use Manual Numbering.
Thank you.
Regards,
LimHi
Its not possible.if u have post one more doc. then system will increment the no. from the last post doc. no. only..
for ex: last doc no is 100.
u r saving a doc. as draft it no. will be 101.
then when u r posting one more doc. the no will be 101 only ...
now if u posted the draft doc. then no will be 102..
Giri
Maybe you are looking for
-
[Solved] Problem with Xorg, unable to load the right keymap
Hi, people, I recently installed arch on a desktop, but there is a problem installing X: for whatever reason, Xorg seems unable to load the correct keymap (fr-latin9) and instead, loads the default one. I can see what seems to be the problem in the X
-
How to use different SMTP Servcer
I have a new email account with a provider that does not support smtp service. So I am trying to use my me.com smtp service that has given me many challenges (it does not go through). And while I am reading here to see what is wrong. The only service
-
How to Edit the message mapping in Quality server
Hi Experts, Can you plz tell me, is there any way to edit the message mapping in QUALITY system?
-
Hello group, So I went to open Ultrabeat in a project (by double-clicking "Ultrabeat" on the I/O slot in the channel strip.) I got the spinning rainbow beachball for about 3 minutes and then a strange Ultrabeat window opened up. Here's a link to what
-
in preparing to erase and reinstall for another problem I'm having, I backed up my mail libraries for 2004 and 2005.....january 2006 was still on .mac (IMAP); since they were on the server, I did not back them up; when I reloaded OX X and opened Mail