Skip to Content
author's profile photo Former Member
Former Member

Read Billing data in Output type processing

Hello,

I have a requirement where I need to read Billing Document data during Output type processing in VF01. I get Billing doc. no. as NAST-OBJKY.

I tried to use FM RV_INVOICE_DOCUMENT_READ and also class CL_WCB_BILL_BUFFER_FOR_PPF, but no results.

The Output type is "Special Function" assigned to custom Program/ Routine. In debug, I see only Billing document number, but I require more data like Sales area and Customer number to post Credit Memo Request (VBRK/ VBRP/ VBPA).

Please Help.

Kr,

Maninder

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 08:35 AM

    ??

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 08:43 AM

    Use the billing doc number and get corresponding doc via VBFA. Then from vbfa, get the details from each main table for so/delivery/invoice/etc.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 10:10 PM

    If you are using "Special Function" it means you need to write your own code. Since the changes are already committed to the database at that time, you can use SELECT, just like in any other program. What exactly is the issue here?

    FYI - RV_BILLING_PRINT_VIEW is not released.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      Thanks very much

      I have ever noticed that: that fm has status NOT RELEASED in my system too.

      I suppose SAP doesn't support the fm RV_BILLING_PRINT_VIEW anymore because the print of the bill is managed by smartform now, so it should mean to use the print program RLB_INVOICE and fmLB_BIL_INV_OUTP_READ_PRTDATA

      But the old print program RVADIN01 still uses the fm RV_BILLING_PRINT_VIEW and it works (I've prints from 46C),

      so that means theoretically that fm can't be replaced....but it works for the moment

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2016 at 06:15 AM

    Hello Maninder,

    You can use FM - LB_BIL_INV_OUTP_READ_PRTDATA to get the details.

    Add a comment
    10|10000 characters needed characters exceeded

    • LB_BIL_INV_OUTP_READ_PRTDATA makes sense if you need data in the format of data type LBBIL_INVOICE that is used in the standard form interfaces. It's not exactly the most user-friendly format (you have to get all those embedded tables from it), so still I believe OP might be better off with some short custom code. If only we knew what OP is doing exactly...

  • Posted on Jul 20, 2016 at 03:55 PM

    Hi,

    use FM - RV_INVOICE_DOCUMENT_READ , just check the Activity you are using.

    try with activity = '04' or '01' and pass the billing document no to vbrk_i -vbeln and no_nast = 'X' .

    Try this and check?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.