Application Development 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: 

How to pass the values to import parameters using business object method.

Former Member
0 Kudos

Hi Experts,

i am working with business object. i have to pass the values to the import parameters of function module, i am using swc_set_element container macro. its working but when i check the table the fields which i have sent using the swc macro is not stored in the table .if i give values directly in the interface then the table fields are changed as i want

please expert help me out.

thankyou.

1 REPLY 1

p190355
Active Contributor
0 Kudos

Hi,

To be able to use SWC_SET_ELEMENT macro, Check List:

1) INCLUDE <cntain>

in the Function Module

2) Usage :

SWC_SET_ELEMENT ac_container 'PERNR' pernr.

Where ac_container => is declared in Tables :

AC_CONTAINER LIKE SWCONT

I am not really sure of the relavance of letters AC in declaring the container,

but i remember renaming my container in Function module to ACCONTAINER_

Check the Import type declarations of of the Recieving parameters in the BOR.

If it still does not work, try recalling the Function module in the BOR.

Regenerating the BOR.

Guess that should take care of the situation.

If problem still persists, do let me know!!

Cheers,

Remi