cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tables for document Flow in FSD

arjun_swamy
Explorer
0 Kudos
4,709

Hi All,

I am new to SAP TM, I need to know the tables for the Document flow to determine the predecessor documents in FSD.

Please help in letting me know the table name or any FM or class which can be used.

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion

Hello arjun.swamy

First, you should not interact directly with database tables in TM. Business Object Framework is an abstraction layer to makes it unnecessary. You interact with all TM object through business object implementations. The business object for freight settlement documents is /SCMTMS/SUPPFREIGHTINVREQ. You can examine it's implementation in BOPF transaction and test it in BOBT.

Class /SCMTMS/CL_SFIR_DOC_FLOW provides GET_DOC_FLOW method to easily read FSD document flow. The most important parameters:

  • IV_DIRECTION = /SCMTMS/IF_DOC_FLOW-BOTH or /SCMTMS/IF_DOC_FLOW-FORWARD or /SCMTMS/IF_DOC_FLOW-BACKWARDS
  • IV_RELSHP (optional) - /SCMTMS/IF_DOC_FLOW-PREDECESSOR, /SCMTMS/IF_DOC_FLOW-SUCCESOR
  • IV_NODE_KEY = /scmtms/if_suppfreightinvreq_c=>sc_node-root
  • IT_KEY - internal table of FSD keys; notice that these are internal keys, not FDS numbers!

The document flow will be returned in CT_DOC_FLOW and CT_DOC_FLOW_RELATION

Best regards

Dominik Tylczynski

Answers (0)