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

calling SE38 using BDC

0 Likes
639

Hi,

I have used the following below code to call a transaction

but its not working can you please help me out and tell me

where am i doing wrong? I am trying to call transaction se38

with reportname as ZTEST and press DISPLAY button.

I was able to call se38.but the report ZTEST is not opening in DISPLAY mode.

CLEAR gt_bdcdata.

REFRESH gt_bdcdata.

gt_bdcdata-program = 'SAPMS38M'.

gt_bdcdata-dynpro = '0100' .

gt_bdcdata-dynbegin = 'X'.

APPEND gt_bdcdata.

CLEAR gt_bdcdata.

gt_bdcdata-fnam = 'RS38M-PROGRAMM'.

gt_bdcdata-fval = 'ZTEST'.

APPEND gt_bdcdata.

CLEAR gt_bdcdata.

gt_bdcdata-fnam = 'BDC_OKCODE'.

gt_bdcdata-fval = '=SHOP'.

APPEND gt_bdcdata.

CALL TRANSACTION 'SE38' USING gt_bdcdata

MODE 'E' MESSAGES INTO gt_messtab .

Thanks & Regards,

Santosh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
575

Hi Santosh Kumar,

Change your gt_bdcdata-program = 'SAPLWBABAP' instead of gt_bdcdata-program = 'SAPMS38M'...

I tried and it's working fine.

Regards,

Mohaiyuddin

4 REPLIES 4
Read only

Former Member
0 Likes
575

Hi,

Use like this.

SET PARAMETER ID 'RID' FIELD 'ZTEST'.

CALL TRANSACTION 'SE38' AND SKIP FIRST SCREEN.

If not working remove quotes for ztest and check.

It will work now.

Don't forget to reward if useful...

Read only

0 Likes
575

ZTEST s not a field its a report name .

quotations are mandatory.

Regards,

Santosh.

Read only

Former Member
0 Likes
576

Hi Santosh Kumar,

Change your gt_bdcdata-program = 'SAPLWBABAP' instead of gt_bdcdata-program = 'SAPMS38M'...

I tried and it's working fine.

Regards,

Mohaiyuddin

Read only

0 Likes
575

THANK YOU VERY MUCH.