Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Object dependency to read substring

$
0
0

Hi.

 

Is it possible to evaluate a substring in an object dependency? I want to write a simple OD that defaults a char field to a month code (the 2 digit month) based on another field which stores a date.


Something similar to this:

 

$set_default ($self,Z_PUB_MNTH,'01')

    If Z_ON_SALE_DATE+4(2) = '01'                   'date stored as string yyyyddmm


 

I'm getting these errors:

 

E28031 Comparison operator required

E28024 Syntax error in simple action/procedure


 

Any help would be much appreciated. Many thanks.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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