Application Development 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: 

Logical Databases

Former Member
0 Kudos

hi all,

I am using the Logical DB PSJ in my report. As i execute i get the pop-up for the setting of the controlling area and the database profile.

I need to suppress these 2 pop-up's

I tried by using the below codes at selection screen output:

IF screen-name CS 'CN_KOKRS'.

MOVE: c_0 TO screen-required,

c_0 TO screen-input,

c_1 TO screen-invisible.

MODIFY SCREEN.

ENDIF.

IF screen-name CS 'CN_PROFD'.

MOVE: c_0 TO screen-required,

c_0 TO screen-input,

c_1 TO screen-invisible.

MODIFY SCREEN.

ENDIF.

But doesnt work.

How to achieve this?

Pls provide inputs.

Regards,

stock

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

You have to set the memory id associated (SET) so the LDB wont ask for the two parameters

get/set parameter id 'CAC' for controling area

get/set parameter id 'PDB' for database profile

Take also a look at function module CJDB_CHANGE_DB_PROFILE and K_KOKRS_SET.

Regards

Former Member
0 Kudos

I don't have a system in front of me right now, but I think they will only popup if values are not yet set for the corresponding parameter IDs e.g. CAC for controlling area - so try setting these in the "initialization" for your report.

Jonathan