on 09-24-2008 8:13 AM
Hi, how can I change the sex of a BP? Which FM do I use?
Thanks!
Found out. FM BAPI_BUPA_CENTRAL_CHANGE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use FM BUPA_CENTRAL_CHANGE to change the Gender.
Remember while changing Gender , you have change corresponding Title. You can find title & gender mapping in table TSAD3.
See foll sample code..
data : wa_is_data type BAPIBUS1006_CENTRAL,
wa_is_data_person TYPE BAPIBUS1006_CENTRAL_PERSON,
wa_is_data_x type BAPIBUS1006_CENTRAL_X,
wa_is_data_person_x TYPE BAPIBUS1006_CENTRAL_PERSON_X.
data : it_return LIKE STANDARD TABLE OF bapiret2.
wa_is_data-TITLE_KEY = '0001'.
wa_is_data_person-SEX ='1'.
wa_is_data_person_x-SEX = 'X'.
wa_is_data_X-TITLE_KEY = 'X'.
CALL FUNCTION 'BUPA_CENTRAL_CHANGE'
EXPORTING
IV_PARTNER = '0000679358'
IS_DATA = wa_is_data
IS_DATA_PERSON = wa_is_data_person
IS_DATA_X = wa_is_data_X
IS_DATA_PERSON_X = wa_is_data_person_x
TABLES
ET_RETURN = it_return
.
commit WORK.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.