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

Call transaction

Former Member
0 Likes
611

Hi,

I created a simple program that runs 3 transactions CC01, CC02 and CC03.

The program runs the transactions sequentially at the same order above.

When the program run transaction CC02 the field "Change number" is close for input the same for transaction CC03.

But in case I run transaction CC02 before running CC01 the field "Change number" is open for input.

Any clue why?

How to solve this problem?

The program looks like that

Call transaction 'CC01'.

Call transaction 'CC02'.

Call transaction 'CC03'.

4 REPLIES 4
Read only

Former Member
0 Likes
537

Hi

When you loop the screen for changing the screen attributes, you can check for transaction code by sy-tcode.

When you execute CC01, enable the field for input and when you execute CC02, disable it for input.

loop at screen.

....

if sy-tcode EQ 'CC01'.

screen-input = '1'.

...

elseif sy-tcode EQ 'CC02'.

screen-input = '0'.

endif.

Regards,

Navneet.

Read only

0 Likes
537

Thanks for the answer but I think u miss the point.

These are SAP transactions that I'm calling and I do not handle any screen

Read only

Clemenss
Active Contributor
0 Likes
537

I think this is because locks are set and checked. Check the locks during the run with transaction SM12 (ST12?)

Regards,

Clemens

Read only

Former Member
0 Likes
537

Hi,

How you are calling??Are you building BDCDATA to call the transaction..

Thanks,

Naren