Application Development 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: 

Call Transaction SLG1

Former Member
0 Kudos

Hi,

I have a requirement to call the Transaction Code: SLG1 from my ALV Report.

I need to default the following values before I call this T-Code.

1) Object

2) SubObject

3) User Name

4) Transaction

5)Program Name

For Object, and Subobject I can see the Parameter ID's, hence I can use : SET PARAMETER ID

However, for remaining 3 fields,  I don't see any Parameter ID's. Could you please let me know how can I fill them?

Thanks for the help.

Thanks,
Sandeep

5 REPLIES 5

Former Member
0 Kudos

Hi Sandeep,

You can procees it as BDC.

...procees BDC`s internal table bdc_tab...

   CALL TRANSACTION 'SLG1' USING bdc_tab.

regards,

Archer

former_member202818
Active Contributor
0 Kudos

Hi Sandeep,

The best way is BDC only as Archer said.

Else another option, you have to create a report program with all these parameters a and use SUBMIT.

For BDC...Follow these steps..

DATA : it_bdc   type table of bdcdata,

           wa_bdc type bdcdata.

wa_bdc-PROGRAM = 'SAPLSLG3'.   

wa_bdc-DYNPRO    = '100'.

wa_bdc-DYNBEGIN = 'X'.

Append wa_bdc to it_bdc.

clear wa_bdc.

wa_bdc-FNAM = 'BALHDR-OBJECT'.

wa_bdc-FVAL  = 'abc'.

append wa_bdc to it_bdc.

Repeat the bold code for rest of fields..

CALL TRANSACTION 'SLG1' WITH it_bdc.

raymond_giuseppi
Active Contributor
0 Kudos

Try to call the correct FM, also look at SAP sample program for log store/display (SBAL_DEMO*)

(Ref: Application Log (BC-SRV-BAL), Application Log - Guidelines for Developers (BC-SRV-BAL), Function Module Overview)

Regards,

Raymond

Here's an example for displaying the log (I only pass the date values here):

        CALL FUNCTION 'APPL_LOG_DISPLAY'
        EXPORTING
          object                    = 'ZCD_MI_POST'
          date_from                 = lv_date_from
          date_to                   = lv_date_to
          suppress_selection_dialog = 'X'
        IMPORTING
          number_of_protocols       = lv_number
        EXCEPTIONS
          no_authority              = 1
          OTHERS                    = 2.

If you want to have the standard selection screen displayed, just set suppress_selection_dialog to space.

0 Kudos

Hi guys,

I am using FM 'APPL_LOG_DISPLAY' , the call funcion it is excecuted with out error (sy-subrc = 0) and found records (number_of_protocols > 0) , but the log window its not displayed.

Any idea what is going on?

Antonio.