Selection screen in background MRP

Hi all,
Can anyone please tell me what is the meaning of 'selection screen', in background MRP variant? What does it contains and what is its significance?
Thanks in advance
Sumeet

Hi,
In a variant there are several fields in the selection screen, the variant is saved with a set of these field values.
In the case of MDBT, you can create several varinats for different materials or Plants and then execute those varinats whenver you need.
Basically the varinat caoncept is associated with Back ground jobs and also user specific entries.
Suppose every time you do not want to repeatedly enter the same field values , you can use these varinats.
Reward if you like it.

Similar Messages

  • How to fill selection screen in background job

    Hi experts,
    I use FM BP_JOB_CREATE to create background job. This job is program with one parameter on selection screen - production order number.
    This job is created when production order is saved.
    How can I fill production order number on selection screen? Do I need to create variant for every production order number?
    Thanks&regards,
    Jirka

    To create variants you can use !
    RS_CREATE_VARIANT
    You can also use
    JOB_OPEN
    JOB_SUBMIT
    JOB_CLOSE.
    to create a job.
    Regards,
    Lalit Mohan Gupta.

  • Run alv report without selection screen in background

    Hello Every body,
    i programmed a ALV Report without selection screen, and i want to create a job for this alv report.
    Any help?
    Thank u.
    Ouail.

    Hi Steve,
    Can you tell me where i have to put your code?
    this is my abap code:
    START-OF-SELECTION.
       p_filref = '\\SAPSERVER\f\SAFT\ivat\FI_Extract_1000_20140709_102346_910.XML'.
       PERFORM copy_from_xml_to_itab TABLES it_ref_file
                                     ref_xml_data
                                     USING p_filref.
    **Begin Extraction File
       SUBMIT ZZ_FI_IVAT_EXTRACTOR
       WITH p_bukrs EQ '1000'
       WITH p_gjahr EQ '1998'
       WITH filepath EQ '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
       WITH cldata eq space
       AND RETURN.
       DATA: FILE_TABLE  TYPE TABLE OF SDOKPATH,
       DIR_TABLE  TYPE TABLE OF SDOKPATH.
       CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
         EXPORTING
           DIRECTORY  = '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
           FILTER     = '*.*'
         TABLES
           FILE_TABLE = FILE_TABLE
           DIR_TABLE  = DIR_TABLE
         EXCEPTIONS
           CNTL_ERROR = 1
           OTHERS     = 2.
       IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
       "get file name
       LOOP AT FILE_TABLE INTO p_filref.
       ENDLOOP.
       CONCATENATE '\\SAPSERVER\f\SAFT\iVAT_Extractie\' p_filref INTO path.
       PERFORM copy_from_xml_to_itab TABLES t_ext_file
                                     ext_xml_data
                                     USING path.
       PERFORM fill_xml_tab_in .
       perform build_fieldcatalog.
       PERFORM compare_data_ref_ext.
       PERFORM send_email.
       perform display_alv_report.
       PERFORM delete_extraction_file.
    in the perform copy_from_xml_to_itab TABLES it_ref_file......, i use this code:
       CREATE OBJECT gcl_xml.
    *Upload XML File
       CALL METHOD gcl_xml->import_from_file
         EXPORTING
           filename = p_filref
         RECEIVING
           retcode  = gv_subrc.
       IF gv_subrc = 0.
         CALL METHOD gcl_xml->render_2_xstring
           IMPORTING
             retcode = gv_subrc
             stream  = gv_xml_string
             size    = gv_size.
         IF gv_subrc = 0.
           REFRESH gt_xml_data[].
    * Convert XML to internal table
           CALL FUNCTION 'SMUM_XML_PARSE'
             EXPORTING
               xml_input = gv_xml_string
             TABLES
               xml_table = gt_xml_data
               return    = gt_return.
         ENDIF.
       ENDIF.

  • Suppress of Selection screen in background

    Hi.
    Case : Foreground Mode-> The requirement is to generate a report based on User Input and finally getting the confirmation, it would be updated the database.
    Case : Background Mode-> The same report would be run in background with the suppression of User input .
    What should be condition / logic to suppress it .
    Regards
    Shashi

    use the option submit
    if sy-batch eq 'X'.
    SUBMIT <REPORT_NAME> TO SAP-SPOOL
    AND RETURN.
    endif.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Change Color of SELECTION-SCREEN COMMENT

    Hello!
    I want to change the color of the text of my comments for parameters in my selection-screen. Is that possible?
    What kind of design option do I have within the selection-screen? (Background, Colors, etc...)
    Regards Michael

    check out this sample code.
    REPORT YRJKSJKJFKD
           NO STANDARD PAGE HEADING.
    SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(30) comm2.
    SELECTION-SCREEN ULINE /1(50).
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    AT SELECTION-SCREEN OUTPUT.
      comm1 ='Selection Screen'.
      comm2 ='Select one'.
      LOOP AT SCREEN.
        IF screen-group1 = 'MG1'.
           screen-intensified = '0'.
           screen-color = '0' .
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    for screen-color the possible values are
    Syntax of color value in col color
    { COL_BACKGROUND } 0 GUI-specific
    { 1 | COL_HEADING } 1 Gray-blue
    { 2 | COL_NORMAL } 2 Light gray
    { 3 | COL_TOTAL } 3 Yellow
    { 4 | COL_KEY } 4 Blue-green
    { 5 | COL_POSITIVE } 5 Green
    { 6 | COL_NEGATIVE } 6 Red
    { 7 | COL_GROUP } 7 Violet
    Regards
    Raja

  • How to create a report with selection screen that can run in background

    Sorry to ask these basic questions but I am knew to ABAP Programming.
    To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field.  That field takes in a folder path from the user.  The user executes the report.  The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided.  I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background.  The report is not exporting the file as it did when run in the foreground for some reason.
    I am wondering what event is triggered when a report is executed in the background.  In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field.  It works then, so I am trying to get the same to work in the background.  I am thinking I didn't put the program together correctly to accommodate the running in the background.  How can you create a report that can accept user input via variant into a selection screen and then run in the background?
    Please, any information would be greatly appreciated.
    Thanks you all for reading this!!!

    Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
    Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
    Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at.

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • Background Processing, Selection Screens and Variants

    Hi All,
    I am having a little trouble Background Processing with Selection Screens and Variants.
    When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
    FORM START_BACKGROUND_PROCESSING.
      CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
        EXPORTING
          TITLE_NAME            = 'End Customer Report '
          JOB_NAME              = 'customer_report'
          PROG_NAME             = 'ZSE_SD_SALES'
      EXCEPTIONS
        NO_SUCH_PROGRAM       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "START_BACKGROUND_PROCESSING
    After the background process is started, all teh data is collated then written to the app server. this is the order
      ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
        PERFORM INITIALIZE_DATA.
        PERFORM SELECT_DATA.
        PERFORM PROCESS_DATA.
        PERFORM GET_END_CUSTOMER_DATA.
        PERFORM WRITE_TO_APP_SERVER.
    Any ideas? Points given to those who are helpful

    done myeslf

  • To run a report in background in selection screen using a new button

    hi friends iam new member to this site
    nice to meet u all
    i want to run a report in background using the selection screen of the same report and i want to keep a button in application tool bar.
    after enter the values in the selection screen by clicking that button it should move to the screen which we get generally by menu option
    program-->execute in background
    and by entering the output device and start condition it should be scheduled in the background.
    with job_open,job_submit and job_close we need variants.
    for this i tried through bp_jobvariant_schedule and
    bp_jobvariant_overview but with this we can run with variants only
    but the user wants to enter the values in selection screen and need a button to run background
    ok friends i think u understood me
    please inform soon ok bye have a nice time

    Hi Jagadish
       There are two ways for you to handle the situation.
    1. Train the users to enter the values in selection screen and manually go for backgroung scheduling.
    2. Use At user command and within that basing on the option selection selected, use FM:JOB_OPEN with sy-repid get the job number, submit the program with the values on the selection screen and lastly executing FM: JOB_CLOSE with the job number from JOB_OPEN and SY-REPID.
    Note that you have to set 'X' for export parameter something like startimmed while calling FM: JOB_CLOSE for immediate execution. Am not on SAP to give you the exact parameter.
      Hope the above info helps you.
    Kind Regards
    Eswar

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • Background processing for ABAP report with selection screen

    Hi ABAP Gurus,
    I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
    I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
    Any ideas/comments on the problem and how this can be overcome?
    Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
    Thanks in advance.
    Shivani.

    Yes. My report has a selection-screen which requires user input. But I have created  a variant for the report and trying to run it in background using this variant. But facing this problem.
    Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
    But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
    I have never faced such a situation before.
    Any hints/tips why this happens and how this can be overcome in the future?
    Thanks in advance.
    Shivani.

  • AT SELECTION SCREEN event in Background

    HI experts,
    In my selection screen i have a parameter P_LAYOUT. If i execute my program in background, the P_LAYOUT is obligatory and if it is blank, i should get an error message on the screen prompting the user to fill the P_LAYOUT.
    My code is as follows:
    AT SELECTION-SCREEN.
    IF SY-BATCH = 'X'.
        IF P_LAYOUT IS INITIAL.
            MESSAGE e226(ZMG)  "Please fill the layout field.
        ENDIF.
    ENDIF,
    The problem with this code is that am getting the error message in SM37 only but not the screen.
    Can anybody help plz.
    Yahsaar

    Try to check when user requests for batch, not when  batch is running, when sy-batch is initial and function code is execute in background.
    AT SELECTION-SCREEN.
      IF sy-batch = IS INITIAL AND sscrfields-ucomm EQ 'SJOB'.
        IF p_layout IS INITIAL.
          MESSAGE e226(ZMG) "Please fill the layout field.
        ENDIF.
      ENDIF.
    Regards,
    Raymond

  • Selection Screen Change & Impact on background scheduled reports

    Hi,
    I have modified the selection screen of a report program by adding additional selection criteria. This report is background scheduled and runs several times with different variants in a day. I am worried that the background jobs may fail in Production if the latest changes are moved. But I think, background jobs will not fails unless the selection criteria that are part of variants that used in the background jobs not modified. But not sure. I just want to make sure, I am doing correct thing.
    Please let me know your thoughts. Appreciate your help!
    Thanks,
    Kannan.

    >
    Advait Gode wrote:
    > When you transport the program to production after changing the selection screen, you will have to re-create all the variants once again. Otherwise the scheduled jobs will fail.
    >
    > regards,
    > Advait
    I don't think so.
    But of course you will have to update the variants to reflect the new selections.
    Rob
    Edited by: Rob Burbank on Jan 14, 2009 10:56 AM

  • How to restrict user at selection screen while executing in background mode

    hi all,
    how to restrict user at selection screen while executing in background mode
    Regards
    Deepak

    Hi,
    We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
    so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
    Regards
    Sudheer

  • Printer selection on selection screen to appear also in background sertting

    I have been asked to fix a program
    Fault =
    There is a printer selection on the selection screen which is filled perfectly well from its help process.
    When the user chooses "Execute in bacground" this printer selection is not automatically carried into the printer for background processing.
    Question how to do this?
    Is it simply a case of calling dunction "get_print_parameters" and exporting the selected printer from the input parameter in the "destination" parameter?
    Cheers,
    Ross

    Hi ,
    Go through the below link .
    Link:[Get_Print_Parameters|http://help.sap.com/saphelp_470/helpdata/en/9f/dba56d35c111d1829f0000e829fbfe/content.htm].
    Regards,
    Maruthi.

Maybe you are looking for

  • .ts-files with multiple audio tracks / Premiere Elements 12

    Hello forum, once more I need a little help please. I've created successfully a few DVD's, and by now I'm a master in creating my own menue templates , but now I have again some problems. I imported a .ts file which I recorded on my Sat Receiver. Thi

  • Invoce plan automatic payment settlement

    Dear friends, I created rent invoice plan documents through MRIS transaction by using periodic invoice plan,my question is how to make payments automatically using invoice plan plz can u explain detail Regards Govind

  • Handling Exception

    Hi, I would like to write a procedure to handle any unhandled exception raised by any query,but i dont want to make call to that in each existing procedure or function. So is there any schema level trigger available for where i can call this procedur

  • Business Rules - 10.1.3.3 - How can I debug what goes on when rules are run

    I try to run my own example of rules based on xml fact, and i do it from a java program. I would like to be able to see what happens when i execute a certain rule. Is it possible to switch on some logging or trace ? Edited by: jsteenberg on Sep 25, 2

  • ICal highlight color too dim

    I can barely see the pale color of the iCal cell for the date.  I remember this being a problem for a long time with iCal.  You can't see the highlight color in the day cell.  I have the same problem with the search or find.  The highlight color is s