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

Import From Database during BAdI-Call

Former Member
0 Likes
768

Hi guys,

is it possible to access the database buffer in an badi-implementation?

The code looks like this:

Import lt_trordhc = ct_intersection from DATABASE indx(zz) id iv_tasklist.

After running this statement, the sy-subrc-variable contains 4.

I'm pretty sure that the import-statement works and that the parameters are set correctly. Any ideas in general?

Thanks for your help and regards,

Hendrik

Hi guys,

is it possible to access the database buffer in an badi-implementation?

The code looks like this:

Import lt_trordhc = ct_intersection from DATABASE indx(zz) id iv_tasklist.

After running this statement, the sy-subrc-variable contains 4.

I'm pretty sure that the import-statement works and that the parameters are set correctly. Any ideas in general?

Thanks for your help and regards,

Hendrik

4 REPLIES 4
Read only

Former Member
0 Likes
736

Hi

I believe it should work but have you done the EXPORT?

Max

Read only

0 Likes
736

Hi Max,

thank's for your help.

The EXPORT works, I monitored it and it returns with sy-subrc = 0.

So I think, everything works fine.

By the way: the EXPORT is done in an other badi-implementation and in an other badi; processed before the import.

Might there be a problem? In my opinion, the database buffer should be accessible "everywhere", or not?

Regards,

Hendrik

Read only

0 Likes
736

Hi

Try to Check the help for IMPORT/EXPORT .... FROM DATABSE, there some informations on how to use them in OO, so in the BADI too.

Anyway here it seem it can do the IMPORT/EXPORT.

Max

Read only

0 Likes
736

Okay, the IMPORT / EXPORT works even in an badi implementation.

It was an internal mistake; bad parameters.

Regards.