2011 Mar 11 6:44 PM
Hi everyone,
BEGIN OF ty_qty
zstatut_stock TYPE zstatut_stock,
menge TYPE menge_d,
END OF ty_qty,
BEGIN OF ty_article,
matnr TYPE matnr,
ean11 TYPE ean11,
lifnr TYPE lifnr,
st_qty TYPE ty_qqty,
END OF ty_article,
As you can see, I have a structure (st_qty TYPE ty_qty) inside the structure of ty_article (article=material)
I want to have my ST program to feed the two fields inside the structure [ST_QTY] but what I have tried does not work.
For some reasons, it does not like the following syntax:
<STATUS_STK> <tt:value ref="$art.st_qty-zstatut_stock"/> </STATUS_STK>
How can I do this ?
Here is more line of my ST program.
<tt:loop name="art" ref="$pdv.it_article">
<ARTICLE>
<REF_ART_SFR> <tt:value ref="$art.matnr"/> </REF_ART_SFR>
<COD_EAN> <tt:value ref="$art.ean11"/> </COD_EAN>
<COD_GRO> <tt:value ref="$art.lifnr"/> </COD_GRO>
<QTY>
<STATUS_STK> <tt:value ref="$art.st_qty-zstatut_stock"/> </STATUS_STK>
<QTY_STK> <tt:value ref="$art.st_qty-menge"/> </QTE_STK>
</QTY>
</ARTICLE>
</tt:loop>
2011 Mar 12 12:20 AM
Hi,
Try using dot instead of dash to separate the components. For example "$art.st_qty.zstatut_stock".
Search SAP help for topic "Addressing Subnodes". They give examples there like <tt:value ref="ROOT.STRUC2.COL2" />
Hopefully this will solve your issue.
Hi,
Try using dot instead of dash to separate the components. For example "$art.st_qty.zstatut_stock".
Search SAP help for topic "Addressing Subnodes". They give examples there like <tt:value ref="ROOT.STRUC2.COL2" />
Hopefully this will solve your issue.
2011 Mar 12 12:20 AM
Hi,
Try using dot instead of dash to separate the components. For example "$art.st_qty.zstatut_stock".
Search SAP help for topic "Addressing Subnodes". They give examples there like <tt:value ref="ROOT.STRUC2.COL2" />
Hopefully this will solve your issue.
2011 Mar 14 9:06 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |