SUBMIT rkaep000 with "Further Selection Criteria"

Hi all,
Could anyone please tell me how to call the transaction KSB1 with it's "Further Selection Criteria" (i.e. Document Number). I have tried the following but it didn't work.
SUBMIT rkaep000
  WITH p_tcode = 'KSB1'
  WITH kostl = '7062'
  WITH r_belnr BETWEEN '101727316' AND '101727316'
  WITH r_budat BETWEEN '20070101' AND '20070131'
  AND RETURN.
Many thanks!
Steve.

try using submit rkaep000 with with selection-table t_Screen_tab.
t_screen_tab is a table of type rsparams.
rsparams is a structure with following field.
SELNAME
KIND
SIGN
OPTION
LOW
HIGH
fill with an entry for each screen selection object.
eg.
t_screen_Tab-selname = 'R_BELNR'.
t_Screen_tab-kind = 'S'. "S for select option, P for parameter
t_Screen_tab-sign = 'I'. "I include E exclude
t_screen_tab-option = 'BT'. "between, EQ or NE
t_Screen_Tab-low = '101727316'.
t_screen_tab-high = '101727316'.
append t_screen_Tab.
repeat for all selection entries required.
Here is the abap help on topic
Addition 3
... WITH SELECTION-TABLE rspar
Effect
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
Note
In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.

Similar Messages

  • Submit report with dynamic selections

    Hi All,
    I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
    But the dynamic selections are not getting passed.
    Request you to kindly provide some inputs
    My code is
    DATA: trange TYPE rsds_trange,
          trange_line LIKE LINE OF trange,
          trange_frange_t_line LIKE LINE OF trange_line-frange_t,
          trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
          texpr TYPE rsds_texpr.
    trange_line-tablename = 'PA0002'.
    *trange_frange_t_line-tablename = 'PA0002'.
    trange_frange_t_line-fieldname = 'GBJHR'.
    trange_frange_t_selopt_t_line-sign   = 'I'.
    trange_frange_t_selopt_t_line-option = 'EQ'.
    trange_frange_t_selopt_t_line-low    = '1987'.
    trange_frange_t_selopt_t_line-high   = '1987'.
    APPEND trange_frange_t_selopt_t_line TO   trange_frange_t_line-selopt_t.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        field_ranges = trange
      IMPORTING
        expressions  = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
                    WITH SELECTION-TABLE rspar_tab
                    WITH FREE SELECTIONS it_texpr
                    and returN.
    Kindly provide your inputs
    Regards
    Reshma

    Hi Reshma,
    Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
      data: trange  type rsds_trange,
              g_repid type sy-repid.
    g_repid = 'RPCADVQ0'.
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = g_repid
          mode_write_or_move = 'M'
        importing
          p_trange           = trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
      if sy-subrc eq 0.
    " Do the changes to the trange
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
    EXPORTING
    field_ranges = trange
    IMPORTING
    expressions = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar_tab
    WITH FREE SELECTIONS it_texpr
    and returN.
    endif.
    Cheers,
    Kothand

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Need to call a Report Painter Report with filtered selection criteria

    Hello All,
    I have created a Report through which I am calling a Report Painter Program 'Z443'  as I have to first filter out the selections and then pass it to the Report Painter Report.
    I tried the following two ways and found these problems :
    1. Submit (program) with selection-table ..... and Return.
      The output had many entries i.e the parameters were not passed correctly to the Report Painter Report.
    2. Tried using the FM ' CRIF_RW_WEB_CALL_REPORT '.
      The transaction for the Report Painter is opening but selections from the first Report is not being transferred.
    Please help if you have worked on any similar requirements .
    Thanks!

    hi
    thanx for ur reply.
    i think the select-options is the best way to get more then one currency values.
    but i need to know what code i have to write for display of this day.
    in the standard report MCTA there he is using only one currency. similarly i need to add 2 more columns for each currency in that same report o/p.
    how to do that can any body help me
    regards,
    maqsood

  • Bookmark WebDynpro with Prepopulated Selection Criteria

    Hello All,
    Currently, we have a demo application using the SFLIGHT scenario.  This demo has selection criteria for the CARRID and CONNID. 
    We would like to bookmark the WebDynpro for different selection criteria.  For example, one scenario would be CARRID = AA and CONNID = 0017 whereas we would have another scenario that is CARRID = LH and CONNID = 0400. 
    Is it possible for an end user to bookmark the WebDynpro using their specific selection criteria?  If yes, does anyone know how this can be achieved?
    I appreciate any help in advance.  Thanks.
    John

    >Is it possible for an end user to bookmark the WebDynpro using their specific selection criteria? If yes, does anyone know how this can be achieved?
    Well, the application would have to be designed to take these selection criteria as URL parameters.  Even then the end user couldn't just hit the bookmark in the browser and save the current input values. They would have to manually add these parameters and values to the URL in the browser bar before creating the bookmark.

  • Single prompt with multiple selection criteria

    I need to build a prompt against a date field; right now this prompt has 'greater than or equal to' criteria.
    Is there a way to show all criterias in a report view (not Edit Query mode or Edit Report) associated with a single prompt?
    this way users will have flexibility to change criteria from 'greater than and equal to' to 'less than and equal to'...etc without going into Edit mode.
    Please advise.

    Hi Ahmed,
    This is a bit of a long shot.
    In the universe, you will need a derived table which has a list of operators.
    SELECT '>' from DUAL
    UNION ALL
    SELECT '<' FROM DUAL
    and base a class/object on it Useful objects, Operators.
    build a prompt on that
    @prompt('Select Operator' 'A', 'Useful objects\Operator', mono...)
    you can then use this it in your calculatin in the report
    if(UserResponse("Select Operator")="<";[val1]-[val2];if(UserResponse("Select Operator")=">";[val2]-[val1];0))
    Let me know if it works

  • Are multiple inits with different selection criteria possible for LO

    Extractor 2lis_02_itm?
    Thanks
    Reddy

    Hi
    we use the multiple init scenario whenever there are huge data volumes for initialization and just to get the set up tables filled up in case of LO extraction, with minimum downtime (as the downtime can take upto 2-3 days) so as not to affect the users and also risk losing data, we do multiple inits to reduce the downtime and get the set up tables filled up.
    Yes in your extractor you can but be careful the selection crieteria does not overlap
    Hope this helps
    Anand Raj

  • Calling Program RKAEP000 with submit

    Hello all experts,
    I am having a problem when calling the std program RKAEP000. When i use:
    SUBMIT RKAEP000 with params AND RETURN.
    it is giving me an error transaction code not defined. i cannot use call transaction KBS1 in this case (CALL TRANSACTION 'KSB1' and SKIP FIRST SCREEN.).
    Any clues how i can resolve this issue please and anyone can tell me what is the difference between these 2 statements SUBMIT and CALL TRANSACTION and the impact it has when calling these 2 on a program.
    Thank you all.

    Hi,
    try this code it will work..
    the data is stored in txtlines format the data by the field wise.
    * Data Declaration
      DATA:lt_listobject TYPE TABLE OF abaplist,
        l_tab_lines TYPE i.
      DATA: txtlines(1024) TYPE c OCCURS 0 WITH HEADER LINE.
      SUBMIT rkaep000                      "the program name
         USING SELECTION-SET 'BPC TEST'          "Pass varint BPC Test
               EXPORTING LIST TO MEMORY AND RETURN.
    * Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
    *   Error in function module &1
      ENDIF.
    *Spool content in Ascii format
      CALL FUNCTION 'LIST_TO_ASCI'
        TABLES
          listobject         = lt_listobject
          listasci           = txtlines
        EXCEPTIONS
          empty_list         = 1
          list_index_invalid = 2
          OTHERS             = 3.
      CALL FUNCTION 'WRITE_LIST'
      TABLES
        listobject = lt_listobject
      EXCEPTIONS
        empty_list = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_FREE_MEMORY'
      TABLES
        listobject = lt_listobject.
      LOOP AT txtlines.   "data will be stored in this..
    endloop.
    Prabhudas

  • Associating a process with a 'select list with submit'

    Hi,
    In a tabular form I have 2 'select list with submit'. If a row is selected in the tabular form I need the following functionality from each of the select lists:
    Once a value is selected from the list a process will get excuted which will update a column of the checked row in the database table with the selected value from the list.
    My question is,
    1. How can I associate an 'after submit process' with the 'select list with submit'?
    2. Can I store the selected value in a variable which I can pass as an input parameter to a PL/SQL body?
    Regards,
    AM

    Hi,
    Please see my requirement below.
    I have a 'select list with submit' say P1_Select in a Tabular form Page. I want to create an after submit process (PL/SQL Process) which will take the selected value from the select list as input parameter and perform an update function for the checked row with that value.
    I'm trying give a feel the procedure:
    CREATE OR REPLACE procedure "P_REJECT"
    (p_message IN VARCHAR2 default Null)
    is
    begin
    FOR ii IN 1 .. APEX_APPLICATION.G_F01.count
    LOOP
    UPDATE NI SET NI.STATUS_NI = 'WCONF', NI.NI_Message = p_MESSAGE
    WHERE NI.NI_REF = APEX_APPLICATION.G_F01(APEX_APPLICATION.G_F01(ii));
    END LOOP;
    end;
    As suggested by Flavio I created the conditional 'after submit' process where I'm making a call to the above procedure.
    1. I am not sure how to pass the selected value as a parameter to the proc.
    2. 'request = value, where the value is the string literal P1_SELECT'.... Could not really figure out the meaning of string literal P1_SELECT
    Regards,
    AM

  • Delta with two different selection criteria

    I have crated two Delta DTPs with different selection criteria (one with Flag = Y and Flag = N).
    With flag = Y selection I have 100 records and flag = N, I have 50 records.
    When I ran first Delta DTP (flag = Y), I got 100 records. Delta DTP worked fine.
    But when I ran 2nd DTP (with flag = Y), 50 records tranferred but no records added.
    Is it possible to have two delta DTPs with different selection criteria?
    Thanks,
    PV
    Edited by: P V on Aug 23, 2009 4:58 AM

    Hi.
    I guess there was a typo error in your query,
    "When I ran first Delta DTP (flag = Y), I got 100 records. Delta DTP worked fine.
    But when I ran 2nd DTP (with flag = Y), 50 records tranferred but no records added."
    I guess it should be,
    "When I ran first Delta DTP (flag = Y), I got 100 records. Delta DTP worked fine.
    But when I ran 2nd DTP (with flag = N), 50 records tranferred but no records added."
    Yes, two Delta DTPs with different selection conditions can be used.
    Can you please check with the availability of 50 records with FLAG = N in the target InfoProvider?
    If the 50 records with FLAG = N loaded through delta already exists in the target InfoProvider,
    then no addition will occur though trasfer will take place.
    Regards.
    VJ

  • Error "Overlapping selection criteria with DTP" when transporting DTP

    When transporting a DTP from Dev to QA I get the following error in the trasnport log:
    Overlapping selection criteria with DTP DTP_4APJZSGKYQLUQYBCDBWK707JO
    Message no. RSBK019
    Diagnosis
    The selection criteria for the DTP to be activated overlap with the selection criteria of DTP DTP_4APJZSGKYQLUQYBCDBWK707JO in field , for example, with regard to value . Delta transfer from a source object to a target object is only allowed to transfer each record oncce. However, this cannot be guaranteed if two DTPs have overlapping selection criteria with the 'Delta' extraction mode.
    System Response
    You cannot activate the DTP with the current selection criteria.
    Procedure
    Restrict the selection criteria so that they do not overlap with the selection criteria for DTP DTP_4APJZSGKYQLUQYBCDBWK707JO.
    The DTP is a delta process which loads data from one infocube into an DSO. I understand that the error is that it is transporting the Delta parameters (something similar to a Delta initialization of infopackages I suppose) but I don´t how to access the information of the delta (selection criteria) of a DTP.
    Any suggestions? or similar experiences?
    Thanks in advance
    nicolá

    Hello,
    You can modify a parameter to create and modify dtp in Production. Like normally is done with Infopackages. There is no reason to make the changes in Dev in the Infopackages and DTP, and transport to Production. This transports normally cause that kind of errors because the id's are different in Dev, QA and Prod, and it is difficult to change dtp in that way.
    To change the parameter do like this:
    Execute Trx. RSA1 -> Transport Connection -> Tab Object Changeability -> Change DTPA to Everything Changeable.
    Do this in Dev, QA and Prod.
    Regards,
    Jorge Diogo

  • SUBMIT rkaep000 in background

    Hi Guru's,
    I've created a selection wirh differents parameters :
    1)Controlling area - KOKRS
    2)Partner Object -PAROB
    3)Posting date - BUDAT
    4)Debit TYPE-BELTP
    5)Business Transaction - VRGNG
    I try to pass those parameters in background to the report rkaep000  but the names in this reports are completely differents.
    For the Controlling area, posting date and the cost it is ok but not for the others. I don't find them.
    *  "Partner Object
      LOOP AT s_parob.
        CLEAR wa_p.
        wa_p-selname = 'PAROB1'.
        wa_p-kind = 'S'.
        wa_p-sign = s_parob-sign.
        wa_p-option = s_parob-option.
        wa_p-low = s_parob-low.
        wa_p-high = s_parob-high.
        APPEND wa_p TO i_tab.
      ENDLOOP.
    *  "Posting Date
      LOOP AT s_budat.
        CLEAR wa_p.
        wa_p-selname = 'R_BUDAT'.
        wa_p-kind = 'S'.
        wa_p-sign = s_budat-sign.
        wa_p-option = s_budat-option.
        wa_p-low = s_budat-low.
        wa_p-high = s_budat-high.
        APPEND wa_p TO i_tab.
      ENDLOOP.
    *  "Debit Type
    *  CLEAR wa_p.
    *  wa_p-selname = 'BELTP'.
    *  wa_p-kind = 'P'.
    *  wa_p-sign = 'I'.
    *  wa_p-option = 'EQ'.
    *  wa_p-low = p_beltp.
    *  APPEND wa_p TO i_tab.
    *  "Bus. Transaction
    *  LOOP AT s_vrgng.
    *    CLEAR wa_p.
    *    wa_p-selname = 'VRGNG'.
    *    wa_p-kind = 'S'.
    *    wa_p-sign = s_vrgng-sign.
    *    wa_p-option = s_vrgng-option.
    *    wa_p-low = s_vrgng-low.
    *    wa_p-high = s_vrgng-high.
    *    APPEND wa_p TO i_tab.
    *  ENDLOOP.
        SUBMIT rkaep000
          WITH p_tcode = 'KSB1'
         WITH SELECTION-TABLE i_tab
           TO SAP-SPOOL
             SPOOL PARAMETERS print_parameters
             ARCHIVE PARAMETERS archi_parameters
             WITHOUT SPOOL DYNPRO
             VIA JOB w_name NUMBER w_number
           AND RETURN.
    Anybody could help me please?
    Regards,
    Mohamed.

    Of course but the problem it is it doesn't help me.
    I tried also to expand the submit but I don't for which of those fields I have to enter the parameters.
    SUBMIT rkaep000
            with aufgr ...
            with aufnr ...
            with f_belnr ...
            with gr_wrttp ...
            with g_tname ...
            with g_values ...
            with i_kstrg ...
            with i_matnr ...
            with i_posnr ...
            with i_procnr ...
            with i_salor ...
            with i_werks ...
            with koagr ...
            with kostl ...  * Cost Center
            with kstar ...
            with kstgr ...
            with przgr ...
            with prznr ...
            with p_actvrs ...
            with p_afabe ...
            with p_arobj ...
            with p_aufnr ...
            with p_disvar ... * Layout
            with p_fixvar ...
            with p_gesw ...
            with p_infsys ...
            with p_item ...
            with p_kokrs ... * COntrolling Area
            with p_maxsel ...
            with p_obj ...
            with p_open ...
            with p_tcode ...
            with p_usear ...
            with p_usedb ...
            with p_usegrd ...
            with p_valtyp ...
            with r_arsel ...
            with r_awvrs ...
            with r_belnr ...
            with r_budat 
            with r_budat1 ...
            with r_budat2 ...
            with r_gjahr ...
            with r_gjahr1 ...
            with r_gjahr2 ...
            with r_obdat ...
            with r_perio ...
            with r_perio1 ...
            with r_versa ...
            with r_versn ...
    But I don't know where are the Partner Object (PAROB), Business Transaction (VRGNG) and the Debit Type (BELTP).

  • Hiding Further Selection.

    Which of the following would be best for hiding further selection criteria until a function is chosen?
    A: AT NEW SELECTION-SCREEN
    B: SELECTION-SCREEN AT LINE-SELECTION
    C: SUBMIT SELECTION-SCREEN
    D: CALL SELECTION-SCREEN

    None put it at  - AT Selection Screen Output.
    Regards,
    Amit
    Reward all helpful replies.

  • Selection screen: PNP database or other selection criteria

    I received a specification of a new to be developed program where they defined a selection screen with a with 2 radio buttons:
    1.     Use the logical database PHP for data selection (rb1);
    2.     Use other criteria for data selection (rb2).
    My question is, is this possible?
    Or should I add the other criteria between the GET PERNR and the following code with?
    Sample:
    GET PERNR
      IF rb2 = ‘X’.
        [Check other criteria]
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDIF.
    null

    When either pnp OR other selection :
    Create program 1 with 2 radiobuttons ==> pnp-selection (rb1)or other selection (rb2). When rb1 is selected go to pgm1 with pnp ; when rb2 is selected go to pgm2 with other selection criteria. Copy pgm1 to pgm2 and add extra selections en delete pnp-statements.
    When pnp WITH extra selections : 1 pgm can be used as you described.

  • Delivery List : Selection criteria in VA05

    Hii
    Can any body please solve this out?
    1. In VA05, I want to set the date of present month. Like if I open that in august then the date range will show by default 01.08.09 initial and ending 31.08.09 and if I open that in september then it will be 01.09.09 and 30.09.09
    Note - Display Variant is not working. Tell me some other tricks
    2.  In Further Select  Criteria  there is no criteria for plant. Is it possible to set Plant option over there?
    Please solve the issue.
    Thanks and Regards
    Santanu

    Hi
    Plant can be added to the list of further selection criteria through configuration. Please follow the below process...
    Goto IMG - Sales & Distribution - Sales - Lists - Define Selection Criteria - execute
    In the screen - goto New Entries and add the following details..
    1. Program Name - SAPMV75A
    2. TRG (Transaction Group) - 0
    3. Display Group - K
    4. Event - SELK
    5. It - 8
    6. Field Name - WERKS
    Enter the details and save the changes. Goto VA05 and you can see the field PLANT in the Fur Sel Criteria.
    Thanks,
    Ravi

Maybe you are looking for

  • Address Book not recognised by iTunes

    My Address Book database refuses to sync through iTunes to my iPhone. In iTunes (v9.0.2) in the Info pane for the iPhone, the Address Book database list of groups doesn't show (it's just empty), and the Address Book doesn't sync to the iPhone so the

  • Smart Dialing

    Hello All Apparently my Classic which I bought yesterday doesn't have the "Smart Dialing" menu. I don't know what to do. I want to add local number limit but i can't. The phone doesn't show the caller ID and shows only the numbers. Help me please Ima

  • How to Customize HR Form IN01

    Dear All Expert, I have to add logo and few custom fields in Form IN01 (T.Code - PE51). I never work in HR Forms. Please let me what I nedd to do for the same. If that was smart form/adobe form, I can do the same. But I didn't find that how to do sam

  • QuickTime, AVI, Codec

    Okay, so first off, I have searched and searched and searched for the answer to my question, but I haven't had any luck finding a resolution. I downloaded some .avi files (and yes, I realize .avi files are the devil, so no need to harp). I was able t

  • How can i edit a .html file with jdeveloper?

    hi when i use ibm websphere, i can edit a .html file visually. but when i use 9ideveloper, i can not do the same thing. i do not want to learn writing html code with notepad. who can help me? tell me how to deal with this problem.