Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8902

Re: ABC template logic depends on costing date

$
0
0

Hi Peter.

I also don't understand the reason of your requirement.  If you want to get the costing date (from / to)

try the following code, check my screenshots:

 

 

CK11N

ScreenHunter_04 Jun. 16 22.53.jpg

 

This is the Debug in a Zfunction of a Template:

 

ScreenHunter_05 Jun. 16 22.54.jpg

As you see,field <FS_TABLA>[1]-KADAT is the From date and in <FS_TABLA>[1]-BIDAT is the end date. (Read the 1st record) of the table.

 

 

 

This is the code (i created now when see your requirement), i never try in a productive system but guess it works (test carefully)

 

FIELD-SYMBOLS: <fs_tabla> TYPE table.

v_tabla = '(SAPMC64H)T_KVMK[]'.

 

 

* Asignacion de tabla a un field-symbol

ASSIGN (v_tabla) TO <fs_tabla>.

CHECK sy-subrc EQ 0.

 

* <FS_TABLA>[1]-KADAT  >> from

* <FS_TABLA>[1]-BIDAT >>> to

 

 

PS> I do the example with a copy of standard template function NumberOfWorkCenters / abap function K_ABC_INFO_ROUTING.

 

Arturo.


Viewing all articles
Browse latest Browse all 8902

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>