2016 Mar 19 11:39 AM
Hi All,
I have a requirement where in my report program should call AL11 transaction based on the button click.
i tried using Submit rswatch0 and return, but it is not opening the AL11 directory.
Please guide me.
Thanks in Advance.
2016 Mar 21 9:18 AM
Try with function module ALINK_CALL_TRANSACTION or any other function module which is used for transaction code execute.
Might be there is a problem with authority check. Use function module with transaction execute and authority check.
2016 Mar 19 12:04 PM
Hi.
Did you already try the following command?
Call transaction 'AL11'.
Regards, Andreas
2016 Mar 21 9:08 AM
Hi Andreas,
I have tried but its not opening the folder directory.
2016 Mar 21 10:09 AM
2016 Mar 21 11:34 AM
With folder directory you mean the ALV list of key (DIR_...) and values (path of directory), right?
Are you working with dynpro and PAI event as suggested below?
Maybe the best solution path is if you set a break-point at the "CALL statement" to see if it is called like suggested below and/or evaluate the return code of the statement.
Regards, Andreas
2016 Mar 21 12:12 PM
I'm working on normal Report program In the Alv output there is a field, if i click that field it should trigger AL11 transaction. i have created a hotspot for the field. Now how to trigger AL11. i tried using submit statement and even with call transaction, but none of them are triggering the AL11 FOLDER DIRECTORY.
2016 Mar 21 12:15 PM
2016 Mar 21 3:39 PM
2016 Mar 22 5:17 AM
THIS IS MY OUTPUT : for eg
FIELD1
--------------------------
/interfacesXI/EXCEL_UPLOAD
/interfacesXI/sap
/interfacesXI/sap1
/interfacesXI/dataloads
/interfacesXI/inbound
/interfacesXI/outbound
/interfacesXI/
In the above alv output, if i click the respective link, it has to take me to that repective Al11 FOLDER.
2016 Mar 22 5:17 AM
THIS IS MY OUTPUT : for eg
FIELD1
--------------------------
/interfacesXI/EXCEL_UPLOAD
/interfacesXI/sap
/interfacesXI/sap1
/interfacesXI/dataloads
/interfacesXI/inbound
/interfacesXI/outbound
/interfacesXI/
In the above alv output, if i click the respective link, it has to take me to that repective Al11 FOLDER.
2016 Mar 20 7:42 AM
In the PAI module in your module pool program, check the value of the Function code for the button and enter the code
IF FCODE = X.
Call transaction AL11.
ENDIF.
2016 Mar 21 9:18 AM
Try with function module ALINK_CALL_TRANSACTION or any other function module which is used for transaction code execute.
Might be there is a problem with authority check. Use function module with transaction execute and authority check.
2016 Mar 21 9:29 AM
Set a break-point on the SUBMIT statement, test you program, do you actually execute the statement?
Regards,
Raymond
2016 Mar 21 12:16 PM
2016 Mar 21 12:18 PM
What happen when you execute AL11 from SAP menu, authorization problem, could you execute SU53?
Hint: If your actual question was how to display a specific directory, try toad following code before calling AL11 or RSWATCH0
EXPORT
p1 = list_filename
p2 = file_list-dirname
p3 = file_list-name
TO MEMORY ID 'RSWATCH0'.
Regards,
Raymond
2016 Mar 22 5:45 AM
Hi Saikanth,
This can be acheived by calling a system function . The below are system functions to read files from the AL11 directory :-
Call 'C_DIR_READ_FINISH'
id 'ERRNO' field p1
id 'ERRMSG' field p2
call 'C_DIR_READ_START' id 'DIR' field dir_name
id 'FILE' field a_generic_name
id 'ERRNO' field file-errno
id 'ERRMSG' field file
call 'C_DIR_READ_NEXT'
id 'TYPE' field file-type
id 'NAME' field file-name
id 'LEN' field file-len
id 'OWNER' field file-owner
id 'MTIME' field file-mtime
id 'MODE' field file-mode
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
call 'C_DIR_READ_FINISH'
id 'ERRNO' field file_list-errno
id 'ERRMSG' field file_list-errmsg.
WARNING : This statement is for internal use only. It must not be used in application programs.
2016 Mar 21 4:51 PM
I know you want to develop a solution on the AL11, but you've got to look at this open source project ?!
http://scn.sap.com/community/abap/blog/2012/05/03/al11-replacement
Best Regards,
Raphael Pacheco.