‎2007 Apr 23 12:12 PM
Hi Friends,
could u pls tell me which BAPI used to upload Email addr. I m working on LSMW where the field Email not there in existing structure .i need to add email as per new requirement.
Thx in Adv.
Prabhas
‎2007 Apr 23 12:19 PM
Instead of a bAPI write a direct program to update table PA0105 for employees email ID or PA0006 for address and email ID.
Regards,
Amit
‎2007 Apr 23 12:20 PM
Hi,
Have you assigned the custom structure name which has all your custom fields to EXTENSION_IN-STRUCTURE variable.
thats the only way the data can be updated ?
Also its better to code for assigning the values
by using classes rather than doing a direct Assign/Move in the LSMW if the system/programs are Unicode enabled.
For eg u can assign use the following code as example.
prepare BAPI-parameter
ls_extension_in-structure = 'CI_DATA'.
doesn't work with unicode:
ls_extension_in-valuepart1 = ls_ci_data.
use instead:
CALL METHOD cl_abap_container_utilities=> fill_container_c
EXPORTING
im_value = ls_ci_data
IMPORTING
ex_container = ls_extension_in-valuepart1
EXCEPTIONS
OTHERS = 0.
Regards
Suresh.D