Issue in using SET in SAP validation

Hi experts,
I have created a set using GS01 having base table BKPF and field WEARS.
I want to use it in the "check" section of the Validation step for Header data in Financial accounting, like this:-
BKPF-WEARS IN <set_name>
But when I try using the Set from "Set Directory" button - it says -
Set XXX does not exist or cannot be used.
The Set has been created successfully, then why I am getting this error still?
Please help.
Thanks.

Here it is:-
When I try to use the set in CHECK section get the following pop-up:-

Similar Messages

  • Performance issue in linux while using set with URL object

    Hi,
    I am facing performance issue while using Set(HashSet) with URL object on linux. But it is running perfectly on windows.
    I am using
    set.contains(urlObject)
    Above particular statement is taking 40 sec on Linux, and only a fraction of ms on windows.
    I have checked the jre version on both OS. It is the same version (jre6)
    on both the OS.
    Could anyone please tell me what is the exact reason, why the same statement is taking more time on linux than windows.
    Thanks & Regards
    Naveen

    jtahlborn wrote:
    I believe the URL hashCode/equals implementations have some /tricky behavior which involves network access in order to run (doing hostname lookups and the like). you may want to either use simple Strings, or possibly the URI class (i think it fixed some of this behavior, although i could be wrong).The second new thing I have learned today. I was wrong in reply # 1 because looking at the URL code for 1.6 I see that the hash code is generated from the IP address and this has a lazy evaluation. Each URL placed in a HashMap (or other hash based collection) requires a DNS lookup the first time the hash code is used.
    P.S. 40 seconds does seem a long time for a DNS lookup!
    Edited by: sabre150 on Feb 13, 2008 3:40 PM

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • Issue with using GET n SET Parameter in module pool programming.

    Hello Friends,
                         I am using SET n GET Parameter to access input values from a screen. But when I use it, the values are not transfered back n forth. Getting initial values.
    Your expertise would be appreciated.
    Cheers,
    Senthil

    Hi,
    check this
    Filling an Initial Screen using SPA/GPA Parameters
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
    The technical information for the first input field of the booking transaction TCG2 looks like this:
    The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
    The following executable program is connected to the logical database F1S and calls an update transaction:
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
    If the user selects a line of booking data by double-clicking, the system triggers the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill them into the SPA/GPA parameters of the initial screen of the transaction. Then it calls the transaction. Since you do not suppress the initial screen using AND SKIP FIRST SCREEN, the initial screen may appear as follows:
    If you would use the AND SKIP FIRST SCREEN option with the CALL TRANSACTION statement, the second screen would appear immediately, since all obligatory fields of the first screen are filled.
    Regards
    Edited by: K.P.N on Jan 9, 2008 5:21 AM

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Setting Up SAP JVM in Eclipse IDE: JRE name is already in use

    In documentation "Setting Up SAP JVM in Eclipse IDE" (https://help.hana.ondemand.com/help/frameset.htm?7613eaad711e1014839a8273b0e91070.html) a definition for a JRE must be added, although in step before that one a JRE has been created.
    If one tries to really add another definition and chooses the directory C:\...\sapjvm-7.1.018-windows-x64\sapjvm_7, then the message comes up: "The JRE name is already in use".
    Was the wrong directory choosen, is this action really needed, what please has to be done at this point during Getting Started?

    The directory is correct. However, if you have already started Eclipse with that JRE, it is automatically added to the list of Installed JREs. Hence the "name already in use" message when you try to add it again manually. In short, you can safely skip this step now.

  • I am exporting a 2 min video, using a custom compressor setting. i have not had issues with this setting in the past, but recently its taking upwards of 4 hours to process. Any idea what is going on?

    I am exporting a 2 min video, using a custom compressor setting. I have not had issues with this setting in the past, but recently its taking upwards of 4 hours to process. Any idea what is going on?

    Name: Vimeo HD Encode
    Description: No description
    File Extension: mov
    Estimated size: 2.3 GB/hour of source
    Audio Encoder
              AAC, Stereo (L R), 44.100 kHz
    Video Encoder
              Width: 1920
              Height: 1080
              Pixel aspect ratio: Square
              Crop: None
              Padding: None
              Frame rate: (100% of source)
              Frame Controls On:
                        Retiming: (Best) High quality Motion Compensated
                        Resize Filter: Statistical Prediction
                        Deinterlace Filter: Best (Motion Compensated)
                        Adaptive Details: On
                        Antialias: 0
                        Detail Level: 0
                        Field Output: Progressive
              Codec Type: H.264
              Multi-pass: On, frame reorder: On
              Pixel depth: 24
              Spatial quality: 75
              Min. Spatial quality: 25
              Key frame interval: 30
              Temporal quality: 50
              Min. temporal quality: 25
              Average data rate: 5.12 (Mbps)
    Compatible with Mac
    My video in the timeline is 1920 x 1080 / 23.98 fps
    I've installed Toast and photoshop elements recently, i also updated my apps the other day.
    I have had this problem before the updates of the apps though

  • Architecture: Mware View Horizon 5.3 with SVGA K1 GRID, W7 64 bit 4GB RAM and 3 CPU and 512MB VRAM  Issue 1: Photoshop setting is gpu[0].MemoryMB=128. Why ? It wolud be 512MB. Issue 2: Sometimes, We get the error not enough Vram. Why don't Photoshop  use

    Architecture: Mware View Horizon 5.3 with SVGA K1 GRID, W7 64 bit 4GB RAM and 3 CPU and 512MB VRAM
    Issue 1: Photoshop setting is gpu[0].MemoryMB=128. Why ? It wolud be 512MB.
    Issue 2: Sometimes, We get the error not enough Vram. Why don't Photoshop  use all 512MB vRAM?@

    Photoshop can only see what your video card driver reports.
    You might want to update your video card driver from the GPU maker's website.

  • Changing Character set in SAP BODS Data Transport

    Hi Experts,
    I am facing issue in extracting data from SAP.
    Job details: I am using an ABAP data Flow which fetches the data from SAP and loads into Oracle table using Data Transport.
    Its giving me below error while executing my job:
    (12.2) 05-06-11 11:54:30 (W) (3884:2944) FIL-080102: |Data flow DF_SAP_EXTRACT_QMMA|Transform R3_QMMA_EXTRACT__AL_ReadFileMT_Process
                                                         End of file was found without reading a complete row for file <D:/DataService/SAP/Local/Z_R3_QMMA>. The expected number of
                                                         columns was <30> while the number of columns actually read was <10>. Please check the input file for errors or verify the
                                                         schema specification for the file format. The number of rows processed was <8870>.
    reason: When analyzed I found the reason for this is presence of special characters in data. So while generating the data file in SAP working directory which is available on SAP Application server the SAP code page is 1100 due to which the delimeter of the file and the special characters are represented with #. So once the ABAP is executed and data is read from the file it is treating the # as delimiter and throwing the above error.
    I tried to replace the special characters in ABAP data Flow but the ABAP data Flow doesnot support replace_substr function. I also tried changing the Code Page value to UTF-8 in SAP datastore properties but this didnt work as well.
    Please let  me know what needs to be done to resolve this issue. Is there any way we change the character set while reading from the generated data file in BODS to convert code page 1100 to UTF-8.
    Thanks in advance.
    Regards,
    Sudheer.

    Unfortunately, I am no longer working on this particular project/problem. What I did discover though, is that /127 actually refers to character <control>+<backspace>. (http://en.wikipedia.org/wiki/Delete_character)
    In SAP this and any other unknown characters get converted to #.
    The conclusion I came to at the time, was that these characters made their way into the actual data and was causing the issue. In fact I think it is still causing the issue, since no one takes responsibility for changing the records, even after being told exactly which records need to be updated ;-)
    I think I did try to make the changes on the above mentioned file, but without success.

  • Using the HTML SAP GUI inside the Enterprise Portal?

    Hello everyone
    In our company we plan to set up the SAP Enterprise Portal (NetWeaver 7.0). The first application we want to provide inside the portal is the SAP GUI that connects to our SAP ERP 2005 system via single sign on. Therefor two different approaches exist:
    1: Using the standard SAP GUI inside a portal iView. In this case every client pc needs the SAP GUI installed.
    2: Using the HTML SAP GUI. In this case we have to set up the integrated ITS in our SAP ERP system.
    Now I have some questions about the second approach. Is the functionality of the HTML GUI equal to the functionality of the standard GUI? If not, what are the restrictions? How high is the additional load on the network and SAP ERP system caused by the HTML GUI? Would you recommend this approach for a system with more than thousand SAP users?

    Hi Marc,
    At least if you consider using webgui, you should test the transactions properly as there are some issues for example with scandinavian characters and lines visible in lists of search helps.
    Also you might want to consider the limitations of the screen resolutions and space which the portal framwork already takes from the gui. This of course is a topic for both HTML/SAP GUI's.
    Kind regards,
    Ville

  • How to use SET ID in select statement of SQ02

    Hi,
    I have a infoset, where for one of my Zfield, i have writen a select statement in order to get my ouput.
    if aufk-aufnr = 'XYZ'.
      select sum( FKBTR ) from fmifiit into zfmifiit
      where fikrs = aufk-kokrs
      and fipex IN capex
      and wrttp NE '51'.
    endif.
    For the above statement, i have created (with 10 single values, table name FMCI, field name FIPEX)  a SET id named CAPEX and used with IN operator.
    But when i generating the infoset i am getting error like below
    The IN operator with "CAPEX" is followed neither by an internal table nor by a value list
    I was using IN opeartor for set ids during validation / substitutions, where if i have to validate multiple single values.
    What to do here?
    Regards,
    Srinu

    [OPEN-SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_GENERAL.htm] set of statement, [SELECT|http://help.sap.com/abapdocu_70/en/ABAPWHERE.htm] statement, [WHERE|http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP.htm] addition requires a selection table (type range, [WHERE - IN seltab |http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_SELTAB.htm]) of parameter and not a set. We are in Abap here, not in a Customizing screen
    You have to convert the set to a selection table in an ABAP coding before using it in a SELECT statement.
    (Check FM like G_SET_TREE_IMPORT to import definition of set (values and intervals) and map them to a select-table, or ask a developper to perform it, look at G_SET_TREE_IMPORT -> select statement)
    Regards,
    Raymond

  • Original System set to SAP???

    Folks, I am not sure if this is the right forum for my question, could not locate a basis forum.
    Anyways, the problem I am facing is I have a reserved namespace /ABC/, whenever I create a program /ABC/XYZ through SE38 and try to associate it to a transport request, I get a warning message "Original System set to SAP" and have a repair task created under the request. In my view the objectes in the reserved namespace should behave similar to 'Z' or 'Y' objects while associating with requests i.e. should have a "development / correction" task. Do you know what am I doing wrong here?
    I have checked the help and my system is configured as suggested in the help.
    http://help.sap.com/saphelp_nw04/helpdata/en/57/38de9b4eb711d182bf0000e829fbfe/frameset.htm
    Appreciate your help.
    Thanks

    > Folks, I am not sure if this is the right forum for
    > my question, could not locate a basis forum.
    >
    > Anyways, the problem I am facing is I have a reserved
    > namespace /ABC/, whenever I create a program /ABC/XYZ
    > through SE38 and try to associate it to a transport
    > request, I get a warning message "Original System set
    > to SAP" and have a repair task created under the
    > request. In my view the objectes in the reserved
    > namespace should behave similar to 'Z' or 'Y' objects
    > while associating with requests i.e. should have a
    > "development / correction" task. Do you know what am
    > I doing wrong here?
    >
    > I have checked the help and my system is configured
    > as suggested in the help.
    > http://help.sap.com/saphelp_nw04/helpdata/en/57/38de9b
    > 4eb711d182bf0000e829fbfe/frameset.htm
    >
    > Appreciate your help.
    >
    > Thanks
    Found a solution to this issue.The issue is with the system change option. The package that I was using a software component that had an attribute "Restricted Modifiability" . I changed the software component to one that was modifiable to solve the problem.
    Thanks

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • What is SAP Validation

    Hi all,
         Could someone let me know what is SAP Validation?
    Thnks!

    Hi Megha,
    SAP Validation is a very big subject
    But at a broader level, SAP validates data on 3 levels
    1. Configuration data/ Master data
    2. Transaction data
    3. Business user
    <u><b>1.A. Configuration data level validation</b></u>
    When we do the configuration, there are certain steps and procedures should be followed. Certain configuration steps are always to be copied using the Standard provided by SAP. Because there are various tables and fields gets update when we do so. If we create on our own, the related tables fails to get update and there will be an inconsistency in the system. This leads to a major system failure.
    For example: Setting up the Plant.
    <b><u>1.B. Master data level validation:</u></b>
    When ever we create a master data, there are certain data needs to be maintained like Company code, Plant, Purchasing organization, Purchasing group etc.. Based on the nature of master data we create, the information may vary. But it is necessary to maintain those values to ensure that the data is consistent wide the Organization.
    It is also validated that, the data is in sink with what's defined in the configuration
    <u><b>2. Transaction data level validation</b></u>
    When ever we perform any transaction, based on the transaction the users  may use some master data as reference data to create the data. There could be some business requirement that some of the information's are mandatory. There could be some business requirement like the transaction should be allowed only for a specific plant or only when the desired condition met. Each of these conditions are validated before the system saves the data.
    <u><b>3. Business user</b></u>
    As per the business, there are various user roles are defined in SAP with various levels of authorization. The authorization specifies who is allowed to perform what?
    when ever the user try to perform any transaction, system validates the authenticity whether he/ she is authorized to perform the transaction or not. So this way there are lot of validations in SAP in each and every step.
    The validation ensures that the system works consistently, error free, authenticated  for optimum system efficiency
    With best regards,
    Raj

  • Issue while using SUBPARTITION clause in the MERGE statement in PLSQL Code

    Hello All,
    I am using the below code to update specific sub-partition data using oracle merge statements.
    I am getting the sub-partition name and passing this as a string to the sub-partition clause.
    The Merge statement is failing stating that the specified sub-partition does not exist. But the sub-partition do exists for the table.
    We are using Oracle 11gr2 database.
    Below is the code which I am using to populate the data.
    declare
    ln_min_batchkey PLS_INTEGER;
    ln_max_batchkey PLS_INTEGER;
    lv_partition_name VARCHAR2 (32767);
    lv_subpartition_name VARCHAR2 (32767);
    begin
    FOR m1 IN ( SELECT (year_val + 1) AS year_val, year_val AS orig_year_val
    FROM ( SELECT DISTINCT
    TO_CHAR (batch_create_dt, 'YYYY') year_val
    FROM stores_comm_mob_sub_temp
    ORDER BY 1)
    ORDER BY year_val)
    LOOP
    lv_partition_name :=
    scmsa_handset_mobility_data_build.fn_get_partition_name (
    p_table_name => 'STORES_COMM_MOB_SUB_INFO',
    p_search_string => m1.year_val);
    FOR m2
    IN (SELECT DISTINCT
    'M' || TO_CHAR (batch_create_dt, 'MM') AS month_val
    FROM stores_comm_mob_sub_temp
    WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val)
    LOOP
    lv_subpartition_name :=
    scmsa_handset_mobility_data_build.fn_get_subpartition_name (
    p_table_name => 'STORES_COMM_MOB_SUB_INFO',
    p_partition_name => lv_partition_name,
    p_search_string => m2.month_val);
                        DBMS_OUTPUT.PUT_LINE('The lv_subpartition_name => '||lv_subpartition_name||' and lv_partition_name=> '||lv_partition_name);
    IF lv_subpartition_name IS NULL
    THEN
                             DBMS_OUTPUT.PUT_LINE('INSIDE IF => '||m2.month_val);
    INSERT INTO STORES_COMM_MOB_SUB_INFO T1 (
    t1.ntlogin,
    t1.first_name,
    t1.last_name,
    t1.job_title,
    t1.store_id,
    t1.batch_create_dt)
    SELECT t2.ntlogin,
    t2.first_name,
    t2.last_name,
    t2.job_title,
    t2.store_id,
    t2.batch_create_dt
    FROM stores_comm_mob_sub_temp t2
    WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val
    AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
    m2.month_val;
    ELSIF lv_subpartition_name IS NOT NULL
    THEN
                        DBMS_OUTPUT.PUT_LINE('INSIDE ELSIF => '||m2.month_val);
    MERGE INTO (SELECT *
    FROM stores_comm_mob_sub_info
    SUBPARTITION (lv_subpartition_name)) T1 --> Issue Here
    USING (SELECT *
    FROM stores_comm_mob_sub_temp
    WHERE TO_CHAR (batch_create_dt, 'YYYY') =
    m1.orig_year_val
    AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
    m2.month_val) T2
    ON (T1.store_id = T2.store_id
    AND T1.ntlogin = T2.ntlogin)
    WHEN MATCHED
    THEN
    UPDATE SET
    t1.postpaid_totalqty =
    (NVL (t1.postpaid_totalqty, 0)
    + NVL (t2.postpaid_totalqty, 0)),
    t1.sales_transaction_dt =
    GREATEST (
    NVL (t1.sales_transaction_dt,
    t2.sales_transaction_dt),
    NVL (t2.sales_transaction_dt,
    t1.sales_transaction_dt)),
    t1.batch_create_dt =
    GREATEST (
    NVL (t1.batch_create_dt, t2.batch_create_dt),
    NVL (t2.batch_create_dt, t1.batch_create_dt))
    WHEN NOT MATCHED
    THEN
    INSERT (t1.ntlogin,
    t1.first_name,
    t1.last_name,
    t1.job_title,
    t1.store_id,
    t1.batch_create_dt)
    VALUES (t2.ntlogin,
    t2.first_name,
    t2.last_name,
    t2.job_title,
    t2.store_id,
    t2.batch_create_dt);
    END IF;
    END LOOP;
    END LOOP;
    COMMIT;
    end;
    Much appreciate your inputs here.
    Thanks,
    MK.
    (SORRY TO POST THE SAME QUESTION TWICE).
    Edited by: Maddy on May 23, 2013 10:20 PM

    Duplicate question

Maybe you are looking for

  • Displaying a Master Detail Relationship in a Panel Accordion or Tabs

    Hi, Is it possible to display a Master-Detail relationship in a Panel Accordion or Panel Tab or other component that visually divides the display? Say I have a Department - > Employees master detail relationship and I want each tab in my accordion to

  • 0HR_PT_1 Extraction issue No entry in HR table T569R for 0106

    hi experts, we are implementing Time and Labour cube, and trying to extracting from ECC to BW cube (0PT_C01). when i extract data from 0HR_PT_1 data source the PSA Request is in yellow for a long time. when i check the issue in ECC. Its giving the be

  • Execute SQL query in JavaBean

    I want to execute SQL query in the JavaBean. Is there any problem in the following code. There is no error message, but the database do not update. And I try to use JSP , it is ok. What is the problem in JavaBean ?? How to execute SQL in JavaBean ???

  • Problem in Executing Dialog Work item

    Dear all,           Iam presently working on SAP Enterprise Version (SAP 4.7). Suddenly after applying some service packs the workflow with dialog workitem's getting failed. Through debugging i could able to identify that the function module "SWL_WI_

  • QT Pro and IMovie

    I have an IMovie project and I am trying to export a selected clip for email. I get an error 50 saying that QT Pro can't export file either you don't have permissions or not enough space. I am exporting to an external drive with 45 gigs free and I ha