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

RV_INVOICE_DOCUMENT_ADD

Former Member
0 Likes
4,900

I have a Z-Field in the VBRP called ZSDWWTMG. I want to use the RV_INVOICE_DOCUMENT_ADD to update this field, but the update does not run through.

I did the following steps:

-


RV_INVOICE_DOCUMENT_READ

RV_INVOICE_ITEM_MAINTAIN

RV_INVOICE_DOCUMENT_ADD

Does any one have any idea why it does not work:

Coding:

=====

vbrp-zsdwwtmg = new_value_ww.

CALL FUNCTION 'RV_INVOICE_ITEM_MAINTAIN'

EXPORTING

vbrp_i = vbrp

IMPORTING

vbrp_e = vbrp

TABLES

xkomfk = xkomfk

xthead = xthead

xvbfs = xvbfs

xvbss = xvbss

xvbrk = xvbrk

xvbrp = xvbrp

xvbpa = xvbpa

xkomv = xkomv.

CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD'

EXPORTING

vbsk_i = ls_vbsk

with_posting = with_posting

without_refresh = 'X'

preisfindungsart = 'I'

IMPORTING

vbsk_e = ls_vbsk

TABLES

xkomfk = xkomfk

xkomv = xkomv

xthead = xthead

xvbfs = xvbfs

xvbpa = xvbpa

xvbrk = xvbrk

xvbrp = xvbrp

xvbss = xvbss.

COMMIT WORK.

=================

Any idea could help me

Kind regards,

Angelika Lavorenz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,497

Hi,

Check the structure VBRPVB for the field you are looking for.

If it is not there, click on append structure and add the same structure that has been added in VBRP.

Regards,

Subramanian

Hi,

Check the structure VBRPVB for the field you are looking for.

If it is not there, click on append structure and add the same structure that has been added in VBRP.

Regards,

Subramanian

2 REPLIES 2
Read only

Former Member
0 Likes
2,498

Hi,

Check the structure VBRPVB for the field you are looking for.

If it is not there, click on append structure and add the same structure that has been added in VBRP.

Regards,

Subramanian

Read only

Former Member
0 Likes
2,497

I have forgotten to fill the XVBRP, then

it worked.