Skip to Content

Need help with creating invoice and list of invoices

Hello everybody,

I need to create Credit / Debit memo invoices and for this I try to use FM GN_INVOICE_CREATE in my Z program, please let me know if it is correct way to go?

As well I need to create list of Credit / Debit memo invoices, how to achieve this?

Thanks in advance.

Usefull answers will be awarded.

Regards, M.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 07:20 PM

    You can use RV_INVOICE_CREATE for credit memo and debit memo

    list of credit and debit memo - use this FM - RV_INVOICE_LIST_CREATE

    see the below sample code

    refresh: XKOMFK, XKOMV,

    XTHEAD, XVBFS,

    XVBPA, XVBRK,

    XVBRP, XVBSS.

    clear : XKOMFK, XKOMV,

    XTHEAD, XVBFS,

    XVBPA, XVBRK,

    XVBRP, XVBSS,

    VBSK_I.

    VBSK_I-SMART = 'F'.

    XKOMFK-VBELN = v_deliv.

    XKOMFK-VBTYP = 'J'.

    APPEND XKOMFK.

    CALL FUNCTION 'RV_INVOICE_CREATE'

    EXPORTING

    VBSK_I = VBSK_I

    WITH_POSTING = 'C'

    TABLES

    XKOMFK = XKOMFK

    XKOMV = XKOMV

    XTHEAD = XTHEAD

    XVBFS = XVBFS

    XVBPA = XVBPA

    XVBRK = XVBRK

    XVBRP = XVBRP

    XVBSS = XVBSS.

    if sy-subrc eq 0.

    COMMIT WORK.

    flag = 'X'.

    else.

    message i011 with p_vbeln.

    endif.

    Reward Points if it is helpful

    Thanks

    Seshu

    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.