Background Schedule - Hardcore Input data

Hi Experts
         I am developing a BDC, now i want to schedule the program into background.
        So i want to hardcore the input data like
         Select Method (Genrate session/Call transaction)
         Processing Mode
         Update Mode
         Nodata Indicator.
These data i need to hardcore in the program itself for further processing of background schedule.
          How to do it, pls advise me on this.
Thanks in advance.
Regards
Rajaram

Hi Rajaram,
As of my understanding do you want to put the following on your selection screen?
Select Method (Genrate session/Call transaction)
Processing Mode
Update Mode
Nodata Indicator
then do so.
There is a structure for call transaction parameters, which you can use for setting of selection screen and can set the default values as wellin initialization event.
Structure name : CTU_PARAMS
Reward pointsif useful.
Thanks & Regards
Rajini Rajuladevi
Edited by: Rajini R M on Jun 4, 2008 8:44 AM

Similar Messages

  • No batch input data for screen SAPMF02K 0101 for transaction XK02

    Hello Friends,
    I am Trying to change detaisl of Vendor using IDOC for T code XK02, I am getting an error in background
    No batch input data for screen SAPMF02K 0101
    Message no. 00344
    When I execute in foreground it is working fine.
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.

    just info: as u seen in the 3rd point, if u r running onlien, its recorded on ur user id, but, where as for back ground, the user lke WF_BATCH.........so, for this user, the settings may b different from a dialog user, in terms of  screen sequence, pop-ups. mandatory fields.
    So, i guess, u r missing to populate a input field, which is mandatory. May be by suing sy-batch IF condition, u hv to change CTU_PARAMS values, like sy-batin = 'X'......actually, these day si dont hv SAP access, so, pls. check some terms in this response.
    thanq

  • Schedule job in background and ftp the data to non-sap system

    Hello All,
    I have a requirement where in i have to write a program(with selection screen) to download 2 files into application server(frequency: end of each day i.e daily at 23:59), and then in turn i need to put those two files into FTP server using FTP script.
    i guess my flow of the code should be
    1. write the program with selection screen and
    2. get the data from corresponding tables and put it into internal tables.
    3. then i have download the data into application server
    my question is : how i will schedule the job in background to download the data into application server daily? using job_open, job_submit, job_close?
    4. then how i need to move the files from application server to FTP server using FTP SCRIPT?
    Also my doubt is once i execute the program ONLY, the background job is triigred (because i wrote job_open, job_submit and job_close inside my program). then how will i input the data into screen daily and download the data into application server in background automatically???? i am confused ...
    Please help me to solve the above issues
    thanks
    sangeetha

    >
    sangeetha s k wrote:
    How my data in application server will be transfer to another system using above FM? Because i am not passing application server file path in SAP to that FM. Could you please explain ?
    So the path name and the file name are always the same? In that case you could simply create a SM49 entry with hard coded file & path name.
    An easy example for the COPY command under WINDOWS OS:
    Create a command in SM49 called ZCOPY with following data:
    Operating System = Windows NT
    OS command: cmd
    Parameters for os command: /C copy  "C:\tmp\my_file.txt" "z:\tmp\my_file_copy.txt"
    Additional parameters allowed: (leave blank)
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 2  parameters:
         commandname                  = 'ZCOPY'     
         operatingsystem               = 'Windows NT'
    In the case that the file name and the path are not fixed you would set the following in the SM49 definition:
    Additional parameters allowed: X
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 3  parameters:
         commandname                   = 'ZCOPY'     
         operatingsystem                = 'Windows NT'
         additional_parameters       = params  "<== fill in the path and file name during run time into this variable

  • How to Create an Input Schedule Comparison with Data Using EVDRE

    Hello,
    I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
    Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
    Systems:
    BPC 7.0 NW SP02
    Office 2007
    BPCADminClient and BPCOfficeClient up to date
    Have anyone a solution?
    Thanks
    Oktay

    Hi Oktay -
    This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
    I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
    Regards,
    Sheldon

  • No batch input data for screen SAPMSSY0 0120 when running BDC in background

    Hi Experts,
    I am facing an  issue "No batch input data for screen SAPMSSY0 0120" when running a BDC for VA01 in background.
    The scenario is like we have EDI orders coming into SAP in the form Idocs. These EDI orders are processed by Function module
    IDOC_INPUT_ORDERS. This FM module internally calls VA01 (Call Transaction) to create Sales Orders in SAP.
    Now we have a scenario in which we want a popup screen to come up  & ask for selection of record from list of records displayed on popup screen. In background since we can not show up a screen, we are programatically selecting the record we want & going ahead.
    Now what is happening is during foerground the functionality is working abosultely fine, that is incoming idoc is getting posted successfully in SAP with status of 53. Incase of back ground processing of the same we are getting an error
    No batch input data for screen SAPMSSY0 0120
    I have checked this screen through screen painer(SE51) & i did not find any element on this screen but Element list
    shows one field Syst-Xcode.
    Kindly guide me how to fix the issue so that the same can work as expected in background.
    Regards,
    Chetan.

    Hi Chetan,
    List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
    Hope this helps, harald

  • Background Scheduling tutorial

    Hi All ,
    I want step by step tutorial/links/docs for  background Scheduling .
    Thanks in advace

    Hi,
    ABAP Editor transaction SE38 can be used to execute program in the background. In SE38 selection screen click on Program -> Execute -> Background and specify the name of the variant. You can schedule the program to run once at a certain time or periodically every month, week, days, hours or minutes.
    Moreover Transaction SM36 can be used to Schedule Background Job without selections parameters.
    Click on the steps, A popup window will open, Click on ABAP/4 button. The fields ABAP/4 Program name, Variant and Language will become input enable. Type the program name and save it by pressing on save Icon. Now Click on start condition, a popu up will appear asking about start date or Immediate etc.. pls provide applicable details and press on save Icon. and now finally press on Save Icon
    Steps
    SM36
    Put in Job Name
    Click on Steps
    Put in the ABAP program name
    The variant for your program if you have a selection screen and want certain values on there
    Save
    Click on Start Condition
    Put in e.g. Start Date and Start Time and Click on Period Values
    Save
    Don't forget to Save on the Initial Screen as well (Define Background Job)
    this will create you background job
    Go through the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Reward me if it is helpful.

  • Problem in background scheduling

    Hi All ,
    Requirement : When I run Report  ZBKSCHD It will SCHEDULE another program  for ex (ypr_range_rb2) .
    Here I am passing program name & varint which I want to schedule
    Input Field
    Program Name  : ypr_range_rb2
    Varint               :  ypr_rb2
    Getting errror
    *********ERROR ****** ********
    Short text                                            
        Exception condition "INVALID_STARTDATE" raised. 
    and  Report ZBKSCHD scheduling ypr_range_rb2 many times not single time .( in sm36 )
    ******This is my background schedule program
    REPORT ZBKSCHD NO STANDARD PAGE HEADING LINE-SIZE 170 LINE-COUNT 58 .
    DATA: ZCOUNT LIKE SY-TABIX,
    JOBNAME LIKE TBTCJOB-JOBNAME,
    PARAMS LIKE PRI_PARAMS,
    JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
    AUTHCKNAM LIKE TBTCJOB-AUTHCKNAM,
    SDLSTRTTM LIKE TBTCJOB-SDLSTRTTM,
    SDLSTRTDT LIKE TBTCJOB-SDLSTRTDT,
    VARIANT LIKE RALDB-VARIANT,
    REPORT LIKE SY-REPID,
    ZTIME LIKE SY-UZEIT,
    PREDJOB_CHECKSTAT LIKE TBTCSTRT-CHECKSTAT,
    PRED_JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
    PRED_JOBNAME LIKE TBTCJOB-JOBNAME,
    RELEASED LIKE BTCH0000-CHAR1.
    SELECTION-SCREEN: BEGIN OF BLOCK A1 WITH FRAME TITLE TEXT-001.
    PARAMETERS:
    NAME LIKE RS38M-PROGRAMM OBLIGATORY,
    VAR LIKE RS38M-SELSET OBLIGATORY,
    JOB LIKE TBTCJOB-JOBNAME,
    FRQ1 LIKE SY-INDEX,
    FRQ2(2) TYPE C.
    SELECTION-SCREEN END OF BLOCK A1.
    SELECTION-SCREEN: BEGIN OF BLOCK A2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: ZDATE LIKE SY-DATUM DEFAULT SY-DATUM OBLIGATORY.
    SELECT-OPTIONS:
    TIME1 FOR SY-UZEIT OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK A2.
    AT SELECTION-SCREEN ON FRQ2.
    IF FRQ2 NE 'H' AND FRQ2 NE 'M' AND FRQ2 NE 'S'.
    MESSAGE E001(Z1) WITH 'Time Unit must be H or M or S'.
    ENDIF.
    AT SELECTION-SCREEN ON ZDATE.
    IF ZDATE < SY-DATUM.
    MESSAGE E001(Z1) WITH 'Date must be greater than current date'.
    ENDIF.
    AT SELECTION-SCREEN ON TIME1.
    IF ZDATE = SY-DATUM AND TIME1-LOW < SY-UZEIT.
    MESSAGE E001(Z1) WITH 'Time must be greater than current time'.
    ENDIF.
    AT SELECTION-SCREEN OUTPUT.
    IF JOB IS INITIAL.
    JOB = NAME.
    ENDIF.
    $$* Start of selection
    START-OF-SELECTION.
    IF JOB IS INITIAL.
    JOB = NAME.
    ENDIF.
    clear params.
    call function 'GET_PRINT_PARAMETERS'
    EXPORTING
    mode = 'CURRENT'
    no_dialog = 'X'
    IMPORTING
    out_parameters = params.
    params-paart = 'X_PAPER'.
    ZTIME = TIME1-LOW.
    JOBNAME = JOB.
    VARIANT = VAR.
    REPORT = NAME.
    AUTHCKNAM = SY-UNAME.
    PARAMS-PRIMM = SPACE.
    SDLSTRTDT = ZDATE.
    CLEAR: ZCOUNT.
    WHILE ZTIME LE TIME1-HIGH.
    SDLSTRTTM = ZTIME.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = JOB
    IMPORTING
    JOBCOUNT = JOBCOUNT
    EXCEPTIONS
    OTHERS = 4.
    CALL FUNCTION 'JOB_SUBMIT'
    EXPORTING
    AUTHCKNAM = AUTHCKNAM
    JOBCOUNT = JOBCOUNT
    JOBNAME = JOB
    PRIPARAMS = PARAMS
    REPORT = REPORT
    VARIANT = VARIANT.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    SDLSTRTDT = SDLSTRTDT
    SDLSTRTTM = SDLSTRTTM
    JOBCOUNT = JOBCOUNT
    JOBNAME = JOB
    IMPORTING
    JOB_WAS_RELEASED = RELEASED.
    IF RELEASED = 'X'.
    WRITE: / 'Job', JOBNAME, '(' ,JOBCOUNT, ')' ,'will run at', ZTIME,
    'on', ZDATE, 'with program',NAME, 'and variant', VAR.
    ELSE.
    WRITE: /
    'Unable to release job', JOBNAME, '(' ,JOBCOUNT, ')' ,'at', ZTIME,
    'on', ZDATE, 'with program',NAME, 'and variant', VAR.
    ENDIF.
    CASE FRQ2.
    WHEN 'H'.
    ZTIME = ZTIME + ( 60 * 60 * FRQ1 ).
    WHEN 'M'.
    ZTIME = ZTIME + ( 60 * FRQ1 ).
    WHEN 'S'.
    ZTIME = ZTIME + FRQ1.
    WHEN OTHERS.
    ENDCASE.
    ENDWHILE.
    Thanks for your time
    Rahul

    Sloved

  • COGI Fail in b.ground with msg "No batch input data for screen SAPMSSY0120"

    Hi Experts,
    I have recorded the COGI transaction using SHDB and used in my program.  I have scheduled the program in background and this is always failing with the following error "No batch input data for screen SAPMSSY0 0120".  Please help me in this regard.
    Thanks,
    srinivas.

    Hi Ramya,
    This screen doesn't contain any field.  Also this screen shouldn't come in between of my transaction.  But my program is working fine if I execute online.
    Also I don't know where I need to call that screen. 
    Thanks,
    srinivas.

  • No batch input data for screen SAPLKEAK 0300

    Hi All ,
    I am getting "No batch input data for screen SAPLKEAK 0300 "  error while Posting a parked document.
    When I checked the Park Document , I saw that Profitability Segment was missing.
    Document is parked using standard FM  "PRELIMINARY_POSTING_FB01" after that BDC is executed to fill Profitability segment.
    Both FM and BDC are written in a custom FM. This FM is scheduled in a Job to run everyday and Park all the available Documents .
    Everything used to work fine for last 2 years but suddenly since last month I am starting getting this error.
    It does not happen for all the documents . And for the document for which it happens, if I try to park and post it again using the same process . It works fine.
    It looks as if something obstruct the normal parking process when SAP job is running but I am not able to find out the reason.
    Any pointers would be appriciated.
    Thanks ,
    Rahul

    Rahul,
    Why don't you try to debug the background program? Use JDBG on the BG job and change the call transaction to display ALL SCREENS or ERROR ONLY and see where the issue is.
    Thanks,
    Vikram.M

  • Calculate all days in month from schedule line delivery date for 12 mths

    Hi experts,
    I am trying to solve a problem and would appreciate any help! Im on BI7.
    The user will input a date for the schedule line delivery date via a variable.
    From this date I need to go forward 12 months exactly and display a key figure (outstanding value) by months but the first and last months must only use the days in that month i.e not the whole month if not selected by the user.
    I.e if the user types in 13.05.2008
    The display need to show (columns)
    May 08 (13th to end of May 2008)
    June 08   (All)
    July 08    (All)
    August 08    (All)
    Sept 08    (All)
    Oct 08     (All)
    Nov 08     (All)
    Dec 08    (All)
    Jan 09     (All)
    Feb 09    (All)
    Mar 09    (All)
    April 09   (All)
    May 09  (1st to 12)
    So I neen to restrict the key figure (Outstanding Value) by Schedule Line Delivery Date and display as above on a 12 month forecast basis from the day (sch line delivery daye) entered as a variable by the user.
    I also need the first month to only show the dates in the month remaining including the date entered as a variable. The last month must go up to the day before exactly a year in front.
    I have created the 12 months as a structure and can include the key figure and the schedule line delivery date. The schedule line delivery date for each period needs to be restricted. How can I do this to achieve the above?
    Thanks in advance. Will assign good points for a speedy solution.
    Best
    Steve.

    Hi,
        Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type.  Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
    Regards
    Ram Pedarla

  • Background Jobs with Dynamic Dates

    I am looking for how to run a job in the background on a Daily basis where the data time range is always Yesterday - specifically, I want to run a Notification report daily to see the previous day's notifications.
    I have established a Variant with the Dynamic Dates to be "Current Date - 1 days", and schedule it to run in the background Daily.  The report runs daily as scheduled, but the dates are not changing (i.e. it always runs the report for the same date).

    Dear Richard,
    It appears that the date that you generated by "Current Date - 1" is not used for running notification report or not passed from variant.
    You can actually code the same in your program.
    I suggest you to expecute the report in SE38 with debugging by putting a break-point.
    v_date = sy-datum - 1.
    v_date should be used for notification report. (not sy-datum)
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Background Scheduling - Deadline Monitoring

    Hi Experts,
    I have created new maintenance plan , its around 250 for Mechanical and 250 for Electrical
    Maintenance plan having strategy like every two month , every three month , every six month etc..
    Scheduling period is 3 year
    Now scheduling will be done through IP10 one time , but after first call object scheduling will get hold.
    I want to make it background scheduling - Deadline Monitoring
    Now the requirement is , For Example :
    Maintenance plan X have PM plan date is 21.07.2014
    Maintenance plan Y have PM plan date is 24.07.2014
    Maintenance plan Z have PM plan date is 29.07.2014
    As per above example each equipment will have different plan date , background scheduling can be done through IP30 but by the date is concern how can make it possible ?
    Please advise each maintenance plan has to be run as per their plan date.
    Thanks,
    Abhishek

    Hi Mr.Jogeshwara,
    Nice Document , Its really useful
    But my query is each equipment have different plan date , as explained in above example
    If Maintenance plan have Cycle Unit 60 day and Plan X date is on 21.07.2014 then 21.07.2014+60day , same as if maintenance plan Y date is 25.07.2014 then 25.07.2014 +60day
    Like that
    background scheduling needs to be done as per cycle unit
    If i will do background scheduling together of both the above maintenance plan X and Y then scheduling will be run exactly after 60 day and order will be generated in advance for Maintenance plan Y.
    Hope you understand my query.
    Thanks,
    Abhishek

  • Background Scheduling Problem

    Hi everyone,
    I am getting problem in the BEx reporting.After loading the new data in the respective data targets, it is not reflecting in the BEx Analyzer. I have created the process chain, and loading is done in the background scheduling. I can see the updated request time and date in Monitor. It is showing that data is updated successfuly in the data targets.
    But when I execute the report after 2hrs, It will reflect in the query and it will show the latest updated records.
    If anybody knows the reason why it takes time to reflect in query, please give me some outputs.
    Thanks,
    Pandey

    Hi Manoranjan,
    If your data target is ODS, you can find the updated records for reporting only after activation. If it is InfoCube there could be some processs defined after dataload like create index,Stats and rollup if aggregate are present. may be this could be the reason...
    Hope this helps..
    Best Regards,
    DMK
    *Assign points if it serves your purpose...

  • AC 10.0 Background Scheduler only Allows Display

    Hi Community,
    When trying to follow SAP's wiki document to set up user access reviews (UAR) after the configuration steps in SPRO it asks to set up a background job in Access MGMT -> Scheduling -> Background Scheduler. Unfortunately, when I access the background scheduler it does not allow me to "Create" nor "Cancel". Both options are greyed out. Could this be a security issue? I should have ample access in our sandbox. What else could bewrong? - So far I have always scheduled my jobs in SPRO and this is the first time I user the froint-end background scheduler". Thanks guys!
    In step:
    Generate data for UAR
    http://wiki.scn.sap.com/wiki/display/GRC/User+Access+Review(UAR)++Workflow+Configuration+and+Description

    Dear Joerg,
    Please, check whether it is not just an authorization issue by providing power user access to the user who's trying to use create button.
    If it is not an authorization issue, please apply the following SAP note:
    1841173
    Let me know if it was helpful.
    Thank you,
    Fernando

  • Background Job Still Running - Data Can Be Displayed Only Msg Populated in Maintain Versions (OKEQ) Screen

    Hi,
    I try to create 2013 FY in "Setting for Each FY" in OKEQ - Maintain Versions unfortunately I have created Null FY, try to delete Null FY on the time it will ask Job schedule, I have cancelled the job & reopen Maintain Versions (OKEQ) screen on the time system populated the msg "Background Job still running - Data can be displayed only"
    In Settings for Each FY screen there is no New Entries button, all FY are blocked status, changes was not allowed.
    How can I resolve it.
    Waiting for your valuable suggestions.
    Regards,
    Nageswar.

    Dear Rajneesh Saxena
    Thanks for your prompt reply.
    Yes you are correct, on the time of deletion it will ask Background Job Process, for immediate deletion must & should select "NO".
    While "Settings for Each FY" screen populates message "Background Job Still Running - Data Can Be Displayed Only" open  screen in display mode enter the command "=KILL" in command bar press enter, then you will allow to changes get New Entries button also.
    Problem is solved
    Regards,
    Nageswar.

Maybe you are looking for