2009 Oct 26 9:48 AM
Hello
I am using a custom program in which i am calling sap standrad includes. in one of the sap standrad include ,one internal table is getting filledup.now i have to display a message in my program based on that internal table.how to access the data in my program?
Hello
I am using a custom program in which i am calling sap standrad includes. in one of the sap standrad include ,one internal table is getting filledup.now i have to display a message in my program based on that internal table.how to access the data in my program?
2009 Oct 26 9:51 AM
Is that table defined in global scope or local to some perform??
2009 Oct 26 9:52 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:52 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:52 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:52 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:52 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:53 AM
Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
*code to get the USR02 details using field symbols
DATA : l_r_usr02 TYPE usr02.
DATA : l_f_text(20) TYPE c.
FIELD-SYMBOLS: <l_fs_usr02> TYPE usr02.
l_f_text = '(SAPLSUST)USR02'.
ASSIGN (l_f_text) TO <l_fs_usr02>.
l_r_usr02 = <l_fs_usr02>.
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:53 AM
Hello Raj
Please go through the code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
*code to get the USR02 details using field symbols
DATA : l_r_usr02 TYPE usr02.
DATA : l_f_text(20) TYPE c.
FIELD-SYMBOLS: <l_fs_usr02> TYPE usr02.
l_f_text = '(SAPLSUST)USR02'.
ASSIGN (l_f_text) TO <l_fs_usr02>.
l_r_usr02 = <l_fs_usr02>.
WRITE : / l_r_usr02-ustyp.
2009 Oct 26 9:53 AM
Sorry i thik you got answer so maney times.But when i press save its going for error here. But actually its getting posted every time i suppose.
Edited by: ramanuja.venkat on Oct 26, 2009 10:54 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |