Validating date in the format 081703 - possible?

灵魂废墟2022-10-04 11:39:541条回答

Validating date in the format 081703 - possible?
Hi,I've erm probably got a really simple question but my little brain can't figure out a solution.So here goes.Does anyone know whether the following date format can be checked via a FM in SAP.in YYYYMMDD the format would appear 20030817,but I'm recieving it in the format 081703?Any ideas?I suppose I could split it into YYYYMMDD format and then insert '20' at the begining,but I just thought I'd see if anyone had a better way of doing this.Thanks a lot.Lyra Belaqua

已提交,审核后显示!提交回复

共1条回复
kay9008 共回答了18个问题 | 采纳率83.3%
Hi,There is no way for a function module to know what is the format for sure, unless you specify it. 010203 for example could mean several things. Since you know exactly the format of the date (MMDDYY), putting it back in the right order (YYMMDD) would only take one line:Code: Select allCONCATENATE l_date+4(2) l_date(2) l_date+2(2) INTO l_new_date.So, even if there is a function module that does it, I'm not sure what more it could accomplish.As for the century, you could code the requirement very easily, but if you want to use the SAP logic, call the function CONVERSION_EXIT_GJAHR_INPUT with your 2 digit year and it will convert it in a 4 digit year. It'll add '20' if it's under 50 and '19' if it's 50 or more. That's the standard way a 2 digit fiscal year will be processed in SAP.I hope this helps. 查看原帖
1年前

相关推荐

英语翻译In addition,by validating the source of messages being d
英语翻译
In addition,by validating the source of messages being delivered to their subscribers,mobile operators can identify and close down bypass schemes,ensuring they do not lose revenue from delivery of content to their subscribers.
冬天冬天冬天1年前2
lllldd的呼吁 共回答了17个问题 | 采纳率100%
另外,靠校对订阅者订阅的信息来源,移动手机服务商可以辨别和关闭绕过(计费)的方案,保证他们不会因为递送内容给他们的订阅者而减少收入.
revenue 收入
英语翻译"You can remove this restriction by validating your emai
英语翻译
"You can remove this restriction by validating your email address from the My Account section of your account."
把这句话翻译成中文..Thank you very much!
best4last1年前3
babyspirrr 共回答了18个问题 | 采纳率83.3%
要解除这个限制,请到my ccount ,去启用你的电邮地址