INVOIC01 IDoc - Map posting date

I have a problem with the mapping of the posting date in an incoming INVOIC01 IDoc.
Although the posting date is mapped on segment E1EDK03 with IDDAT = '015' (Invoice posting date (Invoice tax point date)), the resulting invoice has the system date as posting date.
Is it possible to post an incoming (fincancial or logistics) INVOIC01 IDoc on a specific posting date?
Kind regards
Frank

I solved the problem by debugging the FMs IDOC_INPUT_INVOIC_FI and IDOC_INPUT_INVOIC_MRM.
For the FI invoice:  Qualifier 026 (billing date) has to be used.
For the MM invoice: The document date (qualifier 012) is used as posting date.

Similar Messages

  • Idoc for Posting data to FB01 transaction

    Hi,
    In my Interface, i need to post data to a SAP FI system->FB01 transaction from XI. The scenario is nonSAP system->XI->SAP FI.So what are the possibilites to post data to SAP FI->FB01 transaction. Is there any Idocs for that or any other method.
    Please share your ideas..Ponts will be rewarded for good inputs...
    Thanks

    Hi,
    You need to get the file with the required format from the sender system and there shouldn't be any mapping in PI. Also please check the below link on how to get the file structure.
    Re: File for 'RFBIBL00'
    There is also a help for the RFBIBL00 program. Check this too.
    http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm
    The file should be placed in the ECC application folder and this program needs to be scheduled with that file path. If you are not able to get the file in the required format then you may need to go with the IDOC or BAPI solution.
    ~Vaas

  • Need the suitable IDOC to post data.

    Hi all.
    I m working on an XI implementation. I need to find a suitable idoc to post sales data. Could you please help me how to find the idocs or please suggest me some sales related idocs.
    Some of the fields are:  item num, item name, shop num, receipt num, customer num, customer name, date, quantity, price, total price.
    Thanks in Advance,
    Regards,
    XI Beginner

    Hi,
    what is your business process?
    Are you supplier or vendor?
    ORDERS should fit.
    Creating Purchase Order Idoc through XI
    http://www.apentia-online.com/UP/Apentia/files/Article/SAPPress_Mastering_IDoc_Business_Scenarios.pdf
    Regards Mario

  • MIRO IDOC - Posting Date

    Hi
    We are using IDOCs for incoming invoices.  However, the posting date is by default taken as system date.  I think it is standard SAP functioanlity.
    Do you guys have any work around to define the posting date to overwrite the system date?
    Thanks
    Venkat

    Hi
    check following link it may help you
    [INVOIC01 IDoc - Map posting date;
    Regards
    Kailas Ugale

  • Creating Multiple IDOCs and Line Items based on Posting date from file

    Hi All,
    My scenario is File to IDOC(MBGMCR01)...
    Need your suggestions and help on how to go with this...
    Source file structure is
    DC61|2009-03-15|000000000001200051|00000005.00|200|0001|1234|
    DC61|2009-03-15|000000000001200363|00000001.00|300|0001|1234|
    DC61|2009-03-15|000000000001200334|00000002.00|400|0001|1234|
    DC61|2009-03-16|000000000001201145|00000001.00|200|0001|1234|
    DC61|2009-03-16|000000000001201086|00000002.00|100|0001|1234|
    DC61|2009-03-17|000000000001200051|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200052|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200053|00000003.00|200|0001|1234|
    DC61|2009-03-18|000000000001200056|00000003.00|200|0001|1234|
    And target IDOC(MBGMCR01) is
    IDOC (0u202699999)
    E1BP2017_GM_ITEM_CREATE(0u2026999999)
         Date
    For Each new Posting date(column 2) of the source a new idoc to be created and the corresponding records of each posting date to be added to E1BP2017_GM_ITEM_CREATE
    The out put for the above should be like this
    IDOC(2009-03-15)
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    IDOC(2009-03-16)
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    IDOC(2009-03-17)
    E1BP2017_GM_ITEM_CREATE =2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    IDOC(2009-03-18)
    E1BP2017_GM_ITEM_CREATE=2009-03-18
    Will be thank ful if any one gives a hint....
    Thanks and regards,
    Sridhar

    I rather meant a picture of your mapping - anyways. Hope this is correct:
    Your souce structure:
    <MT_IAR>
      <IAR_Recordset>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
    Than mapping should be like this:
    <Inv_adj_date>        ==> SplitbyValue        ==> IDOC
    Please confirm this doesn't work.

  • Automatic (EDI) vendor posting fails - can I update the IDOC mapping?

    Hi -- I am testing a new intercompany sales process and having trouble with returns. The INVOIC01 IDOC for the vendor posting (document type VC - Vendor Credit FI) is failing because text is required on the line item (field SGTXT on BSEG). So it appears that the IDOC doesn't have this text field mapped.
    If I can identify a field in the existing IDOC to use for the text, is there a way that I can add that mapping? For example, let's say I want to populate the BSEG text with field BELNR on segment E1EDP01, is there a way to specify in the INVOIC01 idoc that this field should be plugged into BSEG-SGTXT? I don't have EDI experience, so this is all new to me!
    Thanks
    Allison

    Hi Allison,
    Since it's just for testing, just change the Text field on FI field status group become optional entry. It will solve your problem rather than modifying the standard IDOC
    Regards,
    Gumanti

  • How to update posting date in WINVE idocs

    Hi Expert,
    Is there any function module OR BAPI available to update posting date in physical inventory documnet (WINVE03) idocs.
    Regards
    Rajesh

    Hi,
    Please check whether BAPI_MATPHYSINV_POSTDIFF is useful in your case.
    With regards,
    Gokul

  • Regarding Posting Date in IDOC for Intercompany Invoice

    Hi,
    We have priority issue regarding posting date in IDOC. When we create Intercompany invoice, billing date in intercompany is Actual GI date of delivery document and also Invoice posted with Actual GI date only. But, in IDOC, Posting date is appearing as Planned GI date of delivery document.
    Actual GI date and Billing date and Posting date in IDOC should be same., but, posting date in IDOC is appearing as Planned GI date of delivery doc.
    Kindly help in finding out the root cause of, why posting date in IDOC is not appearing as Billing date and appearing as Planned GI date of Delivery document. This issue is happening from past one month for Intercompany invoice, previously posting date in IDOC used to appear as Billing date only.
    Thanks & Regards,
    Jai Prabhu.

    Hi Jai,
    Are you using standard message type INVOIC ?
    If so check SEGMENT E1EDK02 for date field
    and also check if there is no code put to overwrite the date
    you can check the code in Function module  "IDOC_OUTPUT_INVOIC"
    thanks
    santosh

  • Posting data through Idoc conf21

    Hi all,
    I never used an Idoc I need to post data into SAP using the Idoc CONF21, can any one suggest me how to proceed. I have the data in internal table I need to pass this to Idoc in order to update SAP.
    Thanx in advance.
    Parvez.

    Hi,
    You need an ALE setup to process your IDOC's because IDOC's are just 'intermediate documents' which contain data.
    What to do with this data you need ALE setup.
    look into these links for ALE and IDOC's help.
    http://www.sapgenie.com/whitepapers/ale.htm
    http://www.sapgenie.com/ale/index.htm
    http://www.sappoint.com/abap.html
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/ALE_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEHR/CABFAALEHR_ALE_QS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/ECPCA/ECPCA_ALE_154.pdf
    Regards,
    Wasim Ahmed

  • Using INVOIC01, IDOC posts invoices against POs that weren't sent to vendor

    Does anyone have any suggestions on how to prevent the IDOC INVOIC01 invoices from posting against POs that were not originally sent to the vendor??  (BSART = INVO)
    For example, vendor (1521) sends an electronic invoice file processed as an IDOC.  Vendor 1521 includes an invoice against a PO that was sent to vendor 7549.  Since the PO exists, the IDOC posts against it.  I want to make this a hard error (a 51 status).
    Please help,
    Cindy

    Hi Cindy,
    If you are using a standard process code for this interface, you will not have this sort of problem as the combination of Vendor and PO number are validated before that is posted. If you are using a custom stuff then you need to check the table EKKO by passing the vendor number and PO number as input to that, if that combination exists go ahead otherwise throw the idoc into 51 status.
    Thanks,
    Mahesh.

  • ADAPTER.SOAP_EXCEPTION Error while posting data on webservice.

    Hi.
    I have IDOC-> SOAP -> IDOC Synchronous Scenario.
    I have uploaded WSDL of the webservice for mapping.
    Data is not posting on Webservice.
    it is giving me Following error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When i checked Call Adapter Outboundbinding..
    <SAP:OutboundBindingAttributes>
    - <SAP:AdapterTypeData xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <SAP:Attribute>
      <SAP:Name>verifyWsuTimestampMessageAge_SecurityProfileWSSEVerifyEncryptionBodyThenSignatureBodyResponse</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>applyEncryptionKeyStore</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>applyEncryptionKeyStoreAlias_SecurityProfileWSSEApplyEncryptionBody</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>WSSEProfileApply</SAP:Name>
      <SAP:Value>SecurityProfileWSSEApplySignatureBody</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>applyEncryptionEncryptionSignatureAlias</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    I found this entry..
    Is there any problem in outbound binding.
    Kindly guide me for same.
    Regards,
    Siya

    Thanks Stefan.
    Yes, sender agreement is there and it is also there in CPA Cache.
    CPAObject: (Binding) keys: ObjectId=02cb8f5717cc35e582f072b26138a0f8 values: Direction=I
    ActionNamespace=http://test.com/xi/POC ToParty= FromParty= HeaderMappingConfig=null MappedActionNamespace=null MappingClassName=null ActionName=os_test AdapterNamespace=http://sap.com/xi/XI/System MappedActionName=null ToService= AdapterSWCV=b38bcd00e47111d7afacde420a1145a5 FromService=temp AdapterType=SOAP MappingId=null Attributes=<?xml version="1.0" encoding ...
    http://sapxis:50000/XIAxisAdapter/MessageServlet page also shows the status OK for required components and Warning for optional components.
    Am I missing something?
    Thanks,
    Beena.

  • IDOC - XI - post HTTP on .ASP?& DATA_CONTENT

    HI ALL !
    I have this scenario :
    1) R3 send IDOC ORDERS01 to XI (3.0) 
    2) XI elabs IDOC fields (in mapping step)
    3) XI with HTTP Adapter post data to a "page".asp on webserver using querystring (like page.asp?&ID_CUSTOMER=123&ORD_DOC=WE ...etc..)
    My ASP page use this stantments for get values:
    ID_CUSTOMER = Request.Form("ID_CUSTOMER");
    ORD_DOC = Request.Form("ORD_DOC");
    xml_content = Request.Form("xml_content");
    At the moment XI call the page but the query string is empty ! I think that the message type of interface will be automatically added on URL (as when flags Additional Query on Comm.Channel - Sender Party, Sender Service... are selected).... it's wrong ?!? If yes how it's possible complete the flow ?!
    Thks !!

    Hi Jari,
    Thanks for the reply,
    I have the asp file as below and plz suggest for any changes,
    <%
    Function BinToText(varBinData, intDataSizeInBytes)
                Const adFldLong = 128 '&H00000080
                Const adVarChar = 129
                Set objRS = Server.CreateObject("ADODB.Recordset")
                objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong
                objRS.Open
                objRS.AddNew
                objRS.Fields("txt").AppendChunk varBinData
                BinToText = objRS("txt").Value
                objRS.Close
                Set objRS = Nothing
    End Function
    server.scripttimeout = 600
    dim binXML, strXML, outXML, objFundsDelete
    'if Request.TotalBytes > 0 then
    '           binXML=Request.BinaryRead(Request.TotalBytes)
    '           strXML=BinToText(binXML,lenb(binXML))
    'else
    '           strXML=""
    'end if
    strxml = Request("xmlData")
    'Response.ContentType="TEXT/XML"
    'Response.Write(strXML)
       'dim fs, LogFile
       'logFile = "c:\received.xml"
       'set fs = server.CreateObject("Scripting.FilesystemObject")
       'on error resume next
       'if fs.FileExists(LogFile) = false then
       '  set ts = fs.CreateTextFile(LogFile)
       'end if 
       'set ts = fs.OpenTextFile(LogFile,2)
       'ts.writeline strXML
       'ts.close
       'set fs = nothing
       'set ts = nothing
    set objFundsDelete=server.CreateObject("FundsDelete.CFundsTransfer")
    outXML=objFundsDelete.FundsProcess(strXML)
    set objFundsDelete=nothing
    Response.ContentType="TEXT/XML"
    Response.Write(outXML)
    %>
    Thanks,
    srini

  • Some question on IDOC (Control Record/Data Record/Status Record)

    Dear all,
    I am new in this area, and would like to enquire some question on this topic.
    When I view a IDOC via WE02, each of the IDOC record will consist of Control Record/Data Record/Status Record).
    Questions:
    I notice that the data records consists of many segment (i.e. E1EDK01, etc) which are use to store application data.
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Thanks.
    Tuff

    Hi Tuff,
    As everything in SAP, with IDOCs too there are
    1) Standard IDOCs
    2) Standard IDOCs(Extending - Enhancement to an IDOC, to accomodate for custom values)
    3) Custom IDOCs
    And every IDOC has,
    Control record - EDIDC Structure - This mostly reflects the partner profile information, along with few more details which are used for IDOC extension, Sequencing etc
    Data Records - EDID4 Structure - These records contain the actual business data of the document in concern. So for ORDERS05 it would contain order details, INVOIC02 - Invoice details so on...
    Status Records - These records capture the status of an IDOC from the time it is received/sent from your system and a corresponding business document is created/changed. So this will have messages like "IDOC sent to the port OK" etc which are status from the communication layer(ALE) to application specific messages like "Sales Order XXX created" or "Invalid Material" etc.
    You would have noticed something called as Process code in the partner profile, this is associated with a FM(or work flow task etc) which has the business logic coded in.
    So in case of an Inbound IDOC, the sending system updates the IDOC - Control and Data records, and sends it to the receiving system. On the receiving system the IDOC's control record is validated against the partner profiles set, if an entry is found then using the process code it finds the associated FM which will decode the data from the IDOC data records as per the IDOC type and then use it to post data into SAP (VIA BDC, Batch Input, BAPI etc).
    And all this while the Status records are being updated accordingly.
    So with the above context will try to answer your questions,
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    In case of a custom IDOC, yes you will have  to.
    In case of a standard IDOC, you wouldn't have you just have set up the necessary configuration (Partner Profile, Process code etc)
    In case of a standard IDOC extended to accommodate for some custom values(for which there are no fields in standard IDOC - Let us say you have added some new fields on VA01) - In this case you can still use the standard Process code and Standard FM associated with it, SAP provides several Function exits in these FM's which you can leverage to add your custom logic.
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    There are several documents available on the net and on SDN detailing step by step approach for all the above three cases,
    just search for step by step guide for IDOCS - sap.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Again it depends, in case of using a standard IDOC you wouldn't have to. But in case you have some customizations/enhancements then you might have to.
    For Ex: updating the control record accordingly for indicating that you have extended the standard IDOC. Or append custom messages to the status record as per the business logic.
    Try out the examples you find on the net and post any specific questions you might have.
    Regards,
    Chen

  • How do you determine debit vs. credit in an invoic01 idoc?

    Hi all,
    I'm relatively new to the EDI area of SAP - We have edi documents (X12 810) that are coming into our R/3 47 system via invoic01 idoc.  The problem is that credits are being posted as debits.  I can see in the X12 document that it is marked "CR", but I don't see where to look in the invoic01 idoc type to see if it's getting there as a credit.  Any ideas / suggestions?
    Thanks,
    Ken Little

    Ken, take a look at the value being mapped to the E1EDK01-BSART field.  Is it 'CRME' or 'INVO' or other?  This value controls the setting of the variable 'bsart_cremem' and subsequent debit/credit handling from there in the IDOC process code.

  • IDOC Mapping for MATAMAS01

    Hi all,
    I am mapping the data into the IDOC MATAMS01 and i am filling the field EDIDD with data.
    But in the IDOC i am not able to see the Segments in the heirarhical order, but i am filling the HLEVEL field in EDIDD.
    Can anyone help on this .
    Regards,
    Madhavi

    Hi Madhavi,
    one the idoc structure is filled with data.
    after posting the idoc , i mean after triggering the idoc , you can see the heirarichy of the data in the parent & child level and
    sequence number and heirarichy level in the EDID4 table as well as we02 and we05 transactions.
    regards,
    Prabhudas

Maybe you are looking for

  • How do I remove songs from an ipod touch (that we never put on there)?

    My daughter has a 5th gen ipod touch. When she opened it tonight, there are songs on there that we never put on it. I plugged her ipod in and opened itunes and the songs showing on the ipod are not showing up as being on the ipod when we are looking

  • Using a Fat 32 partition to share between OSX and WinXP

    If I take a hard drive and partition half of it as NTFS and install Win XP on it using Bootcamp and partition half of it as FAT32 and leave it as an empty space, and have it as one of the drives in a Mac Pro running OSX, would I be able to copy files

  • Multiline Check in Receiver Determination

    Hi All, Can anyone explain me the exact functionality of the multiline checkbox in receiver determination. Lets say I have the following input message <node1>        <value>21</value> </node1> <node1>        <value>22</value> </node1> <node1>       

  • Not showing the button

    Hi, Further to this thread I don't know why the vbs file is not showing which button has been clicked, when it is running this file Many Thanks & Best Regards, Hua Min

  • Output format

    im using adobe premiere cs5 in my mac.. i want to make some clip which is can be played smoothly on PC with output format is .avi and i cant find the options for make the video become .avi in my adobe premiere for mac? what should i do?