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

Problem with function SD_INVOICE_RELEASE_TO_ACCOUNT

Former Member
0 Likes
1,903

Hello !

I am running the function SD_INVOICE_RELEASE_TO_ACCOUNT through a Z program but it is not executed.

Follow the source code:

CLEAR wx_vbrk.

SELECT SINGLE * FROM vbrk

INTO wx_vbrk

WHERE vbeln EQ vl_vbeln.

APPEND wx_vbrk TO ti_vbrk.

CALL FUNCTION 'SD_INVOICE_RELEASE_TO_ACCOUNT'

EXPORTING

with_posting = 'B'

TABLES

it_vbrk = ti_vbrk

xkomfk = ti_xkomfk

xkomv = ti_xkomv

xthead = ti_xthead

xvbfs = ti_xvbfs

xvbpa = ti_xvbpa

xvbrk = ti_xvbrk

xvbrp = ti_xvbrp

xvbrl = ti_xvbrl

xvbss = ti_xvbss.

What is strange is that this works on customers that are in version 6.0. We have a customer that is version 5.0 and in this case, the function is not performed.

If I go in VF02 and release the document, it works perfectly, but not by function.

Could anyone help me?

Thank you !

Cleber Sanchez

1 REPLY 1
Read only

former_member191735
Active Contributor
0 Likes
765

It is strange but not uncommon in sap. However, if this is happening to one customer, you better check if the documents are hang up in VFX3. May be customer credit blocked or something else might have happening.

Moreover this is not an RFC, and no return parameters from the interface. If the customer is ok then go for debugging in the FM.