Skip to Content

Is it possible to change the source structure in AIF from the FM which is configured for action ?

Hello Experts,

Please let us know is it possible to change the source data structure in AIF from the FM which is configured for action ?

1). I have configured an FM for automatic processing, in that FM, is it possible to change the source data structure value?

I tried to change the DATA and CURR_LINE, but no luck in updating the value.

Below is the screenshot for source data structure in AIF.

Any suggestion are welcome.

Thanks,

Sabari

capture.png (14.6 kB)
capture1.png (37.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 18, 2017 at 09:02 AM

    Hi,

    at some stage you should have the following code:

    call method /aif/cl_enabler_xml=>transfer_to_aif
     exporting
     is_any_structure = ls_source_data_structure
    
    and so on

    before calling the transfer to aif you can change ls_source_data_structre and that change will be reflected in the source data.

    I would call this bad pratice though because the source data should be the responsibility of the sending system and the aim should be to get to the desired target data using what was sent.

    Add comment
    10|10000 characters needed characters exceeded