cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert date format in R3 system

Former Member
0 Kudos

hi

i have the problem converting the date formate in bapi

for that i take value attribute value and map it

with

but it shows error

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Check here

Regards,Anilkumar

Former Member
0 Kudos

public void checkDateInPast(java.lang.String fieldName) {

//@@begin checkDateInPast()

IWDMessageManager msgMgr =

wdComponentAPI.getMessageManager();

Date theDate = (Date)

wdContext.currentContextElement().getAttributeValue(fieldName);

IWDAttributeInfo attributeInfo =

wdContext.getNodeInfo().getAttribute(fieldName);

if (theDate.after(new Date(System.currentTimeMillis()))) {

String fieldLabel =

wdContext.getNodeInfo().getAttribute(fieldName)

.getSimpleType().getFieldLabel();

msgMgr.reportContextAttributeMessage(

wdContext.currentContextElement(),

attributeInfo,

IMessageSimpleErrors.DATE_IS_IN_FUTURE,

newObject[] { fieldLabel, theDate },

true);