Deleting draft documents in draft process

Hello,
I've problem with deleting draft AP Invoices documents in draft process (Approval
Procedure). AP Invoce which i want to delete has status "Rejected"
According to polish help documentation in order to remove such docs i`ve to:
1) From Menu: Administration >  Approval Procedures > Approval Status Report - Cancel
an approval procedure, position the cursor on the row of an approval template in the
report results and choose Cancel from the Data menu.
2) Now ,theoretically, i should be able to remove unwanted document from Document
Drafts Report, position the cursor on the row of in the report results and choose
Remove from the Data menu.
Unfortunately after pressing 'Update' i recive 2 contradictory messages:
1) Operation completed successfully  [Message 200-48]
2) Cannot delete drafts in approval process   [Message 3612-1]
Any suggestions ?
Greetings,
Jedrzej

Hello Jedrzej,
In the current definition of B1, draft documents that were rejected during the Approval Process cannot be deleted fro the Document Draft window. This design is to ensure that the audit trail is kept for all the actions performed on the document (creation -> rejection).
To suppress the display of drafts in the Document Draft window, you may consider the workaround procedures described in Notes 1111431
and 791704.
I hope the above helps.
Regards,
Lorna Real

Similar Messages

  • Last Deleting in Draft Document

    Hi,
    I found that last row deleting problem occurred while user try to delete last row of Draft Document.
    if we change last row's item, then SBO delete last row.
    Can any body provide me solution
    Regards,

    There is no authorization issue:
    I going to write here complete scenario:
    Requestee department use "Draft Goods Issue" for as request of  material issuance from store department.Store department issue material and finally add "Draft Goods Issue" documents.   
    If requestee department prepared "Draft Goods Issue" for following three items
        Item Description        Request Qty
    1. Item A                          10
    2. Item B                           15
    3. Item C                           20
    Store department can delete row no 01 and 02 easily but when try to delete row 03 means last record but to no response.
    I found "work around" that if store department change row no 03 Item then row no 03 record can be deleted.
    why user store department or even "manager" user can't delete row 03 record easily as row 01 and 02.
    Please answered me.
    I'm usinG SAP 7 SP 1
    Thanks

  • 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!
    Emily

    Here 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]

  • 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

  • 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 Tan

    Hi
    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

  • First row is empty in draft document

    I have created a DI addon for posting a draft delivery document.  However, in each document there's a empty blank row.  I know that you only need to invoke the lines.add function for second plus rows so I have already made sure that I am not adding a new line on first add.  Any advice for you would much be appreciated.
    Regards
           Dim retVal As Object
            Dim i As Integer = 0
            Dim oDeliveryDoc As SAPbobsCOM.Documents
            oDeliveryDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
            oDeliveryDoc.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
            oDeliveryDoc.CardCode = selectedBPCode
            oDeliveryDoc.DocDueDate = Today
            Dim row As Object
            While i < CType(DataGrid1.DataSource, DataTable).Rows.Count
                If DataGrid1.IsSelected(i) Then
                    If i > 0 Then
                        oDeliveryDoc.Lines.Add()
                    End If
                    oDeliveryDoc.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
                    oDeliveryDoc.Lines.BaseEntry = CInt(DataGrid1.Item(i, 8))
                    oDeliveryDoc.Lines.BaseLine = DataGrid1.Item(i, 9)
                End If
                i = i + 1
            End While
            retVal = oDeliveryDoc.Add
            If retVal <> 0 Then
                oCompany.GetLastError(lErrCode, sErrMsg)
                MsgBox(lErrCode & " " & sErrMsg)
            End If

    Hi Alan,
    The blank row that you are referring to, where is that line? Is it the last line in the document? If so, that is standard SBO practice. I tested your code and did the same in SBO itself. I create a Delivery draft with 3 lines and 4 lines are added to the document. The fourth line is the new line that is created automatically when you press tab. The reason is that you can add more lines to a draft document. As soon as you save that draft as an actual document, the last line gets deleted.
    Hope it helps,
    Adele
    Message was edited by: Adele le Roux
    Didn't read properly... see that it's the first row that's empty... Should your code not read:
    If i > 1 Then

  • Adding Period Indicator to New Year after creating draft documents in New Y

    Hi,
    I want to restart the the numbering from 1 in the New Year and so want to attach a new Period Indicator to the New Year. But i am unable to Add Period Indicator to New Year. It was created with Default Period Indicator and is not allowing any change.
    I am in SBO 2005 PL38. Also pleas note, some drafts have been created in the New Year.
    What i tried:
    - I tried deleting the draft documents. No use.
    - I changed server date to March 31(previous Accounting Year). No use.
    Anybody can help?
    Regards
    Manish

    Hi Manish,
    Let me see if i understood your issue;
    You are unable to creat a new period indicator for the new numbering series, did you already creat a new posting period for the new year ?
    The drafts created in the new year are with the default period indicator ? if so can you change it and try to delet those drafts ?
    if you have opportunity please provide more information.
    Regards
    Emanuel

  • Draft document print in inventory transaction

    Hi experts
    How can I print draft document in inventory transactions. I prepared approval procedure  for good issue and I need to print when user add good issue . as you know in first srep of generation in approval procedure the document is in draft version.

    Hi,
    You may just need to find and open the draft and print it.  Any issues with this process?
    Thanks,
    Gordon

  • How to remove Draft Documents using DIAPI?

    DIAPI help says that Remove Method is not supported because "SAP Business One does not allow to remove a document object from the database".
    However, in SBO UI, you can remove Draft Documents. Is there another way or workaround in DI API for deleting Draft Documents?
    Juha

    Juha, why do you think so?
    The following snippet shows you how to kill Purchace-draft:
    SAPbobsCOM.Documents oDraft;
    oDraft = (SAPbobsCOM.Documents)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
    oDraft.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseInvoices;
    oDraft.GetByKey(<DraftDocEntry>);
    resCmpTo = oDraft.Remove();
    if (resCmpTo != 0)
         pCmp.GetLastError(out errNum, out errStr);
         MessageBox.Show("oDraft.Remove(): " + errNum.ToString() + "n" + errStr);
    HTH

  • TextEdit won't save draft documents

    Just like the title says; I have a number of draft documents I have started in TextEdit and when I try to save the File menu highlights but it just times out with no save. I also can't  close the window without saving; it does the same thing. I tried deleting preference files and restarting but that didn't help.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including your login items.
    Test. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.)

  • 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,
    Grace

    Thank 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 If

    Hi 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

  • I can't print a document in draft

    When I try print a document in draft the printer use a lot of paper at the same time.

    Hey mmarmil!
    I am sorry to hear that this is happening. I have a few questions I need to ask before I can help you.
    1. What type of printer are you using?
    2. Is this for ePrint?
    3. Does anything print on the sheets that are used?
    4. Have you tried fanning the pages before you print the job?
    If you can answer these questions I will be able to help you better. I also have a link to help you if it is a paper feed issue. http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00190540&tmp_task=solveCategory&lc=en&dlc=en&cc...
    Although I am an HP employee, I am speaking for myself and not for HP.
    If I have resolved your issue, feel free to provide Kudos and make sure you mark this thread as solution provided.

  • 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
    Kahkian

    Hello, 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

  • 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,
    Lim

    Hi
    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

  • ListBox Items sometimes not visible on app Resume

    Hey, I have a winRT windowsphone 8.1 app in development and I've come across a strange problem sometimes. Basically, when my app loads, I pull items from an RSS using syndication feed, store to a data set which is binded to the listbox. This works pe

  • Contacts showing Name and Company Name, even when 'file as' is the name only

    We are running into a strange issue someone may provide some light on, I've researched quite a bit online with no success, and may soon be calling Microsoft on this one. Sometime earlier this year we installed Exchange 2010 Update rollup 4, then UR5,

  • Best way to use disks

    Hello everyone, I have just bought one of the new Imacs, and am about to install Logic, Omnisphere, Garageband Expansion Packs etc. I have 640G of disk space, so I have room for all of these on the internal drive, but what I was wondering is, should

  • Nokia 570 firmware Update

    please release the new firmware update for the 5700 XM including Exit function in Music Player and Support for Picture Messaging, Send java midlets and SIS files using its own Explorer and please include a good slideshow viewer(Just like N73ME)Please

  • Not able to retire or update my ipad1

    Not able to restore or update my ipad 1 on 5.0.1 please help me.