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

LSMW using BAPI methode

Former Member
0 Likes
981

Hi ALL,

am using BAPI method in LSMW.

Object type is "BUS1501"

Method " CHANGE"

Message Type "BUS1501_CHANGE".

i mapped all source z-fields to target field (Value-part1 in Extend BAPI)

but data is not converting into Target structure..

Note:my flat file data is coming into source fields properly.

Regards

Suresh.d

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
717

Hi Suresh,

Check your procedure using this Links.

BAPI with LSMW

http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI

For document on using BAPI with LSMW, I suggest you to visit:

http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm

Hope this resolves your query.

Reward all the helpful answers.

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
718

Hi Suresh,

Check your procedure using this Links.

BAPI with LSMW

http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI

For document on using BAPI with LSMW, I suggest you to visit:

http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

0 Likes
717

Hi Suresh,

Am using LSMW BAPi method to post account document . using BUS6035 & BAPI_ACC_DOCUMENT_POST.

can you pelase let me know in this how can we handle errors documents ?

Thanks in advance !

Read only

Former Member
0 Likes
717

Hi Suresh ,

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.

Cheers

Kareem

Message was edited by:

Kareemullah Shah Quadri

Read only

0 Likes
717

Hi Kareem,

Thank you for your valuable suggesion.

but the source data is not coming into ls_extension_in-valuepart1

Regards,

suresh