Automate

 View Only
  • 1.  MIRO - Log Accounting Document number instead of Invoice Number

    Posted 12-19-2018 14:52
    Hi,

    We have a working script to post MIRO entries, the log column currently brings back the Invoice Number, is it possible to change the log column so that it brings back the Accounting Document Number instead?

    Thank you

    ------------------------------
    Scott Parker | Analyst
    ArcelorMittal Dofasco G.P.
    ------------------------------


  • 2.  RE: MIRO - Log Accounting Document number instead of Invoice Number

    Employee
    Posted 01-04-2019 18:26
    Hello Scott, 
    SAP does not return accounting document information as part of the log messages, so it is not possible to capture that in the script.
    I did try do MIRO via a BAPI (BAPI_INCOMINGINVOICE_CREATE) to see if that offered an enhanced output but no luck there as well.
    In both cases, only the invoice number is returned. 

    You could however supply the invoice number to a query script as a next step which can return the associated accounting document. 
    I created a simple one that worked for the table BKPF and choose criteria -  company code, fiscal year and reference key. 
    The reference key is constructed by concatenating the Invoice doc+Fiscal Year, remember to post-pad with spaces. 

    Hope that helps 
    Jayasri




    ------------------------------
    Jayasri Varyani | Solutions Engineer
    Winshuttle North America |
    ------------------------------



  • 3.  RE: MIRO - Log Accounting Document number instead of Invoice Number

    Posted 02-14-2019 10:16
    I think the solution is to set a parameter of IVFIDISPLAY with a parameter value of X.
    I do not know if this is a universal solution or something unique to our environment.

    From the drop down menus
    System > User Profile > Own Data > Parameters
    Set/Get parameter ID =  IVFIDISPLAY
    Parameter value = X

    ------------------------------
    Scott Parker | Analyst
    ArcelorMittal Dofasco G.P. | 9055487200
    ------------------------------