Problem Data Selection

Hi Experts,
I have one query. I have unique sales order in my table ITAB. Now my requirement is to find out the partner function SP & SH for all sales order available in ITAB.
For partner function I have appended both partner function in one range table having 2 values as above mentioned.
I wrote the below logic
LOOP AT ITAB INTO WA.
SELECT * FROM VBPA INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE VBELN = WA-VBELN AND PARVW IN R_PARVW.
ENDLOOP.
I have checked the database table VBPA having entries for both partner function. But still after the loop I am getting only one value in internal table JTAB.
Any suggestion pls?

Hi Neha,
I think you need to consider POSNR while selecting from VBPA table, then you can see more than one entry in the internal table for partner functions.
LOOP AT ITAB INTO WA.
SELECT * FROM VBPA INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE VBELN = WA-VBELN and  posnr = wa-posnr AND PARVW IN R_PARVW.
ENDLOOP.
Hope this helps
-Sujatha

Similar Messages

  • Infopackage Data Selection Problem

    Hi All,
    When i load master data from source system, in Infopackage data selection tab i give some criteria (e.g Customer number = 1000) But in infopackage the data load with all customer.(Not only 1000)
    How can i solve this problem??

    Hello Ozan,  
    Please check the datasource in RSA3 and make sure that its working for the same selection.
    Is there any routine in your infopackage and what is your source system?
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

  • Performance problem whlile selecting(extracting the data)

    i have one intermediate table.
    iam inserting the rows which are derived from a select statement
    The select statement having a where clause which joins a view (created by 5 tables)
    The problem is select statement which is getting the data is taking more time
    i identified the problems like this
    1) The view which is using in the select statement is not indexed---is index is necessary on view ????
    2) Because the tables which are used to create a view have already properly indexed
    3) while extracting the data it is taking the more time
    the below query will extract the data and insert the data in the intermediate table
    SELECT 1414 report_time,
    2 dt_q,
    1 hirearchy_no_q,
    p.unique_security_c,
    p.source_code_c,
    p.customer_specific_security_c user_security_c,
    p.par_value par_value, exchange_code_c,
    (CASE WHEN p.ASK_PRICE_L IS NOT NULL THEN 1
    WHEN p.BID_PRICE_L IS NOT NULL THEN 1
    WHEN p.STRIKE_PRICE_L IS NOT NULL THEN 1
    WHEN p.VALUATION_PRICE_L IS NOT NULL THEN 1 ELSE 0 END) bill_status,
    p.CLASS_C AS CLASS,
    p.SUBCLASS_C AS SUBCLASS,
    p.AGENT_ADDRESS_LINE1_T AS AGENTADDRESSLINE1,
    p.AGENT_ADDRESS_LINE2_T AS AGENTADDRESSLINE2,
    p.AGENT_CODE1_T AS AGENTCODE1,
    p.AGENT_CODE2_T AS AGENTCODE2,
    p.AGENT_NAME_LINE1_T AS AGENTNAMELINE1,
    p.AGENT_NAME_LINE2_T AS AGENTNAMELINE2,
    p.ASK_PRICE_L AS ASKPRICE,
    p.ASK_PRICE_DATE_D AS ASKPRICEDATE,
    p.ASSET_CLASS_T AS ASSETCLASS
    FROM (SELECT
    DISTINCT x.*,m.customer_specific_security_c,m.par_value
    FROM
    HOLDING_M m JOIN ED_DVTKQS_V x ON
    m.unique_security_c = x.unique_security_c AND
    m.customer_c = 'CONF100005' AND
    m.portfolio_c = 24 AND
    m.status_c = 1
    WHERE exists
         (SELECT 1 FROM ED_DVTKQS_V y
              WHERE x.unique_security_c = y.unique_security_c
                   GROUP BY y.unique_security_c
                   HAVING MAX(y.trading_volume_l) = x.trading_volume_l)) p
    any one please give me the valueble suggestions on the performance

    thanks for the updating
    in the select query we used some functions like max
    (SELECT 1 FROM ED_DVTKQS_V y
    WHERE x.unique_security_c = y.unique_security_c
    GROUP BY y.unique_security_c
    HAVING MAX(y.trading_volume_l) = x.trading_volume_l)) p
    will these type of functions will cause the performance problem ???

  • Problem in data selection tab in infopack

    Hi,
    I created one text datasource ZACCOUNT_GRP_TEXT based on infoset.
    in r/3 , SPRAS is selected as a selection field .
    but wen i created the infopak for this , in data selection tab its not giving me the option of sparas selection dats coming blank .
    plz let me know the reason why data selection tab is blank and how i can correct it.
    thnx

    hi,
      go to extract structure and see whether the selection coulmn is checked for this field.
    if not check then check and save it.
    now go to rsa3 and see wheter the field is coming in selection.
    if yes then replicate the datasourcee to the bw.
    now create the infopackage u get the field in IP.

  • PNP Data selection Problem

    Hi ,
    I m using PNP logical database and it is working fine when I m entering payroll area and period at selection screen.
    But it is showing no data found message when I m entering company code and personal sub-area along with payroll area and period.
    I want to fetch data according to company code and personnel subarea also, kindly help me out.
    Thanks in advance

    Hi,
    The PNP database selects and filters the PERNRs according to the data selected on the Selection-Screen. If it shows 'no data found', there might not be any PERNR satisfying the conditions given.
    Pls search for the PERNRs in the respective Database tables(PA tables) of the Infotypes for the required selections. If there are soem PERNRs satisfying the conditions, it prog must be filtering the PERNRs in the GET PERNR event. Pls check where is the PERNR ignored in debug mode.
    Thanks,
    Teja.

  • Problem in giving data selection while scheduling init

    Hi All,
    We did repair full data upload from 1 DSO to 4 cubes based on different conditions.
    For example:
    We have loaded the data in one of the cube ZPCAC_C01 with selection condiition 0ORIG_PCA = 02.
    Now we want to run the delta with the same seletion condition; we run the repair full for the particular cube.
    For example:
    We want to run the delta for the cube ZPCAC_C01 for the selction condition 0ORIG_PCA = 02.
    We are trying to run the init with the selection condition but when we choose init with/without data transfer; ALL THE SELECTION CONDITION GET DISABLED.
    It is necessary to run the init with condition; if we want to run the delta with the same condition.
    Unfortunatly, it is disabling the the data selection tab when we choose init.
    Note: We have already deleted the init that has been done before.
    Please let us know the way how can we run the selective delta in this case.
    -Ravi

    Hi Ravi,
    First this is not correct forum for your question, please post your question in correct forum to get more and correct answers.
    Ok, you are loading data from DSO to 4 cubes. You did full upload from DSO to Cube right? so what ever data in DSO will upload directly into cube by DTP running (if you do this in BI 7).
    Is your cube has datasource to extract data or only getting data from DSO?
    If it is getting data only from DSO, then you have run Init and delta on DSO and then update data into cube.
    If your cube has datasource directly then run run Init withdata transfer and then run delta with selection condition.
    Thanks.

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Error occurred in the data selection

    Hi Expert,
    I met issue when full loading data from R3 via customized datasource.
    the error message in request monitor is:
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    I checked in RSA3, the data extraction is successful, but in BW, when execute the infopackage with or without data selection, both failed due to the same error.
    I also checked the background job in SM37 in source system, the background BI* completed successfully, and the IDoc in both BW and source system processed successfully.
    I also tried to replicate datasource and activate is using RSDS_DATASOURCE_ACTIVATE_ALL, delete infopackage and recreate it. but seems all this didn't work.
    Could u pls tell me how to solve this issue? Thanks.
    Eileen

    Hello Eileen zhang,
    I have exactly the same error as you,  do you still remember how did you solved this problem?
    Regards,
    Thanks,
    Maria João
    Error message:
    "Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request."

  • In RSA3, Data Selection is not Restricting the Data

    Hi Guys,
       In RSA3, if check the entries after providing the Selection Criteria, it is extracting all the Data.
    I tried for OSS Note. I didn't find any?
    Please refer this information:
    We load data from a source system EBP (similar to R3) to our BW system. The four ODSs (targets) we are using are:
    0BBP_SC (Shopping Cart - Individual Documents)
    0BBP_SCA (Approval Process for Shopping Cart - Single Documents)
    0BBP_INV (Invoice - Single Documents)
    0BBP_CON (Goods/Services Confirmation - Single Documents)
    And the four Datasources related to the above respectively are:
    0BBP_TD_SC_1
    0BBP_TD_SC_APPR_1
    0BBP_TD_INV_1
    0BBP_TD_CONF_1
    In the four InfoPackages related to the above, we use company code 0COMP_CODE (which corresponds to EBP field CO_CODE (Company Code in FI System) as data selection and the range, e.g., from X100 to X200, but somehow other company code ranges of data get in, e.g., Q001, Q100, 1000, and etc. What would cause the problem?
    Thanks
    Nagesh.

    Can you just try giving only one value instead of range and see what it comes?
    Ex: Company code = X100?
    regards,
    Hari

  • How to populate data selection in infopackage from spreadsheet

    Hello,
    I have to load data for thousands of missing CRM orders into BI via the BI-CRM extractor 0CRM_SALES_ORDER_I . We have list of those missing orders in a spreadsheet.
    How do I  populate these order numbers into the data selection tab of the data source?
    I tried adding multiple orders at a time..butit doesnt load any data. On the other hand, when I was loading a single order at a time, it does load all the data.
    Loading thousands of them manually will be a hectic job
    Also, I cannot use ranges as they are not at all in range
    Can somebody provide a workaround which hopefully will not involve any transports
    Thanks!

    This seems to be really cool! and I am able to open the editor in production too...
    The only problem is I really have not ides how we can pass the parameters here..how we get the program to look up a spreadsheet and populate those records
    Thanks for your input..it will be really helpful if you can provide me anymore information you have on htis..in the meanwhile, I will be doing some trial and error myself
    thanks!

  • Data selection period seems no use in logical DB PCH??

    Hi experts,I have a problem when using LDB PCH.
    There are object selection period fields PCHOBEG and PCHOEND.
    there are also data selection period fields PCHBEGDA and PCHENDDA .
    I set the data selection fields PCHBEGDA & PCHENDDA values at Start-of-selection event.
    But this seems to have no effect on the data selection.
    on GET OBJEC event,all of the infotype data will be got,but not corrosponding to the data selection period.
    Is this normal?or something wrong?Thanks.

    In PCH you have two periods. One for selecting objects and one for selecting data (infotypes).
    LDB PCH works like PNP or PNPCE

  • Unable to change date selections in data selection tab

    Hi experts,
    I'm new here, i scheduled the init load with date selections in the data selection tab, i successfully loaded the data and now i want to go for the delta but i'm unable to delete the date selection in the data selection tab. what problem is this.
    can we load the data with the same selections in delta update ? how can we delete the date selections
    orelse nothing happens even if there is a selection in the data selection tab? the date is a past one.
    help me out plz
    regards

    delta loads copy the selections from the init load.
    Often while scheduling delta loads u will see a message 'selections copied from the last init load'.
    cheers,
    Vishvesh
    Message was edited by: Vishvesh

  • Cube to Cube "Error in data Selection" plz help

    Hi this is Ajay Reddy
    when am sending data from Cube to Cube am getting an error
    "Error in data Selection" plz help

    Hi,
    It needs a Note implementaion. I got similar problem in version BIW 7 and SP 11. We got the solution with on of the note . I am not able to recollect the note number.
    Any way check the notes 920971,155471 may help you or not.
    With rgds,
    Anil Kumar Sharma .P

  • Need help in Data selection in Smartforms

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr text
    10 line text1
    90004
    90005
    20 line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item Prodcode description Qty uom Picked Factor
    batchNo batch qty reel size to ship qty
    10 19501 material description 200 M 0 3
    Batch1 200 482448
    Batch2 200 482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
                                                                                    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr text
    10 line text1
    0000
    0000
    0000
    20 line text2
    0000
    0000
    30 line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

  • Need help in data selection

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr        text
    10            line text1               
    90004
    90005
    20           line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item    Prodcode           description                   Qty  uom     Picked   Factor
                batchNo           batch qty   reel size        to ship              qty
    10         19501            material description            200       M         0          3
                Batch1     200               482448
                Batch2     200               482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr         text
    10            line text1
    0000
    0000
    0000
    20            line text2
    0000
    0000
    30            line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

Maybe you are looking for

  • Adobe acrobat 9 pro 9.5.1

    crashes and simply closes when you click "sign" or just after you locate and place signature landing pad

  • Need a Flash Based Image Editing Plugin

    Hello all, I am looking for a product out there I can plug into a website that will allow users to edit photos (crop, resize, tint, redeye etc). Any technology will be acceptable (Flash, Silverlight, AJAX .NET etc). So basically I am looking for a we

  • Python script directory issues

    I'm writing a script in python that calls a file by the function open("filename.txt"). The file is in the same folder as the script, but I keep getting Errno 2 saying that there isn't any file or directory by that name. I transferred the entire folde

  • Set attribute value using plugins

    Hi Experts, I am facing error when setting the value of attribute in the event "OnInvestigationStartedEvent". Any suggestion to fix the issue code:             Session ses = onInvestigationStartedEvent.getSessionContext().getInterviewSession().getRul

  • Patching question

    DB Version: 10Gr2 Question1. When i use OUI to 'upgrade'/'patch' 10.2.0.1.0 to 10.2.0.3.0. It is technically not an Upgrade. It is just a PSU (patch set update)? Right? Question2. How often is a CPU patch released? Quarterly or monthly? Question3. To