Integration Technologies - JDE1 (MOSC)

MOSC Banner

Date Typeconversion in BSSV

edited Jan 12, 2016 10:04AM in Integration Technologies - JDE1 (MOSC) 1 commentAnswered


Hi,

I am developing a custom Provider BSSV as wrapper BSSV for a BSFN which needs multiple parameters along with Date parameter to passed from external system.

When I pass Date parameter  from Published  VO class to Internal VO class , I am facing Type conversion issues in BSSV. I have used below code in Published VO.

 

public void setDateUpdated(Date dateUpdated) {      

        if(dateUpdated != null){

            Calendar tmpDate = Calendar.getInstance();

           tmpDate.setTime(dateUpdated);         

            this.dateUpdated = tmpDate

            } 

and  below code in Internal VO.

   public void setJdDateUpdated_UPMJ(Calendar jdDateUpdated_UPMJ) {

        if (jdDateUpdated_UPMJ != null) {

            this.jdDateUpdated_UPMJ = jdDateUpdated_UPMJ.getTime();

        }

    }

I have imported java.util.Date & java.util.Calendar pacakages in both the classes. In my test class, when I pass any type of Date parameter it throws build error. Is there any code apart from above to be included for Date typeconversion in BSSV? Please suggest.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center