Bdc for invoice parking with reference(FB60)

Hi all,
I am Developing a <b>RFC</b> within that i have written <b>bdc</b> code for <b>invoice parking with refernce</b> on <b>fb60 tcode</b> as there is no standard function module for this . But i am stuck in one place after parking the document it gives one<b> document number</b> in the message bar which will be further useful for posting  .
how to catch that document number in the bdc and return it in the export parameter of trhe RFC.
Maximum points will be allocted for any useful answer..
thanks in advance

You can do something like below after your call transaction to get the document number.
do 10 times.
        wait up to 5 seconds.
        select single * from bkpf
           where belnr = belnr
             and bukrs = bukrs
             and gjahr = gjahr.
        subrc = sy-subrc.
        if subrc = 0.
          exit.
        endif.
enddo.

Similar Messages

  • BAPI for invoice creation with reference SalesOrder

    hi Mr Anjireddy,
    i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
    plz give the information for that prob,
    eswar

    Hi Vinod,
    This is just idea.
    Get Purchase Requisition details using
    <b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
    *******Poorna*********

  • Std Work flow for Invoice Parking & posting

    I am working om std SAP workflow for invoice document parking :
    I have done the following activities :
    1. Activate Work flow Template for Document Completion
    Here i activated the event "Complete the Parked Log. IV Document"--> Incoming Invoice Document Parked. It is showing a green traffic light .
    In agent assignment
    Complete the Parked Log. IV Document>Complete the Parked Log. IV Document>Complete the Parked Invoice--> i have assigned the user MMCONFIG
    2. In Define Release Criteria i have the following settings :
    1000 H Credit 0.01 INR US MMCONFIG
    1000 S Debit 0.01 INR US MMCONFIG
    3. In Activate Workflow Template for Release for Posting
    Here i activated the event Incoming Invoice Complete: ReleaseRel & i m getting a green traffic light .
    In assign agents i did the following
    Release the Completed Log. IV Document>Release the Completed Log. IV Document>Release the Completed Log. IV Document i assigned the user MMCONFIG
    In Invoice Parking: Approve Release i assigned the user MMCONFIG .
    For Invoice Parking: Release Invoice
    Invoice Parking: Posting an Invoice " I AM NOT ABLE TO ASSIGN ANY USER AS THESE ARE BACKGROUND TASKS ".
    Now when do a MIR7 - Park invoice & save the invoice as complete i am getting a mail in the mail box of MMCONFIG saying :
    "Invoice Release 5105xxxxxxx 2009, Completed by MMCONFIG "
    I go & release the same invoice .
    Then i executed MIRO & tried posting the released invoice . The sysem doesnt allow me 2 post the invoice .
    It automatically goes to MIR4 transaction & forces me to save as complete
    if i try to post it the system says "Parked document is release-relevant and cannot be posted"
    Pls tell me how can I post the invoice & IF MY SETTINGS FOR THE WORKFLOW IS OK ???
    Regards
    Anis

    Firstly,  check with the Binding of the event and workflow, if they are fine
    then check if the workflow gets triggered when you are posting... to check this,
    First go to transaction SWU8 - turn on the workflow trace and then
    Proceed with posting the invoice
    go to transaction SWU8 again and then turn off the workflow trace
    go to SWU9 - to check which all workflows got triggered....
    If there is any workitem in your workflow, then go to SWI1 and select the workitem of that workflow and press shift+F8 to check the status of it and also check to which all agents it had sent...
    If possible just give a hardcoded value in the workitem for testing purpose and check if that goes properly, later on implement the rule.....
    If the workflow does not triggere - go to transaction SWETYPV and deactivate and activate the event linkage with that workflow....
    Regards,

  • Invoice verification with reference to billing document in cross company

    Hi Gurus,
    We need to do "Invoice verification with reference to billing document in cross company code scenarios".
    At present I am processing through MIRO by calling the PO.
    What is the alternative for this and how to do it?
    Thnx

    Hi
    It is not possible to do the invoice with reference to billing document.
    You can create the Invoice referncing the PO used for STO or the delivery note (as mentioned in the Material document) or directly on the vendor.
    Thanks & Regards
    Kishore

  • Invoice VF01 with reference to the sales order

    Dear Experts,
    Our business requirement is to book the invoice with reference to the sales order without posting delivery and PGI. Provide me the step by step process to complete this configuration.
    Is that suggestible to change the existing document type which the business is using by creating delivery PGI and Invoice to the document type where invoice booking with reference to sales order or I have to go with the new document type only.
    With Regards
    Uday
    Message was edited by: G Lakshmipathi
    Please dont add such text in your post which is not encouraged in SCN.

    TW Typewriter
    can you help, by creating the entire process in Sandbox and informing uday about the configuration steps?
    At the outset, please refrain posting like this which, being a senior member of SCN, you should be aware of rules where spoon feeding is definitely not encouraged.  Those sort of efforts have to be taken by OP.   This forum is only to guide the people wherever they get stucked. 
    cc: Phanikumar V
    You should also be knowing the forum rules and I thought, you would have expressed like what I said above.
    G. Lakshmipathi

  • MRM_QUANTITY_CHECK for invoices parked as complete

    Hi,
    is it possible to call fm MRM_QUANTITY_CHECK for invoices parked as complete (RBKP-RBSTAT = 'B' and sy-ucomm = 'COMP')?
    is it possible to have routine MENGE_PRUEFEN(SAPLMR1M) for invoices parked as complete?
    These checks get triggered when posting the invoice.
    i´d need to have these checks for invoices when they are parked as complete.
    Best regards
    Edited by: Pablo Casamayor on Apr 21, 2010 8:57 AM

    Hi,
    The purpose of using either the fm call or the subroutine is to avoid saving as complete an invoice if it hasn´t got goods receipts enough.
    The standard triggers those checks when the invoices are posted but i´d need them when the invoices are saved as complete.
    Best regards.
    Edited by: Pablo Casamayor on Apr 26, 2010 8:30 AM

  • Table name for Invoice created with PO ref

    hi,
    I required Table name for Invoice created with PO ref.
    Regards,
    Ali

    HI,
    Check the table RSEG: Document Item: Incoming Invoice
    Look for the fields BELNR and EBELN
    Regards
    KK

  • Pricing procedure determination for complaint document with reference to billing

    Hello Guys,
    I am configuring complaint process for project purpose and I got stuck. I need to change the pricing procedure which is determined for complaint
    document . Right now the pricing procedure is copied from Billing Document for which complaint refers to.
    I am searching a place in configuration where I could change the pricing procedure determination for complaint document with reference to billing doc.
    Could you please advise where I can find it ?
    Thank you in advance!
    Br,
    Frederic

    Hello Frederic,
    I would check the following in SPRO:
    - CRM
    - Basic Functions
    - Pricing
    - Pricing in the Business Transaction
    - Determine Pricing Procedures
    Here the pricing procedure depends on sales organization, division, distribution channel, document pricing procedure and and customer pricing procdure.
    Best regards,
    Thomas Wagner

  • Bapi for invoice parking

    Hi,
    Does anyone know any BAPI to park a invoice using purchase order at the level of the services. I know BAPI_INCOMINGINVOICE_PARK, but it supposed to only park the invoice at the level of the purchase order items, not of the level of included services in each purchase order item. And we want to enter information related to the service's items.
    Thanks,
    Paulo Sousa

    Hi Paulo,
    the same bapi can be used for services as well:
    Here is the example given in the documentation:
    "Example: Incoming invoice for a purchase order for external services and servie-based invoice verification
    This example shows you which header data you need to enter in table HeaderData, which item data in table ItemData, and which accout assignment data you enter in table AccountingData in order to enter and post an incoming invoice.
    You receive an invoice with reference to PO number 4500000191, PO item 10. The invoice is for two services A and B, each with a quantity of six service units. Service A has a gross amount of 580 USD including 16% tax. Service B has 812 USD including 16% tax. 50% of service A was assigned to each of the cost centers 1000 and 2000. 50% of service B was assigned to each of the cost centers 1000 and 3000. The service acceptance is performed jointly for both services with the service entry sheet number 1000000022. The account assignments cannot be changed.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_TYPE (Document type): RE
    DOC_DATE (Document date): 01.10.2002
    PSTNG_DATE (Posting date): 01.10.2002
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 1392.00
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Terms of payment key): 0001
    Table ItemData
    First entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000001
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.0
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    Second entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000002
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    First entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000003
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.0
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Second entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000004
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Table AccountingData
    First account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000001
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000002
    SERIAL_NO (Sequential number of the account assignment): 02
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    First account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000003
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000004
    SERIAL_NO (Sequential number of the account assignment): 03
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Regards,
    Ravi

  • MIRO - Invoice Verification with reference to Delivery note.

    Dear All,
    In our organisation we are doing MIRO with reference to Delivery note. As same number of delivery note is being submiited by multiple vendors, after entry of that delivery note in MIRO system shows large list (Closed & Open for MIRO). This becomes difficult to select the required delivery note.
    Is it possible to make display of only those delivery notes against which MIRO (Invoice verification has not done).
    Also MIRO with reference to GRN number is possible or not ?
    Please suggest.
    Regards,
    Shekhar Kisan Gaikwad

    In our organisation we are doing MIRO with reference to Delivery note. As same number of delivery note is being submiited by multiple vendors, after entry of that delivery note in MIRO system shows large list (Closed & Open for MIRO). This becomes difficult to select the required delivery note.
    Is it possible to make display of only those delivery notes against which MIRO (Invoice verification has not done).
    Also MIRO with reference to GRN number is possible or not ?
    HI,
    To avoid difficulties post miro with Reference document (PO Reference Tab) - Delivery note click on Radio button a possible entries for delivery note screen will appear. Here you can search specific delivery note by a lot of criteria which will save ur time and effort also you can see MIGO Document.  Click and put tick to adopt and post Delivery note / migo and enter required field.

  • Invoice verification with reference to material document

    Dear Experts;
    i want to make invoice verification (MIRO) with reference to good receipt document not the all quantity in the purchase order. is this possible ???

    Hi,
    Option - 1
    If you have done 3 separate GR's for the above qtys then if you do MIRO with reference to PO then 3 line items will appear with the respective qtys. You select the one you want & delete the rest.
    Option - 2
    Check whether you have entered any values in the delivery note field while doing GR. If yes then do MIRO with reference to Delivery note rather than PO so that qty in the GR material doc will flow to MIRO automatically.
    Thanks & Regards,

  • Forwarder Invoice details with reference to Shipment Number

    Hi All,
    Currently i am working on shipment and new to shipment.
    I would like to find the invoice details of the forwarder with reference to Shipment number. Currently we have flow like shipment document>shipment cost document to the forwarder>PO (created in background and entry sheet)-->Invoice of the forwarder.
    Could you please provide the exact table where can I find the invoice w.r.t. shipment number or forwarder of the shipment.
    If we require any otehr changes, pls provide BADI.
    It will be appriciated for quick and right solution.
    THank you
    Regards
    Kishore

    If you create the invoice using MIRO transaction, then the table for the invoice is RBKP (header data) and RSEG (item data).
    Outbound process - To link invoice to shipment/shipment cost, you will need entry sheet which will be created when service acceptance document is created
    Inbound process - use the PO number then from PO go to delivery -> shipment -> shipment cost.
    VTTP-VBELN contains delivery docnument (shipment item table)
    VFKP-REBEL contains shipment number  (VFKP is shipment cost item table)

  • Bapi for PO creation with reference to Purchase Requisition - PReq

    Can any one let me know if there is any BAPI to Create PO with reference to PReq. I know we can easily write a BDC for ME21 but... is there a similar functionality via BAPI's ?

    Try
    BAPI_PO_CREATE1
    check its documentation in SE37 for detail documentation..
    Enjoy SAP.
    Pankaj Singh

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • Exit for PO creation with reference to PR

    Hi all,
    Is there any exit/BADI which can throw an error message if a PO is being created against a PR which had no release strategy associated with it? Basically I have to prevent creation of PO if a PR has been created such that no release strategy is applicable on it.
    Thanks

    Hi Javed,
    Try User Exit MM06E005,
    Implement EXIT_SAPMM06E_012,
    PR number is passed in field TEKPO-BANFN.
    Also you go through this thread,
    Re: PO with reference to PR
    Here you will find the solution for generating an error message
    while creating PO against PR.
    Reward points if useful.
    Cheers,
    Swamy Kunche

Maybe you are looking for

  • Creation of Open Document from WEBI

    Hi, Can any explain me Open Documents procedure for WEBI...i am trying to create but its not working ... Thanks in Advance... Regards Sanjeevkumar.D.Belagal

  • How do i get my old itunes back? I upgraded new version and do not like it

    Please can someone help me.... I did a software update and it changed my itunes and i do not like it, can i get my old version back? Or can i access free music again? As i could listen to the radio before???? I cannot find it in the new version.

  • My Iphone and Mac OS.10.6.8 dont sync calendar correct.

    I need to sync Ical and Iphone calendar. When I add an event in Ical at some local time, and sync my Iphone4 using Itunes the time shows a complete different time and even day. It seems like the Iphone is on Eastern time and MAC is in central europea

  • Control display/edit mode of an Assignment Block through code

    Hi all, Requirement : If status in Opportunity is XYZ (BT111H_OPPT/Details - BTStatus/Struct.Act_Status), I need to show items Assignment block((BT111H_OPPT/ItemsList) in display mode. When user tries to go into edit mode, display error saying - "Wit

  • Links Color Wrong in CS3

    I defined a link to be red, a visited link green, a hover blue, and an active yellow. The link is red in Dreamweaver Design view; however, in IE 7 the link is green and the visited link yellow. The hover and active colors are correct. I've attached t