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 recording issue

Former Member
0 Likes
896

Dear All

I have an issue in a custom development of BDC. We have created a program to choose the invoice numbers from ALV report and create a return sale order with reference to invoice. For the first time all the line items appears in the sale order. If a sales cycle is done and again we run the program, the line items are blank. If I log out and log in SAP then it works again for first time. To copy the invoice details to sale order, a BDC has been written using call transaction. Please suggest.

Dear All

I have an issue in a custom development of BDC. We have created a program to choose the invoice numbers from ALV report and create a return sale order with reference to invoice. For the first time all the line items appears in the sale order. If a sales cycle is done and again we run the program, the line items are blank. If I log out and log in SAP then it works again for first time. To copy the invoice details to sale order, a BDC has been written using call transaction. Please suggest.

4 REPLIES 4
Read only

Former Member
0 Likes
860

Hi Adithya,

The second time you run the report, do you debugging whether BDC itab have related item value?

regards,

Archer

Read only

0 Likes
860

Hi

Yes the itab has the related item value.

Read only

fredericbasilius
Participant
0 Likes
860

Hi Adithya,

BDC is not recommended for ENJOY Transactions. If you are using object oriented concepts, in the recorded program it may result in issues. Please check if any BAPI can do the Job.

You can get the billing document related to a sales order from the table VBRP, by passing sales order in the field AUBEL.

Regards,

FB

Read only

Former Member
0 Likes
860

Completely agree with Fredric.. BAPI is the preferred way.. if available..

thanks

Rajesh