Structure of SaveXML invoice data

I do not understand the structure of the invoice XML schema.  I created a file, invoice.xml, using  BoObjectTypes.oInvoices, GetByKey method, and SaveXML method in my C# project.  I created this file based on one invoice in the SAP demo database (Invoice # 10). The structure of the XML appears to contain 3 invoices, OINV, INV1, and INV3, all referencing the invoice number in the DocEntry field.  INV1 contains the detail data, but it is not enveloped inside of the OINV tags. INV3 contains tax information, but it also is not enveloped inside OINV.  I am trying to map this information to an EDI document.  Is there a different invoice schema that I can use with the Header tags surrounding all of the detail or line item tags?  Below is part of the data from my xml file.
Thanks,
Nancy
[email protected]  
<?xml version="1.0" encoding="UTF-16" ?>
- <BOM>
- <BO>
- <AdmInfo>
  <Object>13</Object>
  </AdmInfo>
- <OINV>
- <row>
  <DocEntry>10</DocEntry>
  <DocNum>10</DocNum>
  <DocType>I</DocType>
  <CANCELED>N</CANCELED>
  <Handwrtten>N</Handwrtten>
  <Printed>N</Printed>
</row>
  </OINV>
- <INV1>
- <row>
  <DocEntry>10</DocEntry>
  <LineNum>0</LineNum>
  <TargetType>0</TargetType>
  <TrgetEntry>0</TrgetEntry>
  <BaseRef />
  <BaseType>-1</BaseType>
  <BaseEntry>0</BaseEntry>
  <BaseLine>0</BaseLine>
  <LineStatus>O</LineStatus>
</row>
  </INV1>
  <OSRI />
  <OIBT />
  <INV2 />
  <INV5V />
- <INV3>
- <row>
  <DocEntry>10</DocEntry>
  <ExpnsCode>2</ExpnsCode>
  <LineTotal>5.000000</LineTotal>
  <TotalFrgn>0.000000</TotalFrgn>
  <TotalSumSy>5.000000</TotalSumSy>
  <PaidToDate>0.000000</PaidToDate>
  <PaidFC>0.000000</PaidFC>
</row>
  </INV3>
  <INV5 />
  <INV12 />
  </BO>
  </BOM>

Don't have B1 on this machine just now so the following is from memory.  Might not be 100% accurate but should give you a good start:-
To understand the XML schema it is first important to consider the database structure and the existing DI API object structure.  "ONIV" contains the invoice header, associated with this there can be multiple lines "INV1", and also other associated files (eg INV2, INV3 etc).  The XML schema uses this same structuring.
The <BO> element encapsulates the entire invoice object - header and all line details for a single invoice.  I think this stands for "Business Object" and can include anything such as an invoice, order etc.
The first section in the <BO> object is the <AdmInfo> - this tells you what type of "Business Object" it is.  In this case it is type=13 which is an invoice.
As it is type=13, you can then expect to see <OINV>, <INV1>, <INV2> etc elements which will contain the actual data.  If it had been for example type=17, then this would have represented a sales order and you would get <ORDR>, <RDR1>, <RDR2> etc elements instead of the <OINV> ones.
If you had 3 invoices in the file you would see 3 <BO> elements, each of them would have their own <INV1>, <INV2> etc. elements inside them.
The schemas themselves can be generated for reference purposes out of the DI-API itself.  I can't recall the exact method name and I don't have B1 on this machine just now.  If you search in the DI help file for "schema" you probably find it.  Examining the schemas should also help to clarify their structure.
Hope this helps,
John

Similar Messages

  • Need help in copying Invoice date to lower level item in Sales order report

    Hello Experts,
    I am debugging into one Sales order report.I need little bit help.The report is displaying Invoice Date for
    Sales order Billing documents for Higher item in Bill of Material Structures.But as per user requirement,
    I am supposed to show the Invoice date for lower level items also.The field for Higher level item is 'UEPOS'.
    I want to copy the Invoice date for Higher level item to lower level item. Can you please guide me in the logic?
    Thanking you in anticipation.
    Best Regards,
    Harish

    Hi BreakPoint,
    Thanks for the information.
    I have applied the same way but it is showing only lower line items now.
    Invoice dates for Higher level items are not there.
    I am pasting the code here which I have applied.
    Then you can give me more guidence.
    This is to be done only for 'ZREP' sales orders.
    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is not INITIAL.
                          read table t_final into w_final_ZREP with key vbeln = w_vbak-vbeln
                                                                        posnr = w_vbak-uepos.
                             w_final-erdat_i = w_final_ZREP-erdat_i.
                             else.
                    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is INITIAL.
                      w_final-erdat_i = w_invdate.
                    endif.
                    endif.
    Can you please sugest me changes here?
    Best Regards,
    Harish
    Edited by: joshihaa on Jul 13, 2010 6:22 PM

  • Invoice split based only on payer, material, invoice date

    Dear Friends,
    I have an issue which I don't know how to move further..
    Task:  avoid Invoice split during collective invoice creation in VF04. Invoice should be grouped by: payer, material, invoicing date.
    What I'm doing: clearing all fields which could cause invoice split in copy routine rv60c903 ( this one is used for this type of invoices ) in VBRK. Then changing partners - sold-to, ship-to, bill-to in enhancement., so that they are equal for all invoices with the same payer party. And also VBRK-ZUKRI is filled accordingly with the grouping parameters: VBKD-PERFK and VBRP-MATNR.
    What I can't understand: when I run SIMULATE in VF04, the invoices are grouped correctly, BUT when I run the actual Collective Billing button, for each delivery a new billing document is created.. I can't understand this!
    Thanks a lot in advance!

    Hi
    As Madhu tells you, check your settings in customizing (tcodes VTFA and VTFL). Second, take in account always the SAP Note 11162 - Invoice split criteria in billing document and related notes. Finally, set your own algorithm to rule the splitting defining ZUK structure to determine the value of VBRK-ZUKRI (remember that this field is a char 40) in your own VOFM subroutine.
    I hope this helps you
    Regards
    Eduardo

  • Delivery Vs Invoice Data Source !

    Hi
    We are facing an issue with our On time report. We have to get the nr of days between two dates which is Est Goods Movement Date - Act goods movement Date
    If it gives 0 which is Ontime   ,  <0 then its an Early  , > 0 then Late...
    I have both the dates available in my delivery data source 2LIS_12_VCITM  and the Invoice amount I want to show from invoice data source 2LIS_13_VDITM . I dont see the dates in my 2LIS_13_VDITM.
    We have separate cubes for deliveries and Invoices and deliveris only have qty and invoice has value....these both cubes are combined in a multi cube. Can anybody give me an idea of how to get the dates in my Invoice cube ?
    Do I need to create a DSO to merge delivery and Invoice data ?
    without the date fields I cant get my Ontime report and with dates from Delivery data source I cant show the invoice amount...
    Please advice...

    Hi Sam,
    Follow the below precedure for implementing virtual characteristics:
    BW: Virtual characteristics and key figures in Reporting
    Enhancement: RSR00002
    With this enhancement, you can define and evaluate user-specific virtual
    characteristics and key figures.
    Components
    The components for the enhancement are the function modules
    EXIT_SAPMRSRU_001 and EXIT_SAPMRSRU_999.
    Using enhancement 001
    You must firstly define the characteristics, or key figures within the
    InfoCube.
    You deposit the customer-specific code in include reports. The include
    ZXRSRU02 is intended for function module EXIT_SAPMRSRU_001. In this
    include, the fields still to be processed must be listed. The name of a
    characteristic in field CHANM and of the processing mode in the field
    MODE is located in the table E_T_CHANM. Characteristics can either be
    processed reading (constant RRKE_C_MODE-READ) or writing (constant
    RRKE_C_MODE-NO_SELECTION). Table E_T_KYFNM contains the name for the key
    figures to be processed.
    In the include ZXRSRTOP, a global variable must be created for each
    InfoCube for each characteristic. Field information for the structure to
    be changed is stored in these variables. The name of the variables is
    formed from the prefix G_POS_, the name of the InfoCube,_ and the name
    of the InfoObject all together.
    In the include ZXRSRZZZ, a form (routine) must be created for every
    InfoCube. The name of this form must be made up of USER_ and the
    technical name of the InfoCube. The specific code for the virtual
    characteristics, or key figures, for this InfoCube is stored in this
    form. The individuals fields of the structure C_S_DATA to be changed are
    accessed using field symbols.
    You should note that the data records transferred can be on a different
    aggregation level depending on read procedure and drilldown. Moreover,
    compound information is not automatically changed with compounded
    characteristics after changing a higher-level characterisic. In
    addition, the compound characteristic must also be defined in the mode
    RRKE_C_MODE-NO_SELECTION.
    Furthermore, the fiscal year (0FISCYEAR), the fiscal year period
    (0FISCPER) and the fiscal year variant (0FISCVARNT) cannot be read or
    changed in the enhancement.
    Using enhancement 999
    Enhancement 999 may not be changed. Calling up serves to update
    information via the structure C_S_DATA. This functionality is completely
    taken over by form USER_INIT_GLOBALS.
    Example
    InfoCube DEMOCUBE has the characteristic PRODUCT PRICE_TP and the key
    figure ACT_PRICE and QUANTITY. In the enhancement, the product from the
    current price for PRODUCT and the key figure QUANTITY should be
    determined. If successful, the characteristic PRICE_TP should contain
    the characteristic value '1'.
    The include ZXRSRU02: Definition
    ***INCLUDE ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    CASE I_S_RKB1D-INFOCUBE.
    WHEN 'DEMOCUBE'.
    L_S_CHANM-CHANM = 'PRODUCT'.
    L_S_CHANM-MODE = RRKE_C_MODE-READ.
    APPEND L_S_CHANM TO E_T_CHANM.
    L_S_CHANM-CHANM = 'PRICE_TP'.
    L_S_CHANM-MODE = RRKE_C_MODE-NO_SELETION.
    APPEND L_S_CHANM TO E_T_CHANM.
    APPEND 'ACT_PRICE' TO E_T_KYFNM.
    APPEND 'QUANTITY' TO E_T_KYFNM.
    ENDCASE.
    The include ZXRSRTOP: global data
    ***INCLUDE ZXRSRTOP .
    DATA: G_POS_DEMOCUBE_PRODUCT TYPE I.
    DATA: G_POS_DEMOCUBE_PRICE_TP TYPE I.
    DATA: G_POS_DEMOCUBE_ACT_PRICE TYPE I.
    DATA: G_POS_DEMOCUBE_QUANTITY TYPE I.
    Das Include ZXRSRZZZ: Changing the data
    ***INCLUDE ZXRSRZZZ .
    FORM USER_DEMOCUBE USING I_S_RKB1D TYPE RSR_S_RKB1D
    CHANGING C_S_DATA TYPE ANY.
    FIELD-SYMBOLS <L_PRODUCT>.
    FIELD-SYMBOLS <L_PRICE_TP>.
    FIELD-SYMBOLS <L_ACT_PRICE>.
    FIELD-SYMBOLS <L_QUANTITY>.
    ASSIGN COMPONENT G_POS_DEMOCUBE_PRODUCT
    OF STRUCTURE C_S_DATA TO <L_PRODUCT>.
    ASSIGN COMPONENT G_POS_DEMOCUBE_PRICE_TP
    OF STRUCTURE C_S_DATA TO <L_PRICE_TP>.
    ASSIGN COMPONENT G_POS_DEMOCUBE_ACT_PRICE
    OF STRUCTURE C_S_DATA TO <L_ACT_PRICE>.
    ASSIGN COMPONENT G_POS_DEMOCUBE_QUANTITY
    OF STRUCTURE C_S_DATA TO <L_QUANTITY>.
    Routine to get the price
    PERFORM GET_PRICE USING <L_PRODUCT>
    CHANGING <L_ACT_PRICE>.
    IF <L_ACT_PRICE> GT 0.
    <L_ACT_PRICE> = <L_ACT_PRICE> * <L_QUANTITY>.
    <L_PRICE_TP> = '1'.
    ENDIF.
    ENDFORM.
    use the below link for understaning in detail:
    Virtual Characteristic
    DONT FORGET TO ASSING POINTS IF IT IS HELPFUL.
    Regards,
    S P.

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data

    Expected output in Xml:
    <?xml version="1.0" encoding="utf-8" ?>
    - <TopRoot>
    - <Root id="1" Name="Department">
    - <Type id="2" Name="IT">
    - <SubType id="3" Name="Technology">
      <SubSubType id="4" Name="Sharepoint" />
      <SubSubType id="5" Name="ASP.NET" />
      <SubSubType id="6" Name="HTML 5" />
      </SubType>
      </Type>
    </Root>
    </TopRoot>
    List Details:
    list details for storing category / sub category data and code to build tree structure for the same.
    1.Create Custom List named “CategoryDetails”:
    2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
    3.Create column “Parent Category” of type lookup. under Additional Column Settings.
    Get information dropdown, select “CategoryDetails”.
    4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
    In this column dropdown, select “Category Name”:  
    Referance:
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data    -fine but don't want tree view just generate xml string
    i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
    Expected Result:
    My ultimate goal is to generate xml string like above format without building tree view.
    I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
    I developed some code but its not working to generate xml /string.
    My modified Code:
    public const string DYNAMIC_CAML_QUERY =
            "<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
            public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
            "<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                 string TreeViewStr= BuildTree();
                 Literal1.Text = TreeViewStr;
            StringBuilder sbRoot= new StringBuilder();
            protected string BuildTree()
                SPList TasksList;
                SPQuery objSPQuery;
                StringBuilder Query = new StringBuilder();
                SPListItemCollection objItems;
                string DisplayColumn = string.Empty;
                string Title = string.Empty;
                string[] valueArray = null;
                try
                    using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                        using (SPWeb web = site.OpenWeb())
                            TasksList = SPContext.Current.Web.Lists["Service"];
                            if (TasksList != null)
                                objSPQuery = new SPQuery();
                                Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
                                objSPQuery.Query = Query.ToString();
                                objItems = TasksList.GetItems(objSPQuery);
                                if (objItems != null && objItems.Count > 0)
                                    foreach (SPListItem objItem in objItems)
                                        DisplayColumn = Convert.ToString(objItem["Title"]);
                                        Title = Convert.ToString(objItem["Title"]);
                                        int rootId=objItem["ID"].ToString();
                                        sbRoot.Append("<Root id="+rootId+"
    Name="+Title+">");
                                        string SRAndSUBSRTpe = CreateTree(Title, valueArray,
    null, DisplayColumn, objItem["ID"].ToString());
                                        sbRoot.Append(SRAndSUBSRTpe);
                                        SRType.Clear();//make SRType Empty
                                        strhtml.Clear();
                                    SRType.Append("</Root>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
             StringBuilder strhtml = new StringBuilder();
            private string CreateTree(string RootNode, string[] valueArray,
          List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
                try
                    strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
                catch (Exception ex)
                    throw ex;
                return strhtml;
            StringBuilder SRType = new StringBuilder();
            private string GetSRType(string RootNode,
            string[] valueArray, List<SPListItem> objListItemColn)
                SPQuery objSPQuery;
                SPListItemCollection objItems = null;
                List<SPListItem> objNodeListItems = new List<SPListItem>();
                objSPQuery = new SPQuery();
                string objNodeTitle = string.Empty;
                string objLookupColumn = string.Empty;
                StringBuilder Query = new StringBuilder();
                SPList objTaskList;
                SPField spField;
                string objKeyColumn;
                string SrTypeCategory;
                try
                    objTaskList = SPContext.Current.Web.Lists["Service"];
                    objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
                    Query.Append(String.Format
                    (DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
                    objSPQuery.Query = Query.ToString();
                    objItems = objTaskList.GetItems(objSPQuery);
                    foreach (SPListItem objItem in objItems)
                        objNodeListItems.Add(objItem);
                    if (objNodeListItems != null && objNodeListItems.Count > 0)
                        foreach (SPListItem objItem in objNodeListItems)
                            RootNode = Convert.ToString(objItem["Title"]);
                            objKeyColumn = Convert.ToString(objItem["ID"]);
                            objNodeTitle = Convert.ToString(objItem["Title"]);
                            SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
                           if(SrTypeCategory =="SRtYpe")
                              SRType.Append("<Type  id="+objKeyColumn+" Name="+RootNode+ ">");
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SRSubTYpe")
                              SRType.Append("<SRSubType  id="+objKeyColumn+" Name="+RootNode+
    ">");  
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SubSubTYpe")
                              SRType.Append("<SubSubType  id="+objKeyColumn+" Name="+RootNode +"
    ></SubSubType");  
                        SRType.Append("</SubType>");
                        SRType.Append("</Type>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
                // Call method again (recursion) to get the child items

    Hi,
    According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
    In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
    For example, to create or delete the ECB menu for a list item in
    "Site Content and Structure", we can follow the steps below:
    To add the “My Like” menu, we can add the code below:      
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemLike"
    runat="server"
    Text="My Like"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickNavigateUrl="https://www.google.com.hk/"
    />
    To remove the “Delete” menu, we can comment the code below:
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemDelete"
    runat="server"
    Text="<%$Resources:cms,SmtDelete%>"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickScript="%SmtObjectDeleteScript%"
    />            
    The result is as below:
    More information:
    MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
    MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Query on fetching the no.of days between Invoice date and due date in rtf template embedded BI Publisher Report

    Hi Experts,
    We have a requirement to fetch the value of 'No of days' between Invoice date and due date (Two variable date fields on the template) in an Analysis.
    Please let me know the procedure of how to achieve the same.
    Regards,
    Rev

    it's good for ideas but implementation a bit different
    Oracle Business Intelligence Publisher Report Designer's Guide
    This function provides a method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only the Gregorian calendar. The syntax is as follows:
    <?xdoxslt:date_diff(‘format’, ‘YYYY-MM-DD’, ‘YYYY-MM-DD’, $_XDOLOCALE, $_XDOTIMEZONE)?>
    where
    format is the time value for which the difference is to be calculated
    Example:
    <?xdoxslt:date_diff(‘d’, ‘2006-04-08’, ‘2006-04-01’, $_XDOLOCALE, ‘America/Los_Angeles’)?>
    returns
    -7

  • Receivable Aging Report for India based on Invoice Date

    We have a reporting/legal need for our India location to report the aging of their receivables based on the invoice date of the documents rather than the net due date.  Is there an existing report available that already does this?
    Currently when you use FBL5N and related aging reports RFDOPO10 etc. it calculates the arrears from the net due date.  They need to calculate the arrears from the document date.

    The report S_ALR_87012168 still does not allow me to choose that I want to calculate the arrears from the document date rather than the net due date:
    I guess what they really need to know is how old the receivables are based on the date they were created.
    As in the example below, current aging reports use the Net Due to calculate a days in arrears of 6 days (based on current date of 2008/11/05).
    Ty Doc. Date  Pstng Date Bline Date Net due dt Arrea
    RV 2008.09.30 2008.09.30 2008.09.30 2008.10.30     6
    What they need is the number of days in arrears based on the document date (2008.09.30) which would increase the numer of days the receivable has been open to 36.

  • Invoice dates/shipment dates

    HI All
    can anybody give me idea
    IN SAP
    is there any possibility to get invoice dates list and ship dates list for same invoices
    in particular period

    HI MARK THANKS FOR REPLY
    BUT whats my question is exactly
    how would like to see invoice dates list and shipment dates list  for particular period
    for calculation average time to issue for invoices like
    Order Number     Shipment Date         Invoice Date        Days Delay
    4358A                1/05                           1/10                    5  
    4607A               1/17                           1/23                    6
    4715A               2/11                           2/15                     4
    4800A              2/16                           2/21                        5
    this type of report is possible from sap
    thanks advance points to be granted for all answers
    regards
    raju
    4829B 2/22 2/29 7

  • Custom Table for Verifying Duplicate Invoice against Legacy Invoice Data

    Hi All,
    We are trying to upload legacy invoice data in a custom table. Then we want to use SAP duplicate invoice check functionality to look for the potential duplicate invoice from this custom table as well apart from the standard SAP tables.
    If you know of some user exit or any function module which I can use to link this custom table with the standard SAP duplicate invoice check functionality then it would be of great help.
    Regards,
    Sanjay

    Hi Jurgan!
    Thanks for the reply,
    We are using ECC6,
    Support pack : SAPKH60013
    Settings for Duplicate Invoice Check In Vendor Master is correct
    Customization setting OMRDC transaction, tick mark for invoice reference no. only
    If all the cited characteristics match, the system displays a
    customizable message. M8462 (if logistics invoice documents are found) or M8108 (if accounting documents are found).
    I have ensured that message M8108 (if accounting documents are found) is maintained as an error message in OMRM.
    Still system is allowing duplicate invoices for the reference nos. 00082 and 00072.
    For other reference Nos. which are previously used for other documents, system issues error message successfully.
    I dont want to delete archived accounting doc. and if I maintaind BKPF entris of this archived doc manually it will create probelm in FI.
    is this happen due to life span of secondory index of archived accounting doc. is completed ?.
    Please Help
    Many Thanks
    Vikas

  • AR aging basing on Invoice date

    Currently client gets AR aging based on Due Date. For audit purpose they need AR Aging based on Invoice Date. During SAP implementation they were instructed to use document date as invoice date and generate a dump from FBL5N and do the aging. However this does not work for balancing items as the document date changes to the date on which the partial clearing of that item was done. This is not acceptable to auditors.
    Please help.
    Any useful answer will be rewarded with points.

    Hi
    Please try to use the field Baseline date for this purpose as this field will not be disturbed even when we do partial clearing of invoices.
    Reward points if found useful.
    Regards,
    K Lakshmanan

  • Invoice Date needs to be date when Customer receives goods

    Client when shipping by sea would like the Invoice Date to be the same day the customer received the goods, basically the Pick Up Date even though the delivery might have been 'shipped' from the jetty.
    How can this be done? Would the Invoice Date be the Pick Up date?
    Sanjib

    Hi,
    I guess you're asking about OM shipping and AR invoices. If you have invoicing at line level, as soon as you ship a line, OM insert a line into AR interface and this line is ready to be imported into AR. If you ship from USA to Europe by sea it will take about 10-15 days to goods be delivered. As invoice date is defined when you import it into AR, in order to achieve your requirement, you will not be able to import your invoice into AR and will not have info on Receivables. Or do you want to import your invoice into AR as soon as goods are shiped and change the invoice date when customer receives them?
    In the first option, you could do the following: define two AR batch sources: AIR and OTHER, for example. The first one will be used to sea shipping and the second one to ground or air shipping. In the first AR batch source, uncheck derive date. In OM, define two order types: OT_AIR and OT_OTHER, one to sea shipping and other one to ground/air shipping. In order type AIR, define AIR as batch source, and in OT_OTHER define OTHER as batch source.
    Normally import your transaction with batch source OTHER into AR. For the orders shipped by sea, you will have to import them one by one. As soon as you receive the customer acks, go to ar autoinvoice and import the order received by the customer and define as default transaction date the date informed by the customer.
    I know it is not a good solution, so I think you will need some custom to have it done.
    Hope it helps,
    Ketter Ohnes

  • Excise and commercial invoice date

    Hi,
    Generally commerical invoice will take actual PGI date.  But my requirement is it should take the excise invoice date.
    If it is possible.  Plz tell the process.

    Since excise invoice would be generated only after creating billing document,  your requirement should be vice versa.
    In fact, normally, excise people wont pre-date the excise invoice.  So in that case, your requirement can be met in such a way that as and when the billing document generated, it should consider the system date.  By this, your excise invoice will also be the system date. 
    For more information check this thread
    [Billing date to be fixed    |Re: Billing date to be fixed]
    thanks
    G. Lakshmipathi

  • Invoice data repeating Address after page break

    Hello forum mebers,
    i have a problem to create a rtf template which prints invoice data with more than one address.
    The original data has more than one invoice to print all papers within one output.
    It is for repeat printing. I want to mark several invoices to print.
    The source data is splitting into header information (Address,Invoice number,summaries), invoice positions and company information (client).
    How to create the xml source ?
    How to create the word rtf template to repeat the invoice address on each page also if the first invoice has more than one page.
    I have tried the <?template feature, but this only repeats the first address of the data.
    I have tried the <?start:body feature, but this creates all addresses on the first page.
    I have tried the <?split-by-page-break feature, but this creates no repeating address header.
    I am clueless.
    Do you have any help or example for this problem ?
    Regards
    Frank

    Hallo Jorge,
    danke für die Antwort und das RTF, aber soweit war ich auch schon.
    Wenn mann jetzt noch sortiert nach ID und einen Header (template) und Footer hinzufügt, funktioniert es nicht mehr.
    Gruß
    Frank

  • A/P Invoice - Dates

    A client's business practice with their current system is to enter the date on the vendor's invoice and have this, plus the payment terms calculate the due date.
    In B1 we just have posting date. We can't enter the vendor's invoice date because the period in which the date falls may already be closed.
    I am thinking of adding a UDF to the A/P invoice to accept the invoice date, and putting a formatted search in due date field.
    Any comments on this? Or is there a better solution?
    Thanks!

    So, you just need to have a "vendor's invoice date" in addition to the posting date + want to calculate the due date based on it?
    Then, I think your solution is OK.
    I wouldn't know a better one.
    Regards,
    Frank

  • Tax code on the basis of Invoice Date in MIRO

    Hi Gurus!
    Tax rate change from 12.5% to 15 % is due on 1st October in NZ._________________
    Client requirement is that in MIRO transaction w.r.t. PO instead of the tax code being picked up from PO, the Tax code should be picked up depending upon the Invoice Date. _____________
    For Eg. Tax rate changes from 12.5% to 15% on 1/Oct/2010,
    Invoice Date = 20/Sep/2010, Posting Date = 20/Sep/2010, Tax Code = H1 (12.5%)
    Invoice Date = 20/Sep/2010, Posting Date = 01/Oct/2010, Tax Code = H1 (12.5%)
    Invoice Date = 01/Oct/2010, Posting Date = 01/Oct/2010, Tax Code = H3 (15%)
    Is there a way this can be achieved?
    Kind Regards,
    Mehul

    Hi Mehul,
    We just had such situation in Canada.
    It is recommended not to change the tax rate in the Tax code which is being used in open invoices because that could cause reporting and discount problems. And I am sure there will be open invoices with tax rates 12.5% come october 1. The solution is:
    Create a new Tax code in transaction code FTXP with rate 15%( effective date Oct 1 and set the same GL Tax account) everything as old tax code except for 15%  which will used for POs initiated from Oct1 onwards. For PO's prior to Oct 1. just use the same tax code with 12.5%.
    During MIRO the Tax code/rate  used in PO will be default,  you will have the option to go with old Tax code-12.5% or new tax code 15%.

Maybe you are looking for