Application Development 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: 

what is the function module for creating credit/debit memo request (va01)

Former Member
0 Kudos
324

Hi

I would like to know if there exists a function module to create credit/debit memo request. Manually we do it through transaction VA01. I would like to know if we need to run it from the program to create credit/debit memo, what will be the functional module that can be used.

Thanks & Regards!

5 REPLIES 5

Former Member
0 Kudos
145

Hi,

SD_SALESDOCUMENT_CREATE

with business object BUS2094 for credit memo requests.

John

0 Kudos
145

Thanks a lot. I am trying to find the field to write ship to party and sold to party number. But i am not able to find. Could you please help in this as well.

Thanks & Regards!

0 Kudos
145

Thanks John,

the function module which you suggested SD_SALESDOCUMENT_CREATE has all the fields i require. But, i am not able to find the fields KUNAG (sold to party) and KUNWE (ship to party) in this function module to enter the data.

If i run the function module by entering all the data, i get the error asking me to enter ship to party and sold to party. Could you please help me out in finding these fields.

Thanks & Regards!

0 Kudos
145

Hi again,

There's an internal-table parameter called sales_partners.

You need rows there with partner role 'AG' and 'WE'.

John

Former Member
0 Kudos
145

Hi,

check this

BAPI_BILLINGDOC_CREATEMULTIPLE

Refer

https://forums.sdn.sap.com/click.jspa?searchID=7270819&messageID=2822454

Regards