2015 Apr 17 10:01 AM
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.
2015 Apr 17 10:16 AM
Hi Adithya,
The second time you run the report, do you debugging whether BDC itab have related item value?
regards,
Archer
2015 Apr 17 10:20 AM
2015 Apr 17 12:12 PM
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
2015 Apr 17 12:15 PM
Completely agree with Fredric.. BAPI is the preferred way.. if available..
thanks
Rajesh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |