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

Click a button in standard program using a Zprogram

Former Member
0 Likes
1,107

Hi Friends,

There is a standard Tcode CJ8G. Since the Tcode CG8J's program is not an executable program I cannot create a batch job for this.

Hence, I have to write a Zprogram to populate the standard screen with values. I know I can do that with parameter ID. After populating the screen with values, I have to code to automatically click the execute button on this screen.

Can someone tell me how to code to click the execute button on the standard screen using a Zprogram.

Thanks in advance.

Regards,

Dikshitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
942

hi diksha,

create a zprogram and record the tcode cj8g ... pass the values to the bdc program..

i have recorded the bdc program for the above transaction.. its very simple.

7 REPLIES 7
Read only

Former Member
0 Likes
942

Try using CALL TRANSACTION 'CJ8G' AND SKIP FIRST SCREEN. after setting all the parameter ids.

regards,

Jinson.

Read only

former_member229729
Active Participant
0 Likes
942

Hi,

Please try the following steps:

SET Parameter ID 'XXX'  FIELD V_Field.

CALL TRANSACTION 'CJ8G' AND SKIP FIRST SCREEN. after setting all the parameter ids.

Rgds,

Ramani N

Read only

Former Member
0 Likes
942

If I use the Call Trasaction, will the Tcode get executed after being filled with values ?

Regards,

Dikshitha

Read only

Former Member
0 Likes
943

hi diksha,

create a zprogram and record the tcode cj8g ... pass the values to the bdc program..

i have recorded the bdc program for the above transaction.. its very simple.

Read only

Former Member
0 Likes
942

Can I create a batch job with a BDC recording ?

Regards,

Dikshitha

Read only

Former Member
0 Likes
942

DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

call TRANSACTION 'CJ8G' USING BDCDATA

MESSAGES INTO MESSTAB.

Read only

Former Member
0 Likes
942

Call transaction will just call the Tcode. What do i have to code in order to execute that Tcode ? Can you please help me with that ?

I am not very well versed with ABAP, so please elaborate.

Thanks in advance.

Regards,

Dikshitha