07-11-2014 12:08 AM
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
07-11-2014 4:25 AM
Hi Sandeep,
You can procees it as BDC.
...procees BDC`s internal table bdc_tab...
CALL TRANSACTION 'SLG1' USING bdc_tab.
regards,
Archer
07-11-2014 5:22 AM
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.
07-11-2014 7:24 AM
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
07-11-2014 8:18 AM
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.
02-01-2021 10:51 PM
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.