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 from function module parameters

Former Member
0 Likes
2,208


Hi Gurus,

Could you please let me know how to pass the values from parameters of a

Function module to the select option of a report using "CALL TRANSACTION"

like : fkkepos-gpart, fkkepos-opbel from FM to a TCODE.

PS : Not with SET/GET parameter ID.

Regards,

Selvan.

3 REPLIES 3
Read only

Former Member
0 Likes
910

Hi,

Use submit statement instead of call transaction.



DATA: text       TYPE c LENGTH 10,
      rspar_tab  TYPE TABLE OF rsparams,
      rspar_line LIKE LINE OF rspar_tab,
      range_tab  LIKE RANGE OF text,
      range_line LIKE LINE OF range_tab.

...

rspar_line-selname = 'SELCRIT1'.
rspar_line-kind    = 'S'.
rspar_line-sign    = 'I'.
rspar_line-option  = 'EQ'.
rspar_line-low     = 'ABAP'.
APPEND rspar_line TO rspar_tab.

range_line-sign   = 'E'.
range_line-option = 'EQ'.
range_line-low    = 'H'.
APPEND range_line TO range_tab.

range_line-sign   = 'E'.
range_line-option = 'EQ'.
range_line-low    = 'K'.
APPEND range_line TO range_tab.

SUBMIT report1 via selection screen
               WITH SELECTION-TABLE rspar_tab
               AND RETURN.




Thanks,

Ashok.

Read only

0 Likes
910

Hi Ashok,

Thank you very much for your response.

But I was looking for some thing like function module where I could use my transaction and pass with parameters from calling FM.

Regards,

Selvan.

Read only

former_member730258
Participant
910

Record the transaction in SHDB.

Populate BDCDATA with values you want to pass based on the recording.

CALL TRANSACTION using bdcdata.