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

Getting Data

Former Member
0 Likes
252

Hello Friends,

I have a question about getting data easily.

I guess somes of you have used this function in a abap program:

CALL FUNCTION 'BDC_INSERT'

EXPORTING TCODE = TCODE

TABLES DYNPROTAB = BDCDATA.

to make the same work of transacction TCODE while you pass the input in BDCDATA, this way you forget about making insert or update commands in your program.

In a ABAP program (se38), could I used this function or some other function with a similar functionality, so I could call a transaction with some parameters, then the TX returns the information in some internal variable in my abap program, so then I could show the same information but in different way.

This way I will be sure the information is correct, and I could forget about making the right query, wich is driving me crazy in a difficult report, where I can't get the correct information.

Thanks guys,

Javier.

1 REPLY 1
Read only

Sm1tje
Active Contributor
0 Likes
226

Sure you can use this function module for updating / inserting data. But normally BDC is 'only' used for for example migration from legacy system to SAP, or for uploading files periodically. I think what you are looking for is a BAPI which practically does the same and is easier to use. If you know the business object (transaction SWO1, Business Object Repository) you can find some bapi's for that business object in transaction BAPI.

But if you ensist on using BDC, you can start by making a BDC recording in transaction SM35 for the transaction in question and use the outcome of the recording as a basis for your update / insert program.