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

Bapi to create return sales order.

Former Member
0 Likes
8,690

Hello,

I need to create return sales order. I want to now which function module to use and how to use it ?

Thanks & Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,921

Hello Nikita,

You can use BAPI "BAPI_CUSTOMERRETURN_CREATE" to create return sales order

In this you have to pass return document type:-

so_header-doc_type = Return Document Type. "Ask from Functional Consultan for return document type

Calling of BAPI

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'

EXPORTING

return_header_in = so_header

return_header_inx = so_headerx

IMPORTING

salesdocument = v_so

TABLES

return = i_return[]

return_items_in = i_items[]

return_items_inx = i_itemx[]

return_partners = i_partner[]

return_schedules_in = i_shedule[]

return_schedules_inx = i_shedulex[].

6 REPLIES 6
Read only

Former Member
0 Likes
4,921

hii

bapi_customerreturn_create.

try it.

Edited by: gaurav.singh on Apr 22, 2010 2:10 PM

Read only

Former Member
0 Likes
4,922

Hello Nikita,

You can use BAPI "BAPI_CUSTOMERRETURN_CREATE" to create return sales order

In this you have to pass return document type:-

so_header-doc_type = Return Document Type. "Ask from Functional Consultan for return document type

Calling of BAPI

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'

EXPORTING

return_header_in = so_header

return_header_inx = so_headerx

IMPORTING

salesdocument = v_so

TABLES

return = i_return[]

return_items_in = i_items[]

return_items_inx = i_itemx[]

return_partners = i_partner[]

return_schedules_in = i_shedule[]

return_schedules_inx = i_shedulex[].

Read only

Former Member
0 Likes
4,921

Hello Nikita,

You can use BAPI "BAPI_CUSTOMERRETURN_CREATE" to create return sales order

In this you have to pass return document type:-

so_header-doc_type = Return Document Type. "Ask from Functional Consultan for return document type

Calling of BAPI

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'

EXPORTING

return_header_in = so_header

return_header_inx = so_headerx

IMPORTING

salesdocument = v_so

TABLES

return = i_return[]

return_items_in = i_items[]

return_items_inx = i_itemx[]

return_partners = i_partner[]

return_schedules_in = i_shedule[]

return_schedules_inx = i_shedulex[].

I hope it will help you a lot.

Regards,

Narendra

Read only

Former Member
0 Likes
4,921

redundant reply deleted...

Edited by: Short Dump on Apr 22, 2010 2:07 PM

Read only

Former Member
0 Likes
4,921

BAPI_CUSTOMERRETURN_CREATE

Read only

0 Likes
4,921

Thank you for above answers.

While using this function module Net value is coming Blank.

Kindly help.

Thanks & Regards.