PO, PR, GRN with selected WBS as per depertment

Hi,
I am a PS consultant. In our current WBS we only maintain Responsible Person as per Depertmant HOD, CO Area , Business Area, Co Code, Plant. (This are common for all WBS).  There is only one storage location & purchaseing group.
Now at the time for this Tcode ME51N,ML81N, MIGO, MIRO, we need the HOD can select only those WBS in which they are assigned as Person responsible. I don't know BASIS.
Please help me in this issue.
Rgds,
Amlan

Hello Amlan,
I think this question does not belong in the Solution Manager forum but rather in a logistics forum(MIRO is an MM-IV transaction).
It looks like  might be a better starting point
Best regards,
Miguel Ariñ

Similar Messages

  • PO, PR, GRN with selected WBS as per department

    Hi,
    I am a PS consultant. In our current WBS we only maintain Responsible Person as per Department HOD, CO Area, Business Area, Co Code, Plant. (This is common for all WBS). There is only one storage location & purchasing group.
    Now at the time for using this Tcode ME51N,ML81N, MIGO, MIRO, we need the HOD can select only those WBS in which they are assigned as Person responsible. I don't know BASIS.
    Please help me in this issue.
    Rgds,
    Amlan

    Very clever reply
    - It is the proper reply.
    You say you are a PS consultant and you want to help your BASIS Consultant regarding authorization objects related to MM transactions.
    Why cant your MM Consultant help your BASIS Consultant regarding this. Ask your BASIS consultant to take help from your MM consultant.

  • PO for stock with statistical WBS element

    Dear colleagues,
    My customer wants to create Purchase Orders for regular valuated plant stock with a statistical assignment to a WBS element, so they can report on the total procurement costs per project/WBS.
    They do not wish to use project stock, because of the integration with Demand Planning in APO.
    Does anyone have an idea if this is possible and if so, how to configure this? I am out of ideas.
    Thanks in advance for any help in this matter.
    Edith

    are u posting to some other cost object also. normally they wud have to be posted to a COPA also with the cost element being 11 category.
    the wbs will receive the statistical posting, so there needs to be a real object also.
    see whether the real object is getting derived.
    the system is nt finding the real object and trying to post with the WBS in real, but since its statistical, the error.
    any other calrifications. plz post.
    regards
    anantha

  • More No of GRN with single excise invoice

    Dear Sir
    we want to do goods receipt for 4 lots with single excise invoice.we have done multible goods receipt with multi credit settings in J1id for that perticular material.we tried to do goods receipt with reference to out bound delivery NO.first lot we done GRN with out any issue,For second lot we put a same Excise invoice NO,At the time System is giving error like This excise invoice all the items are recived. Any other option is there to to multible GRN with same excise invoice
    Please help me in this
    Thanks
    Maruthi S

    Hi
    I have single line Item in PO & MIGO
    This Is case of Pet Coke , Relience importing this Pet Coke & we are purchasing from relience
    Supplier is provoiding actual excise invoice after 15 or 20 days of material supply
    as soon as we received material we are doing Goods Receipts for 15 days then for all GRs we receive
    single excise invoice after 15-20 days then . I want to capture & POst  excise invoice for all GR , but as
    per you suggetion in part 2 there are multiple entries for the single excise invocie , which is not correct
    as per excise rule ,
    please provide some solutions
    thansk

  • Select one record per person from multiple conditions

    Perhaps been staring at this too long and making changes to try and gather the correct population, but can't seem to figure it out at the moment. Trying to determine logic to select one record per person. If person has more than one record would like to choose the record that matches the sequence priority which is:
    AND CASE WHEN ac.primary_program_ind = 'N'                                       --Existing Students who have a new program (Continuing Law and added Business)
                                   AND ac.academic_period_admitted = ac.academic_period
                                   AND ac.student_population <> 'V'
                                   AND ac.program is not null THEN 'Y'
                                WHEN ac.primary_program_ind = 'Y'                                        --Visitors (Each term considered new)
                                   AND ac.student_population = 'V'
                                   AND ac.academic_period_admitted is not null THEN 'Y'
                                WHEN ac.primary_program_ind = 'Y'                                        --Normal Cases
                                   AND ac.academic_period_admitted is not null THEN 'Y' --= ac.academic_period THEN 'Y'
                       END = 'Y' Meaning that if the person has records that meet more than one of the above cases, it should choose the record matching the First Case of the case statement. If the records do not meet the first case at all then look to see if it meets the second case and if it does choose that record, etc.
    Sample Data:
    SELECT 363 AS PERSON_UID, '1875' AS ID, '201140' AS ACADEMIC_PERIOD, '201040' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
    UNION SELECT 852, '1962', '201130', '201040', 'GR', '', '', 'Y', 'C', 'Y', 'MS'  FROM DUAL
    UNION SELECT 852, '1962', '201140', '201140', 'GR', 'Y', '', '', 'G', 'N', 'MBA' FROM DUAL
    UNION SELECT 852, '1962', '201140', '201040', 'GR', '', '', 'Y', 'G', 'Y', 'MS' FROM DUAL
    UNION SELECT 659, '1093', '201140', '200840', 'UG', '', '', 'Y', 'T', 'Y', 'BB' FROM DUALSo for the above data on ID '1962', I would like to select the record that has EXIST_NEWPROG = 'Y' and ignore the other rows for that ID. Note:EXIST_NEWPROG, VISITORS, NORMAL I added to sample data, these cols don't actually exist. Put in for easier display purpose to show what case statements are doing. The actual sql statement has many joins and where statements, but hopefully this simplification of the sql will be sufficient to derive a solution.
    WITH MULTIROWS AS
    SELECT 363 AS PERSON_UID, '1875' AS ID, '201140' AS ACADEMIC_PERIOD, '201040' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
    UNION SELECT 852, '1962', '201130', '201040', 'GR', '', '', 'Y', 'C', 'Y', 'MS'  FROM DUAL
    UNION SELECT 852, '1962', '201140', '201140', 'GR', 'Y', '', '', 'G', 'N', 'MBA' FROM DUAL
    UNION SELECT 852, '1962', '201140', '201040', 'GR', '', '', 'Y', 'G', 'Y', 'MS' FROM DUAL
    UNION SELECT 659, '1093', '201140', '200840', 'UG', '', '', 'Y', 'T', 'Y', 'BB' FROM DUAL
    select *
    from multirows ac
    where  CASE WHEN ac.primary_program_ind = 'N'                                       --Existing Students who have a new program (Continuing Law and added Business)
                                   AND ac.academic_period_admitted = ac.academic_period
                                   AND ac.student_population <> 'V'
                                   AND ac.program is not null THEN 'Y'
                                WHEN ac.primary_program_ind = 'Y'                                        --Visitors (Each term considered new)
                                   AND ac.student_population = 'V'
                                   AND ac.academic_period_admitted is not null THEN 'Y'
                                WHEN ac.primary_program_ind = 'Y'                                        --Normal Cases
                                   AND ac.academic_period_admitted is not null THEN 'Y' --= ac.academic_period THEN 'Y'
                       END = 'Y'

    Hi,
    user1069723 wrote:
    Thanks Frank. I've been incorporating your solution and going over the data, (which is why it has taken so long to respond) and am getting closer, however the approach you provided excludes people who have a "RNum" of 2 or 3, but do not have a 1 at all. So people that only have a 2 and 3 OR only have a 2 or only have a 3 would not be captured, but if there is only one record, they would be missed.
    Here is another set of records of one person.
    SELECT 921 AS PERSON_UID, '8284' AS ID, '201130' AS ACADEMIC_PERIOD, '201030' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
    UNION SELECT 921, '8284', '201140', '201040', 'UG', '', '', 'Y', 'F', 'Y', 'BB'  FROM DUAL
    Sorry, I can't reproduce the problem.
    If I add the two new rows of sample data that you posted today to the data you posted yesterday, then the query I posted yesterday produces:
    PERSON_UID ID   ACADEM ACADEM ST E V N S P PRO      R_NUM
           659 1093 201140 200840 UG     Y T Y BB           1
           363 1875 201140 201040 UG   Y Y V Y LA           1
           852 1962 201140 201140 GR Y     G N MBA          1
           921 8284 201130 201030 UG   Y Y V Y LA           1Io you get the correct output for the original ids?
    If I DELETE all the rows where id != 8284 I still get the same results for id=8284.
    'm using Oracle 11.1.0.6.0. What version are you running?
    Post your exact code, even iof you think you copied it from thsi site without any changes. Perhaps there was some subtle eidting mistake.
    I would like to select the record for Academic_Period = 201140 for this person. Is the problem that you're getting the wrong row for id=8284, or that you're not getting any output for id=8284?
    Why would you want to get the row with academic_period=201140? (Let's call this row A.) Why don't you want the other row for that person, the one with academic_period=201130? (Let's call this row B.) On both of those rows, primary_program_ind='Y' and academic_period_admitted is not NULL. The only significant difference between those two rows is that student_population='F' on row A, and it's 'V' on row B. Doesn't that mean that row B causes the CASE expression to return 3 ("Normal Case"), while row B makes it return 2 ("Visitor")? Doesn't that mean row B should be preferred to row A?
    Then again, perhaps this is just what you mean by saying that "term" is the main factor in deciding which row to select, and that the CASE expreesion ("New Program" before "Visitors", followed by "Normal Cases") is just a tie-breaker.
    Based on my understanding of the code you provided, this person is being excluded altogether because they do not have a record that evaluates to rnum = 1.ROW_NUMBER never returns a value of 2 or 3 unless it has already returned a value of 1. (At least that's how it's supposed to work, and I've never heard of any bugs concerning it.)
    This record is also complicated because it has two terms, Does "term" mean "academic_period" here?
    in all cases, we would want to select the highest term and then if there is still more than one qualifying record, base the "tie breaker" on the cases. Does this make sense or is my explanation still unclear?It's unclear.
    Maybe you need to add one more line at the beginning of the analytic ORDER BY clause (the 6th line below):
    WITH     got_r_num     AS
         SELECT     m.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  id
                             ORDER BY       
                                             academic_period     DESC,          -- Added
                                             CASE
                                       WHEN  primary_program_ind      = 'N'     --Existing Students who have a new program (Continuing Law and added Business)
                                                       AND   academic_period_admitted      = academic_period
                                                       AND   student_population       != 'V'
                                                       AND   program                is not null
                                            THEN 1
                                                    WHEN  primary_program_ind      = 'Y'     --Visitors (Each term considered new)
                                                       AND   student_population      = 'V'
                                                       AND   academic_period_admitted is not null
                                            THEN 2
                                                    WHEN  primary_program_ind      = 'Y'     --Normal Cases
                                                   AND   academic_period_admitted is not null
                                            THEN 3
                                             END
                           )     AS r_num
         FROM     multirows     m
    --     WHERE     ...     -- If you need any filtering, this is where it goes
    SELECT     *     -- or list all columns except r_num
    FROM     got_r_num
    WHERE     r_num     = 1
    ;

  • GRN With 2line items(material,batch same)one inspection lot for 2line items

    Dear Experts
    As and when we make a GRN with 2 line items and same batch number we enter no. of containers differently but only the number from the first line item is flowing into the Inspection lot origin.We are creating only one inspection lot for 2 line items as the batch number is same for the items.
    1. In material master i have given 01 inspection type ( with control inslot.. Each material document,batch, storage location) :---
    this is the reason system is creating only one inspection lot.
    i am entering manually same batch number for 2line items...
    Here my problem is ... while giving UD... SYSTEM IS PICKING ONLY FIRST LINE ITEM NO.OF CONTAINER... IT HAS TO BE BOTH LINE ITEMS CONTAINERS.... IT IS PICKING BOTH LINE ITEMS QUANTITY... NO.CONTAINER ONLY IT IS NOT PICKING....
    Waitting for  experts reply

    Hi,
    As per your query if you put in MM forums then you will get the reply immly.
    Anil

  • All incoming receipts with specific WBS elemnt.

    Hi,
    This is my posting in SDN.Now iam working in supporting side.I  want to create  A new FI AR report is needed which would display all invoices and received payments for a specific WBS element. The required fields are available in 0FIAR_4 . We are using this data source and loading to FIAR_C03 ( cube) and FIAR_O03 ( ods) .
    My problem is WBS element is HIDE in R/3 side (data source) .
    The end user wants the report  all the invoices and all the incoming payments(receipts) with  specific WBS element . This WBS ele. Is restricted in R/3 only.   Is there is any chances to select that field in data source , if it is possible how can I enable that.
    In this report only  they want Project definition char. Also.   This field is not the same data source in  ( 0FIAR_4).
    So please help in this regard any one.
    Thanks in advance,
    Venkata.

    Hi Sharama,
    You have to enhance the existing datasource with Project definition and Amount in R/3.after adding these two fields to extract structure,you need to write ABAP code to populte data to these two fields.Logic will be given by clicnt or functional consulatants...based on the given logic data will be populated into these two fields...
    after that replicate data source in bw,activate transfer rules...
    Thats why i asked to open new thread to get attention of experts on tenhancing datasource...
    I don't see any points assigned to me by u
    Hope this helps you!
    thanks

  • Issue with Select Options

    Dear Experts,
    I used component wdr_select_options to achieve select options functionality, But it displaying only one field as per my requirement user expecting both low & high fields.
    Can you guide for 5 select options whether i have use t times the component at my component level.
    And also could please guide me how to use select options at code level.
    Thanks & Regards,
    Siva Mandapudi.
    Edited by: SIVAMANDAPUDI on Jul 18, 2011 6:39 PM

    Hi Saravan,
    Please find below details.
    The exception is:
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "ONACTIONSEARCH_SUPPLIER" "(METHOD)", nor was it propagated by a
    RAISING clause.
    code:
    DATA FOR WORKING WITH SELECT OPTIONS
      data: rt_SUPPLIERNO type ref to data.
      data: rt_SUPPLIERNAME type ref to data.
    field-symbols: <fs_SUPPLIERNO> type table,
                    <fs_SUPPLIERNAME> type table.
      TYPES: BEGIN OF T_SUPPLIERNO,
             SIGN(1),
             OPTION(2),
             LOW TYPE /SAPAPO/LOC,
             HIGH TYPE /SAPAPO/LOC,
            END OF T_SUPPLIERNO.
      TYPES: BEGIN OF T_SUPPLIERNAME,
             SIGN(1),
             OPTION(2),
             LOW TYPE /SAPAPO/LOC_DESCR40,
             HIGH TYPE /SAPAPO/LOC_DESCR40,
            END OF T_SUPPLIERNAME.
      DATA: WA_SUPPLIERNO TYPE T_SUPPLIERNO, IT_SUPPLIERNO TYPE TABLE OF T_SUPPLIERNO,
            WA_SUPPLIERNAME TYPE T_SUPPLIERNAME, IT_SUPPLIERNAME TYPE TABLE OF T_SUPPLIERNAME.
    Retrieve the data from the select option
      rt_SUPPLIERNO = wd_this->m_handler->get_range_table_of_sel_field(
                               i_id = 'ID_SNO' ).
    dump raising when get_range_table_of_sel_field is called.
    Thanks a lot.
    Regards
    Siva Mandapudi.

  • Select BOM as per lot size against planned quantity

    Dear all
                  i hav prob. releated select BOM as per lot size against planned quantity , suppose i hav monthly plnned order for
    1000 nos. quantity and having two alternative BOMs like lot size 0 to 500 and 0 to 200 , so after MRP run system should create planned order(inhouse prod.) as per lot size i.e. 500 x1 and 200x 2 ., how is it possible please guide me .
    thankx in advanced

    create a two production version , if the plan quantity is more than 200 system will take the Alternative BOM  and take the BOM ( 0-500 ) otherwise system will take the BOm ( lotsize 0-200).
    Or
    Create a Production version, Manually change the PV as per your requirement , And  rerun MRP with delete a recreate option
    regards,
    Sundaresan

  • Reverse GRN With QM

    Hello,
    I have posted GRN in migo with Excise Duty (Part 1 & Part2). After GRN i have created inspection lot then Material Stock goes to Quality to Unresticited in single storage location. Now i am facing problem in Reverse the GRN in MIGO.
    What are steps for reverse the GRN with QM.

    Hi ,
    U can find many such threds,
    Cancel of GRN after Clearing from QM
    After UD it is not possible to cancel GR.
    Use following procedure to reverse the entry.
    1. Tcode - MIGO
    2. Select - Goods Receipt wrt PO (here enter PO number wrt which u have made GR )
    3. Change Movent type to " 102 " ( in " where " tab)
    4. Change stock type to " Unrestricted" ( if stock is in QI )
    Now post the document.
    I am sure it will work. Check it and revert back.
    Nitin

  • GRN with multiplse outboung delivery

    Hi, experts,
                     As per business requirement , I want to do GRN with multiple outbound delivery,
    Can any body give transaction code for this ,
    Thanksa lot in advance
    Regards:
    Happy

    Dear Abdul sir,
    As per your guidence ,I can combine multiple outbound delivery in GRN , But at a time system generate only one GRN document, So can't keep any track  for which deliveries against this GRN document generate, Can U give suggection for create Multiple outbound delivery against multiple GRN.
    Thanks a lot for first answer , & it's very useful for me, My requirement 80 % funfil after this uy answer.
    Regards:
    Happy

  • 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.

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • I have 2 email accounts the second one i have only recently added, i have sent one email from my second account but i cant seem to send anymore, it says "cant send email with selected server" i am still able to send emails from my first account. Any ideas

    I have 2 email accounts, the second i only just recently added, i was able to send an email from this account after i added the account but am not able to send anymore emails. It says "unable to send email with selected server" there are no other servers to choose from. please help! TIA

    Hi apmichael,
    If you are having issues sending email from one of your mail accounts on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • How can I fill a table of objects from cursor with select * bulk collect???

    Hi All, I have a TYPE as OBJECT
    create or replace type dept2_o as object (
    deptno NUMBER(2),
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    I can fill a table of objects from cursor with out select * bulk collect...., row by row
    declare
    TYPE dept2_t IS TABLE of dept2_o;
    dept_o_tab dept2_t:=dept2_t();
    i integer;
    begin
    i:=0;
    dept_o_tab.extend(20);
    for rec in (select * from dept) loop
    i:=i+1;
    dept_o_tab(i):=dept2_o(
    deptno => rec.deptno,
    dname => rec.dname,
    loc =>rec.loc
    end loop;
    for k IN 1..i loop
    dbms_output.put_line(dept_o_tab(k).deptno||' '||dept_o_tab(k).dname||' '||dept_o_tab(k).loc);
    end loop;
    end;
    RESULT
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    But I can't fill a table of objects from cursor with select * bulk collect construction ...
    declare
    TYPE dept2_t IS TABLE of dept2_o;
    dept_o_tab dept2_t:=dept2_t();
    begin
    dept_o_tab.extend(20);
    select * bulk collect into dept_o_tab from dept;
    end;
    RESULT
    ORA-06550: line 6, column 39;
    PL/SQL: ORA-00947: not enough values ....
    How can I fill a table of objects from cursor with select * bulk collect???

    create or replace type dept_ot as object (
    deptno NUMBER(2),
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    create table dept
    (deptno number
    ,dname varchar2(14)
    ,loc varchar2(13)
    insert into dept values (10, 'x', 'xx');
    insert into dept values (20, 'y', 'yy');
    insert into dept values (30, 'z', 'zz');
    select dept_ot (deptno, dname, loc)
      from dept
    create type dept_nt is table of dept_ot
    declare
       l_depts dept_nt;
    begin
       select dept_ot (deptno, dname, loc)
         bulk collect
         into l_depts
         from dept
       for i in l_depts.first .. l_depts.last
       loop
          dbms_output.put_line (l_depts(i).deptno);
          dbms_output.put_line (l_depts(i).dname);
          dbms_output.put_line (l_depts(i).loc);    
       end loop;
    end;
    /

Maybe you are looking for

  • Number format issue in XML Publisher from OAF (',.' is replaced by 'u n')

    Hi All, I am facing a problem in XML Publisher report. In report I need to display some number fields with 'USD' format. In RTF, data type 'Number' and format '###,##0.00' is selected. If I run concurrent program from oracle core forms using System A

  • The error 16 when launching Photoshop elements 12

    Ok I keep getting the error 16 when launching Photoshop elements 12, 1) It says to re-install (did that and did not work twice), there is also the Cache.db unlock (did that - not a solution either)... I need more information on what the problem could

  • Open word document in WD application

    Hi, I need to open a word doc. in my webdynpro application. I have found few blogs here referring to MIMEs object but i couldn't get the complete process that need to be follow. I have imported MIME object in MIME repository and stuck at this point.

  • Using a username and password to access the network

    Dear gents, i am trying to make the access to the network via 2 things : SSID's key first , then using a username and password to connect, or at least username and password. i have aironet 1130ag , and 40 users. Any suggestions..

  • FTP Access over .bat file

    Hi, I am trying to access to a ftp server using a Batch file i wrote. The Batch file works, if i start it manually. However, if i call it using the System exec.vi  (giving it to the command line input, as working directory the directory where the bat