JNI_CreateJavaVM fails on Windows - Very urgent

Folks,
I am very much new to the JNI on Windows 2000. For the last two days, I am trying to load JVM into my application. But, could not succeed. Even the samples I got across the net failed. The problem is "JNI_CreateJavaVM" returns -1.
Using Microsoft Visual Studio 6.0, and VC++, I created a project with default settings and used the following sample code and it fails left and right. Please, let me know if I am doing something wrong.
Sample
JNIEnv *env = NULL;
JavaVMInitArgs vm_args;     
JavaVMOption options[4];
char a1,a2;
int nbOptions;
jint res = 0;
char classpath,librarypath;
classpath = malloc(1024,sizeof(char));
librarypath= malloc(1024,sizeof(char));
strcpy(classpath, "-Djava.class.path=e:\\jdk1.2.2;e:\\jdk1.2.2\\jre\\lib\\i18n.jar");
strcpy(librarypath, "-Djava.library.path=.;e:\\jdk1.2.2\\jre\\bin;e:\\jdk1.2.2\\jre\\bin\\classic");
options[0].optionString = classpath;
options[1].optionString = librarypath;
options[2].optionString = "-Djava.compiler=NONE";
options[3].optionString = "-verbose:jni";
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 4;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);
I tried with other samples also. But, the result is same. JNI_CreateJavaVM returns -1.
If possible, please respond to [email protected] also
Thanks,
Lokesh

strcpy(librarypath, "-Djava.library.path=.;e:\\jdk1.2.2\\jre\\bin;e:\\jdk1.2.2\\jre\\bin\\classic");
options[1].optionString = librarypath;This doesn't do what the author probably expected. This specifies the path(s) for Java to load native libraries from -- this is different from the path where you actually want to load the JVM from. That path is up to the system and where things happen to be, unless you specify it explicitly in your call to load jvm.dll in the case of Windows, and I assume you use the system call LoadLibrary() on Windows in order to do this. If you do not (and you don't use some other Win API call for this purpose) then you are depending entirely on your system's environment variables in order to create the JVM instance.
So, it is not something that Sun has to do anything about.

Similar Messages

  • Forms Window (Very Urgent)

    Hi,
    I dont want to show my Forms Window in my Browzer. Can any body tell me how can i arrange this.
    I will appreciate quick response.
    Thanks in advance
    Danish

    I did but Window of the Form still is there. It opens a new window not like an HTML but Window of Form is still there.
    Thanks

  • Masthead link in same window (Very urgent)

    Hi,
      How do we create a External link in Masthead that should open in current portal page frame.
    Thanks and Regards,
    Jack.

    Hi Jack,
    I am not sure the way I followed to achieve this is best way. I created a iView which is not visible in normal navigation. In masthead on click of link you call a function.
    <TD nowrap ><hbj:link id="Sitemap" tooltip="Sitemap" linkDesign="FUNCTION" reference="javascript:activateQuickSearch();"><hbj:textView nested="true" text="Sitemap"/></hbj:link></TD>
    Inturn this function calls that iView which is then open in portal framework and visible to user.
    function activateQuickSearch()
    EPCM.doNavigate(
    "ROLES://portal_content/MyComany/Roles/Generic/Sitemap")
    Hope it helps,
    Regards,
    Vishal

  • Installation of oracle fail safe on windows cluster - plz very urgent

    hi everybody,
    this is the first time i am going to install oracle failsafe on windows clusters.
    i am going to install oracle 9i release 2 software.
    so i have to install the patches.
    plz tell me with oracle cmds how to do the following.
    1. after installing oracle 9i rel 2 how to install the patches to it in windows environment?
    2. how to create oracle database on one node using shared disk for storage.
    3. how to install oracle fail safe on each cluster?
    4. how to configure cluster using fail safemanager?
    plz provide me soln asap very urgent.
    and don't forget to give me the soln with commands aqnd step by step.
    plz plz plz
    thanks in advance
    suresh

    For 9i , this is better:
    http://download-uk.oracle.com/docs/cd/B10501_01/rac.920/a96600/toc.htm

  • Very Urgent...Please Help..Invoking Windows Applications

    I capture the Windows Desktop screen and saved it as a .jpg file. I then display the .jpg file on frame ( whose size is that of the screen ). Now if i click on the frame, the corresponding Window's application should be invoked ( i.e if I click on the frame where the Start Menu is shown, then the Start Menu should be opened ). Please help me with the code for this. I will be forever indebted to the person who can help me. Iam in very urgent need of this help

    Not so easy.A JPG file is a compressed map of a "picture",nothing more. So , You have to get a reference to an object of this map - You can't save to a simple file (JPG) and expect to do what you want to do.Think something else , not a simple snapshot.In Win98 you have a directory "Desktop" where are all of your icons , in Win2000 you have to search in "Documents and settings\User_name\" or something like this to find the same directory and get all icons.Therefrom look for "Properties" and find the path to execute the exe file.It must be something like this I think.Hope have been helpfull.

  • Need help, MMC tree got deleted, very urgent.

    Hi,
    My sap MMC tree, got deleted in the server. I have been trying to restore since 2 days and couldnt succeed, please help me.
    1) i have uncared the sapmmc.sar from   Kernal\NT\I386\MMC\sapmmc.sar file
    2) i got about 7 files, in which there is one sapmmc file i have tried to double click it, n check but no go.
    3) i also tried to run the Sapstartsrv.exe file and fill in up the values in pop up window. & filled up the following values :-
                        SID: DEV
                        NR: 00
                        StartProfile:  (entire start profile path given)
                        user: devadm
                        passwd; (given)
    - but it says "the account name is invalid or does not exist or the password is invalid for account name specified"/
    - no go in both the cases.
    Please need help very urgent.
    Regards,
    Satish.

    siva,
    I am getting same error since 2 days
    SID: DEV
    NR: 00
    Start Profile: (entire start profile path)
    User: <hostname>/devadm
    passwd: ****
    Error:
    cannot install service
    create service failed:421
    The account name is invalid or doesnot exist, or the passwd is invalid for the account name specified.
    Edited by: satish c on Jun 4, 2008 11:12 AM

  • Unable to start IDC Content Service(Very Urgent)

    Hi,
    My local system has Windows XP.I have installed Oracle 10g Express Edition,Apache,has jre1.6.0_03 and run the UCM installer.Both IDC Content Admin Service and IDC Content Service are set to start automatically during installation time."IDC Content Admin Service" is getting started automatically but "IDC Content Service" is not getting started.It is getting the following Error Message when we are starting IDC Content Service
    Error 1064 : An exception occured in the service when handling the Control Request.
    I have already installed Oracle Database 10g and D2k 10g also on my local system.
    i am getting following error in the log file
    Failed to initialize the server. Unable to initialize the system provider 'SystemDatabase'. Unable to create database connection for the database 'SystemDatabase' with connection string 'jdbc:oracle:thin:@localhost:1521:xe'. Please make sure that the connection string, user and password are correct. Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe
    Unable to create database connection for the database 'SystemDatabase' with connection string 'jdbc:oracle:thin:@localhost:1521:xe'. Please make sure that the connection string, user and password are correct. Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe
    java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe [ Details ]
    A fatal error has occurred. The stack trace below shows more information.
    !csFailedToInitServer!csProviderUnableToInitialize,SystemDatabase!csJdbcUnableToCreateConnection,SystemDatabase,jdbc:oracle:thin:@localhost:1521:xe!$Listener refused the connection with the following error:<br>ORA-12505\, TNS:listener does not currently know of SID given in connect descriptor<br>The Connection descriptor used by the client was:<br>localhost:1521:xe<br>!csJdbcUnableToCreateConnection,SystemDatabase,jdbc:oracle:thin:@localhost:1521:xe!$Listener refused the connection with the following error:<br>ORA-12505\, TNS:listener does not currently know of SID given in connect descriptor<br>The Connection descriptor used by the client was:<br>localhost:1521:xe<br>!syExceptionType2,java.sql.SQLException,Listener refused the connection with the following error:<br>ORA-12505\, TNS:listener does not currently know of SID given in connect descriptor<br>The Connection descriptor used by the client was:<br>localhost:1521:xe<br>
    intradoc.common.ServiceException: !csProviderUnableToInitialize,SystemDatabase!csJdbcUnableToCreateConnection,SystemDatabase,jdbc:oracle:thin:@localhost:1521:xe!$Listener refused the connection with the following error:
    ORA-12505\, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe
         at intradoc.server.IdcSystemLoader.loadProviders(IdcSystemLoader.java:1949)
         at intradoc.server.IdcSystemLoader.initProviders(IdcSystemLoader.java:1729)
         at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:221)
         at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:185)
         at intradoc.server.IdcServerManager.init(IdcServerManager.java:73)
         at IdcServerNT.init(IdcServerNT.java:86)
         at IdcServerNT.main(IdcServerNT.java:54)
    Caused by: intradoc.data.DataException: !csJdbcUnableToCreateConnection,SystemDatabase,jdbc:oracle:thin:@localhost:1521:xe!$Listener refused the connection with the following error:
    ORA-12505\, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe
         at intradoc.jdbc.JdbcConnectionUtils.getConnection(JdbcConnectionUtils.java:88)
         at intradoc.jdbc.JdbcWorkspace.init(JdbcWorkspace.java:97)
         at intradoc.provider.Provider.init(Provider.java:68)
         at intradoc.server.IdcSystemLoader.loadProviders(IdcSystemLoader.java:1937)
         ... 6 more
    Caused by: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:xe
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
         at oracle.jdbc.driver.PhysicalConnection.&#60;init&#62;(PhysicalConnection.java:441)
         at oracle.jdbc.driver.T4CConnection.&#60;init&#62;(T4CConnection.java:165)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at intradoc.jdbc.JdbcConnectionUtils.getConnection(JdbcConnectionUtils.java:70)
         ... 9 more
    The Oracle Homes are different for both the Oracle.
    If somebody have idea about this problem,please help me. This is very urgent.
    Manoj Baghel
    [email protected]

    I think so..
    Your Oracle Database doesn't connect to content server..
    Maybe, you can edit the configuration of your UCM..
    Please open the file at C:\oracle\ucm\server\config\config.cfg..
    And then add the code :
    NumConnection = 5;
    CMIIW

  • Personnel Data Iview Error (It's very Urgent)

    Hi All,
    Personal Data   
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    failed to create or init instance of model 'com.sap.xss.hr.per.in.pdata.model.HRXSS_PER_P0002_IN' in scope APPLICATION_SCOPE with instanceId 'null'   
    Caused by: com.sap.tc.webdynpro.progmodel.model.api.WDModelException: failed to create instance of model 'com.sap.xss.hr.per.in.pdata.model.HRXSS_PER_P0002_IN'
         at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getNewModelInstance(WDModelFactory.java:392)
         at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getOrCreateModelInstanceFromScopeMaintainer(WDModelFactory.java:329)
         ... 65 more
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: no jcoMetadata found for RFC function 'HRXSS_PER_GET_F4_P0002_IN'! Please verify, that your model is consistent with the ABAP backend: 'EC6'.
    Hi Please help me to solve this error it's very urgent ?
    thanks and regards,
    Phanikumar.

    Hi Ashutosh Gulkhobre,
    I coppied the dump from the ST22.
    Now please tell me solution fro this error ?
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Date and Time          27.06.2007 09:54:55
         Short text
              Access via 'NULL' object reference not possible.
         What happened?
              Error in the ABAP Application Program
              The current ABAP program "SAPLHRXSS_PER_MAC" had to be terminated because it
               has
              come across a statement that unfortunately cannot be executed.
         What can you do?
              Note down which actions and inputs caused the error.
              To process the problem further, contact you SAP system
              administrator.
              Using Transaction ST22 for ABAP Dump Analysis, you can look
              at and manage termination messages, and you can also
              keep them for a long time.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
               caught in
              procedure "HRXSS_PER_CLEANUP" "(FUNCTION)", nor was it propagated by a RAISING
               clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              You attempted to use a 'NULL' object reference (points to 'nothing')
              access a component.
              An object reference must point to an object (an instance of a class)
              before it can be used to access components.
              Either the reference was never set or it was set to 'NULL' using the
              CLEAR statement.
         How to correct the error
              Probably the only way to eliminate the error is to correct the program.
              If the error occures in a non-modified SAP program, you may be able to
              find an interim solution in an SAP Note.
              If you have access to SAP Notes, carry out a search with the following
              keywords:
              "OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
              "SAPLHRXSS_PER_MAC" or "LHRXSS_PER_MACU04"
              "HRXSS_PER_CLEANUP"
              If you cannot solve the problem yourself and want to send an error
              notification to SAP, include the following information:
              1. The description of the current problem (short dump)
                 To save the description, choose "System->List->Save->Local File
              (Unconverted)".
              2. Corresponding system log
                 Display the system log by calling transaction SM21.
                 Restrict the time interval to 10 minutes before and five minutes
              after the short dump. Then choose "System->List->Save->Local File
              (Unconverted)".
              3. If the problem occurs in a problem of your own or a modified SAP
              program: The source code of the program
                 In the editor, choose "Utilities->More
              Utilities->Upload/Download->Download".
              4. Details about the conditions under which the error occurred or which
              actions and input led to the error.
              The exception must either be prevented, caught within proedure
              "HRXSS_PER_CLEANUP" "(FUNCTION)", or its possible occurrence must be declared
               in the
              RAISING clause of the procedure.
              To prevent the exception, note the following:
         System environment
              SAP-Release 700
              Application server... "ptgsap10"
              Network address...... "192.168.1.18"
              Operating system..... "Windows NT"
              Release.............. "5.2"
              Hardware type........ "2x Intel 80686"
              Character length.... 16 Bits
              Pointer length....... 32 Bits
              Work process number.. 0
              Shortdump setting.... "full"
              Database server... "PTGSAP10"
              Database type..... "ORACLE"
              Database name..... "EC6"
              Database user ID.. "SAPSR3"
              Char.set.... "C"
              SAP kernel....... 700
              created (date)... "Aug 29 2006 00:18:21"
              create on........ "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
              Database version. "OCI_10201_SHARE (10.2.0.1.0) "
              Patch level. 75
              Patch text.. " "
              Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
              SAP database version. 700
              Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
              Memory consumption
              Roll.... 8176
              EM...... 2090448
              Heap.... 0
              Page.... 0
              MM Used. 1208256
              MM Free. 880672
         User and Transaction
              Client.............. 001
              User................ "ESS_USER1"
              Language Key........ "E"
              Transaction......... " "
              Program............. "SAPLHRXSS_PER_MAC"
              Screen.............. "SAPMSSY1 3004"
              Screen Line......... 2
              Information on caller of Remote Function Call (RFC):
              System.............. "########"
              Database Release.... 645
              Kernel Release...... 700
              Connection Type..... "E" (2=R/2, 3=ABAP System, E=Ext., R=Reg. Ext.)
              Call Type........... "synchron and non-transactional (emode 0, imode 0)"
              Inbound TID.........." "
              Inbound Queue Name..." "
              Outbound TID........." "
              Outbound Queue Name.." "
              Client.............. "###"
              User................ "############"
              Transaction......... " "
              Call Program........." "
              Function Module..... "HRXSS_PER_CLEANUP"
              Call Destination.... "ptgsap10_EC6_10"
              Source Server....... "EPSAND1"
              Source IP Address... "192.168.1.36"
              Additional information on RFC logon:
              Trusted Relationship " "
              Logon Return Code... 0
              Trusted Return Code. 0
              Note: For releases < 4.0, information on the RFC caller are often
              only partially available.
         Information on where terminated
              Termination occurred in the ABAP program "SAPLHRXSS_PER_MAC" - in
               "HRXSS_PER_CLEANUP".
              The main program was "SAPMSSY1 ".
              In the source code you have the termination point in line 13
              of the (Include) program "LHRXSS_PER_MACU04".
              The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
              procedure "HRXSS_PER_CLEANUP" "(FUNCTION)", but it was neither handled locally
               nor declared
              in the RAISING clause of its signature.
              The procedure is in program "SAPLHRXSS_PER_MAC "; its source code begins in
               line
              1 of the (Include program "LHRXSS_PER_MACU04 ".
         Source Code Extract
         Line     SourceCde
             1     FUNCTION hrxss_per_cleanup.
             2     *"----
             3     ""Local interface:
             4     *"  EXPORTING
             5     *"     VALUE(MESSAGES) TYPE  BAPIRETTAB
             6     *"----
             7     
             8     *  CALL METHOD mac_adapter->cleanup
             9     *    IMPORTING
            10     *      messages = messages.
            11     
            12     * TRY.
         >>>>>       CALL METHOD xss_adapter->cleanup
            14         .
            15     * CATCH CX_HRPA_VIOLATED_ASSERTION .
            16     * ENDTRY.
            17       IF NOT xss_adapter2 IS INITIAL.
            18         CALL METHOD xss_adapter2->cleanup.
            19       ENDIF.
            20     
            21     ENDFUNCTION.
         Contents of system fields
         Name     Val.
         SY-SUBRC     0
         SY-INDEX     2
         SY-TABIX     13
         SY-DBCNT     30
         SY-FDPOS     0
         SY-LSIND     0
         SY-PAGNO     0
         SY-LINNO     1
         SY-COLNO     1
         SY-PFKEY     
         SY-UCOMM     
         SY-TITLE     CPIC and RFC Control
         SY-MSGTY     
         SY-MSGID     
         SY-MSGNO     000
         SY-MSGV1     
         SY-MSGV2     
         SY-MSGV3     
         SY-MSGV4     
         SY-MODNO     0
         SY-DATUM     20070627
         SY-UZEIT     095455
         SY-XPROG     SAPLHRXSS_PER_MAC
         SY-XFORM     HRXSS_PER_CLEANUP
         Active Calls/Events
         No.   Ty.          Program                             Include                             Line
               Name
             4 FUNCTION     SAPLHRXSS_PER_MAC                   LHRXSS_PER_MACU04                      13
               HRXSS_PER_CLEANUP
             3 FORM         SAPLHRXSS_PER_MAC                   LHRXSS_PER_MACU04                       1
               HRXSS_PER_CLEANUP
             2 FORM         SAPMSSY1                            SAPMSSY1                               85
               REMOTE_FUNCTION_CALL
             1 MODULE (PBO) SAPMSSY1                            SAPMSSY1                               30
               %_RFC_START
         Chosen variables
         Name
             Val.
         No.          4     Ty.      FUNCTION
         Name      HRXSS_PER_CLEANUP
         MESSAGES
              Table[initial]
         SY-XFORM
              HRXSS_PER_CLEANUP
                 455555545544444552222222222222
                 82833F052F3C51E500000000000000
                 000000000000000000000000000000
                 000000000000000000000000000000
         %_DUMMY$$
                 2222
                 0000
                 0000
                 0000
         XSS_ADAPTER2
                 F0000000
                 F0000000
         No.          3     Ty.      FORM
         Name      HRXSS_PER_CLEANUP
         SYST-REPID
              SAPLHRXSS_PER_MAC
                 5454455555545544422222222222222222222222
                 310C82833F052FD1300000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         %_%_MESSAGES
              Table[initial]
         No.          2     Ty.      FORM
         Name      REMOTE_FUNCTION_CALL
         %_DUMMY$$
                 2222
                 0000
                 0000
                 0000
         SY-REPID
              SAPMSSY1
                 5454555322222222222222222222222222222222
                 310D339100000000000000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         SYST-REPID
              SAPMSSY1
                 5454555322222222222222222222222222222222
                 310D339100000000000000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         HEADER
                 000000000000
                 000000000000
         TYPE
              3
                 0000
                 3000
         SY-XPROG
              SAPLHRXSS_PER_MAC
                 5454455555545544422222222222222222222222
                 310C82833F052FD1300000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         %_ARCHIVE
                 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         RC
              0
                 0000
                 0000
         SY-XFORM
              HRXSS_PER_CLEANUP
                 455555545544444552222222222222
                 82833F052F3C51E500000000000000
                 000000000000000000000000000000
                 000000000000000000000000000000
         %_SPACE
                 2
                 0
                 0
                 0
         No.          1     Ty.      MODULE (PBO)
         Name      %_RFC_START
         %_PRINT
                  000                                                                                0###
                 2222333222222222222222222222222222222222222222222222222222222222222222222222222222222222223000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         RFCTYPE_INTERNAL
              3
                 0000
                 3000
         Internal notes
              The termination was triggered in function "method_call_iref"
              of the SAP kernel, in line 2203 of the module
               "//bas/700_REL/src/krn/runt/abmethod.c#7".
              The internal operation just processed is "METH".
              Internal mode was started at 20070627095455.
         Active Calls in SAP Kernel
         Lines of C Stack in Kernel (Structure Differs on Each Platform)
         SAP (R) - R/3(TM) Callstack, Version 1.0
         Copyright (C) SAP AG. All rights reserved.
         Callstack without Exception:
         App       : disp+work.EXE (pid=24080)
         When      : 6/27/2007 9:54:55.565
         Threads   : 2
         Computer Name       : PTGSAP10
         User Name           : SAPServiceEC6
         Number of Processors: 2
         Processor Type: x86 Family 6 Model 11 Stepping 1
         Windows Version     : 5.2 Current Build: 3790
         State Dump for Thread Id 6cd0
         eax=000a7358 ebx=00000464 ecx=00000248 edx=00000000 esi=00000464 edi=00000000
         eip=7c82ed54 esp=0549c640 ebp=0549c6b0 iopl=0         nv up ei ng nz ac po cy
         cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00200297
         function : KiFastSystemCallRet
                 7c82ed54 c3               ret
                 7c82ed55 8da42400000000   lea     esp,[esp]              ss:0549c640=7c822124
                 7c82ed5c 8d642400         lea     esp,[esp]              ss:27f2ac53=????????
         FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
         0549c6b0 77e6ba12 00000464 0001d4c0 00000000 0549c6e8 ntdll!KiFastSystemCallRet
         0549c6c4 0101f939 00000464 0001d4c0 00000001 7c38b5c8 kernel32!WaitForSingleObject
         0549c6e8 005641c2 005641fb 7c38b5c8 7c38b5c8 7c38b5c8 disp+work!NTDebugProcess [ntstcdbg.c (501)]
         0549c6ec 005641fb 7c38b5c8 7c38b5c8 7c38b5c8 01d87888 disp+work!NTStack [dptstack.c (1367)]
         0549c708 0056422f 7c38b5c8 00000000 0085f2b9 7c38b5c8 disp+work!CTrcStack2 [dptstack.c (352)]
         0549c714 0085f2b9 7c38b5c8 00000000 005f0059 00300030 disp+work!CTrcStack [dptstack.c (182)]
         0549c738 008626fb 3ccf0c10 00008006 00000000 00660bd8 disp+work!rabax_CStackSave [abrabax.c (7020)
         0549cfe0 0067f9fc 01285324 012852e4 0000089b 2054de20 disp+work!ab_rabax [abrabax.c (1243)]
         0549d010 006914a8 00000003 3cda5308 00000000 0549d078 disp+work!method_call_iref [abmethod.c (2203
         0549d078 007c8d1e 00000000 3cda5308 0549d1c4 3cda67e8 disp+work!ab_extri [abextri.c (552)]
         0549d08c 008433d6 00000000 3cda6768 0059fdb0 3cda64b4 disp+work!ab_xevent [abrunt1.c (281)]
         0549d098 0059fdb0 3cda64b4 00000008 3cda6768 00000000 disp+work!ab_dstep [abdynpro.c (491)]
         0549d1c4 005a2ae2 3cda5308 3cda5308 0549fd04 005a2654 disp+work!dynpmcal [dymainstp.c (2394)]
         0549d1d4 005a2654 3cda5308 3cda5308 00000003 0549fd04 disp+work!dynppbo0 [dymainstp.c (542)]
         0549d1f0 00577116 3cda5308 00000004 00000000 0000001a disp+work!dynprctl [dymainstp.c (359)]
         0549fd04 004741c6 0000001a 00000001 00000001 0049792f disp+work!dynpen00 [dymain.c (1464)]
         0549fd14 0049792f 00000004 00000000 00000003 00000002 disp+work!Thdynpen00 [thxxhead.c (4683)]
         0549fee0 00497ead 00000001 00000000 00000000 00430000 disp+work!TskhLoop [thxxhead.c (4395)]
         0549ff00 004214f1 00000000 00000000 7ffd5000 0549ff60 disp+work!ThStart [thxxhead.c (1153)]
         0549ff14 00401080 00000003 056368d8 00000001 00000000 disp+work!DpMain [dpxxdisp.c (1119)]
         0549ff60 011bf720 00000003 056368d8 056378c8 01c05000 disp+work!nlsui_main [thxxanf.c (82)]
         0549ffc0 77e523cd 00000000 00000000 7ffd5000 80938fd6 disp+work!wmainCRTStartup [crtexe.c (395)]
         0549fff0 00000000 011bf5dd 00000000 00905a4d 00000003 kernel32!IsProcessorFeaturePresent
         State Dump for Thread Id 6408
         eax=00000001 ebx=00000103 ecx=0770fee8 edx=7c82ed54 esi=00000000 edi=00000000
         eip=7c82ed54 esp=0770fec0 ebp=0770ff04 iopl=0         nv up ei pl zr na po nc
         cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
         function : KiFastSystemCallRet
                 7c82ed54 c3               ret
                 7c82ed55 8da42400000000   lea     esp,[esp]              ss:0770fec0=7c821514
                 7c82ed5c 8d642400         lea     esp,[esp]              ss:2a19e4d3=????????
         FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
         0770ff04 0110e0b7 000006e0 00000000 00000000 059ca9d8 ntdll!KiFastSystemCallRet
         0770ff84 7c349565 00000000 00000000 00000000 0563a508 disp+work!SigIMsgFunc [signt.c (594)]
         0770ffb8 77e66063 0563a508 00000000 00000000 0563a508 MSVCR71!endthreadex
         0770ffec 00000000 7c3494f6 0563a508 00000000 00000000 kernel32!GetModuleFileNameA
         List of ABAP programs affected
         Index     Typ     Program     Group     Date     Time     Size     Lang.
              0     Prg     SAPMSSY1          0     11.04.2005     09:27:15         21504     E
              1     Prg     SAPLHRXSS_SER_AUTHORITHY_CHECK          1     13.02.2005     19:00:30         16384     E
              2     Prg     SAPLASTAT_TRIG          2     09.09.2004     14:18:33         13312     E
              3     Typ     ASTAT_TYP2          0     10.11.1998     05:35:18          2048     
              4     Typ     ASTAT_TYP1          0     30.11.1998     15:54:16          2048     
              5     Prg     SAPLSAUTHTRACE          5     07.03.2005     08:51:05         57344     E
              6     Typ     USOBHASH          0     02.07.2003     13:15:24          3072     
              7     Prg     SAPLSECH          7     05.07.2005     13:10:18         26624     E
              8     Typ     CVERS          0     09.11.2000     14:05:49          2048     
              9     Prg     SAPLHRXSS_PER_MAC          9     10.02.2004     14:21:15         49152     E
             10     Prg     CX_SY_REF_IS_INITIAL==========CP         10     05.07.2005     13:10:16         10240     E
             11     Typ     SCX_SRCPOS          0     18.05.2004     14:07:11          2048     
             12     Prg     CX_DYNAMIC_CHECK==============CP         12     05.07.2005     13:10:16         10240     E
             13     Prg     CX_ROOT=======================CP         13     05.07.2005     13:10:16         11264     E
             14     Prg     CX_NO_CHECK===================CP         14     05.07.2005     13:10:16         10240     E
             15     Prg     CX_SY_NO_HANDLER==============CP         15     05.07.2005     13:10:16         10240     E
             16     Typ     SYST          0     09.09.2004     14:18:12         31744     
         Directory of Application Tables
         Name                                     Date       Time       Lngth
             Val.
         Program      SAPMSSY1
         SYST            .  .            :  :          00004612
              \0\0\0\0\x000D\0\x000F\0\0\0\0\0\0\0\0\0\0\0\0\0\x001E\0\0
         ABAP Control Blocks (CONT)
         Index     Name     Fl     PAR0     PAR1     PAR2     PAR3     PAR4     PAR5     PAR6     Source Code     Line
           246     FUNC     03     0020                                   LHRXSS_PER_MACU03            1
           247     PAR2     02     0000     001B     C000                         LHRXSS_PER_MACU03            1
           249     FUNC     13     0003                                   LHRXSS_PER_MACU03            1
           250     PAR2     01     0000     0011     C001                         LHRXSS_PER_MACU03            1
           252     FUNC     FF     0000                                   LHRXSS_PER_MACU03            1
           253     ENDF     00     0000                                   LHRXSS_PER_MACU03            1
           254     -
         00     0000                                   LHRXSS_PER_MACU03            1
           255     STCK     02     C001                                   LHRXSS_PER_MACU03            1
           256     CPOP     00     0000                                   LHRXSS_PER_MACU03            1
           257     -
         00     0000                                   LHRXSS_PER_MACU03            1
           258     FUNP     3E     0000     0011     8000     0000     8000     0000     0000     LHRXSS_PER_MACU04            1
           262     FUNP     80     0000     0000     0000     0000     0000     0000     0000     LHRXSS_PER_MACU04            1
         >>>>>     METH     03     0000     0000     8006     0000     0000     0000     0000     LHRXSS_PER_MACU04           13
           270     PAR2     00     0000     0001     0000                         LHRXSS_PER_MACU04           13
           272     CMPS     20     024B     001B     001B                         LHRXSS_PER_MACU04           17
           274     BRAF     05     0007                                   LHRXSS_PER_MACU04           17
           275     METH     03     0000     0001     8006     0000     0000     0000     0000     LHRXSS_PER_MACU04           18
           279     PAR2     00     0000     0001     0000                         LHRXSS_PER_MACU04           18
           281     FUNE     00     0000                                   LHRXSS_PER_MACU04           21
           282     -
         00     0000                                   LHRXSS_PER_MACU04           21
    Thanks and Regards,
    Phanikumar

  • Update Routine ... Help me Please--VERY URGENT

    Hi All ,
    I Moving data from Cube to ODS . Let me explain abt the records in the cube .
    There are 6 key figures in the cube as well as dimensions, UNIQKEY TRANSACTION is One Dimension and ARTICLE is another dimension which is having an Navigational attribute called CORE ELEMENT.
    I am showing the data with those two dimension and the key figures which are to be used in the routine.
    Charc----
    Key Figures
    UNIQKEY-ARTICLE-Coreelement--
    billqty     
    in base unit
    A00N----1006330--1--
    10.5
    A00M -
    1006320----2--
    2.5
    A00P-----1006330--1--
    10.5  
    A00P-----1006320--2--
    2.5
    A00Q-----1006320--2--
    2.5
    A00Q-----1006340--3--
    10.5
    Now Lets see what the core element numbers mean,
    core element 1 means -- fuel .
    Core elemnet other 1 -- food .   
    I need to move these data into ODS Which will have an extra field called No of items in the transaction --ITEMS.For this i need to write  a routine .
    The Logic is ...
    1.if Materail is of type 1(Means if the core element - 1)
    I need to Populate the No of items in tnx = 1 .--ITEMS.
    2.If Material is of type(Means if the core element)2or 3 I need to populate the billing quantity to the no of transcations.--ITEMS
    3. If the Uniqkey tanscation contains two line items as  suppose that you have 20 litres of fuel and 2 cans of coke, then No of Items in the transaction should be 3 and Billing Quantity in BUoM 22
    billing quantity in BUoM = 20 litres for the first line item and 2 for the second line item...
    then as the first line item is fuel, field No OF Items in the Transcation should be 1 (replacing the 20) + 2 = 3
    so the final result in the ODS should be billing quantity in BUoM = 22 and The Items in the Transcation= 3
    So the ODS Data should look like this.
    UNIQKEY--billqty--
    ITEMS
    in base unit 
    A00N--10.5--
    1
    A00M--2.5--
    2.5
    A00P--13--
    3.5
    A00Q--13--
    12.5  
    NOTE : IN the ODS only the UNIQKEY IS THE KEY FIELD and the rest are DATA FIELDS.
    I Posted this one before also. But didnt get proper responses.
    I am Pasting the piece of code which I have written . This code will work for the first two records in the cube , But it is failing for the UNIQKEY Transcation having Line items.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /BI0/PMATERIAL.
    DATA: TITEMS LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS,
           CORE_ELEMENT like /BI0/PMATERIAL-RPA_WGH1.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS8ZPOCTUS04
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    check not COMM_STRUCTURE-material is initial.
      select SINGLE RPA_WGH1
            INTO CORE_ELEMENT
            from /BI0/PMATERIAL
            where
            material = COMM_STRUCTURE-material
            and  OBJVERS <>'D'.
       IF CORE_ELEMENT EQ '1'.
       TITEMS = '1'.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input         = titems
          IMPORTING
            OUTPUT        = titems
       ELSE.
       TITEMS = COMM_STRUCTURE-BILL_QTY.
       ENDIF.
    result value of the routine
      RESULT = TITEMS..
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    PLease give me ideas on how to acheive this . As I am not Aware of ABAP very well.. PLease try to give me the code. I hope one of you may got the same requirement before.
    Its very urgent and I need to deliver it today itself.
    Thanks in advance , you can mail me to [email protected]. If anybody intersted to discuss this Issue they can reach at +91 9845922955.

    Hi ,
    While I am moving the data from cube to ods . I need to create the update rules with cube -- 8cube . WHen i am doing this the billqty is a key figure in cube so that is not a problem but the ITEMS is not there in the cube ,SO for that I need to write a routine to populate that one.
    Its strange but the user what to analyse with the UNIQKEY transaction. And these objects will be added as navigational attributes to the Characteristic. as it acts as another dimension.
    He wants to laod these from ODS to Master data -Characteristic.
    to say for each transcation hpw many items are getting sold.
    Message was edited by: Nagarjuna Reddy
    ONce again thanks for the qucik replies
    Message was edited by: Nagarjuna Reddy

  • VERY URGENT!! How to Pass a "% " symbol from form to Report

    Hi
    I am using oracle 10g and passing a symbol "%" as a parameter to the report from a form. But it shows error as follows:
    REP-52006: Failed to decode the specified URL PARAMETER1=%.
    But it is working when it runs in the Report directly.
    Then Why we can't pass the symbol "%" to the report from form.
    Please reply me as soon as possible. IT IS VERY URGENT !!

    Hi,
    Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
    Thanks,
    Kimosabe

  • How to write code for this logic, plz help me very urgent

    Hi All,
    i am new to sap-abap, i got this work and i m working on this can any body help me in writing code, plz help me, this is very very urgent.
    here  i m giving my logic, can anybody send me the code related to this logic.
    this is very urgent .
    this program o/p should be in ALV format and need to create one commond 'SAVE" on this o/t list  if  user clicks save processedon and processedby fields in ZFIBUE should be updated automatically.
    i am creating one custom table zfibue having fields: (serialno, bukrs, matnr,prdha,hkont,gsber,wrbtr,budat, credate, cretime,processed, processedon, processedby,mapped)
    fields of zfibue:
    serailno = numc
    bukrs = char
    matnr = char
    prdha = char
    hkont = char
    gsber = char
    wrbtr = char
    budat = date
    credate = date
    cretime = time
    processed= char
    processedon = date
    processedby = char
    mapped = char      are   belongs to above type data types
    and seelct-optionfields:  s_bukrs for bseg-bukrs
                                        s_hkont for bseg-hkont,
                                         s_budat for bkpf-budat,
                                         s_processed for zfibue-processed,
                                          s_processedon for zfibue-processedon,
                                          s_mapped. for zfibue-mapped
    parameters: p_chk1 as checkbox,
                      p_chk2 as checkbox.
                      p_filepath type rlgrap-filename.
    1.1 Validate the user inputs (S_BUKRS and S_HKONT) against respective check tables (T001 and SKB1). If the validation fails, provide respective error message. Eg: “Invalid input for Company Code”.
    1.2 Fetch SERIALNO, BUKRS, MATNR, PRDHA, HKONT, GSBER, WRBTR, BUDAT, CREDATE, CRETIME, PROCESSED, PROCESSEDON, PROCESSEDBY, MAPPED from table ZFIBUE into internal table GT_ZFIBUE where BUKRS IN S_BUKRS, HKONT IN S_HKONT, BUDAT IN S_BUDAT, PROCESSED IN S_PROCESSED, PROCESSEDON IN S_PROCESSEDON, and MAPPED IN S_MAPPED.
    1.3 If P_CHK2 = ‘X’, go to step 1.11. Else continue.
    1.4 If P_CHK1 = ‘X’, continue. Else go to step 1.9
    1.5 Fetch MATNR, PRDHA from MARA into GT_MARA for all entries in GT_ZFIBUE where MATNR = GT_ZFIBUE-MATNR.
    1.6 Sort and delete adjacent duplicates from GT_MARA based on MATNR.
    1.7 Loop through GT_ZFIBUE where PRDHA = blank.
              Read Table GT_MARA based on MATNR = GT_ZFIBUE-MATNR.
              IF sy-subrc = 0.
                     Move GT_MARA-PRDHA to GT_ZFIBUE-PRDHA.
                  Modify Table GT_ZFIBUE. “Update Product Hierarchy
                 Endif.
        Fetch PRDHA, GSBER from ZFIBU into GT_ZFIBU for all entries in GT_ZFIBUE where PRDHA = GT_ZFIBUE-PRDHA.
        Read Table GT_ZFIBU based on PRDHA = GT_ZFIBUE-PRDHA.
              IF sy-subrc = 0.
                     Move GT_ZFIBU-GSBER to GT_ZFIBUE-GSBER.
                  Move “X” to GT_ZFIBUE-MAPPED.      
                  Modify Table GT_ZFIBUE.
                 Endif.   
    Endloop.
    1.8 Modify database table ZFIBUE from GT_ZFIBUE.
    1.9 Fill the field catalog table GT_FIELDCAT using the details of output fields listed in section “Inputs/Outputs” (above).
       Eg:                 LWA_ FIELDCAT -SELTEXT_L = 'Serial Number’.
                              LWA_ FIELDCAT -DATATYPE = ‘NUMC’.
                              LWA_ FIELDCAT -OUTPUTLEN = 9.
                              LWA_ FIELDCAT -TABNAME = 'GT_ZFIBUE'.
                              LWA_ FIELDCAT-FIELDNAME = 'SERIALNO'.
              Append LWA_FIELDCAT to GT_FIELDCAT
    Note: a) The output field GT_ZFIBUE-PROCESSED will be editable marking INPUT = “X” in field catalog (GT_FIELDCAT).
             b) The standard ALV functionality will be used to give the user option for selecting all or blocks of entries at a time.
             c) The PF-STATUS STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN will be copied to the program and modified to include a “SAVE” button.
    1.10 Call the function module REUSE_ALV_GRID_DISPLAY passing output table GT_ZFIBUE and field catalog GT_FIELDCAT. Additional parameters like I_CALLBACK_PF_STATUS_SET (= ‘ZFIBUESTAT’) and I_CALLBACK_USER_COMMAND (=’HANDLE_USER_ACTION’) will also be passed to handle user events. Go to 2.14.
    1.11 Download the file to P_FILEPATH using function module GUI_DOWNLOAD passing GT_ZFIBUE.
    1.12 Exit Program.
    Logic to be implemented in  routine “Handle_User_Action”
    This routine will have the following interface:
    FORM Handle_User_Action  USING r_ucomm LIKE sy-ucomm
                                                               rs_selfield TYPE slis_selfield.
    ENDFORM.
    Following logic will be implemented in this routine:
    1.     If r_ucomm = ‘SAVE’, continue. Else exit.
    2.     Loop through GT_ZFIBUE where SEL_ROW = ‘X’. “Row is selected
    a.     IF GT_ZFIBUE-PROCESSED = ‘X’.
    i.     GT_ZFIBUE-PROCESSEDON = SY-DATUM.
    ii.     GT_ZFIBUE-PROCESSEDBY = SY-UNAME.
    iii.     MODIFY ZFIBUE FROM work area GT_ZFIBUE.
    Endif.
    Endloop.

    Hi Swathi,
    If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop.

  • Duplicate records found while loading master data(very urgent)

    Hi all,
    One infopackage in the process chain failed while laoding the master data(full update).Its showing the following error-->duplicate record found ..1 record used in /BI0/PTCTQUERY and the same record occured in /BI0/PTCTQUERY tables.
    can anyone give me the solution...its very urgent...
    Thanks & Regards,
    Manjula

    Hi
    You can see the check box in the Processing tab page. Make a tick mark for the check box Ignore Duplicate Data Records indicator . When multiple data records that have the same key are transferred, the last data record in the request is updated to BI. Any other data records in the request with the same key are ignored.
    Help says that:
    To maintain consistency, ignoring duplicate data records is only possible if the data is updated serially. A serial update is when data is first updated into the PSA then, after it has been successfully written to the PSA, it is updated into the master data or text tables of the InfoObject.
    If a DataSource transfers potentially duplicate data records or if you manually set the Ignore Duplicate Data Records indicator, the PSA Only update type is automatically selected in the scheduler.
    hope it clears ur doubt, otherwise let me know.
    Regards
    Kiran

  • Please help me with the following two questions, very urgent

    Hi All,
    Please help me with some scenerios about what are the common problems when modifying a standard script such a standard Invoice script and how can we overcome them.
    What are the common problems encountered when working with SAP SMARTFORMS and how to overcome them?
    Please help me with these questions, its very urgent.
    Thanks in advance.
    MD.

    hi
    hope it will help you.
    reward if ehlp.
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)

  • HT202786 my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    DVDs are encoded into MPEG2, which iMovie cannot edit. So you need to convert the DVD back to something else. For highest quality, I recommend that you convert the DVD to Apple Intermediate Codec. There is a free tool called MPEG Streamclip that will do this. You will also need to install the Apple QuickTIme MPEG2 Playback Component.
    Here are the details.
    1) Download and install the Apple MPEG2 QuickTime Component ($20) - available online from Apple.
    2) Download and install MPEG Streamclip from Squared 5 (free).
    3) Start MPEG Streamclip
    4) Insert your DVD into your Mac. If DVD Player or Front Row starts automatically quit those.
    5) Open a Finder window. Navigate to your DVD to the Video_TS folder.
    6) Drag the .VOB files from the Video_TS folder and drop then into MPEG Streamclip.
    7) If MPEG Streamclip offers to fix timecode breaks, say yes.
    8) Use FILE/EXPORT TO QUICKTIME to convert the files to Apple Intermediate Codec (or h.264 if you prefer)
    9a) Optional: You can deinterlace your footage in this step, if you like
    9b) optional: If you know the date and or time of the footage, name your file
    clip-yyyy-mm-dd hh;mm;ss
    (let mpeg streamclip provide the extension). This will provide metadata that iMovie will use to put the event in the right year and month.
    9c) Optional: If you don't want to make one huge clip out of your DVD, you can make smaller clips by using MPEG Streamclip. Move the cursor to the "in" point of the clip, and press i. Move the cursor to the "Out" point of the clip, and press o. Then do steps 8 through 10 and repeat until you have done this for all clips you want.
    10) Save the resulting file in a place where you can find it, like your Desktop.
    11) Open iMovie.
    12) In iMovie, choose FILE/IMPORT/From File and choose the file you saved in steps 8, 9, 10.
    13) iMovie will generate thumbnails and you can edit.

  • Very urgent regarding ALV

    Hi all,
    I have displayed data in alv.and the error condition is that if for a material if it has more than one S as ok_status records then it should throw an error. This logic is working fine.
    Now suppose at first time user had entered S through keyboard which fails the condition so it throws an error first time.
    Now user can change the ok  status back to I or O from S (through keyboard although f4 help is available) which satisfies the conditon so that record should be saved. but when user presses save button then in the ALV display the changed status I or O for that record again converted back to status S automatically. and again gives an error.
    if we try third time then it allows to save with record other than s ok status i.e. I or O.
    this problem is comming only when we change the value through keyboard. If we select value using f4 help then whole logic is working fine, no problem at all.
    Can you please help me out in this regard
    Its very urgent.
    Thanks & Regards
    Ashutosh.

    Hi,
    to exclude toolbar buttons..
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
    DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO LT_EXCLUDE.
    CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
    <b>      IT_TOOLBAR_EXCLUDING = LT_EXCLUDE</b>
          IS_LAYOUT            = GS_LAYOUT
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = IT_FINAL[].
    and you told you are using REUSE_ALV_GRID_DISPLAY_LVC
    then in the user_command do this....
    then your problem will be solved.
    in the top you declare this..
      DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
    FORM USER_COMMAND  USING R_UCOMM LIKE SY-UCOMM
                             RS_SELFIELD TYPE SLIS_SELFIELD.
    *then insert the following code in your USER_COMMAND routine...
      IF REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = REF_GRID.
      ENDIF.
      IF NOT REF_GRID IS INITIAL.
        CALL METHOD REF_GRID->CHECK_CHANGED_DATA
      ENDIF.
    ENDFORM.
    Regards
    vijay

Maybe you are looking for

  • Mail attachment in pages

    I recently upgraded to mavericks and at the same time bought Pages for all my documents. I changed all my Word documents into Pages. Now I cannot send any documents any more as an attachment to my mails (I use Yahoo). Any solutions?

  • How to configure bt mail with icloud?

    how to configure bt mail with icloud?

  • How do I edit in I movie  video from a DVD

    I just want to take some footage and make a short Hilight DVD

  • How to remove scaling factor

    Hi, On our BCS transactional cube we have 3 kf - period value in group currency,  period value in local currency and period value in transaction currency. while I was exploring the measures (display data in the cube), I realized that the numbers were

  • Creating report based on master data

    Hi Guys, I want to create a specific report based on master data in BI cube. for example... a report which takes cost center and period as variable and display expenses for that period and cost center. This report I want to create for all cost center