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

BDC for VA01 ( Return Order )

0 Likes
1,242

Hello Experts,

I have to change the quantity while creating the Return order(VA01) in reference with Invoice, I have selected the items through item selection and selected items have been copied to main screen( item overview tab ) , when I populating the data it's adding new items instead of changing the existing items.

BDC has been called from FM 'IDOC_INPUT_ORDERS' in which I have changed the Customer-Exit '002' for populating the item selection of reference document. Selected Items get copied to "Item Overview" screen however I am unable to change the copied items.

Please help me to understand the flow to change the quantity of copied items.

Example - Invoice ( 0001010101 ) has been created for Material XYZ of Quantity 20.

I am creating one return order in reference of Invoice ( 0001010101 ) and selected the material XYZ from item selection however return quantity is 7 only.

In current situation when I copied, it's creating the return order of two line items

1st line item is with reference of invoice - Material XYZ - Quantity - 20.

2nd line item is of                                     Material XYZ - Quantity - 7.

I need only second line item and that must be created with reference of invoice line item.

Any help will be appreciated .

Regards!!

Suryakant Baranwal

Hello Experts,

I have to change the quantity while creating the Return order(VA01) in reference with Invoice, I have selected the items through item selection and selected items have been copied to main screen( item overview tab ) , when I populating the data it's adding new items instead of changing the existing items.

BDC has been called from FM 'IDOC_INPUT_ORDERS' in which I have changed the Customer-Exit '002' for populating the item selection of reference document. Selected Items get copied to "Item Overview" screen however I am unable to change the copied items.

Please help me to understand the flow to change the quantity of copied items.

Example - Invoice ( 0001010101 ) has been created for Material XYZ of Quantity 20.

I am creating one return order in reference of Invoice ( 0001010101 ) and selected the material XYZ from item selection however return quantity is 7 only.

In current situation when I copied, it's creating the return order of two line items

1st line item is with reference of invoice - Material XYZ - Quantity - 20.

2nd line item is of                                     Material XYZ - Quantity - 7.

I need only second line item and that must be created with reference of invoice line item.

Any help will be appreciated .

Regards!!

Suryakant Baranwal

3 REPLIES 3
Read only

Former Member
0 Likes
1,082

Hi

Why don't you use the BAPI instead of BDC program?

I don't know how to arrange your BDC, but probably it's easier to post the order by BAPI

Max

Read only

0 Likes
1,082

Hello Max,

I can not use BAPI in this case, As I am calling FM 'IDOC_INPUT_ORDERS' which process internally BDC for 'VA01'.


In my case, too many enhancements and screen-exits have been done which will not be easy to incorporate with BAPI.


Please let me know if there is any way to fix the BDC.


Regards!!

Surya

Read only

0 Likes
1,082

So

you need to change the quantities after importing the item from billing, you should check the BDCDATA from exit 002: here the code should be only for change the quantity

Max