Inbound SD billing document IDOC

Hi,
We are trying to automate billing document creation in SAP based on the file extracted from external project management system.
Is there any existing Inbound SD invoice IDOC? I know there is INVOIC02, however I think it is more often used for Outbound SD invoices or Inbound MM Invoice Receipt.
If INVOIC02 can be used for Inboudn SD invoice - does it require Sales order and/or delivery to exist in SAP? In our case they would be missing.
Thank you,
Karol

Hi,
Check if the function module IDOC_INPUT_ACLREC and IDoc ACLREC01 are of any help.
Regards,
GK

Similar Messages

  • Debug billing document IDOC

    Hi,
    I need to change the IDOC data for the segment E1EDK01 for the billing document putput generated via transaction VF02.
    However after I make the changes in the include ZXEDFU02,I'm unable to debug my code.
    Can soemone please let me know how to debug this code in include ZXEDFU02?

    How did you set the breakpoint? If the IDOC is processed by another user, you have to use external breakpoints. If your user is processing it, you may also enter debugging mode and set a breakpoint at the include using the menu.

  • Delete IDOC before cancelling Billing Documents

    Hi Gurus,
    I want to Cancel Billing Documents , for this billing documents Idoc are already created with status "03" Data passed to Port OK.
    For this First shall i need to delete Idoc and then cancel the Billing documents or first i can cancel billing documents and then delete Idoc?
    Let me know which one i should do first.
    Regards,

    Hi,
    Are you refering to the outbound idoc send from Billing doucment.
    If yes, then fist check if the idoc has posted in the target system.
    Many times it happnes that even if outbound idoc is in 03 status, it might have actually posted in target system.
    And if it has not posted in target system, then delete the idoc and then delete the billing document.
    Also I suggest, after deletion ask the target system guys to have a look for the idoc data, if they receive it ask them to take no action on it.
    Let us know..
    Regards,
    SB.

  • Inbound IDoc to generate Billing Document - t.code VF01

    Hi,
    which is the inbound idoc to trigger Billing Document.
    pls suggest
    thanks in advance...
    Regards,
    Balaji

    Hi,
    >IDOC name- INVOIC.INVOIC02
    INVOIC02 can only be used as outbound from VF01 not as inbound (at least in standard)
    unless you know a process code that can be used for inbound?
    in general sales invoice can only be created via interface with the use of ERS (selfbilling) scenario
    but I'm not sure if this is what you need
    Regards,
    Michal Krawczyk

  • 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

  • How to find IDOC no with reference to one billing document no

    Dear all,
    Can you please tell :
    How to find IDOC no with reference to one billing document no
    Thanks

    Hi Pavan,
    You are absolutely correct.  But what i need to know is sometime , even in the sales order there will be no output type (basically inbound) which can be found as suggested by Sunil - I think that is the most relevant way to find the IDOC no. Hope you will agree with me. Again how to activate by IAN is also guides the idea. Only thing we need to know the exact parameter to be maintained in own data.
    Thanks for your one of the valid suggestion.
    Regards,
    Ranjan

  • IDOC not displayed in billing document

    Hi Experts,
    I have a issue about the outbound idoc's generated from two different billing document.
    I can see the idoc's from these documents though the path Goto>header>Output ---> Processing log.
    But if i check the services of object button for one billing document, i can see the same idoc.but for the other document, its not displaying idoc number....in the relationships button..
    What could be the cause?
    What is the difference between these two documents ?

    Dear Mr. Kapil and Madhurao,
    Thank you for your help and quick response.
    I followed your instaructions and found that the option "Relevant for Order-related billing - - Status acc. to order Qty" "B" is already maintained.
    Also, i have to mention that this is not the first time we use this service material in our orders and we weren't facing any problem. This is the first time we face such issue.
    so please let me know if there's any other option to check.
    Thank you

  • Credit Memo request with reference to Billing Document number via IDoc

    Hi,
    I want to create credit memo request with reference to billing document number via IDocs.
    I have tried through ORDERS05, but when I process I saw that it is only processing with reference to contract  number or quotation.
    So is any other way of creating credit memo request creation with reference to Billing document number via IDocs?
    Thank you in advance.
    Regards,
    Santhi

    Please Help... it is Urgent...  Thank you

  • Creation of a billing document from an idoc

    Dear all,
    I'd want to find a soulution for the following scenario:
    The need is to create automatically an accompany invoice when a good issue is posted.
    I think that a possible solution should be:
    -an output type linked to the delivery document (generated when the good issue is posted)
    -the idoc generate the billing document
    Is this scenario possible?If yes which is the kind of idoc (INVOIC02?) and the parameters to be used in order to create the billing documents? (Ale settings, for example BD64 ecc..) 
    Best Regards
    Many Thanks
    Angelo Gaiatto

    Hi,
    There is a simple solution provided by SAP to trigger the BILLING DOCUMENTS for Deliveries
    This is a standard process
    Setup a Job in SM36 for the program SDBILLDL and it will pick all the delivery document which are open on that particular Billing date
    and process the Billing documents
    Alternatively you can also create the IDOC to trigger the BILLING DOCUMENTS
    For which you need to setup the PARTNER PROFILES, MESSAGE TYPES, PORT, RFC DESTINATION, SEGMENT CREATION,
    But i would suggest you to go with the standard program to create the Billing documents
    regards,
    santosh

  • Return order with reference to the billing document created via IDOC.

    Dear Colleagues,
    I’m struggling to understand and confirm whether standard functionality of ORDERS05 idoc allows creating a return order with reference to existing billing document?
    I have tried using standard segment E1EDK02 and E1EDP02 with qualifiers 009,010,011,087 but unfortunately idol is not creating a return order with reference and ignoring this segment.
    Have any one came across similar problem? If yes then will be grateful for sharing his experience.
    Best regards,
    AL

    Dear Friend
    Welcome to SDN
    Return order is itself a challenge to SAP standard settings
    There are some scenarios
    1. Return order qty should not be increasesd say Billed qty of material X is 20 units
    While returning Material X should be a maximum of 20 units
    If made 21 it should throw error T code OVAH message class V4 message no 299 convert from warning to error thro customization
    2.Return order should be created only once referencing billing doc
    To control that T code SE91 message class V1 message no 499 convert from warning to error thro ABAP help
    3 Your issue is same like case 1 but the material X is entered as second line item in the return order with some qty
    This case system is not throwing even a warning
    Yes correct
    This is to be handled with userexit
    Discuss the same with ABAPer
    Check these threads on return issues which is of different scenario than of yours
    Forum post in ERP - Sales and Distribution (SD) General: Order Qty.
    Order Qty.
    Forum post in ERP - Sales and Distribution (SD) General: Return order
    Return order
    Regards
    Raja

  • IDOC for Invoice/Billing document

    Hi Experts,
    Some of our customers want us to send electronic but no paper invoice to them in the coming week.
    I've investigated the process, steps are:
    1. Do some configs for message type of billing document
    2. Create KU partner profile and set outbound parameters, include Port / Basic type / Message type / Process code.
    If you have experience about this (IDOC for Invoice/Billing document) ? please kindly share the detail for me.
    Thanks in advance.
    Regards
    Sam

    Hi,
    Please check [https://supplier.intel.com/static/ap/forms/imp_gid2.doc|https://supplier.intel.com/static/ap/forms/imp_gid2.doc] this.
    This might help you.
    Thanks,
    Abhijit

  • IDOC-Segment Created a idoc document against Billing document

    Dear All,
    Thanks in  advance.
    Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
    so i want to add the segment which it was missed during generation of IDOC document against billing document.
    Example:
    a) IDOC document misses one segment let suppose "Seg1".
    b) In "Seg1" it have only one field let suppose "Field1".
    c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
    d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
    Please help on this issue.
    Regards,
    Sridhar.

    Hello,
              If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
             In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
            You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Credit/Debit Memo Request with reference to Billing document via IDoc

    Hello Experts,
    It seems SAP doesn't support Credit/Debit Memo Request with reference to Billing document via IDoc. Via IDoc, we can create sales document only with reference to contract or quotation but not with reference to billing/invoice document.
    Wanted to check if anybody came across such requirement and what would be the best way to acheive (Other than custom program using BAPI).
    Additional Information: Its ECC 6.0 Environment with AFS 6.03
    Appreciate your help.
    Thanks,
    Shekhar.

    Please Help... it is Urgent...  Thank you

  • IDOC and Billing Document relation

    Hi All,
    I want to know that is there any table where we can find IDOC for a Billing Document.
    Please advice.
    Thanks!
    Regards,
    Vivek Srivastava

    Hi,
    Check these tables
    EDID4
    EDIDC
    EDIDD
    Thanks and regards
    Praveen.J

  • Orders05 inbound order with refernce to Billing document

    Hi,
    I need to create a Credit memo request (Sales document) with reference to a Billing document, entered the Billing doc details in ORDERS05 - in segment EIEDK02 with qualifier 009 and also 015.  When processed the IDOC,credit memo request is being created not with reference but as if created as stand alone.
    Does standard SAP IDOC ORDERS05 support creation of documents with another document both being exist in SAP.If not any work around soultion is appreciated.

    Hi Satish,
    Watever koustubh has said is almost right. But instead of the indiacator 'update document flow', u activate the indicator of 'complete reference'. Then system will copy all the quantity from the source document (here from invoice) to your returns document. And if u try to change ir delete quantity, ul receive error msg.
    The 'update document flow' indicator only controls how you wish to maintain the document flow. It wont control the quantity. Koustubh, I am sorry if i m wrong.
    Satish, Please try both things separately and let me know what works for you.
    - Prashant

Maybe you are looking for

  • How to delete content from old iPhone

    Hi. My problem is a bit complex, I would say. I have just bought a new iPhone and sold my old iPhone. When I was about to delete and reset all the stuff on my old, i couldn't because i couldn't remember my password for the restrictions in settings (e

  • Switching home sharing between one apple ID and another

    If I turn off home sharing with one apple id, will I lose all the music linked to it in my itunes library?

  • Charge Voltage

    I was at the Apple Store yesterday afternoon. I asked their employee if the current speaker docks / clock radios that Apple sells are compatible with the iPhone. The employee told me it's a "qualified yes" with the qualification being the GSM Buzz is

  • Idoc interface!

    Hello all, Can somebody send me documentation over Idoc interfaces? I need for Inbound now...but Outbound will be helpful though for future use ) And I have a question related to middleware too. A flat file will be the input to middleware (XI or webm

  • To edit a billing plan with VA02

    Hi, I need help because I would like to print a billing plan with VA02. I 'm going to link this billing plan with output types of my sales order. For example, when I save my sales order, I would like that the billing plan print automatically. Somebod