Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding RV_INVOICE_CREATE

Former Member
0 Likes
1,247

Hi Experts

i am using RV_INVOICE_CREATE fm to create billing document i am just passing my delivery number and some values like this

CALL FUNCTION 'RV_INVOICE_CREATE'

EXPORTING

VBSK_I = VBSK_I

WITH_POSTING = WITH_POSTING

TABLES

XKOMFK = P_XKOMFK.

and its working fine and is creating billind document.

But my problem is this that i have delivery number of which i have to create a billing document plus i have to assign a pricing condition type to table XKOMV for a particular item number.

again its creating a billing document but its not adding the condition type to that particular item.

IS THERE ANYWAY YOU GUYS HELP ME OUT WITH THAT.

Thanks in advance

Hi Experts

i am using RV_INVOICE_CREATE fm to create billing document i am just passing my delivery number and some values like this

CALL FUNCTION 'RV_INVOICE_CREATE'

EXPORTING

VBSK_I = VBSK_I

WITH_POSTING = WITH_POSTING

TABLES

XKOMFK = P_XKOMFK.

and its working fine and is creating billind document.

But my problem is this that i have delivery number of which i have to create a billing document plus i have to assign a pricing condition type to table XKOMV for a particular item number.

again its creating a billing document but its not adding the condition type to that particular item.

IS THERE ANYWAY YOU GUYS HELP ME OUT WITH THAT.

Thanks in advance

2 REPLIES 2
Read only

Former Member
0 Likes
806

for help just reply to this message

Read only

0 Likes
806

Hi Jawad,

How did you with RV_INVOICE_CREATE? I am having problem creating invoice with RV_INVOICE_CREATE. My code below:

LOOP AT t_ord.

t_komfk-vbeln = t_ord-vbeln.

APPEND t_komfk.

AT LAST.

gs_vbsk-smart = 'F'.

gs_vbsk-ernam = sy-uname.

gs_vbsk-erdat = sy-datum.

gs_vbsk-uzeit = sy-uzeit.

CALL FUNCTION 'RV_INVOICE_CREATE'

EXPORTING

vbsk_i = gs_vbsk

with_posting = 'X'

IMPORTING

vbsk_e = gs_vbsk_e

od_bad_data = g_bad

TABLES

xkomfk = t_komfk

xkomv = t_komv

xthead = t_head

xvbfs = t_vbfs

xvbpa = t_vbpa

xvbrk = t_vbrk

xvbrp = t_vbrp

xvbss = t_vbss

.

COMMIT WORK.

BREAK-POINT ID z_chkpt_grp.

ENDAT.

ENDLOOP.