Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI (SAP-ABAP)

Former Member
0 Likes
304

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

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
275

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

Read only

Former Member
0 Likes
275

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