2007 Oct 23 7:35 PM
Hi Guys ,
When i am using this BAPI for getting the LAST NAME and FIRST NAME ki using ADDRESS i am not getting the values.whats the problem is i am Getting an error Here is the FM.
" Function parameter "ADDRESS" is unknown."
DATA: L_IT_RETURN type Table of BAPIRET2,
L_IT_RETURN1 type BAPIADDR3,
i_Tel type table of BAPIADTEL.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
USERNAME = sy-UNAME
IMPORTING
LOGONDATA =
DEFAULTS =
ADDRESS = L_IT_RETURN1
COMPANY =
SNC =
REF_USER =
ALIAS =
UCLASS =
LASTMODIFIED =
ISLOCKED =
TABLES
PARAMETER =
PROFILES =
ACTIVITYGROUPS =
RETURN = L_IT_RETURN
ADDTEL = i_Tel
ADDFAX =
ADDTTX =
ADDTLX =
ADDSMTP =
ADDRML =
ADDX400 =
ADDRFC =
ADDPRT =
ADDSSF =
ADDURI =
ADDPAG =
ADDCOMREM =
PARAMETER1 =
GROUPS =
UCLASSSYS =
EXTIDHEAD =
EXTIDPART =
SYSTEMS =.
Can anybody tell me how to overcome thuis problem.
Thanks,
Gopi.
Hi Guys ,
When i am using this BAPI for getting the LAST NAME and FIRST NAME ki using ADDRESS i am not getting the values.whats the problem is i am Getting an error Here is the FM.
" Function parameter "ADDRESS" is unknown."
DATA: L_IT_RETURN type Table of BAPIRET2,
L_IT_RETURN1 type BAPIADDR3,
i_Tel type table of BAPIADTEL.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
USERNAME = sy-UNAME
IMPORTING
LOGONDATA =
DEFAULTS =
ADDRESS = L_IT_RETURN1
COMPANY =
SNC =
REF_USER =
ALIAS =
UCLASS =
LASTMODIFIED =
ISLOCKED =
TABLES
PARAMETER =
PROFILES =
ACTIVITYGROUPS =
RETURN = L_IT_RETURN
ADDTEL = i_Tel
ADDFAX =
ADDTTX =
ADDTLX =
ADDSMTP =
ADDRML =
ADDX400 =
ADDRFC =
ADDPRT =
ADDSSF =
ADDURI =
ADDPAG =
ADDCOMREM =
PARAMETER1 =
GROUPS =
UCLASSSYS =
EXTIDHEAD =
EXTIDPART =
SYSTEMS =.
Can anybody tell me how to overcome thuis problem.
Thanks,
Gopi.
2007 Oct 23 7:40 PM
Hi,
Please uncomment this line.
...
IMPORTING "Change here
* LOGONDATA =
* DEFAULTS =
ADDRESS = L_IT_RETURN1
...
Also you can use FM SUSR_USER_ADDRESS_READ.
Regards,
Ferry Lianto
2007 Oct 23 7:47 PM
Hi Ferry,
Thanks for ur reply
But what i need is i have to get the FIRST NAME and LAST NAME from the USER Profile.
I have to give sy-UNAME as i/p and get the User First NAme and LASt NAME as o/p.
Please respond.
Thanks,
Gopi .
2007 Oct 23 7:40 PM
You've commented out the period at the end. Put in a period.
Rob
2007 Oct 23 7:41 PM
Uncomment * IMPORTING in the BAPI call.
Address is the importing parameter and you commented out Importing.
2007 Oct 23 7:42 PM
Hi,
Address willl come in the importing patamer
call function 'BAPI_USER_GET_DETAIL'
exporting
username = i_user-bapibname
importing
address = wa_address
tables
return = i_return.
2007 Oct 23 7:54 PM
Hi,
Please try this.
DATA: F_USERNAME TYPE BAPIBNAME-BAPIBNAME,
S_ADDRESS TYPE BAPIADDR3,
TAB_RETURN TYPE BAPIRET2 OCCURS 1.
F_USERNAME = SY-UNAME.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
USERNAME = F_USERNAME
IMPORTING
ADDRESS = S_ADDRESS
TABLES
RETURN = TAB_RETURN.
WRITE: S_ADDRESS-FIRSTNAME, S_ADDRESS-LASTNAME.
Regards,
Ferry Lianto
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |