cancel
Showing results for 
Search instead for 
Did you mean: 

Creating AWT applications in MI

Former Member
0 Kudos

Hi,

I have created a meta data xml file from the sync bo definition. How do I create an AWT project from it.

When I try creating an application from the xml file it creates a jsp application by default.

Please let me know if any option needs to be enabled

Regards

Raja Sekhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Raja,

<reply edited by Arunkumar Ravi>

Give I_APPTYPE as AWT in MSD Creation stage.

<Pl. Don't bother this reply.>

Rgds

Ak.

Message was edited by: Arunkumar Ravi

I tired it again and it didn't work. Sorry to have mislead you.

Answers (1)

Answers (1)

kishorg
Advisor
Advisor
0 Kudos

Hi Raja,

How u created that MCD ?.

During MCD creation select

Component Type as Application

and AWT as Runtime Environment.

After that, export the meRepMeta.xml file to ur local system .

Then use this meRepMeta.xml file for application creation in NWDS.

let me know.

Regards

Kishor Gopinathan

Former Member
0 Kudos

Kishor,

The meRepMeta.xml file is exported from the SyncBO in transaction <b>merep_sbuilder</b>. where does it have the relation with the MCD? Could you please explain?

i had sent the same reply to Raja but later edited (it didn't seem to work:-( so, i'm kinda doubtful.

and NWDS seems to create only JSP for SmartSync App Wizard

Rgds

Ak.

kishorg
Advisor
Advisor
0 Kudos

Hi Arun,

In the SyncBO builder , we are exporting the meRepMeta.xml file with respect to our MCD(here the selection criteria is MCD itself).

In the MCD , we are specifying the SyncBOs required for our SmartSync Application.

We can see the Component type and Runtime Environment in this tag within the meRepMeta.xml file.

<Property name="RUNTIME">JSP</Property>

<Property name="TYPE">APPLICATION</Property>

I misunderstood ur doubt or ??..

Regards

Kishor Gopinathan

Former Member
0 Kudos

Kishor,

I understand perfectly. i had overlooked the exporting of xml.

now, coming to the NWDS import of XML, i tried to create one with the following XML file. and what i got was a JSP application. i guess Raja also shares the same problem as me. but i seem to miss something in the smart sync wizard.

can u explain this?

  <?xml version="1.0" encoding="utf-8" ?> 
- <MeRepApplication schemaVersion="1.1" id="MI_MCD" version="01">
  <Property name="CLIENT.BUILDNUMBER" /> 
  <Property name="C_APPLRESOLVE" /> 
  <Property name="DATA_VISIBLE_SHARED" /> 
  <Property name="EN">LANGUAGE</Property> 
  <Property name="E_APPLRESOLVE" /> 
  <Property name="FACADE_C_CLIENT">X</Property> 
  <Property name="FACADE_E_CLIENT">X</Property> 
  <Property name="HOMEPAGE.INVISIBLE">X</Property> 
  <Property name="INITVALUE" /> 
 <b> <Property name="RUNTIME">AWT</Property> 
  <Property name="TYPE">APPLICATION</Property> </b>
- <SyncBO id="Y_SYNCBO" version="2" type="download" allowCreate="false" allowModify="false" allowDelete="false" reqDirectSync="false" downloadOrder="1">
- <TopStructure name="TOP">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="SIGN" type="C" length="1" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="OPTION" type="C" length="2" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="LOW" type="D" length="8" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="HIGH" type="D" length="8" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
  </TopStructure>
  </SyncBO>
  </MeRepApplication>

rgds

ak

kishorg
Advisor
Advisor
0 Kudos

Hi Arun,

<<- <MeRepApplication schemaVersion="1.1" id="MI_MCD" version="01">

>>

Here MI_MCD is the MCD u have created.

<<

<Property name="RUNTIME">AWT</Property>

<Property name="TYPE">APPLICATION</Property>

>>

Component Type is Application

It is specified that , the Runtime needed here is AWT.

nd u can see the individual SyncBOs and their metadata information.

Hope u have configured the MI Home folder for AWT Runtime in NWDS.

Regards

Kishor Gopinathan

Former Member
0 Kudos

Kishor,

All you said have been done. i've been developing generic sync apps in AWT runtime so far. so where is hte missing link? any guesses?

AK

Former Member
0 Kudos

hello arun,

i guess that the MDK doesn't create you a framework for

AWT project. you have to create it on your own.

just implement the com.sap.ip.me.api.runtime.awt.AwtApplication

interface into your class.

regards

jo

Former Member
0 Kudos

Jo,

Creating an AWT app isn't the problem. but creating a Smart sync app in AWT framework using Smart Sync Wizard is the problem here.

Rgds

Ak.

Former Member
0 Kudos

hello arun,

SmartSync wizard doesn't support AWT project creation.

That's why it only ask you for the ServletName.

As workaround, you can create an AWT MI Project and other

separate SmartSync project that will generate the beans for

you. Copy the generated codes excluding the servlet implementation

to your AWT project...

regards

jo

Former Member
0 Kudos

hi Jo,

That explains it!

Thanks for the workaround. I guess Raja would also be viewing this thread!

Regards

Ak.