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

How to pass variable to Function Module ?

Former Member
0 Likes
2,961

Hi Friends,

Can anyone of u tell me , How to pass variable to this function module "UDM_DC_ATTRIBUTES_SET".

CALL FUNCTION 'UDM_DC_ATTRIBUTES_SET'

EXPORTING

I_CASE_GUID = ?

IT_ATTRIBUTE = ?

  • IT_NOTE =

  • IT_FILECONTENT =

  • I_UPDATE_TASK =

  • I_TESTRUN =

  • I_ENQUEUE =

  • IMPORTING

  • ES_RETURN =

.

what has to be given to these two fields ?

Thanks in advance ...

6 REPLIES 6
Read only

Former Member
0 Likes
1,276

Hi,

Simply press f1 on th FM ,it will take you the FM decleration where in the exporting/importing parameter you can check what is about these two parameter and their data type.

Pooja

Read only

0 Likes
1,276

Hi,

I did that already no info available sister, I even db clicked on it to get the documentation,still I couldn't get it rite .. Have you used this function module ?

Read only

0 Likes
1,276

Nope sorry i have never used this FM, but as mentioned in the above response i guess now you should able to pass the values in these two parameters.

Meanwhile I am seraching for this module if i get any information let you know

Pooja

Read only

0 Likes
1,276

Hi Pooja,

Thanks for your effort ... Please let me know if u can get some information ... Even im trying to get some information ... Please post if u can get some info on it ...

Read only

Former Member
0 Likes
1,276

ASLK Siddiq,

The best method to know how to pass parameters and what data-typed parameters to be passed, is to double-click the function module after calling in se38 or in SE37 give the function name, you'll get the data-types of import parameters and export parameters as well.

With this, you can declare work variables with that data-type and pass accordingly.

For example: For this function module UDM_DC_ATTRIBUTES_SET

DATA:
  w_caseguid    TYPE bdm_case_guid,
  w_attribute   TYPE bdm_t_attribute,
  w_note        TYPE tlinetab,
  w_filecontent TYPE udm_t_filecontent,
  w_updatetask  TYPE bdm_update_task,
  w_testrun     TYPE testrun,
  w_enqueue     TYPE bdm_enqueue,
  w_return      TYPE bapiret2.

CALL FUNCTION 'UDM_DC_ATTRIBUTES_SET'
  EXPORTING
    i_case_guid          = w_caseguid
    it_attribute         = w_attribute
*   IT_NOTE              =
*   IT_FILECONTENT       =
*   I_UPDATE_TASK        =
*   I_TESTRUN            =
*   I_ENQUEUE            =
* IMPORTING
*   ES_RETURN            =
          .

Read only

0 Likes
1,276

Hi Zahackson,

Thanks for ure reply ... If u can get more information about this function module please let me know ... Thanks ...