Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP code

Hi,

i need to some help. i have pseudo code and need to be conver in ABAP

this is the pseudo code.

Key Figures to add to cube - pseudo code:

1. DSM to PO

ZTSD_DSM_MCH.MENGE where ZTSD_DSM_SPLY.J_3ABSKZ = "B"

and ZTSD_DSM_MCH.J_3ASTAT = "Z"

- join the MCH and SPLY tables using the SPLY_KEY

2. Reserved to PO

J_3ABDBS.MENGE where J_3ABDBS.J_2AMSKZ = "B"

and J_3ABDBS.J_3ASTAT = "R"

3. DSM to ASN

ZTSD_DSM_MCH.MENGE where ZTSD_DSM_SPLY.J_3ABSKZ = "L"

and ZTSD_DSM_MCH.J_3ASTAT = "Z"

- join the MCH and SPLY tables using the SPLY_KEY

4. Reserved to ASN

J_3ABDBS.MENGE where J_3ABDBS.J_2AMSKZ = "L"

and J_3ABDBS.J_3ASTAT = "R"

5. DSM to On-Hand Inventory

ZTSD_DSM_MCH.MENGE where ZTSD_DSM_SPLY.J_3ABSKZ = "C"

and ZTSD_DSM_MCH.J_3ASTAT = "Z"

- join the MCH and SPLY tables using the SPLY_KEY

6. Reserved to On-Hand Inventory

J_3ABDBS.MENGE where J_3ABDBS.J_2AMSKZ = "C"

and J_3ABDBS.J_3ASTAT = "R"

7. Allocation Status F

J_3ABDBS.MENGE where J_3ABDBS.J_2AMSKZ = "C"

and J_3ABDBS.J_3ASTAT = "F"

8. Allocation Status D

J_3ABDBS.MENGE where J_3ABDBS.J_2AMSKZ = "C"

and J_3ABDBS.J_3ASTAT = "D"

Please help me.

Thanks

Not what you were looking for? View more on this topic or Ask a question