IDOC INVOIC01 - fill in Personnel Numner MIRO

Hi guys
I want to fill in the field personnel number in the transaction MIRO (PO reference- data - DRSEG-PERNR) by posting an invoice with a LSMW based in the IDOc Type INVOIC01.
I am new to LSMW and IDOC any help will be welcome
Thanks in advance
J

Thanks fot the reply
But I can't use recording because it must go via the IDOC INVOIC01 with FM IDOC_INPUT_INVOIC_MRM -> I want to put the field DRSEG-pernr via this Function Module.
Anyone any idea??
Thanks in advance
J

Similar Messages

  • Which field from idoc INVOIC01 maps to Item Text field in MIRO transaction?

    Hi
    Will anybody please tell me which of the field in which segment of IDOC INVOIC01 maps to Item text (INVFO-SGTXT) field in Basic data tab of MIRO transaction

    Thanks Ravi for your response.
    But I have tried with all fielsd related to texts in IDOC but it is not being filled in transcation .
    If you see the F4 help in text field then Text Id is four character and when I manually assign this in transactin then it is putting = symbol in fron of the id. And then if we save or go to other tab then it is filling text.
    I am not able to find the error bcoz document is being posted through idoc but text field is not getting filled.

  • Document type for Subsequent Credit/Debit for idoc invoic01/02

    Hi SAP Gurus,
    We are implemeting an interface to post incoming invoice with idoc Invoic01 idoc type.
    We could able to post debit invoice and credit memo using document type in idoc (BSART)  as "INVO" and "CRME".
    But we would also like to post Subsequent Credit/Debit memos also with this idoc type but not sure what should be used in document type field ( BSART) in idoc.
    If any one has come across this scenario please suggest whether is it possible to use Invoic01 idoc type to post Subsequent Credit/Debit notes if yes what is the document types used? also I see in OBCE transaction we can only mention Invoice document type for debit and credit invoices only. How to handle this incase of subsequent Credit/Debit invoices.
    Thanks.

    Hello Rish,
    Please, be aware that if you look at the document at MIR4/MIRO etc, they will apear as a INVOICE/CREDIT MEMO (in the "Drop down" box, in the top of transaction)even if they are sub. credit/deb, but that is the standard system behavior ! In order to check if it is a Subcequent debit/credit, you can check directly into rbkp table or even better, just check in the PO history! it will be in a separate category !
    Give it a check if this is not the case!
    Regards!

  • Idoc INVOIC01

    Hi all
    We are making creating parked invoices for PO's using idoc INVOIC01. The functionality should be the same as that of transaction MIR7. In MIR7 we can enter a document reference (required field). If an invoice is already created with the same reference, the transaction gives an error (M8-108).
    In the idoc we have filled segment E1EDK02 as follows,
    qualf  = 009
    belnr  = reference number.
    The reference number is filled correctly, but the invoice is posted anyway.
    Is it possible to have the same checks during idoc processing and how should i fill the segments to achieve this??
    Regards,
    Bert

    Thank Amit.
    I tell you: I am designing an interface and I am using INVOIC01 idoc.
    I need to fill the fields of the structures and I don't know What fileds I must to fill for I indicate
    the invoice is a Park invoice.
    I hope you understand, and help if you can.
    Thanks .-

  • Inbound Idoc INVOIC01: Balance not zero

    In ECC 6.0, we are using inbound idoc type INVOIC01 and function module
    IDOC_INPUT_INVOIC_MRM to enter MM invoices & FI-postings for incoming purchase
    invoices that processed in an external system.
    The idoc raises error msg M8 534: "Balance does not equal zero".
    While processing the idoc, tax amount is not getting posted.
    I tried posting invoice through MIRO using the same data and it is getting posted but when i am using idoc , its giving error.
    Has anybody run into a similar problem? Any hint would be extremely valuable in order to solve the problem!

    Can anyone please help me on this ?

  • Create billing document from IDOC INVOIC01

    Hi Experts,
    I created a function module to extend IDOC_INPUT_INVOIC_MRM. After created successfully the invoice from this inbound idoc, I tried to create a billing document by code below:
    get sale order number from purchase order *****************************
        CALL FUNCTION 'BAPI_PO_GETDETAIL'
          EXPORTING
            PURCHASEORDER                    = lw_tfrseg-ebeln
            ACCOUNT_ASSIGNMENT               = 'X'
         TABLES
            PO_ITEM_ACCOUNT_ASSIGNMENT       = lt_acc_***
    ****get sale order details*******************************************************
         CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
          EXPORTING
            I_BAPI_VIEW                   = lw_order_view
          I_MEMORY_READ                 =
          TABLES
            SALES_DOCUMENTS               = lt_sales_key
            ORDER_HEADERS_OUT             = lt_ord_headers
            ORDER_ITEMS_OUT               = lt_ord_items
            ORDER_SCHEDULES_OUT           = lt_ord_schedules
            ORDER_BUSINESS_OUT            = lt_ord_business
            ORDER_PARTNERS_OUT            = lt_ord_partners
            ORDER_ADDRESS_OUT             = lt_ord_address
          ORDER_STATUSHEADERS_OUT       =
          ORDER_STATUSITEMS_OUT         =
            ORDER_CONDITIONS_OUT          = lt_ord_cond
    ****Fill billing data in*******************************************************
               lt_bill_data-SALESORG = lt_ord_headers-sales_org.
             lt_bill_data-DISTR_CHAN = lt_ord_headers-DISTR_CHAN.
             lt_bill_data-DIVISION   = lt_ord_headers-DIVISION.
             lt_bill_data-DOC_TYPE   = lt_ord_headers-DOC_TYPE.
             lt_bill_data-ORDBILLTYP    = lt_ord_headers-ORDBILLTYP.
             lt_bill_data-BILL_DATE    = lt_ord_business-bill_date.
             lt_bill_data-SOLD_TO    = lt_ord_headers-SOLD_TO.
             lt_bill_data-ITEM_CATEG    = lt_ord_items-ITEM_CATEG.
             lt_bill_data-ACCTASGNMT    = lt_ord_business-ACCNT_ASGN.
             lt_bill_data-PRICE_DATE    = lt_ord_business-PRICE_DATE.
             lt_bill_data-COUNTRY    = 'US'.
             lt_bill_data-PLANT    = lt_ord_items-PLANT.
             lt_bill_data-BILL_TO    = lw_partner_bp-customer.
             lt_bill_data-PAYER    = lw_partner_py-customer.
             lt_bill_data-SHIP_TO    = lw_partner_sh-customer.
            REF_DOC    = lt_sales_orders-DIVISION.
             lt_bill_data-MATERIAL    = lt_ord_items-material.
             lt_bill_data-REQ_QTY    = lt_ord_items-req_qty.
             lt_bill_data-CURRENCY    = lt_ord_items-currency.
             lt_bill_data-SHORT_TEXT    = lt_ord_items-short_text.
             lt_bill_data-TAXCL_1MAT    = lt_ord_items-TAX_CLASS1.
            REF_ITEM    = lt_sales_orders-DIVISION.
            STAT_GROUP    = lt_sales_orders-DIVISION.
             lt_bill_data-NO_MATMAST    = 'X'.
             lt_bill_data-ADDR_NO    = lt_ord_address-ADDRESS.
            lt_bill_data-TITLE    = lt_ord_address-DIVISION.
             lt_bill_data-NAME    = lt_ord_address-NAME  .
             lt_bill_data-NAME_2    = lt_ord_address-NAME_2.
             lt_bill_data-POSTL_CODE    = lt_ord_address-POSTL_CODE.
             lt_bill_data-CONSUMCTRY    = lt_ord_address-COUNTRY.
             lt_bill_data-CITY    = lt_ord_address-CITY.
             lt_bill_data-DISTRICT    = lt_ord_address-DISTRICT.
             lt_bill_data-STREET    = lt_ord_address-STREET.
             lt_bill_data-REGION    = lt_ord_address-REGION.
             lt_bill_data-PROD_HIER    = lt_ord_items-PROD_HIER.
             lt_bill_data-SALES_UNIT    = lt_ord_items-SALES_UNIT.
             lt_bill_data-PROFIT_CTR    = lt_ord_items-PROFIT_CTR.
            TAXJURCODE    = lt_sales_orders-DIVISION.
             lt_bill_data-PURCH_ORD    = lt_ord_headers-PURCH_NO.
             lt_bill_data-DOC_NUMBER    = lt_ord_items-DOC_NUMBER.
             lt_bill_data-ITM_NUMBER    = lt_ord_items-ITM_NUMBER.
            ORIGINDOC    = lt_sales_orders-DIVISION.
            lt_bill_data-ITEM    = lt_sales_orders-DIVISION.
             lt_bill_data-CREATED_BY   = sy-uname.
            MATERIAL_EXTERNAL = lt_sales_orders-DIVISION.
            MATERIAL_GUID = lt_sales_orders-DIVISION.
            MATERIAL_VERSION = lt_sales_orders-DIVISION.
             lt_bill_data-INCOTERMS1  = lt_ord_business-INCOTERMS1.
             lt_bill_data-INCOTERMS2  = lt_ord_business-INCOTERMS2.
             lt_bill_data-EXCHANGE_RATE = lt_ord_business-EXCHG_RATE.
             lt_bill_data-PAYMENT_TERMS  = lt_ord_business-PMNTTRMS.
             lt_bill_data-HG_LV_ITEM   = lt_ord_items-HG_LV_ITEM .
    ******call bapi function to create billing document********************
      CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
       EXPORTING
         CREATORDATAIN         = lw_creator
         TESTRUN               = lc_testrun
         POSTING               = lc_posting
        TABLES
          BILLINGDATAIN         = lt_bill_data
        CONDITIONDATAIN       =
        CCARDDATAIN           =
        TEXTDATAIN            =
          ERRORS                = lt_bill_errs
          RETURN                = lt_bill_retu
          SUCCESS               = lt_bill_succ
    A return message in the table lt_bill_retu:
    "This item is not relevant for billing!"
    Anyone can tell me why? I think this problem be generated from the step "fill billing data" but I don't know where.
    Pls help me!!!
    Thanks,
    Gy

    Hi,
    In the condition data, I want to add new condition type as below:
    <<  Add new condition type
        CLEAR: lt_cond_data.
        lt_cond_data-COND_TYPE = 'ZHD0'.
        lt_cond_data-COND_VALUE = mrm_ship_charge-summe.  " amount of shipping charge
        lt_cond_data-COND_CURR = mrm_ship_charge-waerq. " USD
        append lt_cond_data.
    *>>
    But I created successfully billing document, this condition type is not appear in the billing view by transaction VF03.
    Could you help me to find out the fault?
    Thanks,
    Gy

  • IDOC Scenario: Filling ED40 in XI to SAP automatically or not

    Hello,
    I was trying to let XI fill the ED40 data of my IDOC and set the flag in
    receiver channel, that he should not take these information from payload.
    It seems he took wrong data. So from where he take these information?
    I disabled the ED40 segment in mapping. So in sxmb_moni I couldn't see
    the information he put into the fields. If I don't disable them, he says that
    required fields are not mapped.
    thanks
    chris
    Edited by: Christian Riekenberg on Jul 10, 2008 1:16 PM

    > I disabled the ED40 segment in mapping. So in sxmb_moni I couldn't see
    > the information he put into the fields. If I don't disable them, he says that
    > required fields are not mapped.
    Hi,
    if you look into ED40 segment you will see there are some fields with occurrence 1:1, and that means you have to have some values in those fields (if not disabled this segment). Either you map the hard coded the vaules using constant function or map with some other source fields to these mandatory fields. But make sure there shuld be some data in case if you map with source fields.
    So this is the reason you are getting a message "required fields are not mapped".
    IF you are using EDIDC40 then you have to tick the check box take the values from payload, otherwise If you disable EDIDC40 then the values will be automaticall taken care by XI.
    Regards,
    Sarvesh

  • How to post an Idoc (INVOICE02) for non-po Invoice (MIRO transaction)

    Hi,
    I want to Post an Idoc for non-po vendor Invoice through MIRO transaction. I want to use INVOICE02 basic type. In the line item we need to enter G/L account , Cost center and line item amount. But I am not able to enter the same in the INVOICE02 Idoc. It will be nice if you please let me know how to post non-po Idoc through MIRO transaction.
    Thanks
    Rama
    Edited by: Rama Sengupta on Nov 25, 2009 3:57 PM

    Hi Raja,
    Check this out.
    Inbound IDocs are triggered by either external systems (edi, wms etc) or can be triggered by inhouse applications in SAP to post a application document.
    1. EDI_DATA_INCOMING can create a IDoc from a file on the OS layer. It just needs a IDoc flat file containing control and data records, it will create an Idoc from it if the control record successfully matches a inbound partner profile parameters.
    2. IDOC_INBOUND_ASYNCHRONOUS can be triggered by external/internal programs to creae IDoc withing SAP, whereas IDOC_INBOUND_SYNCHRONOUS can be used by inhouse SAP programs to create inbound Idoc.
    3. WE19 can create and post an existing inbound Idoc to application
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Using IDOC FIDCCP02 - Filling Profitability Segment details

    HI Experts,
    Has any one used the Idoc type FIDCC2 for migration purposes and Filled the Profitability segment details with in that IDOC and posted successfully? Please let me know where to fill the profitaility segment fields as there are no relavent fields with in the idoc for these.
    Regards
    Rajeev K

    have you received a reply for this yet. I have the same issue that I am trying to resolve.
    Thanks,
    BG

  • Error in Idoc Invoic01 ?

    Hi all,
    I am using message type INVOIC and IDoc type INVOIC01 .
    Inbound process code SD08  and Outbound process code INVL.
    Out put type  RD00 to create Logistics invoice verification when the billing document is created.
    It is giving error as 'A company code cannot be determined for LS XX04'.
    Where  XX04 is the vendor.
    Though i maintained the company code details in OBCA , it is still giving the error.
    So please help me on solving this error ?
    Thanks,
    Vamshi.

    Hi Vamshi,
    The system cannot determine the relevant company code since the allocation of the data transferred in the invoice is missing in Financial Accounting customizing.
    The company code can be determined outside of the system and be put into the intermediate document (for example, from the EDI subsystem). Then the company code must be put into the E1EDK14 segment and ORGID field and the value "011" used as the qualifier.
    Some hints from OBCA,
    1.
    Your EDI partner is the vendor '4711'. In this case:
    The partner number is '4711'.
    The partner type is 'LI' (vendor).
    Your ALE partner is an SAP system that is addressed by your system (using RFC) with the name 'ID3MDT800' (logical name). In this case:
    The partner number is 'ID3MDT800'.
    The partner types is 'LS' (logical system).
    2. Company Code Name in the Invoice
    The name of the company code in the invoice must correspond to the name for our company transferred by the EDI partner. EDI incoming processing needs this name to be able to uniquely determine the company code to be posted to.
    Technical note:
    The name is taken from the intermediate structure INV_ID01, segment EDI_Z3 (invoice recipient), field EDI_Z3-NAME1.
    The name for the intermediate structure INVOIC01 is taken from the segment E1EDKA1 (qualifier 'RE'), field E1EDKA1-PARTN or E1EDKA1-NAME (if E1EDKA1-PARTN is empty).
    3. Company Code
    The company code is an organizational unit within financial accounting.
    Hope it resolves your issue.
    Thanks & Regards,
    Nagaraj Kalbavi

  • RS partner function to IDoc INVOIC01

    We are creating an INVOICE01 IDoc from billing document using output determination.
    When the IDoc is created it has a partner function RS (= Invoice presented by) but the company name is misspelled. Where is this partner coming from where can I correct this? If I look at the invoice from which the Idoc was created it does not show this partner function.
    I could not find in SPRO where this comes from.
    Any help would be much appreciated.
    Thanks a lot,
    Viktor Varga

    Hi Victor,
    It generated inside FM <b>IDOC_OUTPUT_INVOIC</b> in include program LVEDFF0E.
    *-Rechnungskopf - Partnerinfo - Rechnungssteller
      PERFORM fill_e1edka1
        USING 'RS'.
    Then you can use user exits <b>EXIT_SAPLBD11_001</b> to change segment E1EDKA1. This user exits is used in FM MASTER_IDOC_DISTRIBUTE.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Idoc invoic01 parked document

    Hello together,
    i am getting  inbound invoice idocs and book them as parked documents.
    how can i not just save the parked document, but also mark it as complete (document complete)- the invoice is complete?
    thanks for your help.

    In that case you will have to create a process code with the custom function module that you are using for online processing or uses the custom function module you are using for online processing. Then you will have to link the new process code to the Message and IDOC type.
    I think there is a standard function module IDOC_INPUT_FIDCC2 which is already linked to the message type and idoc type combination via process code FID2. As a result that is getting triggered and the BTE is not getting called. In that case try to find a BTE or user exit for the function module IDOC_INPUT_FIDCC2. Or create an extension of IDCO type and link it to new process code.
    Edited by: KARTIK Nayak on Aug 20, 2009 8:46 PM
    Edited by: KARTIK Nayak on Aug 20, 2009 8:48 PM

  • Populating value in idoc segment E1EDP02 for INVOIC01- incoming invoice

    Hi Friends,
    I am working to get the incoming freight invoice posted to MIRO, using
    IDOC : INVOIC01
    message type: INVOIC
    process code: INVL
    function module : IDOC_INPUT_INVOIC_MRM
    Vendor does not send the PO number only send the bill of lading number(shipment number). So i have customised the IDOC with one segment for getting bill of lading number. My requirement is get bill of lading number and then get PO no and populate into segment E1EDP02. I am not able to populate this field and hence each time the IDOC fails with message :
    Required field BELNR(001) is missing in segment E1EDP02
    Required field ZEILE(001) is missing in segment E1EDP02
    Please tell me how to get this field populated and get the issue resolved. I have been trying to figure out for couple of days but no success OR My approach is incorrect for posting invoice to MIRO with populating field segment.
    Please suggest.
    Thanks
    Deepak

    Thanks everyone for getting the issue resolved. I have implemented implicit enhanencement and before the function module strarts procesing, I loop over segments and fill up the PO number to E1EDP02 for bill of lading number. There was also a case of error handling for IDOC. That is to check if the amount sent by vendor is correct as compared to the amount on the shipment cost docuemnt, if they dont match then I need to send an email to the business informing them for bill of lading number and amount. There is also another check to find out if the bill of lading number has already been invoiced, if invoiced I again need to inform the business user.
    So keep all the requirements in mind I went with Implicit enhancement, thus populating the required segment and if the validations fail for amount or invoice document already generated, then I send the mail to business with bill of lading number and reason of failure. In such case IDOC is not executed and after sending the mail, the logic exits out of function module.
    I

  • Problem with INVOIC01 idoc.

    Hi,
    We are receing IDOC INVOIC01 (Vendor invoice in MM). My problem is we have to identify the segment and field where barcode number can be populated in this inbound idoc. Also how to pass this barcode number to MIRO/MIRA.
    Can anyone could throw some light on this.
    -B S B

    Is barcode the same as UPC / EAN number?
    Take a look at the segment E1EDP19. You could use either EAN (same as UPC in the US, as far as I understand) or re-use any other ID mentioned there that is not otherwise used in your system.
    E1EDP19 : IDoc: Document Item Object Identification
    Structure
    Use
    The segment includes the material description.
    Different material descriptions for a material can be transferred via the qualifier.
    QUALF : IDOC object identification such as material no.,customer
    Values
    '001' Material number used by customer
    '002' Material number used by vendor
    '003' International Article Number(EAN)
    '004' Manufacturer part number
    '005' Interchanged manufacturer part number
    '006' Pricing reference material
    '007' Commodity code
    '010' Batch number
    '011' Country of origin of material
    '012' Shipping unit
    '013' Original material number (ALE)
    '014' Serial number
    '015' Manufacturing plant
    '016' Revision level
    '017' Additionals

  • Balancing field "Profit Center" in line item 001 not filled in MIRO

    The error Balancing field "Profit Center" in line item 001 not filled while doing the MIRO for asset PO only
    Please help me out to set the error
    chris

    Hi,
    The problem is due to document splitting active. Go to Define document splitting splitting characteristics for general ledger accounts and remove the mandatory tick mark for the profit center.
    IMG => Financial Accounting (New) => General Ledger Accounting (New) => Business Transactions => Document Splitting => Define Document Splitting Characteristics for General Ledger Accounting
    Remove mandatory field for profit center.
    or
    Maintain the profit center for asset PO to get the profit cennter in  MIRO transaction
    Thanks
    Prasada

Maybe you are looking for