Is it possible to change marketing document status in DI?

Hi,
It seems that the document status and printed status is readonly properties in DI. I need to change these two status in my AddOn. Does that mean that I can only use SQL UPDATE to update the document status ?
Thanks!
Lan

Hello
Yes you see well, these statuses are read only by DI API, because these statuses are managed using business operations
like: printed -. you need to print the document
- closed : you need to close the document
- cancelled : you need to cancel the document
>Does that mean that I can only use SQL UPDATE to update the document status ?
No never. For example: you have a sales order. This sales order is has affect in Item Master data, increasing the iscommited quantity.
Now if you update by SQL, the iscommited qty does not reduced, so you make data inconsistency in the Business Logic of SAP B1.
You can do the following:
you may print the document to a dummy printer (PDF creator printer) to get it printed .-> use UI API to print
you may use .Close(), .Cancel methods of DI API on a document to make the status closed/cancelled. Please note, Cancel and Close not able to eliminate on each documents (eg invoices is not implemented).
regards
János

Similar Messages

  • Is it possible to change the user status of a TECO Order

    Hello Folks
    Is it possible to changes the user status of a TECO Order?
    I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
    On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
    I need to change the user status from NFBK to FBK.
    Please provide some inputs for the same.
    Thanks n Regards
    Ramesh

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • Possible to Change the Order Status

    Hai
    When i am booking the sales order the status is showing the Booked is it possible to change the Booked status according to the customer requirement ....
    thanks in advance
    M.Meenashi Sundaram

    Hai its possible to change the order status from the
    setup>quick codes>order management>
    type --flow status
    we can able to change it
    thanks
    M.Meenashi Sundaram

  • EXIT after changing the document status to Parked and complete

    Hi,
    I have an urgent requirement to findout a exit which will trigger after changing the document status to PARKED and COMPLETE. I need this for invoice and FI document.
    I will really appreciate your help.
    Kuntal

    Yes the Workflow Background process completed successfully with no errors. I see the error when I query up the Sales Order go to menu --> Workflow Status -->
    Activity History.
    The Activity History shows error in the Wait Function and the error message is 3001: Invalid command argument.?
    This error message does not explain much. I followed all the steps in document# 397364.1
    Don't know why it should end in error and how it can be fixed?
    Any more ideas?
    Thanks

  • Mass Change of Document Status

    Hi.
    We have hundreds of documents in Sol man under the project document tab with a status which we want to change.
    Is there a report or similar that can do a mass change of these statuses?

    Hello,
    there is no standard report for changing document status. We build a new abap for it.
    kind regards,
    Will

  • BAPI to change invoice document status from deleted to something else

    Hi experts,
    When the document is deleted thorugh MR8M, the invoice status(rbstat) in rbkp table of the invoice doument(MIRO) change to 2 i.e. deleted.
    I want to use the same data for parking again by using standard BAPI_INCOMINGINVOICE_GETDETAIL. But v=before that i have to change the status of the document from deleted to something else
    Is there any BAPI exist by which i can change the status (rbstat) from deleted to parking or somthing else. i am trying to change it thorugh BAPI_INCOMINGINVOICE_CHANGE , but its not working.
    Please help me to find such BAPI
    regards
    Mudit

    Hi Lan,
    you can print with SDK using following code :
    ReportLayoutsService oReportLayoutService = SBO_Company.GetCompanyService().GetBusinessService(ServiceTypes.ReportLayoutsService);
    ReportLayoutPrintParams oReporPrintParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);
    ReportParams oReportParam = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportParams);
    oReportParam.ReportCode = "QUT1";
    DefaultReportParams oReportParaDefault  = oReportLayoutService.GetDefaultReport(oReportParam);
    oReporPrintParams.LayoutCode = oReportParaDefault.LayoutCode;
    oReporPrintParams.DocEntry = 337;
    oReportLayoutService.Print(oReporPrintParams);
    I tried to print an unprinted document but it didn't change the printed flag at all ( in / active BP ). So unfortunately it doesn't work.
    regards,
    Maik

  • Is it possible to change a document from Page Layout to Word Processing?

    I just downloaded and launched the Pages 4.0.4 update, which adds the option of exporting to ePub. Unfortunately Pages won't export a Page Layout document to ePub.
    Is there any way to change the type of document or would it be easier to just create a new document and paste everything from one to the other. This is a newsletter document that gets published monthly with new content so changing from one format to the other oughtn't bring too many problems.
    Thanks!

    I know that floating objects isn't supported in WP and I think there are a couple of other things but I can't recall off the top of my head.
    I remember that I started using it in the WP mode when I first put together this monthly newsletter and ran into some problems, and switching to Layout took care of those problems.
    I've nothing against the WP mode, in fact Iuse it all the time for more traditional WP jobs. It's just that I found the Layout mode to be more suited to, well, laying out. I come from the really old school of physically cutting and pasting typewritten stuff and Zip-a-tone line art graphics onto a large sheet of paper lined with a "non-photo" blue grid. The person who actually printed it took a picture of these pages and used the resulting page as a lithograph master, using real (ugh!) viscous ink rather than toner. So having the option of moving objects around and flowing text around graphics is appealing. Let me know in a PM if you want a Pages file of one of these issues.

  • Notifications for change of document statuses

    If Solution Manager is being used for managing project documentation, is there a way of using some sort of notification to a user when a document is ready to be reviewed, approved, etc.?

    James - I think you are looking for functionality called "Electronic (Digital) Signature". This functionaly does not come pre-configured, but is available. Here is a link to an Live Expert Session (LES) Session which describes the functionality and how it can be configured in your system: https://websmp102.sap-ag.de/~sapidb/011000358700006306432006E.wrf
    Additionally. Here is an overview link to all of the LES Sessions for SolMgr 4.0: https://websmp102.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000301732005E
    I hope this helps.
    Brad

  • FM/BAPI needed to change document status

    Hi,
    I have a requirement wherein i need to change the document status field in table DRAW. I have document number and document type as input, based on a condition i will be changing the document status. is there any FM or BAPI available to change the document status?
    Thanks in advance,
    Srilakshmi.

    Hi Srilakshmi
    The following BAPI could help you,
    BAPI Name: Document.SetStatus
    Document.SetStatus
    Set document status
    Functionality
    With this method, a new status is set for the document. Optionally, with the help of the field STATUSLOG, one more entry can be made in the status log field.
    Notes
    The internal or the external status is specified. The internal status defines how the status on the DB is saved; the user can see the external status based on the login language on the screen.
    In principle: If the internal status is specified, this has priority, otherwise, the internal status is read via the external status code.
    Sample program
    **define required variables
    DATA: lf_doctype LIKE bapi_doc_draw-documenttype,
    lf_docnumber LIKE bapi_doc_draw-documentnumber,
    lf_docpart LIKE bapi_doc_draw-documentpart,
    lf_docversion LIKE bapi_doc_draw-documentversion,
    lf_statusextern LIKE bapi_doc_draw-statusextern,
    lf_statusintern LIKE bapi_doc_draw-statusintern,
    lf_statuslog LIKE bapi_doc_draw-statuslog.
    Bapi-Return structure
    DATA: ls_return LIKE bapiret2.
    Assign the document data
    the status should be changed by this document
    lf_docnumber = 'Documentnumber'.
    lf_doctype = 'DRW'.
    lf_docversion = '00'.
    lf_docpart = '000'.
    lf_statusintern = 'AR'.
    **Call BAPI
    CALL FUNCTION 'BAPI_DOCUMENT_SETSTATUS'
    EXPORTING: documenttype = lf_doctype
    documentnumber = lf_docnumber
    documentpart = lf_docpart
    documentversion = lf_docversion
    statusextern = lf_statusextern
    statusintern = lf_statusintern
    statuslog = lf_statuslog
    IMPORTING: return = ls_return.
    Errors occurred ??
    IF ls_return-type CA 'EA'.
    ROLLBACK WORK.
    MESSAGE ID '26' TYPE 'I' NUMBER '000'
    WITH ls_return-message.
    ELSE.
    COMMIT WORK.
    ENDIF.
    Regards
    S.Sivakumar

  • Change PR document type

    Hi experts,
    is it possible to change the document type of a purchase requisition created automatically by plant maintenance?
    Both document types are in the same number range. I have settled the screen layout at document level for all relevant field selections but didn't work.  Only works for manually created PR.
    Could you help me please?
    Best Regards
    Bruno

    Hi Bruno
        Please check  following setting.
       IMG - Plant Maintenance and Customer Service - Maintenance and Service Processing - Maintenance and Service Orders -
        General Data - Define Account Assignment Cat. and Document Type for Purchase Requisitions
    Regards,
       Gaito

  • Change of document posted from MIRO

    Dear experts,
    Is it possible to change the document posted from MIRO?
    I want to put "final invoice" indicator on MIRO document.Users do not have authorization to change the PO(because same indicator exists on PO)  documents.So, i must find solution not done on PO.
    Chris

    Hi,
    you can't change the posted doc...so..
    You need to  cacel/reverse the last posted doc....and create a new doc with the final invoice indicator....
    Go to MIRO --> Choose Cancel invoice doc > enter the last posted doc number or system may also take last by default-> check the mvt type --> execute
    Then go MIRO --> Make new IR doc..
    Hope it helps..
    Regards
    Priyanka.P
    AWARD IF HELPFULL
    Edited by: Priyanka Paltanwale on Sep 4, 2008 8:41 AM

  • Changing the document size Attribute

    Is it possible to change the document size Attribute to read in Kilobytes or MegaBytes, not just in bytes?
    Thanks,

    Could you provide an example procedure to display the document size? We also want to display the item size in MBytes within a content area.
    Thanks

  • FEBAN change of document type

    Hi Fi guys,
    Can anyone tell me if is is possible to change the document type, when posting from FEBAN ?. It is possibe ein FEBA, but I cannot find the way to do it in FEBAN.
    Please adcvice, thanks
    Best regards
    Pernille

    Hi. Go FEBAN, Edit-Posting mode-In foreground. While posting you'll be able to change document type

  • Change PO document date

    Dear all,
    Is there anyway we can change existing PO document date?
    Regards,
    Peck Har

    Hi
    It is not possible to change the Document type and Creation date for a PO once the number is generated by the system. Evenif it is held_po we can not do this.
    For you solution is to delete the existing PO and go for PO creation in  previous/future date as you wish by entering it in the doucment date field.
    Best Regards
    SAM
    Edited by: samuel mendis on Apr 6, 2009 7:44 AM

  • Change the document flow, table CRMD_BRELVONAI

    Hi experts,
    We are using CRM and ISU. For few cases the ISUCONTRACT displayed in the CIC0 is wrong.
    I would like to know if it's possible to change the document flow ? (the datas in table CRMD_BRELVONAI).
    By transaction ?
    by FM ?
    Thanks in advance if you could help me.
    Regards,
    Nicolas.

    Nicolas,
    Though I myself have not tried deleting any existing Doc Flow, but you can try using the Function Module: CRM_DOC_FLOW_UPDATE_DU.
    If you get a better option please share.
    Regards,
    Shyamak

Maybe you are looking for

  • DVI to HDMI via adapter: video hiccups

    I have a 13" MacBook (Late 2007). I connected a Belkin mini-DVI-to-HDMI cable to it, which I plugged into my Sony 32" LCD TV. When I play back TV shows that I have purchased in iTunes, the video hiccups -- that is, pauses for a fraction of a second -

  • My iphone was disabled and i need to connect to itunes coz i forgot my passcode.what shoul i do

    My iphone was disabled,then hve a message connect to itunes coz i forgot my passcode.

  • Some Programmes are NOT responding all the time.

    Hi I have had a clean sweep of my computer and just recently some programmes such as Skype and WebplusX5 are not responding. This isnt just a one off thing it happens all the time. I was wondering if anybody could help me into finding a solution.  Th

  • SPAN in Nexus 5548

    Hello All, Please find the attached diagram. In N7K has SVI for VLAN 115 & 135 and N5Ks has L2 VLAN for 115 & 135. Requirement is to SPAN all the traffic leaving IN/OUT of both VLANS needs to forwarded to Ethanalyzer which is connected in N5K. If I c

  • Chat with an agent

    I am so frustrated, Im trying to contact a support agent about my ipod, but when I try it shows ipod suffle which I dont even have, and it does not show my iPod with video, What can I do to contact a support agent? By the way I already try enterring