03-07-2008 4:38 AM
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.
04-01-2008 10:26 AM
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