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

set/get data for background abap program

Former Member
0 Likes
431


Hi expert,

      I write following code into a program: whick run background:

          SET PARAMETER ID 'Z_PA_EAR' FIELD TBTCM-JOBCOUNT.

          GET PARAMETER ID 'Z_PA_EAR' FIELD ZJOBCOUNT.

          SET PARAMETER ID 'Z_PA_EAR1' FIELD TBTCM-JOBNAME.

          GET PARAMETER ID 'Z_PA_EAR1' FIELD ZJOBNAME.
.

          MESSAGE I001(00) WITH 'this is your information set: jobname ' TBTCM-JOBNAME  '   job count: ' TBTCM-STEPCOUNT.

          MESSAGE I001(00) WITH 'this is your informationset retrieved:jobname ' ZJOBNAME '     job count: ' ZJOBCOUNT.

     but I get following result, why they are different for jobcount?

               this is your information set: jobnameBI_PROCESS_ABAP   job count:1

               this is your informationset retrieved:jobnameBI_PROCESS_ABAP     job count:15422800

Many Thanks,

Bo

1 ACCEPTED SOLUTION
Read only

muneshpatwari
Active Participant
0 Likes
382

Hi,

Pls check: You are setting the value for TBTCM-JOBCOUNT, but instead printing TBTCM-STEPCOUNT.

Regards,

Munesh.

1 REPLY 1
Read only

muneshpatwari
Active Participant
0 Likes
383

Hi,

Pls check: You are setting the value for TBTCM-JOBCOUNT, but instead printing TBTCM-STEPCOUNT.

Regards,

Munesh.