Quantcast
Channel: SCN : All Content - Web Dynpro Java
Viewing all 1288 articles
Browse latest View live

Downloading table data into Excel sheet - Webdynpro Java

$
0
0

Hi All,


We have developed a custom webdynpro application that executes an RFC and displays data in Table UI element. We have provided a button to download the data in excel sheet. When data is huge like, total number of rows filled up in the table are around 11,000 & columns are 32, and when user tries to download whole 11000 rows in excel sheet, the timeout occurs after 20 mins due to huge data. But when I apply filtering on the same table data and then try to download some 700 rows out of 11000 into excel, it took me around 3.36 mins.

 

If anyone encountered such scenario in past, please guide in this regard to speed-up the download to excel functionality or suggest any other alternative.



We are using 7.3 Portal and tableUtilities java class for export to excel functionality.


Thanks,

Amol.


Change ARFC2 Model RFC Destination at runtime

$
0
0


Hi All,

 

I am upgrading Web dynpro JAVA applciations from EP7.0 to EP7.31. I have a application which will connects at same time two ECC systems based on applciation platforms. With JCo destinations its working perfectly. now I have reimported Model and migrated to ARFC2 model and replaced Jco destinations with RFC destinations. I am passing same way the application parameters, But its not wsitching backend system.

 

Application URL:

https://host:port/webdynpro/resources/com.jnj.mercury/webuarinternalsarf/WebUarInternalSerApp?sap-wd-arfc-

useSys=WD_ECC_MODELDATA_DEST:RDV&sap-wd-arfc-useSys=WD_ECC_RFC_METADATA_DEST:RDV

 

 

I am following below help link and restarted my portal system also no luck.

 

http://help.sap.com/saphelp_nw73/helpdata/en/4c/23225735285791e10000000a15822b/frameset.htm

 

  • sap-wd-arfc-useSys
    • You use the parameter to map an existing logical system name to another logical system name. You can use this mapping function with a single Adaptive RFC Model to access different backend systems using a single JEE installation. This mapping is valid for the current application instance only.

    •   Note that mapping definitions can only be changed when WD application is not in running mode.

 

Regards,

Lakshmi Narayana Kodavati.

Roles, Groups and User information from the Enterprise portal 7.0 using Webdynpro JAVA

$
0
0

Hello Friends,

 

The purpose of this document is to explain

 

How to get Roles, Groups and User information from the Enterprise portal 7.0 and Generate 3 different file (Role.txt, Groups.txt and Users.txt). After creation of these 3 files will receives a mail.

 

For Example

Roles: name of the role

Which groups the role has

Which users the role has

2.JPG

3.JPG

Groups: name of the group

Which users the group has

Which roles the group has

4.JPG

5.JPG

Users: name of the user

Which groups the user has

Which roles the user is has

6.JPG

7.JPG

 

WebDynpro JAVA Application Development Steps:

UI in View:-

                         9.JPG         

Context in Component Controller and View

                         8.JPG

Methods in View

                         10.JPG

 

Method in Component Controller:-

                           11.JPG

 

Code in View:-

 

package sap.corp.view.v_generateugrfile.com;

 

import sap.corp.view.v_generateugrfile.com.wdp.IPrivateV_GenerateUGRFile;

 

import java.util.Properties;

 

import javax.activation.DataSource;

 

import javax.activation.FileDataSource;

 

import java.text.SimpleDateFormat;

 

import java.io.BufferedWriter;

 

import java.io.File;

 

import java.io.FileWriter;

 

import java.io.IOException;

 

import java.util.Date;

 

import javax.activation.DataHandler;

 

import java.text.DecimalFormat;

 

import java.text.NumberFormat;

 

import javax.mail.BodyPart;

 

import javax.mail.Message;

 

import javax.mail.MessagingException;

 

import javax.mail.Multipart;

 

import javax.mail.Session;

 

import javax.mail.Transport;

 

import javax.mail.internet.InternetAddress;

 

import javax.mail.internet.MimeBodyPart;

 

import javax.mail.internet.MimeMessage;

 

import javax.mail.internet.MimeMultipart;

 

import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;

 

import com.sap.tc.webdynpro.progmodel.repository.IWDControllerInfo;

 

import com.sap.tc.webdynpro.progmodel.repository.IWDEventHandlerInfo;

 

import com.sap.tc.webdynpro.services.session.api.IWDConfirmationDialog;

 

publicclass V_GenerateUGRFile

 

  /**

   *Logginglocation.

   */

  privatestaticfinal com.sap.tc.logging.Location logger =

  com.sap.tc.logging.Location.getLocation(V_GenerateUGRFile.class);

  static

 

   //@@begin id

  String id = "$Id$";

   //@@end

  com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);

 

  /**

   *PrivateaccesstothegeneratedWebDynprocounterpart

   *forthiscontrollerclass.  </p>

   *

   *Use<code>wdThis</code>togaintypedaccesstothecontext,

   *totriggernavigationviaoutboundplugs,togetandenable/disable

   *actions,firedeclaredevents,andaccessusedcontrollersand/or

   *componentusages.

   *

   *@seesap.corp.view.v_generateugrfile.com.wdp.IPrivateV_GenerateUGRFileformoredetails

   */

  privatefinal IPrivateV_GenerateUGRFile wdThis;

  /**

   *Rootnodeofthiscontroller'scontext.</p>

   *

   *Providestypedaccessnotonlytotheelementsoftherootnode

   *butalsotoallnodesinthecontext(methodsnode<i>XYZ</i>())

   *andtheircurrentlyselectedelement(methodscurrent<i>XYZ</i>Element()).

   *Italsofacilitatesthecreationofnewelementsforallnodes

   *(methodscreate<i>XYZ</i>Element()).</p>

   *

   *@seesap.corp.view.v_generateugrfile.com.wdp.IPrivateV_GenerateUGRFile.IContextNodeformoredetails.

   */

  privatefinal IPrivateV_GenerateUGRFile.IContextNode wdContext;

  /**

   *Ashortcutfor<code>wdThis.wdGetAPI()</code>.</p>

   *

   *RepresentsthegenericAPIofthegenericWebDynprocounterpart

   *forthiscontroller.</p>

   */

  privatefinal com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;

  /**

   *Ashortcutfor<code>wdThis.wdGetAPI().getComponent()</code>.</p>

   *

   *RepresentsthegenericAPIoftheWebDynprocomponentthiscontroller

   *belongsto.Canbeusedtoaccessthemessagemanager,thewindowmanager,

   *toadd/removeeventhandlersandsoon.</p>

   */

  privatefinal com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;

  public V_GenerateUGRFile(IPrivateV_GenerateUGRFile wdThis)

 

   this.wdThis = wdThis;

   this.wdContext = wdThis.wdGetContext();

   this.wdControllerAPI = wdThis.wdGetAPI();

   this.wdComponentAPI = wdThis.wdGetAPI().getComponent();

 

  //@@begin javadoc:wdDoInit()

  /**Hookmethodcalledtoinitializecontroller.*/

  //@@end

  publicvoid wdDoInit()

 

   //@@begin wdDoInit()

   //@@end

 

  //@@begin javadoc:wdDoExit()

  /**Hookmethodcalledtocleanupcontroller.*/

  //@@end

  publicvoid wdDoExit()

 

   //@@begin wdDoExit()

   //@@end

 

  //@@begin javadoc:wdDoModifyView

  /**

   *Hookmethodcalledtomodifyaviewjustbeforerendering.

   *Thismethodconceptuallybelongstotheviewitself,nottothe

   *controller(cf.MVCpattern).

   *Itismadestatictodiscourageawayofprogrammingthat

   *routinelystoresreferencestoUIelementsininstancefields

   *foraccessbytheviewcontroller'seventhandlers,andsoon.

   *TheWebDynproprogrammingmodelrecommendsthatUIelementscan

   *onlybeaccessedbycodeexecutedwithinthecalltothishookmethod.

   *

   *@paramwdThisGeneratedprivateinterfaceoftheview'scontroller,as

   *   providedbyWebDynpro.Providesaccesstotheviewcontroller's

   *   outgoingcontrollerusages,etc.

   *@paramwdContextGeneratedinterfaceoftheview'scontext,asprovided

   *   byWebDynpro.Providesaccesstotheview'sdata.

   *@paramviewTheview'sgenericAPI,asprovidedbyWebDynpro.

   *   ProvidesaccesstoUIelements.

   *@paramfirstTimeIndicateswhetherthehookiscalledforthefirsttime

   *   duringthelifetimeoftheview.

   */

  //@@end

  publicstaticvoid wdDoModifyView(IPrivateV_GenerateUGRFile wdThis, IPrivateV_GenerateUGRFile.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

 

   //@@begin wdDoModifyView

   //@@end

 

  //@@begin javadoc:sendMail()

  /**Declaredmethod.*/

  //@@end

  publicvoid sendMail( java.lang.String bodyText, java.lang.String subject )

 

   //@@begin sendMail()

 

Properties properties = new Properties();

  // Setup mail server

properties.setProperty("mail.smtp.host", host);

  // Get the default Session object.

Session session = Session.getInstance(properties, null);

  try{

  // Create a default MimeMessage object.

MimeMessage message = new MimeMessage(session);

  // Set From: header field of the header.

message.setFrom(new InternetAddress(emailFrom));

  // Set To: header field of the header.

message.setRecipient(Message.RecipientType.TO,new InternetAddress(emailTO));

  // Set Subject: header field

 

  // Now set the actual message

 

  // Send message

 

} catch (MessagingException mex) {

 

wdComponentAPI.getMessageManager().reportException("Exception In sendMail():"+mex.getMessage(), false);

 

   //@@end

 

  //@@begin javadoc:sendEmailAttachment()

  /**Declaredmethod.*/

  //@@end

  publicvoid sendEmailAttachment( java.lang.String bodytxt, java.lang.String subject )

 

   //@@begin sendEmailAttachment()

 

  // Setup mail server

properties.setProperty("mail.smtp.host", host);

  // Get the default Session object.

 

  try{

  // Create a default MimeMessage object.

MimeMessage message = new MimeMessage(session);

  // Set From: header field of the header.

message.setFrom(new InternetAddress(emailFrom));

  // Set To: header field of the header.

message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailTO));

  // Set Subject: header field

message.setSubject("This is the Subject Line!");

  // Create the message part

BodyPart messageBodyPart = new MimeBodyPart();

  // Fill the message

messageBodyPart.setText("This is message body");

  // Create a multipar message

Multipart multipart = new MimeMultipart();

  // Set text message part

 

  // Part two is attachment

messageBodyPart = new MimeBodyPart();

  // String filename = "D://Work//error.log"

DataSource source = new FileDataSource(errorLog);

messageBodyPart.setDataHandler(new DataHandler(source));

 

  // Send the complete message parts

 

  // Send message

 

} catch (MessagingException mex) {

 

wdComponentAPI.getMessageManager().reportException("Exception In sendEmailAttachment():"+mex.getMessage(), false);

 

   //@@end

 

  //@@begin javadoc:onActiongenerateUGRfile(ServerEvent)

  /**Declaredvalidatingeventhandler.*/

  //@@end

  publicvoid onActiongenerateUGRfile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

 

   //@@begin onActiongenerateUGRfile(ServerEvent)

 

if(wdContext.currentContextElement().getEmail()==null ||(emailTO == null || emailTO.trim().length() == 0)){

wdComponentAPI.getMessageManager().reportException("Please set the E-Mail before Before Start the Script",true);

} else

 

IWDEventHandlerInfo evtHndlr = controllerInfo.findInEventHandlers("Start_Script_Canceled");

String confTextBody = "You are about to Create New" +"sqlStatement"+ "File, Are you sure?";

IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(confTextBody,evtHndlr,"No, Cancel");

evtHndlr = controllerInfo.findInEventHandlers("Start_Script_Confirmed");

confDialog.addChoice(evtHndlr, "Yes, Confirm");

confDialog.setTitle("Start_Script_Confirmed Confirmation?");

 

   //@@end

 

  //@@begin javadoc:onActionsetEmail(ServerEvent)

  /**Declaredvalidatingeventhandler.*/

  //@@end

  publicvoid onActionsetEmail(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

 

   //@@begin onActionsetEmail(ServerEvent)

 

if (emailTO == null || emailTO.trim().length() == 0) {

wdComponentAPI.getMessageManager().reportException("Please Set the Email",false);

} else {

if (emailTO.matches("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)"+"@sap.com")) {

wdComponentAPI.getMessageManager().reportSuccess("Email Successfully Updated.");

} else {

wdComponentAPI.getMessageManager().reportWarning("Email Address is not Valid.");

 

   //@@end

 

  //@@begin javadoc:Start_Script_Canceled(ServerEvent)

  /**Declaredvalidatingeventhandler.*/

  //@@end

  publicvoid Start_Script_Canceled(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

 

   //@@begin Start_Script_Canceled(ServerEvent)

   //@@end

 

  //@@begin javadoc:Crawl_Resources(ServerEvent)

  /**Declaredvalidatingeventhandler.*/

  //@@end

  publicvoid Crawl_Resources(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

 

   //@@begin Crawl_Resources(ServerEvent)

BufferedWriter logFile =null;

 

 

NumberFormat formatter = new DecimalFormat("#0.00000");

long endTime = System.currentTimeMillis();

String mailSub = "Generated Users,Group & Roles Files Script";

String mailBody = "Dear User,\n\n"

+ "New Script has saved under path c:\\Users_Group_Roles\\ \n\n"

+ "Total Number of Users in Portal:" +wdContext.nodeUserTable().size()+"\n"

+ "Total Number of Groups in Portal:"+wdContext.nodeGroupTable().size()+"\n"

+ "Total Number of Roles in Portal:"+wdContext.nodeRoleTable().size()+"\n\n"

+"Total Processing Time is: " + formatter.format((endTime - startTime) / 1000d) + " seconds\n\n"

+ "Note: This is an automated notification, please do not reply.";

 

//long endTime = System.currentTimeMillis();

//NumberFormat formatter = new DecimalFormat("#0.00000");

wdComponentAPI.getMessageManager().reportSuccess("Total Processing Time is: " + formatter.format((endTime - startTime) / 1000d) + " seconds");

   //@@end

 

  //@@begin javadoc:Start_Script_Confirmed(ServerEvent)

  /**Declaredvalidatingeventhandler.*/

  //@@end

  publicvoid Start_Script_Confirmed(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

 

   //@@begin Start_Script_Confirmed(ServerEvent)

try {

 

IWDEventHandlerInfo evtHndlr = controllerInfo.findInEventHandlers("Crawl_Resources");

String confTextBody = "New Import Script has created Successfully.\n\n"

+"After you select OK the script will begin the script will take approximate 2 hours or more to complete.\n\n"

+"When it is completed you will receive an email.";

IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(confTextBody,evtHndlr,"Ok");

confDialog.setTitle("Start Script ?");

 

catch (Exception um) {

// TODO Auto-generated catch block

 

wdComponentAPI.getMessageManager().reportException("Exception In Start_Script_Confirmed():"+um.getMessage(), false);

 

   //@@end

 

  /*

 

  //@@begin others

 

String host = "sap.com";

String emailFrom = "tech.support@sap.com";

File errorLog = new File("c:\\Users_Group_Roles\\error_"+ new SimpleDateFormat("MM-dd-yyyy HHmm").format(new Date())+ ".log");

IWDMessageManager msgMgr = null;

long startTime = System.currentTimeMillis();

  //@@end

 

 

 

Code in Component Controller:-

 

 

package sap.corp.comp.co_generateugrfile.com;

 

import java.io.BufferedWriter;

 

import java.io.File;

 

import java.io.FileWriter;

 

import java.io.IOException;

 

import java.text.SimpleDateFormat;

 

import java.util.Date;

 

import java.util.Iterator;

 

import com.sap.security.api.IGroup;

 

import com.sap.security.api.IGroupFactory;

 

import com.sap.security.api.IGroupSearchFilter;

 

import com.sap.security.api.IRole;

 

import com.sap.security.api.IRoleFactory;

 

import com.sap.security.api.IRoleSearchFilter;

 

import com.sap.security.api.ISearchAttribute;

 

import com.sap.security.api.ISearchResult;

 

import com.sap.security.api.IUser;

 

import com.sap.security.api.IUserFactory;

 

import com.sap.security.api.IUserSearchFilter;

 

import com.sap.security.api.UMFactory;

 

import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;

 

import sap.corp.comp.co_generateugrfile.com.wdp.IPrivateCO_GenerateUGRFile;

 

publicclass CO_GenerateUGRFile

 

  /**

   *Logginglocation.

   */

  privatestaticfinal com.sap.tc.logging.Location logger =

  com.sap.tc.logging.Location.getLocation(CO_GenerateUGRFile.class);

  static

 

   //@@begin id

  String id = "$Id$";

   //@@end

  com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);

 

  /**

   *PrivateaccesstothegeneratedWebDynprocounterpart

   *forthiscontrollerclass.  </p>

   *

   *Use<code>wdThis</code>togaintypedaccesstothecontext,

   *totriggernavigationviaoutboundplugs,togetandenable/disable

   *actions,firedeclaredevents,andaccessusedcontrollersand/or

   *componentusages.

   *

   *@seesap.corp.comp.co_generateugrfile.com.wdp.IPrivateCO_GenerateUGRFileformoredetails

   */

  privatefinal IPrivateCO_GenerateUGRFile wdThis;

  /**

   *Rootnodeofthiscontroller'scontext.</p>

   *

   *Providestypedaccessnotonlytotheelementsoftherootnode

   *butalsotoallnodesinthecontext(methodsnode<i>XYZ</i>())

   *andtheircurrentlyselectedelement(methodscurrent<i>XYZ</i>Element()).

   *Italsofacilitatesthecreationofnewelementsforallnodes

   *(methodscreate<i>XYZ</i>Element()).</p>

   *

   *@seesap.corp.comp.co_generateugrfile.com.wdp.IPrivateCO_GenerateUGRFile.IContextNodeformoredetails.

   */

  privatefinal IPrivateCO_GenerateUGRFile.IContextNode wdContext;

  /**

   *Ashortcutfor<code>wdThis.wdGetAPI()</code>.</p>

   *

   *RepresentsthegenericAPIofthegenericWebDynprocounterpart

   *forthiscontroller.</p>

   */

  privatefinal com.sap.tc.webdynpro.progmodel.api.IWDComponent wdControllerAPI;

  /**

   *Ashortcutfor<code>wdThis.wdGetAPI().getComponent()</code>.</p>

   *

   *RepresentsthegenericAPIoftheWebDynprocomponentthiscontroller

   *belongsto.Canbeusedtoaccessthemessagemanager,thewindowmanager,

   *toadd/removeeventhandlersandsoon.</p>

   */

  privatefinal com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;

  public CO_GenerateUGRFile(IPrivateCO_GenerateUGRFile wdThis)

 

   this.wdThis = wdThis;

   this.wdContext = wdThis.wdGetContext();

   this.wdControllerAPI = wdThis.wdGetAPI();

   this.wdComponentAPI = wdThis.wdGetAPI().getComponent();

 

  //@@begin javadoc:wdDoInit()

  /**Hookmethodcalledtoinitializecontroller.*/

  //@@end

  publicvoid wdDoInit()

 

   //@@begin wdDoInit()

   //@@end

 

  //@@begin javadoc:wdDoExit()

  /**Hookmethodcalledtocleanupcontroller.*/

  //@@end

  publicvoid wdDoExit()

 

   //@@begin wdDoExit()

   //@@end

 

  //@@begin javadoc:wdDoPostProcessing()

  /**

   *Hookcalledtohandledataretrievalerrorsbeforerendering.

   *

   *AfterdoModifyView(),theWebDynproFrameworkgetsallcontextdataneeded

   *forrenderingbyvalidatingthecontexts(whichinturncallsthesupply

   *functionsandsupplyingrelationroles).Inthishook,theapplication

   *shouldhandletheerrorswhichoccurredduringvalidationofthecontexts.

   *

   *Usingpreorderdepth-firsttraversal,thishookiscalledforallcomponent

   *controllersstartingwiththecurrentrootcomponent.

   *

   *Permittedoperations:

   *-Flushingmodelqueue

   *-Creatingmessages

   *-Readingcontextandmodeldata

   *

   *Forbiddenoperations:

   *-Invalidatingmodeldata

   *-Manipulatingthecontext

   *-Firingoutboundplugs

   *-Creatingcomponents

   *-...

   *

   *@paramisCurrentRoottrueifthisistherootofthecurrentrequest

   */

  //@@end

  publicvoid wdDoPostProcessing(boolean isCurrentRoot)

 

   //@@begin wdDoPostProcessing()

   //@@end

 

  //@@begin javadoc:wdDoBeforeNavigation()

  /**

   *Hookbeforethenavigationphasestarts.

   *

   *Thishookallowsyoutoflushthemodelqueueandhandleany

   *errorsthatoccur.Firingoutboundplugsisallowedinthishook.

   *

   *Usingpreorderdepth-firsttraversal,thishookiscalledforallcomponent

   *controllersstartingwiththecurrentrootcomponent.

   *

   *@paramisCurrentRoottrueifthisistherootofthecurrentrequest

   */

  //@@end

  publicvoid wdDoBeforeNavigation(boolean isCurrentRoot)

 

   //@@begin wdDoBeforeNavigation()

   //@@end

 

  //@@begin javadoc:wdDoApplicationStateChange()

  /**

   *Hookthatinformstheapplicationaboutastatechange.

   *<p>

   *Thishookiscallede.g.totelltheapplicationthatwillbe

   *<ul>

   *  <li>leftviaasuspendplugandthereforeshouldgointoasuspend/sleep

   *   modewithminimalneedofresources.errorsthatoccur.Firing

   *   outboundplugsisallowedinthishook.

   *  <li>leftduetoatimeoutandcouldwriteit'sstatetoadatabaseifthe

   *   usercomesbacklateron

   *</ul>

   *

   *TheconcretereasonisavailableviaIWDApplicationStateChangeInfo

   *<p>

   *<b>Important</b>:Thishookiscalledforthetoplevelcomponentonly!

   *

   *@paramstateChangeInfocontainstheinformationaboutthenatureofthestatechange

   *@paramstateChangeReturnallowstheapplicationtoaskforadifferentstatechange.

   *   Theframeworkisallowedtoignoreitconsideringi.e.thecurrentresourcessituation.

   */

  //@@end

  publicvoid wdDoApplicationStateChange(com.sap.tc.webdynpro.progmodel.api.IWDApplicationStateChangeInfo stateChangeInfo, com.sap.tc.webdynpro.progmodel.api.IWDApplicationStateChangeReturn stateChangeReturn)

 

   //@@begin wdDoApplicationStateChange()

   //@@end

 

  //@@begin javadoc:generate_User_Group_Role_Scriptfile()

  /**Declaredmethod.*/

  //@@end

  publicvoid generate_User_Group_Role_Scriptfile( java.io.BufferedWriter logFile )

 

   //@@begin generate_User_Group_Role_Scriptfile()

 

  String schCriteriaText ="*";

if (schCriteriaText == null || schCriteriaText.trim().length() == 0) {

schCriteriaText = "*";

 

  try

 

groupFilt.setUniqueName(schCriteriaText.trim(), ISearchAttribute.LIKE_OPERATOR, false);

 

//String grpId = "";

//String grpDesc = "";

//String grpRole = "";

 

if (result.size() > 0)

 

if(result.getState() == ISearchResult.SEARCH_RESULT_OK)

 

File dir = new File("c:\\Users_Group_Roles");

File file = new File("c:\\Users_Group_Roles\\"+"Groups"+"_"+ new SimpleDateFormat("MM-dd-yyyy HHmm").format(new Date())+ ".log");

FileWriter fw = new FileWriter(file,true);

logFile = new BufferedWriter(fw);

while(result.hasNext())

 

StringBuffer getGroupID =new StringBuffer();

StringBuffer getGroupDesc =new StringBuffer();

StringBuffer getGroupUser =new StringBuffer();

StringBuffer getGroupRole=new StringBuffer();

 

//grpTable.setDisplayName(thisGroup.getDisplayName());

 

//getGroupDesc.append(thisGroup.getDescription());

 

if(grpDesc!=null)

 

}else{

getGroupDesc.append("");

 

//wdComponentAPI.getMessageManager().reportSuccess("---getGroupID----:"+getGroupID);

//wdComponentAPI.getMessageManager().reportSuccess("---getGroupDesc----:"+getGroupDesc);

 

//grpTable.setUniqueID(thisGroup.getUniqueID());

 

//Iterator itrUserName = thisGroup.getUserMembers(true);

Iterator itrUserName = thisGroup.getUserMembers(true);

Iterator itrRoleName = thisGroup.getRoles(true);

while(itrUserName.hasNext())

 

//grpTable.setUserInfo(itrUserName.next().toString());

 

int lindex=str.lastIndexOf(":");

 

getGroupUser.append(str+",");

//getGroupUser.append(itrUserName.next().toString()+",");

//wdComponentAPI.getMessageManager().reportSuccess("---getGroupUser----:"+getGroupUser);

 

int GroupUserindex=getGroupUser.lastIndexOf(",");

String grpUserBuffer="";

String grpUser = "";

if(GroupUserindex!=-1)

 

while(itrRoleName.hasNext())

 

//grpTable.setRoleInfo(irole.getUniqueName());

if(!irole.getUniqueName().equalsIgnoreCase(""))

 

int lindex=str.lastIndexOf("/rl");

 

//wdComponentAPI.getMessageManager().reportSuccess("---str----:"+str);

getGroupRole.append(str+",");

//getGroupRole.append(irole.getUniqueName()+",");

 

//StringBuffer buffer=getGroupRole;

int GroupRoleindex=getGroupRole.lastIndexOf(",");

String grpRoleBuffer="";

if(GroupRoleindex!=-1)

 

//wdComponentAPI.getMessageManager().reportSuccess("---role----:"+index);

//wdContext.nodeGroupTable().addElement(grpTable);

 

String sqlGroupStatement = "";

 

String newLine = System.getProperty("line.separator");//This will retrieve line separator dependent on OS.

 

sqlGroupStatement += "INSERT INTO TableName(GID, DESCRIPTION) VALUES ";

sqlGroupStatement += "('"+getGroupID+ "', '"+getGroupDesc+"');"+newLine+"";

 

String delimiter = ",";

if(grpUserBuffer.equalsIgnoreCase(""))

 

}else

 

for(int i=0; i<groupUserParts.length;i++)

 

//grpUser = parts[i];

//wdComponentAPI.getMessageManager().reportSuccess("---grpUser----:"+grpUser);

//wdComponentAPI.getMessageManager().reportSuccess("---parts----:"+parts[i].length());

sqlGroupStatement += "INSERT INTO TableName(GID, UID) VALUES";

sqlGroupStatement += "('"+getGroupID+"', '"+groupUserParts[i]+"');"+newLine+"";

 

if(grpRoleBuffer.equalsIgnoreCase(""))

 

else

 

for(int i=0; i<roleParts.length;i++)

 

sqlGroupStatement += "INSERT INTO TableName(GID, RID) VALUES ";

sqlGroupStatement += "('"+ getGroupID + "', '"+roleParts[i]+ "' );"+newLine+"";

 

long srtTime = System.currentTimeMillis();

if (!dir.exists())

 

try

 

//logFile.write("[group]"+newLine); 

 

//wdThis.generate_User_Group_Role_Scriptfile(logFile);

 

catch(IOException ex)

 

wdComponentAPI.getMessageManager().reportException("Exception In Roles():"+ex.getMessage(), false);

 

}else

 

msgMgr.reportWarning("No element found.");

 

roleSrcFilter.setUniqueName(schCriteriaText.trim(),ISearchAttribute.LIKE_OPERATOR,false);

 

if (srhResults.size() > 0){

if(srhResults.getState() == ISearchResult.SEARCH_RESULT_OK) {

File dir = new File("c:\\Users_Group_Roles");

File file = new File("c:\\Users_Group_Roles\\"+"Roles"+"_"+ new SimpleDateFormat("MM-dd-yyyy HHmm").format(new Date())+ ".log");

FileWriter fw = new FileWriter(file,true);

logFile = new BufferedWriter(fw);

while(srhResults.hasNext()) {

StringBuffer getRoleID=new StringBuffer();

StringBuffer getRoleDesc=new StringBuffer();

StringBuffer getRoleGroup =new StringBuffer();

StringBuffer getRoleUser =new StringBuffer();

 

//getRoleDesc.append(thisRole.getDescription());

 

if(roleDesc!=null){

 

}else{

getRoleDesc.append("");

 

Iterator itrUserName = thisRole.getUserMembers(true);

Iterator itrGroupName = thisRole.getGroupMembers(true);

while(itrUserName.hasNext())

 

//rTable.setUserInfo(itrUserName.next().toString());

 

int lindex=str.lastIndexOf(":");

 

getRoleUser.append(str+",");

//getRoleUser.append(itrUserName.next().toString()+",");

//wdComponentAPI.getMessageManager().reportSuccess("---itrUserName.hasNext()----:"+itrUserName.next());

 

int roleUserindex=getRoleUser.lastIndexOf(",");

String roleUserBuffer="";

if(roleUserindex!=-1)

 

while(itrGroupName.hasNext())

 

  //rTable.setGroupInfo(itrGroupName.next().toString());

//getRoleGroup.append(itrGroupName.next().toString()+",");

 

int lindex=str.lastIndexOf(":");

 

getRoleGroup.append(str+",");

//wdComponentAPI.getMessageManager().reportSuccess("---itrGroupName.hasNext()----:"+itrGroupName.next());

 

int roleGroupindex=getRoleGroup.lastIndexOf(",");

String roleGroupBuffer="";

if(roleGroupindex!=-1)

 

//wdContext.nodeRoleTable().addElement(rTable);

String sqlRoleStatement = "";

 

String newLine = System.getProperty("line.separator");//This will retrieve line separator dependent on OS.

 

sqlRoleStatement += "INSERT INTO TableName(RID, DESCRIPTION) VALUES";

sqlRoleStatement += "('"+ getRoleID +"', '"+ getRoleDesc +"');"+newLine+"";

 

String delimiter = ",";

if(roleGroupBuffer.equalsIgnoreCase(""))

 

}else

 

for(int i=0; i<roleGroupParts.length;i++)

 

sqlRoleStatement += "INSERT INTO TableName(RID, GID) VALUES";

sqlRoleStatement += "('"+getRoleID+ "', '"+roleGroupParts[i]+ "' );"+newLine+"";

 

if(roleUserBuffer.equalsIgnoreCase(""))

 

}else{

 

for(int i=0; i<roleUserParts.length;i++)

 

sqlRoleStatement += "INSERT INTO TableName(RID, UID) VALUES ";

sqlRoleStatement += "('"+ getRoleID + "', '"+roleUserParts[i]+ "' );"+newLine+"";

 

long srtTime = System.currentTimeMillis();

if (!dir.exists())

 

try

 

//logFile.write("[role]"+newLine); 

 

//wdThis.generate_User_Group_Role_Scriptfile(logFile);

 

catch(IOException ex)

 

wdComponentAPI.getMessageManager().reportException("Exception In Roles():"+ex.getMessage(), false);

 

} else {

wdComponentAPI.getMessageManager().reportWarning("No element found.");

 

usrSrchFilter.setUniqueName(schCriteriaText.trim(),ISearchAttribute.LIKE_OPERATOR,false);

 

if (srchResluts.size() >0){

if(srchResluts.getState() == ISearchResult.SEARCH_RESULT_OK) {

File dir = new File("c:\\Users_Group_Roles");

File file = new File("c:\\Users_Group_Roles\\"+"User"+"_"+ new SimpleDateFormat("MM-dd-yyyy HHmm").format(new Date())+ ".log");

FileWriter fw = new FileWriter(file,true);

logFile = new BufferedWriter(fw);

while (srchResluts.hasNext()){

StringBuffer getuserID =new StringBuffer();

StringBuffer getlastName =new StringBuffer();

StringBuffer getfirstName =new StringBuffer();

StringBuffer getemailID =new StringBuffer();

StringBuffer getRoleInfo=new StringBuffer();

StringBuffer getGroupInfo =new StringBuffer();

 

if(lastName!=null){

 

}else{

getlastName.append("");

 

if(firstName!=null){

 

}else{

getfirstName.append("");

 

if(eMail!=null){

 

}else{

getemailID.append("");

 

//String getLogonID = sapUser.getUserAccounts()[0].getLogonUid();

//usrTable.setUserNames(sapUser.getLastName()+','+" "+sapUser.getFirstName());

//wdComponentAPI.getMessageManager().reportSuccess("---UserID----:"+getLogonID);

Iterator itrRoleName = sapUser.getRoles(true);

Iterator itrGroupName = sapUser.getParentGroups(true);

while(itrRoleName.hasNext())

 

//IRole roleId = itrRoleName.next();

 

//wdComponentAPI.getMessageManager().reportSuccess("---roleId----:"+irole.getUniqueName());

//wdComponentAPI.getMessageManager().reportSuccess("---itrRoleName----:"+irole.getDescription());

//String roletext = roleId.getUniqueName();

//usrTable.setRoleInfo(irole.getUniqueName());

//wdComponentAPI.getMessageManager().reportSuccess("---roleId----:"+irole.getUniqueID());

 

int lindex=str.lastIndexOf("/rl");

 

//wdComponentAPI.getMessageManager().reportSuccess("---str----:"+str);

getRoleInfo.append(str+",");

//getRoleInfo.append(irole.getUniqueName()+",");

// wdComponentAPI.getMessageManager().reportSuccess("---roleId----:"+getRoleInfo);

 

int userRoleindex=getRoleInfo.lastIndexOf(",");

String userRoleBuffer="";

if(userRoleindex!=-1)

 

while(itrGroupName.hasNext())

 

//usrTable.setGroupInfo(itrGroupName.next().toString());

//getGroupInfo.append(itrGroupName.next().toString()+",");

 

int lindex=str.lastIndexOf(":");

 

getGroupInfo.append(str+",");

//wdComponentAPI.getMessageManager().reportSuccess("---itrGroupName.hasNext()----:"+getGroupInfo);

 

int userGroupindex=getGroupInfo.lastIndexOf(",");

String userGroupBuffer="";

if(userGroupindex!=-1)

 

String sqlUserStatement = "";

 

String newLine = System.getProperty("line.separator");//This will retrieve line separator dependent on OS.

 

sqlUserStatement += "INSERT INTO TableName(UID, LASTNAME, FIRSTNAME, EMAIL) VALUES ";

sqlUserStatement += "('"+ getuserID +"', '"+ getlastName + "', '"+ getfirstName + "', '"+ getemailID + "');"+newLine+"";

 

String delimiter = ",";

if(userRoleBuffer.equalsIgnoreCase(""))

 

}else{

 

for(int i=0; i<userRoleParts.length;i++)

 

sqlUserStatement += "INSERT INTO TableName(UID, GID) VALUES";

sqlUserStatement += "('"+ getuserID + "', '"+ userRoleParts[i] + "' );"+newLine+"";

 

if(userGroupBuffer.equalsIgnoreCase(""))

 

}else{

 

for(int i=0; i<userGroupParts.length;i++)

 

sqlUserStatement += "INSERT INTO TableName(UID, RID) VALUES ";

sqlUserStatement += "('"+ getuserID + "', '"+ userGroupParts[i] + "' );"+newLine+"";

 

//wdComponentAPI.getMessageManager().reportSuccess("---sqlStatement----:"+sqlStatement);

long srtTime = System.currentTimeMillis();

if (!dir.exists())

 

try

 

// logFile.write("[User]"+newLine);

 

//wdThis.generate_User_Group_Role_Scriptfile(logFile);

 

catch(IOException ex)

 

wdComponentAPI.getMessageManager().reportException("Exception In Users:"+ex.getMessage(), false);

 

} else {

wdComponentAPI.getMessageManager().reportWarning("No element found.");

 

//wdComponentAPI.getMessageManager().reportSuccess("---Group Node Size----:"+wdContext.nodeGroupTable().size());

//wdComponentAPI.getMessageManager().reportSuccess("---Role Node Size----:"+wdContext.nodeRoleTable().size());

//wdComponentAPI.getMessageManager().reportSuccess("---User Node Size----:"+wdContext.nodeUserTable().size());

}catch(Exception ex){

//wdComponentAPI.getMessageManager().reportSuccess("---Exception----:"+ex.getLocalizedMessage());

 

   //@@end

 

  /*

 

  //@@begin others

  IWDMessageManager msgMgr = null;

 

 



Finally the OUTPUT will generate like this

USER Example

 

[User]

uid=AAAAAA

last_name=B

first_name=A

email_address=AAAAAA@sap.com

role=

group=New_Portal User;Guest;


 

 

GROUP Example

 

[group]

gid=10

gdesc=xyz

user=Vijay,Ram.

role=??

 

Roles Example

 

[role]

rid=Administrator

rdesc=Administrator

user=Vijay,ram

group=Administrator

 

 

After creation of these 3 files will receives a mail


For Example:-

12.JPG



Thank you


Regards

Vijay Kalluri

SOAP header authentication for external webservice to use in WebDynpro Java

$
0
0

Hi All,

 

We are working on SAP EP 7.31 and Adaptive Web Service Model.

 

The requirement is to develop a SSO application by passing portal user-id to external webservice which will grant the access to third party system. But to access that external webservice, authentication is required thru SOAP header. As shown in attached image, the parameters are <web:User> and <web:Pwd> that needs to be set for authentication.

SOAP.png

 

I understand, I need to use interface 'IWDWSInvocationModifier' and method 'doModifyInvocation' to set the SOAP header. But not able to understand how to set the parameters programatically.

 

Please help, how do I need to authenticate using SOAP header in webdynpro java.

 

 

Thanks,

Amol.

Deprecated WDJ DC after project creation from migrated 7.4 track

$
0
0


Hello Experts,

 

I have problem creating a wdj project from migrated 7.4 track, by default it says the you are about to work on a non DC WebDynPro project and this type of project is deprecated which needs to be converted to Development Component by right-click on the local project.

 

I am able to create/migrate the other 5 DCs in same migrated track, only one DC is giving deprecated DC error.

 

Deprecated DC error.png

 

After right-click on this DC, two options are coming  : Migrate tp Software Component

                                                                             Convert Project to Development Component

 

Since this DC is already existing on track, convert of this project to development component seems obsolutee.

 

I can also see errors in Problems View for missing custom and standard jars along with missing required source folders for 'gen_ddic/datatypes' and 'gen_wdp/packages'.

Import sources from NWDS is never ending

$
0
0

Hello,

 

We are facing to a new problem.

Our developpers import sources from their nwds workspace, but the process never ends.

We have check on the nwdi server, this one is working (oracle process uses CPU between 45 to 80%).

There is no error in nwa on nwdi server.

We can see the developper name session in the trace (login and logout :

 

Authentication for web service CBSWebService, configuration CBSHttpSOAP using security policy BASIC*SSO2*_*_*ws as user Subject:

Principal:- (authentication method: password)

succeeded)



The nwds import source still running with message "operation in progress"

We have also check in the \workspace\metadata\ folder in order to find a log file, the folder only contains a .lock file.

 

Could anyone help us ?

 

Thank for help.

PDF generation failed after migrating WDJ from 7.02 to 7.31

$
0
0

Hi Experts,



After migrating  WDJ from 7.02 to 7.31, PDFs are not generating, getting the following exception.Can you please suggest some solution.

 

 

  1. com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api.WDPDFDocumentRenderException: Processing exception during a "Render" operation. Request start time: Wed Oct 22 07:54:34 EDT 2014 com.adobe.ProcessingException: com.adobe.ProcessingException: 0 : InvalidDataException: Xml parsing error: syntax error (error code 2), line 1, column 2 of file Exception Stack Trace: com.adobe.ProcessingException: com.adobe.ProcessingException: 0 : InvalidDataException: Xml parsing error: syntax error (error code 2), line 1, column 2 of file at com.adobe.ads.request.ADSRequest.processOperations(Unknown Source) at com.adobe.ads.request.ADSRequest.process(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source) at sun.reflect.GeneratedMethodAccessor14774.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.util.BeanMethods.executeReflectMethod(BeanMethods.java:314) at com.sap.engine.services.ejb3.jacc.ExecuteMethodPrivilegedAction.run(ExecuteMethodPrivilegedAction.java:38) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at com.sap.engine.services.ejb3.jacc.ContainerJ2EESecurityProviderBaseImpl.doAs(ContainerJ2EESecurityProviderBaseImpl.java:262) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_RunAs.invoke(Interceptors_RunAs.java:24) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:204) at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710) at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662) at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322) at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199) at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65) at com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430) at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81) at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60) at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78) at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475) at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269) at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101) at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328) Caused by: com.adobe.ProcessingException: 0 : InvalidDataException: Xml parsing error: syntax error (error code 2), line 1, column 2 of file at com.adobe.ads.operation.Render.execute(Unknown Source) at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source) ... 86 more Caused by: com.adobe.ProcessingException: 0 : InvalidDataException: Xml parsing error: syntax error (error code 2), line 1, column 2 of file at com.adobe.ads.operation.support.RemoteRenderer.checkRenderExceptionKnown(Unknown Source) at com.adobe.ads.operation.support.RemoteRenderer.renderAllRemote(Unknown Source) at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown Source) at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown Source) at com.adobe.ads.operation.Render.renderWithoutCache(Unknown Source) ... 88 more Caused by: com.adobe.document.xmlform.RenderException: IDL:com/adobe/document/xmlform/RenderException:1.0 at com.adobe.document.xmlform.RenderExceptionHelper.read(Unknown Source) at com.adobe.document.xmlform._FormFactoryStub.renderAll(Unknown Source) at com.adobe.ads.remote.EJB_XMLFormAgent.renderAll(Unknown Source) ... 92 more

 

 

Thanks,

Patralekha

PDF download is not working after migrating WDJ code from 7.02 to 7.31

$
0
0

Hi Expert,

 

I have migrated WDJ code from 7.02 to 7.31.After migration PDF download is not working as expected.

 

I used following code to create PDF.

 

l_pdfResource = WDResourceFactory.createResource(wdContext.currentContextElement().

getAttributePointer(IPrivateCompletionPopUp.IContextElement.CTX__RESOURCE_ON_DEM_STREAM), l_str_fileName, WDWebResourceType.PDF);

 

I am  getting following link while trying to open PDF.

 

http://xxxxxxxxx/webdynpro/dispatcher/xxxxx/xxxxxxx/xxxxxx/~wd_cache_/~wd_key_fSoMiCOKzblKgtRm/Approval_2014-10-22_19565656.pdf?sap-wd-download=1&sap-wd-cltwndid=ac535acf59dc11e4c1c800000055d607&sap-wd-secure-id=OgSgFTUYQOmEVOCfsCvF0w%3D%3D&sap-wd-appwndid=ac535ad059dc11e4916200000055d607&sap-wd-norefresh=X

 

And also getting following pop up in that link.

PDF.jpg

Can you please help me to fix the issue.

 

Thanks,

Patralekha


Optimistic lock

$
0
0

Hi ,

 

we are facing an issue while migrating the webdynpro from 7.0 to 7.3.

 

we make use of the optimistic lock in 7.0 by sharing the Jco Client for all our model execution. but unfortunately we do not have the Jco Client sharing across the models available in 7.3.

 

Is there any way to implement the lock mechanism in 7.3?

 

Thanks

The project was not built since its classpath is incomplete. Cannot find the class file for javax.ejb.EJBObject. Fix the classpath then try rebuilding this project

$
0
0

Hello Friends,

I am getting below error, could you please look at below screen shoot. Could you please help me on this issue. I am not using any EJB related applications in DC's.


Earlier I am not getting any error. Couple of weeks back Development is crashed.

So I lost all Webdynpro JAVA applications. I have backup all applications.


So, Finally I installed new NWDS and created new Webdynpro JAVA applications.


Remaining all applications is fine. But only this application is showing blow error message.


The project was not built since its classpath is incomplete. Cannot find the class file for javax.ejb.EJBObject. Fix the classpath then try rebuilding this project.LocalDevelopment~xyz~excel~upd~sap.com


excelUpload.JPG

 

 

Thank you

 

Regards

Vijay Kalluri

NWDS CE 7.1.1- Webdynpro is missing

$
0
0

hi

 

I installed NWDS 7.1 with Enhancementpack 1. The installation was successfull, however, I am unable to see or create webdynpro projects as the required option is not coming when I click on New Projects. I followed the instructions as mentioned

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/711

I also installed features from the update sit but still no luck.

I have Windows 7 installed on my machine of system type 32 bit and using 1 gb ram.

 

Is NWDS CE 7.11 not compatible with Windows 7? I tried to run it with Window XP compatible mode but no success.

 

Any help would be highly appreciated.

 

Abhinav

Show / hide options for RadioButtonGroup

$
0
0


Hi all,

 

I have a RadioButtonGroup bound to a simple type with translated enumeration texts. Now i need to show / hide specific entries on runtime, based on entered values in the UI. Is there any other way than add / remove entries from the ModifiableValueSet? Can i just hide an entry without deleting it?

 

Many thanks,

 

Tobias.

Portal Application Standalone is grayout

$
0
0

Hi Expert,

 

I want to create the Portal Application Standalone type project but this option is grayed out..

Please find the screen shot ..

 

 

 

I have added the the required SCA file to SC and imported into Track.

Please find the list of sca that i added and please help what is missing..

 

 

 

Regards,

Nitin

Error while deploying a Webdynpro java application

$
0
0

Hi All,

 

I,m getting below error while deploying webdynpro java based application from NWDS(version 7.31) to SAP PO server (version 7.4). This webdynpro application is using some RFC and some brm rules exposed as a webservice. I was able to deploy the same application eariler without any error but after sometime below issue started coming up. I,m not able to figure out what is causing this deployement issue. Please help me out to trace the issue.

 

Status ERROR

Plugin : com.sap.ide.tools.services

code=0

Deployment problems



children=[

Status ERROR

Plugin : com.sap.ide.tools.services

code=0

Deploy Exception.

com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE
DPL.DCAPI.1027] DeploymentException.

Reason: ASJ.dpl_dc.001085 Operation [deploy] of [enwl.com_wd~regisform]
failed

at
com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:862)

at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:259)

at
com.sap.ide.eclipse.deployer.dc.deploy.DeployProcessor70.deploy(DeployProcessor70.java:105)

at
com.sap.ide.tools.services.dc.EngineDcDeployService.deployFiles(EngineDcDeployService.java:257)

at com.sap.ide.tools.services.dc.EngineDcDeployService.deploy(EngineDcDeployService.java:135)

at
com.sap.ide.dii05.ui.internal.actions.dc.DcDeployAction$5$1.run(DcDeployAction.java:282)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Nested exceptions :com.sap.engine.services.dc.cm.deploy.DeploymentException:
ASJ.dpl_dc.001085 Operation [deploy] of [enwl.com_wd~regisform] failed

atcom.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:246)

atcom.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)

atcom.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)

atcom.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

atcom.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Nested exceptions :com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE
DPL.DC.3297] Operation [update] of [sdu id: [enwl.com_wd~regisform]

sdu file path:
[/usr/sap/PD1/J20/j2ee/cluster/server0/temp/tc~bl~deploy_controller/archives/166/enwl.com~wd~regisform.ear]

version status: [HIGHER]

deployment status: [Admitted]

description: []

] failed

atcom.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:100)

atcom.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:141)

atcom.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:57)

atcom.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:213)

atcom.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)

atcom.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)

atcom.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

atcom.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Nested exceptions
:com.sap.engine.services.deploy.server.utils.DSRemoteException:
ASJ.dpl_ds.006193 Operation [update] of
[/usr/sap/PD1/J20/j2ee/cluster/server0/temp/tc~bl~deploy_controller/archives/166/enwl.com~wd~regisform.ear]
failed

atcom.sap.engine.services.deploy.server.DeployServiceImpl.catchDeploymentExceptionWithDSRem(DeployServiceImpl.java:3370)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:489)

atcom.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:74)

atcom.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:141)

atcom.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:57)

atcom.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:213)

atcom.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)

atcom.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)

atcom.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

atcom.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Nested exceptions :com.sap.engine.services.deploy.container.DeploymentException:
Could not deploy SCA application.

atcom.sap.engine.services.sca.deploy.ApplicationDeploy.internalPerform(ApplicationDeploy.java:441)

atcom.sap.engine.services.sca.deploy.ApplicationDeploy.extendedPerform(ApplicationDeploy.java:196)

atcom.sap.engine.services.sca.deploy.ApplicationUpdate.perform(ApplicationUpdate.java:166)

atcom.sap.engine.services.sca.deploy.SCACompositeContainer.invoke(SCACompositeContainer.java:297)

atcom.sun.proxy.$Proxy33.makeUpdate(Unknown
Source)

atcom.sap.engine.services.deploy.server.utils.container.ContainerWrapper.makeUpdate(ContainerWrapper.java:409)

atcom.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:478)

atcom.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:183)

atcom.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:234)

atcom.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)

atcom.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1836)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:582)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:487)

atcom.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:74)

atcom.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:141)

atcom.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:57)

atcom.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:213)

atcom.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)

atcom.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)

atcom.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

atcom.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Nested exceptions :java.lang.NullPointerException

atcom.sap.sdo.impl.xml.XmlStaxWriter.findBestMatch(XmlStaxWriter.java:288)

atcom.sap.sdo.impl.xml.XmlStaxWriter.handleProperty(XmlStaxWriter.java:736)

atcom.sap.sdo.impl.xml.XmlStaxWriter.writeElement(XmlStaxWriter.java:656)

atcom.sap.sdo.impl.xml.XmlStaxWriter.generate(XmlStaxWriter.java:163)

atcom.sap.sdo.impl.xml.XMLHelperImpl.save(XMLHelperImpl.java:241)

atcom.sap.sdo.impl.xml.XMLHelperImpl.save(XMLHelperImpl.java:333)

atcom.sap.sdo.impl.xml.XMLHelperImpl.save(XMLHelperImpl.java:258)

atcom.sap.sdo.impl.xml.XMLHelperDelegator.save(XMLHelperDelegator.java:132)

atcom.sap.engine.services.sca.artifacts.ReferenceArtifact.writeObject(ReferenceArtifact.java:47)

atsun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

atjava.lang.reflect.Method.invoke(Method.java:597)

atjava.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:953)

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1482)

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)

atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)

atjava.util.HashMap.writeObject(HashMap.java:1001)

atsun.reflect.GeneratedMethodAccessor8.invoke(Unknown
Source)

atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

atjava.lang.reflect.Method.invoke(Method.java:597)

atjava.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:953)

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1482)

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)

atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1535)

atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)

atcom.sap.engine.services.sca.artifacts.ComponentArtifact.writeObject(ComponentArtifact.java:43)

atsun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

atjava.lang.reflect.Method.invoke(Method.java:597)

atjava.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:953)

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1482)

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)

atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)

atjava.util.HashMap.writeObject(HashMap.java:1001)

atsun.reflect.GeneratedMethodAccessor8.invoke(Unknown
Source)

atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

atjava.lang.reflect.Method.invoke(Method.java:597)

atjava.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:953)

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1482)

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)

atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1535)

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)

atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)

atcom.sap.engine.services.sca.deploy.ApplicationDeploy.internalPerform(ApplicationDeploy.java:348)

atcom.sap.engine.services.sca.deploy.ApplicationDeploy.extendedPerform(ApplicationDeploy.java:196)

atcom.sap.engine.services.sca.deploy.ApplicationUpdate.perform(ApplicationUpdate.java:166)

atcom.sap.engine.services.sca.deploy.SCACompositeContainer.invoke(SCACompositeContainer.java:297)

atcom.sun.proxy.$Proxy33.makeUpdate(Unknown
Source)

atcom.sap.engine.services.deploy.server.utils.container.ContainerWrapper.makeUpdate(ContainerWrapper.java:409)

atcom.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:478)

atcom.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:183)

atcom.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:234)

atcom.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)

atcom.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1836)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:582)

atcom.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:487)

atcom.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:74)

atcom.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:141)

atcom.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:57)

atcom.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:213)

atcom.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)

atcom.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

atcom.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)

atcom.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

atcom.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

atcom.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

]

 

Thanks in advance

Ravi

Adding a total line to a table

$
0
0

Hi,

 

I want to add a total line at the end of my table (or at the beginning). In this row I want to sum up some values.

I know that I simple can add this line to my node in the context. I just want to know if there are better ways

to solve my problem. Does the Webdynpro Table Element offers me a feature for total line?

 

Best regards,

Peter


Jxl.Jar for NWDS7.3 ehp1 java1.6

$
0
0

Hi Experts,

 

       I am doing Excel upload program in WDJ in NWDS 7.3 Ehp1.I have followed the steps to create

External library and add the jar file inder lib folder and Enterprise application assembly and comilation part.

 

When i deploy the application it shows below exception.

 

java.lang.ClassNotFoundException: jxl.Workbook  ------------------------- Loader Info -------------------------  ClassLoader name: [demo.sap.com/wd_kpi]  Loader hash code: 6b2040ae  Living status: alive  Direct parent loaders:  [system:Frame]  [interface:webservices]  [interface:cross]  [interface:security]  [interface:transactionext]  [library:webservices_lib]  [library:opensql]  [library:jms]  [library:ejb20]  [service:p4]  [service:ejb]  [service:servlet_jsp]  [library:tc~aii~base~offline~facade]  [library:tc~bl~logging~api]  [library:tc~ddic~runtime~facade]  [library:tc~bl~exception~lib]  [demo.sap.com/extlibear]  [library:tc~cmi]  [sap.com/tc~wd~api]  Resources:   D:\usr\sap\XPD\J00\j2ee\cluster\apps\demo.sap.com\wd_kpi\servlet_jsp\webdynpro\resources\demo.sap.com\wd_kpi\root\WEB-INF\lib\demo.sap.com~extlibear~extlibear_assembly.jar    D:\usr\sap\XPD\J00\j2ee\cluster\apps\demo.sap.com\wd_kpi\servlet_jsp\webdynpro\resources\demo.sap.com\wd_kpi\root\WEB-INF\lib\demo.sap.com~wd_kpi.jar   ---------------------------------------------------------------

 

The same application successfully deploy into the NWDS 7.01.10

 

Is there problem with Jar file(it mentioned ClassNot found exception).Please provide corresponding Jxl.Jar for NWDS7.3 ehp1 java1.6

 

Regards,

Manivannan P

Caching a web dynpro java application in Portal

$
0
0

We have a web dynpro java application that takes around 10-15 seconds to show the page on the first launch as it is a large application. On the consecutive launch as it is cached, takes 2-3 seconds. I want to build a mechanism or a script to launch the application every hour or so to cache it for users. I have tried following items but nothing has worked so far,

 

  1. Tried Cache preloader but that only works on caching the navigation not the application.
  2. Tried a script to launch a URL in internet explorer to launch the application URL, this only works when somebody is logged in to the windows, otherwise the internet explorer is not available to be launched.
  3. Tried a vbscript to ping the application URL directly inside the portal, but the web dynpro java URLs have an embedded iFrame which doesn't work when just pinging a parent URL.

 

Any input is appreciated. I am running Portal 7.31 SP11.

SOAP header authentication for external webservice to use in WebDynpro Java

$
0
0

Hi All,

 

We are working on SAP EP 7.31 and Adaptive Web Service Model.

 

The requirement is to develop a SSO application by passing portal user-id to external webservice which will grant the access to third party system. But to access that external webservice, authentication is required thru SOAP header. As shown in attached image, the parameters are <web:User> and <web:Pwd> that needs to be set for authentication.

SOAP.png

 

I understand, I need to use interface 'IWDWSInvocationModifier' and method 'doModifyInvocation' to set the SOAP header. But not able to understand how to set the parameters programatically.

 

Please help, how do I need to authenticate using SOAP header in webdynpro java.

 

 

Thanks,

Amol.

RFC with multiple inputs

$
0
0

Hi Gurus,

 

I am using a RFC where I need to call data from R/3 with the help of multiple inputs. Our abaper created a RFC, on executing that it is making input fields as readable only. I have checked the cardinality ratio, it is 0:n and it should be 1:1 but it is unchangeable. So please suggest me changes on my side or abap side that I need to make so that it makes the fields writeable for input.

Creating context attribute in interface controller

$
0
0

Hi Experts,

 

I am trying to develop webdynpro java application on DC communication. In the process i was unable to create context attribute to interface controller.Can any suggest how and where exactly can i create the context attribute for interface controller.

 

Answer will be appreciated.

 

 

Regards,

Prasad

Viewing all 1288 articles
Browse latest View live


Latest Images