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

Master data transfer for Asset using Idoc

Former Member
0 Likes
4,187

Hello all,

I need to transfer Asset master data from one logical system to other using Idoc. I have serached message type FIXEDASSET_CREATEFROMDATA1 for the same.

Is it fine to use this message type? Also I am not able to find transcation code to send asset and get asset.

for example BD10 to send material and BD11 to get material. Which are the tcodes to send asset and receive asset?

Regards,

Madhura

Hello ,

Can you provide a simple example or outline for distributing it through custom code?

Thanks,

Madhura

9 REPLIES 9
Read only

former_member376453
Contributor
0 Likes
2,270

I think your message type should be FIXEDASSET_CREATE and basic type FIXEDASSET_CREATE01

Kuntal

Read only

0 Likes
2,270

Hello,

Which transaction code I should use to Send asset from one logical system to another?

Thanks in advance,

Madhura

Read only

0 Likes
2,270

I don't think there is any standard T code to send Asset in bulk, like BD11/ BD14. This is a standard IDoc message type which required all manual config and you can write a custom program, where you can pass the data through outbound Idoc.

Kuntal

Read only

0 Likes
2,270

Hello ,

Can you provide a simple example or outline for distributing it through custom code?

Thanks,

Madhura

Read only

0 Likes
2,270

You need to populate data, in EDIDC and EDIDD:


  CONSTANTS: lc_rcvprt TYPE edi_rcvprt VALUE 'LS',
             lc_rcvprn TYPE edi_rcvprn VALUE 'DSLSRNP',
             lc_mestyp TYPE edi_mestyp VALUE 'ZINVOIC',
             lc_idoctp TYPE edi_idoctp VALUE 'INVOIC02'.

  DATA: lv_check TYPE c,
        lv_send TYPE bdi_logsys-logsys.

  CONCATENATE sy-sysid 'CLNT' sy-mandt INTO lv_send.
  SELECT rcvprn
         rcvprt
         FROM edp13
         INTO (w_edidc-rcvprn, w_edidc-rcvprt)
         UP TO 1 ROWS
         WHERE mestyp = lc_mestyp
         AND idoctyp = lc_idoctp.

  ENDSELECT.
  IF sy-subrc = 0.
  ENDIF.

* Populating control data in EDIDC structure
  w_edidc-mestyp = lc_mestyp.
  w_edidc-idoctp = lc_idoctp.


  APPEND w_edidc TO i_edidc.


  CALL FUNCTION 'ALE_MODEL_DETERMINE_IF_TO_SEND'
    EXPORTING
      message_type           = 'ZINVOIC'
      sending_system         = lv_send
      receiving_system       = w_edidc-rcvprn
      validdate              = sy-datum
    IMPORTING
      idoc_must_be_sent      = lv_check
    EXCEPTIONS
      own_system_not_defined = 1
      OTHERS                 = 2.
  IF sy-subrc = 0.

    IF lv_check IS NOT INITIAL.



* Function Call for posting IDOC
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control            = w_edidc
        TABLES
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        EXCEPTIONS
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          OTHERS                         = 5.
* If IDOC is successfully posted populate the IDOC Details in I_FINAL
* internal table
      IF sy-subrc = 0.
        CALL FUNCTION 'DEQUEUE_ALL'.
        COMMIT WORK.

        PERFORM sub_final_table.

      ENDIF.
    ENDIF.
  ENDIF.
  CLEAR: w_edidc.
  REFRESH: i_edidc, i_edidd.

Read only

0 Likes
2,270

Hi,

Thanks for valuable reply. In my case I have to transfer assets from development to Quality. The assets which are already created into development. Do i need to hard code those values now?

Thanks,

Madhura

Read only

0 Likes
2,270

Are you going to do it within DEV and QA ? Then why you are not using SCC1 transaction. I am confused, not sure about you exact requirement.

Kuntal

Read only

0 Likes
2,270

Hi ,

Sorry, We have asset master data into Quality. We have to now transfer asset master from Quality server to development server for testing purposes. So how to transfer Master data for asset in this case?

We are transferring Material master, Vendor master and Asset master. Material master and Vendor master have standard transaction to send and get. But I could not find standard trasnaction to send asset from one logical system to other.

This is what is requirement.

Regards,

Madhura

Read only

0 Likes
2,270

For Asset there is no such T code, as I have said earlier. you can create a custom program as I have said. I think this is very unique requirement. This should be done though client mirroring from BASIS. I don't know, why you people are developing this. Wait for some more expert comment from this forum. May be some other people have any other idea.

Kuntal