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

Reports

Former Member
0 Likes
448

Hi,

can you call a bdc program from a report? how?

can you call a transaction from a report? how?

Please send me code also. it is very useful to me.

Thnks

swathi

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
435

1. SUBMIT report .... (if you are talking of to call a already written BDC into your program)

2. CALL TRANSACTION

See F1 help for more details.

Regards

Gopi

2 REPLIES 2
Read only

gopi_narendra
Active Contributor
0 Likes
436

1. SUBMIT report .... (if you are talking of to call a already written BDC into your program)

2. CALL TRANSACTION

See F1 help for more details.

Regards

Gopi

Read only

Former Member
0 Likes
435

hi,

Yes , We can call a transaction from a report by using

call transaction se38 in this way

here i m sending a small code where i used radiobuttons to call different transcation hope so this may be useful for you

SELECTION-SCREEN BEGIN OF SCREEN 300 AS WINDOW TITLE text-002.

***********************RADIOBUTTON declaration

SELECTION-SCREEN BEGIN OF BLOCK block WITH FRAME TITLE text-000.

PARAMETERS:rb_s RADIOBUTTON GROUP g1 ,

rb_c RADIOBUTTON GROUP g1,

rb_v RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF BLOCK block.

SELECTION-SCREEN END OF SCREEN 300.

**********************PUSHBUTTON declaration

SELECTION-SCREEN PUSHBUTTON /10(23) b1 USER-COMMAND b1.

SELECTION-SCREEN PUSHBUTTON /10(23) b2 USER-COMMAND b2.

******CHECKBOX DECLARATION WITH SELECTION screen

SELECTION-SCREEN BEGIN OF SCREEN 200 AS WINDOW TITLE text-001.

PARAMETERS : px_1 AS CHECKBOX,

px_2 AS CHECKBOX,

px_3 AS CHECKBOX.

SELECTION-SCREEN END OF SCREEN 200.

  • ***********************INITIALIZATION****************************

INITIALIZATION.

b1 ='RADIOBUTTON'.

b2 ='CHECKBUTTON'.

**************************AT SELECTION-screen

AT SELECTION-SCREEN.

CASE sy-ucomm.

WHEN 'B1'. "CHECKING CONDITION ON PUSH BUTTON

CALL SELECTION-SCREEN '0300'.

************************RADIOBUTTON operations

IF rb_s = 'X'.

MESSAGE text-007 TYPE 'I'.

CALL TRANSACTION 'VA01'.

ELSEIF rb_c = 'X'.

MESSAGE text-008 TYPE 'I'.

CALL TRANSACTION 'XD01'. "CALLING TRANSCATIONS AND CHECKING RADIOBUTTON

ELSEIF rb_v = 'X'.

MESSAGE text-009 TYPE 'I'.

CALL TRANSACTION 'XK01'.

ENDIF.

**********************CHECK BOX operations

WHEN 'B2'.

LEAVE TO LIST-PROCESSING.

CALL SELECTION-SCREEN '0200'.

IF px_1 = 'X'.

WRITE:text-002.

ENDIF. "CHECKING CHECKBOX

IF px_2 = 'X'.

WRITE:text-003.

ENDIF.

IF px_3 = 'X'.

WRITE:text-004.

ENDIF.

ENDCASE.