IMMEDIATE REPLY
I'm trying to test the running test cases available in the Oracle Internet Directory Connector for OIM but I'm failing because it seems that the current release of this connector doesn't have the java class tcUtilTestOID as described in the documentation. This class should be at test\troubleshoot\scripts directory, but there there are only the batch files with the test cases.
while running the testcreate.bat file.....a window prompting user id and password appears for tcUtilTestOID
troubleshoot directory contains two folders named config (config.properties,log.properties) and scripts (testcreate.bat,testmodify.bat and testdelete.bat files)
where do i need to add the code provided in a similar case below
This is the code. Include this in your custom jar file with the same name. You will be done I suppose:
import com.thortech.util.logging.Logger;
import com.thortech.xl.integration.OID.util.tcUtilLDAPOperations;
import java.io.*;
import java.util.Properties;
import javax.naming.directory.BasicAttribute;
import javax.naming.directory.BasicAttributes;
public class tcUtilTestOID
private static String CONFIG_FILEPATH = "global.properties";
public tcUtilTestOID()
public static void main(String args[])
tcUtilLDAPOperations ldapOp = null;
Logger logger = Logger.getLogger("TEST_USER_PROVISION");
logger.info("**********************************");
logger.info("**********************************" + args[0]);
try
FileInputStream configfile = null;
try
configfile = new FileInputStream(CONFIG_FILEPATH);
catch(FileNotFoundException fe)
logger.error("Unable to find configfile(" + CONFIG_FILEPATH + ")");
fe.printStackTrace();
Properties prp = new Properties();
try
prp.load(configfile);
catch(IOException ie)
logger.error("Unable to load configfile(" + CONFIG_FILEPATH + ")");
ie.printStackTrace();
String serverName = prp.getProperty("serverName");
String portNo = prp.getProperty("portNo");
String rootContext = prp.getProperty("rootContext");
String principalDN = prp.getProperty("principalDN");
String principalPass = prp.getProperty("principalPassword");
boolean sslFlag = "true".equalsIgnoreCase(prp.getProperty("sslFlag"));
logger.info("serverName = " + serverName);
logger.info("portNo = " + portNo);
logger.info("rootContext = " + rootContext);
logger.info("principalDN = " + principalDN);
logger.info("sslFlag = " + sslFlag);
logger.info("===================================\n");
ldapOp = new tcUtilLDAPOperations(serverName, portNo, rootContext, principalDN, principalPass, sslFlag);
String ldapUserDNPrefix = "cn";
String ldapObjectClass = "objectclass";
String ldapUserObjectClass = "inetOrgPerson";
String ldapFirstName = "givenName";
String ldapLastName = "sn";
String ldapCommonName = "cn";
String ldapPassword = "userPassword";
String containerDN = prp.getProperty("containerDN");
logger.info("containerDN = " + containerDN);
logger.info("UserOperation selected = " + args[0]);
if(args[0].equalsIgnoreCase("createUser"))
logger.info(" CREATE USER CALLED");
String createUserFName = prp.getProperty("createUser.firstName");
String createUserLName = prp.getProperty("createUser.lastName");
String createUserUserDN = prp.getProperty("createUser.userDN");
String createUserUserPass = prp.getProperty("createUser.userPassword");
logger.info("createUser.firstName = " + createUserFName);
logger.info("createUser.lastName = " + createUserLName);
logger.info("createUser.userDN = " + createUserUserDN);
logger.info("createUser.userPassword = " + createUserUserPass + "\n\n");
BasicAttributes basicattributes = new BasicAttributes(true);
basicattributes.put(new BasicAttribute(ldapObjectClass, ldapUserObjectClass));
basicattributes.put(new BasicAttribute(ldapFirstName, createUserFName));
basicattributes.put(new BasicAttribute(ldapLastName, createUserLName));
basicattributes.put(new BasicAttribute(ldapCommonName, createUserFName + " " + createUserLName));
basicattributes.put(new BasicAttribute(ldapPassword, createUserUserPass));
ldapOp.connectToLDAP();
boolean userCreated = ldapOp.createObject(ldapUserDNPrefix + "=" + createUserUserDN + "," + containerDN, basicattributes);
ldapOp.disconnectFromLDAP();
if(userCreated)
logger.info("\t>> " + createUserUserDN + " - USER_CREATION_SUCCESSFUL");
} else
logger.info("\t>> " + createUserUserDN + " - USER_CREATION_FAILED");
} else
if(args[0].equals("modifyUser"))
logger.info(" MODIFY USER CALLED");
String modifyUserUserDN = prp.getProperty("modifyUser.userDN");
String modifyUserParamName = prp.getProperty("modifyUser.paramName");
String modifyUserParamValue = prp.getProperty("modifyUser.paramValue");
logger.info("modifyUser.userDN = " + modifyUserUserDN);
logger.info("modifyUser.paramName = " + modifyUserParamName);
logger.info("modifyUser.paramValue = " + modifyUserParamValue);
ldapOp.connectToLDAP();
BasicAttributes basicattributes = new BasicAttributes(true);
basicattributes.put(new BasicAttribute(modifyUserParamName, modifyUserParamValue));
boolean isUserModified = ldapOp.modifyAttributesReplace(ldapUserDNPrefix + "=" + modifyUserUserDN + "," + containerDN, basicattributes);
ldapOp.disconnectFromLDAP();
if(isUserModified)
logger.info("\t>> " + modifyUserUserDN + " - USER_UPDATE_SUCCESSFUL");
} else
logger.info("\t>> " + modifyUserUserDN + " - USER_UPDATE_FAILED");
} else
if(args[0].equals("deleteUser"))
logger.info(" DELETE USER CALLED");
String deleteUserUserDN = prp.getProperty("deleteUser.userDN");
logger.info("deleteUser.userDN = " + deleteUserUserDN);
ldapOp.connectToLDAP();
boolean isUserDeleted = ldapOp.deleteObject(ldapUserDNPrefix + "=" + deleteUserUserDN + "," + containerDN);
ldapOp.disconnectFromLDAP();
if(isUserDeleted)
logger.info("\t>> " + deleteUserUserDN + " - USER_DELETION_SUCCESSFUL");
} else
logger.info("\t>> " + deleteUserUserDN + " - USER_DELETION_FAILED");
catch(Exception e1)
e1.printStackTrace();
return;
}
hi,
I created a class file in the Jave Task folder mentioned by you,then also I am facing with the same exception.
While prompted to give userid and password by tcUtilTestOID popup screen,which id and pwd should I provide ?
I get the following error while running the testcreate.bat file
C:\oim\xellerate\test\troubleshoot\scripts>testcreate.bat 1
log4j:ERROR Could not find value for key log4j.appender.INFO
log4j:ERROR Could not instantiate appender named "INFO".
user name in Main===
INFO,11 Jan 2010 12:50:25,337,[TEST_USER_PROVISION],***************************
INFO,11 Jan 2010 12:50:25,337,[TEST_USER_PROVISION],***************************
*******createUser
DEBUG,11 Jan 2010 12:50:25,368,[org.jboss.security.SecurityAssociation],Using Th
readLocal: false
ERROR,11 Jan 2010 12:50:25,368,[XELLERATE.JBOSSLOGINHANDLER],Error in creating l
ogin context
javax.security.auth.login.LoginException: java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
java:85)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
at org.jboss.security.ClientLoginModule.initialize(ClientLoginModule.jav
a:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
java:85)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:660)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.lookup
Home(Unknown Source)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.getHom
e(Unknown Source)
at Thor.API.Security.ClientLoginUtility.getUnauthenticatedOperations(Unk
nown Source)
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
C:\oim\xellerate\test\troubleshoot\scripts>
Similar Messages
-
Bug sending email with Excel file (immediate reply would he helpfull)
Hi ,
Below is have pasted a sample code where it will sends a email along with an attachtment (xls) .where the email is working perfectly but the xls file attachtment has a blank space in the first line .
where iam facing the problem ,
ie there should not be any blank lines at the top .
Please run the code one i have pasted below .u can find the bug .
can any one help me on this .
please have ur mail id in ( reclist-receiver ) so that u can check for the output.
This table requires information about how the data in the
tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
to be distributed to the documents and its attachments.
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
This table must contain the summarized data dependent on each object type.
SAPscript objects store information here about forms and styles,
for example. Excel list viewer objects store the number of rows and columns
amongst other things and PC objects store their original file name.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
*CREATION OF INTERNAL TABLE
DATA : BEGIN OF itobjbin OCCURS 10 ,
vbeln type vbrp-vbeln,
matnr type vbrp-matnr,
werks type vbrp-werks,
fktyp like vbrk-fktyp,
END OF itobjbin .
This table must contain the summarized content of the objects identified as binary objects.
*DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: wa_itobjbin LIKE itobjbin .
This table must contain the summarized content of the objects identified as ASCII objects.
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
This table must contain the document recipients.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
This structure must contain the attributes of the document to be sent.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
DATA : V_FKTYP LIKE VBRK-FKTYP.
Creating the document to be sent
doc_chng-obj_name = 'OFFER'. " input contains the attributes of the document to be sent
doc_chng-obj_descr = 'EMAIL WITH EXCEL DOWNLOAD'. "input contains title/subject of the document
*BODY OF THE MAIL
OBJTXT = 'Hi'.
APPEND OBJTXT .
OBJTXT = 'Test for excel download'.
APPEND OBJTXT.
OBJTXT = 'Below is the attachment with Billing Document Details'.
APPEND OBJTXT.
OBJTXT = 'Regards'.
APPEND OBJTXT.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
Creating the entry for the compressed document
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
Creating the document attachment
(Assume the data in OBJBIN are given in BMP format)
select vbeln matnr werks
from vbrp into table itobjbin
up to 10 rows
where werks GE '1000'.
loop at itobjbin.
select single fktyp into v_fktyp from vbrk where vbeln = itobjbin-vbeln.
move v_fktyp to itobjbin-fktyp.
modify itobjbin.
endloop.
PERFORM build_xls_data_table .
DESCRIBE TABLE objbin LINES tab_lines.
objhead = 'ABC.XLS'. APPEND objhead.
Creating the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = 'XLS'.
objpack-doc_size = tab_lines * 255.
APPEND objpack..
Entering names in the distribution list
reclist-receiver = ''.
reclist-rec_type = 'U'.
APPEND reclist.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
CASE sy-subrc.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT reclist.
WRITE: / reclist-receiver(48), ':'.
IF reclist-retrn_code = 0.
WRITE 'sent successfully'.
ELSE.
WRITE 'not sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE: / 'no authorization to send to the specified number of', 'recipients!'.
WHEN 2.
WRITE: / 'document could not be sent to any of the recipients!'.
WHEN 4.
WRITE: / 'no authorization to send !'.
WHEN OTHERS.
WRITE: / 'error occurred during sending !'.
ENDCASE.
*& Form build_xls_data_table
text
--> p1 text
<-- p2 text
FORM build_xls_data_table .
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
CONCATENATE 'Billing Document' 'Material Number' 'Plant' 'Billing category' ' ' INTO objbin SEPARATED BY con_tab.
CONCATENATE con_cret objbin INTO objbin.
APPEND objbin.
LOOP AT itobjbin .
CONCATENATE itobjbin-vbeln itobjbin-matnr itobjbin-werks itobjbin-fktyp' '
INTO objbin SEPARATED BY con_tab.
CONCATENATE con_cret objbin INTO objbin.
APPEND objbin.
ENDLOOP.
thanks in advance,
vinay .Hi ravi ,
Thanks ,for your help .now xls is working fine .
but now iam facing a problem with the same function module .for txt files .where all the records are formated in asingle line .
can u provide a solution for this ,which would be very helpfull.
below is have attached the sample code .
Thanks,
vinay.
FUNCTION Z_KAILASH_ATTACHMENT1.
""Local Interface:
*" IMPORTING
*" VALUE(EMAILID)
*" VALUE(SUBJECT)
*" VALUE(ATYPE)
*" TABLES
*" ATTACH_FILE STRUCTURE SOLISTI1
*" BODY OPTIONAL
This table requires information about how the data in the
tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
to be distributed to the documents and its attachments.
DATA OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
This table must contain the summarized data dependent on each object type.
SAPscript objects store information here about forms and styles,
for example. Excel list viewer objects store the number of rows and columns
amongst other things and PC objects store their original file name.
DATA OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
This table must contain the summarized content of the objects identified as binary objects.
DATA OBJBIN TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
This table must contain the summarized content of the objects identified as ASCII objects.
DATA OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
This table must contain the document recipients.
DATA RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE .
This structure must contain the attributes of the document to be sent.
DATA: DOC_CHING LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Create the internal table for body , subject
DATA: IT_BODY LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
con_tab TYPE C VALUE cl_abap_char_utilities=>cr_lf.
Move Body to Internal Table (body into it_body)
LOOP AT BODY .
MOVE BODY TO IT_BODY .
APPEND IT_BODY .
ENDLOOP.
DOC_CHING-OBJ_DESCR = SUBJECT. "Subject of the Email
Move the Subject and Body to OBJTXT
OBJTXT[] = IT_BODY[].
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHING-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Convert IT to Excel format
IF ATYPE = 'XLS' .
*CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
con_tab TYPE C VALUE cl_abap_char_utilities=>cr_lf.
LOOP AT ATTACH_FILE .
REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_cret. " INTO objbin.
CONCATENATE ATTACH_FILE con_tab INTO objbin.
APPEND objbin.
ENDLOOP.
ELSEIF ATYPE = 'TXT' .
LOOP AT ATTACH_FILE .
REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_tab. " INTO objbin.
CONCATENATE ATTACH_FILE ' ' INTO OBJBIN .
APPEND OBJBIN .
ENDLOOP.
ENDIF.
****End-Code Excel Format .
DESCRIBE TABLE objbin LINES tab_lines.
objhead = subject. APPEND objhead.
Creating the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = TAB_LINES.
objpack-doc_type = ATYPE.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = 'TEST'. "Attachment File Name
objpack-doc_size = TAB_LINES * 255.
APPEND objpack..
reclist-receiver = EMAILID.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHING
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99 .
ENDFUNCTION. -
HOW TO DISPLAY THE SAME TABLE IN TWO DATABLOCKS.
ONE FOR VIEW MODE
AND ANOTHER FOR INSERTING.
AND BASED ON A CONDITION THE DATA FROM THE INSERT BLOCK HAS TO BE GO TO DATABLOCK IN VIEW MODEHi...Francois was right...Ethics is very important when you want to ask something.There's a lot of people here who shares their knowledge...
Regarding your question, you can achieve it by creating 2 datablocks then set the Insert/Update/Delete Allowed Property to False of ur 2nd block(View Mode).
In Post-Insert Trigger of your inserting block:
DECLARE
timer_id TIMER;
BEGIN
timer_id:=CREATE_TIMER('DISPLAY_IT',10,NO_REPEAT);
END;
When Timer Expire Trigger
DECLARE
TM_NAME VARCHAR2(120):=GET_APPLICATION_PROPERTY(TIMER_NAME);
BEGIN
IF(TM_NAME='DISPLAY_IT')THEN
GO_BLOCK('VIEW_MODE_BLOCK');
EXECUTE_QUERY;
END IF;
END; -
Processing in OSB after Replying to client
hi,
After receiving the input data from the partner, I'm validating it and I have to reply back to partner saying that xml validation is success or failure (Immediate response). If it is failure then I have to reply and stop processing, if it is sucess I have to reply and continue processing of the data afterwards. Will OSB continue flow after Reply activity in success case?
Thanks
Edited by: Aditya Ch on Nov 2, 2012 4:30 PM
Edited by: Aditya Ch on Nov 2, 2012 4:31 PM
Edited by: Aditya Ch on Nov 2, 2012 4:43 PMThanks Prabu.
If it is a failure case then it is not a problem (since I'm not going to do furthur processing I will reply).
But if the validation is success, I have to send a immediate reply to partner saying that validation is successful and after that I shud do some processing on data. I do not have an option to use JMS in this case and moreover the process is synchronous. Is this solution feasible in OSB?
Edited by: Aditya Ch on Nov 2, 2012 5:00 PM
Edited by: Aditya Ch on Nov 2, 2012 5:12 PM -
How much is the battery replacement for Iphone 3g Please reply immedietly
How much is the battery replacement for Iphone 3g Please reply immedietly In philippines price
Who exactly are you demanding an immediate reply from ?
This a user to user form you are not instructing Apple on this forum -
Warm greetings to all !
I need a report wherein i can get the details of Ir against respective GR.
Eg: If GR is done for Rs.1000 /- and IR is done for 800/-.
I need list of this kind.
Plus would also like to know how to generate report in MB%s GR date wise..
Immediate reply will be appreciated.
Regards,
GreeshmaHi,
You can try using the following T-codes. These are t-codes for clearing the GR/IR account but will also help you generate the list of GR and IR if you run them in Test mode.
1. F.13 _ automatic clearing - On this T-code:
1. On General Selection Tab : Select company codes,select
Customers, Vendors or Gl accounts to be displayed,
2. On Posting Parameters Tab : select Test run
3. On output control Tab : check all the required boxes.
This should give the desired report.
Configuration required for this T-code is :SPRO -Financial Accounting/General Ledger A/c'ing /Business Transactions/Open Item Clearing/Prepare Automatic Clearing
2. F-03 - Clearing the GI/IR at account number and company code level
For this T-code, select the option fields on which you wish to match the GR and IRs.
3. MR11 - This Transaction also can be used. On Processing Tab- check the 'Prepare List' Radio button.
Please let me know if you need more details.
Thanks & Regards,
Uma
Edited by: Uma Toraskar on Oct 1, 2008 8:11 AM -
Dear friends,
I am using Sun Sparc solaris 10, I am trying to Mount the usb using the following command and i was successfully & able to mount the usb, but now suprisingly i find problem.
the command I used in SU mode is
mount -F pcfs /dev/dsk/c2t0d0s0:c /mnt
mount : no such file or Directory,
please can any tell why i occurs,
Your immediate reply would be more hel[pful for me
Thanks in Advance
Raja<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote">
mount -F pcfs /dev/dsk/c2t0d0s0:c /mnt
mount : no such file or Directory
</td></tr></table>
Hello.
1) Check if the device entry /dev/dsk/c2t0d0s0 exists
(by typing ls -L /dev/dsk/c2t0d0s0 - a block file must be displayed)
2) Are you sure the disk is /dev/dsk/c2t0d0s<u><b>0</b></u> and not /dev/dsk/c2t0d0s<u><b>2</b></u>?
3) Make sure that the /mnt directory exists and is not mounted.
I hope this helps.
Martin -
Data Modeler : Modifying the Table Report layout
Hi ,
I'm using SQL Data Modeler (DM) 4.0 EA .
I used the File -> reports option to generate the reports on Table and in the report
1) I couldn't see the column data type ? (Refer below table ) , Is there any options to bring on the Data Type in the Report ?
No
Column Name
PK
FK
M
Data Type
DT
kind
Domain Name
Formula
(Default Value)
Security
Abbreviation
1
ID1
P
Y
(10)
LT
2
ID2
F
Y
(10)
LT
3
ID3
Y
(1)
LT
4
ID4
Y
(10)
LT
5
ID5
F
(20,4)
LT
2) In options to manage the Table report (Reports -> Manage). Currently I can only remove a heading (like Descriptions Notes ,columns,column comments.). Is there is any way to customize the report in such a way that I can remove some columns (mostly the empty ones) from the report and add the column comments along with the column table than a new column comments table.
Please let me know ,is there is an option to customize the report .
Note: I even tried generating the report using the search then report , but it doesn't give a complete report (i was only able to generate a report on column or table name or constraints , not all together.)
Thanks,
Srinivasan.KThanks for the immediate reply.
I checked on the DM again, the report comes good for the one which has the data type . But now all my data type changed to UNKNOWN and lokks like ,due to this my table report is coming without the "Data Type".
Can you please help me in fixing this unknown data type issue ?
Table report for the ones with proper Data type:
Columns
No
Column Name
PK
FK
M
Data Type
DT
kind
Domain Name
Formula
(Default Value)
Security
Abbreviation
1
ID1
Y
NUMERIC (10)
LT
2
SCRIPT
Y
VARCHAR (1024)
LT
3
UPGRADE_S
Y
VARCHAR (10)
LT
4
UPGRADE_D
Y
VARCHAR (250)
LT
5
UPGRADING_F
Y
VARCHAR (20)
LT
6
TIMESTAMP2
Y
Timestamp
LT -
Automatic Error Message in SAP PI 7.1
My scenario in SAP PI 7.1 is like this:
1. If an XML message fails in validation of structure, that is the structure is not as per the message schema or any field contains data that is incorrect as per the business requirement, then SAP PI should not further process the message (i.e. reject the message or mark it as invalid)
2. As soon as the message is marked invalid (as described in point 1), PI will have to automatically generate a error or a failure message containing reasons why the original message falied. The structure of automatic error message should be predefined in PI (e.g. a schema)
My question is, how to achieve the above two scenarios in SAP PI 7.1
Thanks a lot for your immediate reply
Edited by: Chitrabhanu Raychowdhury on Aug 16, 2010 12:45 PM>
> 1. If an XML message fails in validation of structure, that is the structure is not as per the message schema or any field contains data that is incorrect as per the business requirement, then SAP PI should not further process the message (i.e. reject the message or mark it as invalid)
>
implement XML Validation concept,we do have a oppurtunity to validate XML document before picking up,it will check against correct structure.if any the data wrong you can show error at adapter engine level only,we can do this one IE level and AE level.
search in sdn ,there are many documents.
> 2. As soon as the message is marked invalid (as described in point 1), PI will have to automatically generate a error or a failure message containing reasons why the original message falied. The structure of automatic error message should be predefined in PI (e.g. a schema)
>
we can't mark the file invalid using PI i think
> My question is, how to achieve the above two scenarios in SAP PI 7.1
> -
Missing "7-Zip File"
Hello,
I haven't been able to update Firefox since 10.01 or 10.02 because every time I try I get the same message the "7-ZIP File" is missing. Then the update fails. I've submitted this problem to Mozilla Firefox and, got an immediate reply of " they are researching your problem".
Well, you can tell how long that has been. Is there anything I can do, or any where I can go to get the file I need?
Any constructive help would be very much appreciated! I'm not sure If I'll ever be able to find where this is located. But I do appreciate help just the same.It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
Disable your anti-virus software temporarily to see if that makes installing work.
Download a fresh Firefox copy and save the file to the desktop.
*Firefox 11.0.x: http://www.mozilla.org/en-US/firefox/all.html
Uninstall your current Firefox version, if possible.
*Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
*It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
*http://kb.mozillazine.org/Uninstalling_Firefox
Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
*http://kb.mozillazine.org/Profile_folder_-_Firefox
*http://kb.mozillazine.org/Profile_backup
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
Limitation On number of JSPX pages
Hi All,
i am facing a strange problem...
i have a project with 18 jspx pages..now i need an additional functionality in my project, which requires creation of one more jspx...
when i try to create another page the previous functionalities are not working...
Is there any limitation on the number of pages in a Project..
Can someone give pointers on this ...
Thanks in advance,
Naveen kumar.Hi Frank,
Thanks for the immediate reply...
If there is no limitation on number of pages .. what may be the possible reason that all other command buttons and links are not working...
i just creaated an empty jspx which even does not have any navigation case ..
all the functionalities are not working.... -
Regarding report for material status
HI All,
Can u guys pls help me thre is an error in the report
which iam presenting now. The error is that iam getting
the output for units in simple report is 'PC' and iam getting the out put for units in ALV as 'ST'.
why, i need an immediate reply.
*& Report ZSTOCKDETAILS4 *
REPORT zstockdetails4 NO STANDARD PAGE HEADING
LINE-SIZE 160
LINE-COUNT 60(3).
tables declaration *
TABLES : mara, "general material data
marc, "plant data for material
mard, "storage location data for material
makt. "material description
TYPE-POOLS : slis.
internal table declaration *
TYPES : BEGIN OF ty_mara,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF ty_mara.
TYPES : BEGIN OF ty_marc,
matnr TYPE matnr,
werks TYPE werks,
END OF ty_marc.
TYPES : BEGIN OF ty_mard,
matnr TYPE matnr,
werks TYPE werks,
lgort TYPE lgort_d,
labst TYPE labst,
END OF ty_mard.
TYPES : BEGIN OF ty_makt,
matnr TYPE matnr,
maktx TYPE maktx,
END OF ty_makt.
DATA:t_mara TYPE TABLE OF ty_mara WITH HEADER LINE,
t_marc TYPE TABLE OF ty_marc WITH HEADER LINE,
t_mard TYPE TABLE OF ty_mard WITH HEADER LINE,
t_makt TYPE TABLE OF ty_makt WITH HEADER LINE.
PARAMETER : p_alv AS CHECKBOX DEFAULT 'X'.
final internal table *
TYPES : BEGIN OF ty_out,
matnr TYPE matnr,
werks TYPE werks,
lgort TYPE lgort_d,
labst TYPE labst,
meins TYPE meins,
mtart TYPE mtart,
maktx TYPE maktx,
END OF ty_out.
DATA:t_out TYPE TABLE OF ty_out WITH HEADER LINE.
DATA DECLARATION FOR ALV *
DATA : fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_repid LIKE sy-repid,
gd_layout TYPE slis_layout_alv,
gd_tab_group TYPE slis_t_sp_group_alv,
gt_list_top_of_page TYPE slis_t_listheader,
it_sortcat TYPE slis_sortinfo_alv OCCURS 1,
wa_sort LIKE LINE OF it_sortcat.
selection screen *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_werks FOR marc-werks OBLIGATORY,
s_matnr FOR mara-matnr,
s_mtart FOR mara-mtart,
s_lgort FOR mard-lgort.
SELECTION-SCREEN END OF BLOCK b1.
start-of-selection *
START-OF-SELECTION.
SELECT matnr mtart meins
FROM mara
INTO TABLE t_mara
WHERE matnr IN s_matnr
AND mtart IN s_mtart.
SORT t_mara BY matnr.
SELECT matnr werks
FROM marc
INTO TABLE t_marc
FOR ALL ENTRIES IN t_mara
WHERE matnr = t_mara-matnr
AND werks IN s_werks.
SORT t_marc BY matnr.
SELECT matnr lgort labst
FROM mard
INTO CORRESPONDING FIELDS OF TABLE t_mard
FOR ALL ENTRIES IN t_mara
WHERE matnr = t_mara-matnr
AND lgort IN s_lgort.
SORT t_mard BY matnr.
LOOP AT t_mara.
READ TABLE t_marc WITH KEY matnr = t_mara-matnr BINARY SEARCH.
READ TABLE t_mard WITH KEY matnr = t_mara-matnr BINARY SEARCH.
MOVE : t_mara-matnr TO t_out-matnr.
MOVE : t_mara-mtart TO t_out-mtart.
MOVE : t_mara-meins TO t_out-meins.
MOVE : t_marc-werks TO t_out-werks.
MOVE : t_mard-lgort TO t_out-lgort.
MOVE : t_mard-labst TO t_out-labst.
SELECT SINGLE matnr maktx
FROM makt
INTO CORRESPONDING FIELDS OF makt
WHERE matnr = t_mara-matnr.
MOVE-CORRESPONDING makt TO t_out.
LOOP AT t_mard WHERE matnr = t_mara-matnr.
MOVE : t_mard-lgort TO t_out-lgort.
MOVE : t_mard-labst TO t_out-labst.
APPEND t_out.
CLEAR : t_out-lgort, t_out-labst.
ENDLOOP.
CLEAR t_out.
ENDLOOP.
SORT t_out BY werks lgort matnr.
IF
p_alv = 'X'.
PERFORM build_fieldcatalog.
PERFORM display_alv_report.
ELSE.
DATA: tot_lgort TYPE labst,
tot_werks TYPE labst,
tot TYPE labst.
LOOP AT t_out.
NEW-LINE.
WRITE :/ sy-vline, t_out-matnr,
15 t_out-werks,
35 t_out-lgort,
45 t_out-labst,
85 t_out-meins,
100 t_out-mtart,
120 t_out-maktx,160 sy-vline.
tot_lgort = tot_lgort + t_out-labst.
tot_werks = tot_werks + t_out-labst.
tot = tot + t_out-labst.
AT LAST.
ULINE.
WRITE : / 'THE GRAND TAOTAL IS', 52 tot.
ENDAT.
ENDLOOP.
ENDIF.
TOP-OF-PAGE *
TOP-OF-PAGE.
ULINE.
WRITE : sy-vline, 'MATERIAL',
15 'PLANT',
32 'STOR LOC',
56 'STOCK',
80 'UNITS',
95 'MAT TYPE',
115 'MAT DESCR',160 sy-vline.
ULINE.
*& Form build_fieldcatalog
text
FORM build_fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'WERKS'.
fieldcatalog-seltext_m = 'Plant'.
fieldcatalog-col_pos = 1.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'LGORT'.
fieldcatalog-seltext_m = 'Storage Location'.
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'LABST'.
fieldcatalog-seltext_m = 'Stock'.
fieldcatalog-col_pos = 3.
fieldcatalog-outputlen = 15.
fieldcatalog-do_sum = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Unit of Measure'.
fieldcatalog-col_pos = 4.
fieldcatalog-datatype = 'PC'.
fieldcatalog-reptext_ddic = 'Unit of Measure'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MTART'.
fieldcatalog-seltext_m = 'Material Type'.
fieldcatalog-col_pos = 5.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MAKTX'.
fieldcatalog-seltext_m = 'Material Description'.
fieldcatalog-col_pos = 6.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
ENDFORM. "build_fieldcatalog
*& Form display_alv_report
text
FORM display_alv_report.
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = gd_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_callback_top_of_page = 'TOP-OF-PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = it_sortcat
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_out
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "display_alv_reportHi Sai,
Please do the following:
While populating the fileld catalog for "MEINS".
<u>
add the shown code in bold:</u>
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Unit of Measure'.
<b>fieldcatalog-CFIELDNAME = 'MEINS'.
fieldcatalog-CTABNAME = 'MARA'</b>.
fieldcatalog-col_pos = 4.
fieldcatalog-datatype = 'PC'.
fieldcatalog-reptext_ddic = 'Unit of Measure'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
This will bring you "EA" in place of ST.
Hope this will work for you.
Lanka -
FBL5N & S_ALR_87012168 - Due Date Analysis for Open Items
Hi,
As per the above mentioned i could find the that there is differene in the account balances in FBL5N report and due date analysis for customers. Where as FBL1N and the vendor due date analysis figure in the report are same.
Just want to know why is difference in customer related.
Require a immediate reply.....please help me
Thanks in advance.
jaiHi
I could not understand which report you compared with s_alr_87012172.
Have you tried matching FD10N and FBL5N. If not matching, then there could be problem with authorizations in FBL5N.
From report S_ALR_87012168, you can also drill down to view the line items. Hence if you drill down and list the line items, it will give you some clue.
Try whether if any parked documents are included in FBL5N.
Also ensure that in report S_ALR_87012168, Database is selected in Data sources.
Regards -
Performance issue in HR Payroll Report
Hi Experts
I having performance issue in HR payroll report
My issue as follows
I have selection period to select date range
if I select start date & end date Which is giving EMP name, wage type,wage text, amount, etc
whenever I excute it takes morethan one hour to get the resust
my code is some wht like this
loop at GT_REDIR where
begda(start date) ge pnpbegda and
endat(end date) le pnpendat and
paytyp eq ''
move gt-sqnr to lv_sqnr
call function PYXX_READ_PAYROLL_RESULT
here i am passing pernr and sequence number
please give me some idea to fix this issue
Thanks in Advance
Gopinath SubramanyamHi Jhings
Thanks for Your immediate reply
data is coming from cluster table and also I am using Logical database
I will post my code here soon
Regards
Gopinath subramayam -
Customer interest calculation on both open & cleared items
Hi,
I have created a Interest Calculator Indicator Z1 for that following configuration is made.
1. Int Global Settings> Prepare Interest on Arrears Calculation-> Z1 under selection of items I have selected the open & cleared items.
2. Int Global Settings> Prepare Item Interest Calculation-> Z1 under items selection I have selected the open items & all cleared items.
But when I am running the FINT - Interest Calculation for customer selecting the Interest Indicator Z1 system is calculating only open items but in configuration I have selected both open and all cleared items. Still its considering only open items.
Kindly provide the way to resolve this problem.
Regards,
SandeepThanks Chintan for immediate reply...
I have check the solution given by you but not a single cleared document is not considering in FINT. I have one case like I have posted one entry on 01.10.2010 & one same day I have reversed I need that entry should come in the same calculation. This will not effect in amount as it will get plus minus zero.
Regards,
Sandeep
Maybe you are looking for
-
I am experiencing aniTunes reinstall problem on Windows 7 64 bit. I have uninstalled the iTunes product and reinstalled 11.02 for windows 7 64 bit but can't get iTunes going again. The first error message I get is: "The file "iTunes Libirary.itl"
-
Error while testing SOA sample adapters-db-101-File2StoredProcedure
Dear all, I am testing SOA application adapters-db-101-File2StoredProcedure from SOA samples and I got the error: <messages> <input> <Invoke_API_AddCustomers_InputVariable> <part name="InputParameters"> <InputParameters> <C> <C_ITEM> <FNAME>John</FNA
-
Can no longer connect to wireless router after upgrading to iTunes 9.2
My wireless connection was fine (using MacBook). After upgrading iTunes, I can not longer connect to router/modem wirelessly - am tethered with an ethernet cable. Spent 1 1/2 hours on phone with AT&T support reseting the passwords, security, etc. A P
-
Iphoto package contents is separate from iphoto after hard drive recovery
I have moved some of my previous iphoto libraries to an external hard drive. It fell and was not usable and did nor want to open any of my fikes. It was rceovered and I've received it back. The package contents are now seperate from the iphoto icon's
-
just got a macbook pro and want to be able to use the webcam to chat with my hubby on his PC when he is out of town on business. he does NOT have a webcam so we need to know what kind he can get that will allow us to talk and see each other. i know t