Stop Scheduled job which has no jobs in released status

Hello
I need to stop some back ground jobs, but in Sm37 i m not able to see any jobs in released status or scheduled status to cancel these job,the job are set to run in a frequency of 2 days
please let me know
Thanks
Praveen

Event triggered jobs can be configured in SAP directly ,,,
checkout this link below
http://help.sap.com/saphelp_45b/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm
Else you can use any SAP supported 3rd party tool for job scheduling
like Tivoli or any other tool
http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
http://www.sap-press.de/download/dateien/1102/sappress_job_scheduling.pdf
Hope this will help you
Cheers
dEE

Similar Messages

  • How to re-execute a job which has failed

    hi everyone,
                        i am executing a job ....it executed for few minutes and hav been able to load few records in the final table(target)....some exception is thrown up and job failed after that....i want to re-execute the job with only the records that are not processed...how to identify which records are processed?
    is there any process to do so in BO DI?

    Hi Suneel
    You can use several methods to ensure that you do not insert duplicate rows:
    u2022 Design the data flow to completely replace the target table during each
    execution
    This technique can be optimal when the changes to the target table are
    numerous compared to the size of the table. You can use tuning
    techniques such as bulk loading options to improve overall performance.
    u2022 Set the auto correct load option for the target table
    The auto correct load option checks the target table for existing rows
    before adding new rows to the table. Using the auto correct load option,
    however, can needlessly slow jobs executed in non-recovery mode.
    Consider this technique when the target table is large and the changes
    to the table are relatively few.
    u2022 Include a SQL command to execute before the table loads
    Preload SQL commands can remove partial database updates that occur
    during incomplete execution of a step in a job. Typically, the preload SQL
    command deletes rows based on a variable that is set before the partial
    insertion step began.

  • How to stop the TR which has run a long time

    Hi,
    I released a TR, but the system import it a long time. I think maybe have a problem with it.
    I want to stop the import job of the TR. How can I do for that?
    jk

    hi,
    Q: How to kill a long running job in SAP.
    Answer
    You can 'kill' your own long running jobs by doing the following.
    Open a new SAP session.
    In the new session, from the SAP R/3 screen, follow the menu path: Tools>>Administration
    (new screen) Monitoring >>System monitoring>>User overview
    Fastpath:  /nsm04
    Result: the "Overview of Users" screen appears. This is a list of the jobs currently running.
    Find your username in the list and click on it
    Click on the Sessions button .
    Result: the Overview of Sessions screen appears.
    Click on the End session button .
    hi, ask your BASIS people for killing the job..
    regards
    vijay

  • Indesign - Exporting PDF which has Transparency getting error in PITSTOP

    Hi all,
    Recently we are getting jobs which has" transparency" - effects used. We are getting problem when we run PITSTOP.
    We have an Indesign file with transparency in Opening page of an article. One background Image is there, over the image a strip which is drawn using "box" and applied "Transparency - Multiply" effect so that the image can see through it.
    We exported the file using distiller "PDF/X-1a" and created PDF. Once we run the PITSTOP to check the PDF we are getting error.
    "Effective resolution of color or grayscale image is less than 200 dpi"
    This error is showing in the" Stip" which is drawn in Indesign.
    The problem here is when we export the file in "PDF/X-1a" the transparency getting flattern because of this the strip become image and showing low res. in PITSTOP.
    We have increased the Transparency Flatten Preset Option from 1200 to 2400, still the problem was not solved.
    Expecting a solution for this all types of suggestions are welcome.
    Shaji

    Shaji,
    I think I wasn't clear in my last post. The mesh resolution should NOT be below 200. But it sounds like that isn't the issue after all.
    When you select that background image in InDesign and look at the Info Panel, what do you see for "effective" ppi?
    Peter

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • How to schedule a job which needs to run evry day 1(AM) o clk?

    begin
    DBMS_SCHEDULER.create_job (
    job_name=> 'BJAZPROPMAINTAIN',
    job_type=> 'PLSQL_BLOCK',
    job_action=> schemaname.schedule_procedure;',
    start_date=> '02-aug-08 01:00:00 PM',
    repeat_interval=> 'FREQ=DAILY; BYHOUR=01',
    enabled =>TRUE,
    auto_drop=>FALSE);
    end;
    Hi all,
    i want to schedule a job which needs to be run every day one o clock early morning i haven't set the job_scheduler before this. by searching thru net and prev scheduler coding i have written the above code here for running evry day early morning 1 o clock i m little bit of confused in the time
    repeat_interval=>'FREQ=DAILY;BYHOUR=01'; whether is is correct one or wrong?
    and also there are some other job is scheduled in the same time . will it create any problem of executing at the sametime or we need to change the timing of 1:15 like that?
    please advise me..

    Thanks a lot so it will be executing every night 1 o clock am i right?
    It should.But I shall say that schedule it and than only we can be sure about it.About the timing part, its correct syntatically.
    i saw that job_priority column in dba_scheduler_jobs table but dont know what it does?
    and also how can fetch this job scheduler sid,serial# i checked v$session but how to correlate this ..
    please explain me
    In schedulerjobs,there is a column ,client_id.You can map it to the sid from the V$session.I don't have a box running Oracle at the moment so I wont be test it for you.Do it and post feedback.
    what will happen if more than one job is scheduled in the sametime
    i think for this only we set the priority on the two which one needs to be first exec(depends on the high priority)
    let me know about this.
    Jobs are prioritized by two parts,within the class they are a part of and individualy.If you have two jobs in the same class than they can be make run with a different priority with the priority clause set within them.This has a number which start from 1 meaning highest priority.So if there are two jobs scheduled for the same time,you need to check which job class they fall into. If they are in the same class than you have to change the priority of them.
    I suggest you read the books,they cover all these topics in much more detail.
    Also there is a dedicated forum about Scheduler.In future for Scheduler regarded questions, you can visit there.
    Scheduler
    Aman....

  • How can I see all scheduled jobs which have steps of a given user?

    Hello,
    I like to see all scheduled jobs which have steps of a given user. It is not importent which user has planned the job, I just want to check the usernames wich are used for accomplishing the respective step (-> field "AUTHCKNAM").
    In table " tbtcp" I can see the AUTHCKNAM for the jobsteps, but these table just contains the jobs which are in the state "finished/completed".
    In table "tbtcs" I can see the scheduled jobs, but there I can't see the AUTHCKNAM
    Do you know a table where I can see ALL Jobs or the scheduled ones and the AUTHCKNAM?
    Thanks for your help!
    Kind Regards
    Lisa

    Hi,
    thanks for your answers.
    I also tried the table "tbtco". There I can see all jobs, but there arent entrys in the column "AUTHCKNAM". Its empty....
    Maybe there is an other table?
    Kind Regards,
    Lisa

  • Overview, which Jobs are scheduled and which haven't finished successfully

    We are using GridControl jobs to administrate several databases (e.g. execute exports, analyze schemas, etc.). All of these jobs are scheduled...
    The "Home" tab of the GridControl GUI has the information "All target jobs" with "Problem executions" and "Suspended executions" - but what we would
    like to have is a view, which contains the job-names and their status.
    I've looked through the data-dictionary of the GridControl repository and found several tables and views which contain all kind of informations about the
    jobs.
    Does anybody already know, how to setup a view with the needed informations?
    We can't use the tab "Job activity" since the result of the view should be mailed to the developers...
    Any help will be appreciated...
    Rgds
    JH

    we are rather new to GridControl and not very experienced with the reports. I thought that just the already defined report-categories could be used.
    I went through the reports but couldn't find any report which is related to jobs.
    But thansks for your suggestion - we will try to create a report...

  • I have Process chains as well as some jobs which run.Most  of the data is l

    Hi Experts,
    I have Process chains as well as some jobs which run.Most  of the data is loaded through custom ABAP extracts.Now where to check for these jobs and how to understand them.I know that  we can check for jobs in sm37.But how do u load data using these jobs.Please tell me in detail how  and where u execute these jobs.Please give me an answer

    For creating a job use..transaction sm36.Define start condition ,periodicity. etc..
    To monitor it you can use--sm37 job monitoring
    Various options in sm37 which you can use after check(tick) on any particulur job..and then click on joblog.
    To view variants of any job click step>goto(top menu bar)>variant.
    ,rsmo ( process monitor) -- to view data load--you can view there data load daywise..here to view any particulur data load..click on infopackage /dtp/datasource in rsa1 and click on the monitor icon at the top..system will show you the concerned dataloads in process monitor
    For monitoring process chains--go in RSPC and double click on the chain and click on log button(yellow color) select data range..and you can view the status of a chain....red if failed and green if success..and yellow if still running.
    Also in sm37 you can find the status of a process chain by searching with job name---bi_process_trigger.
    To execute chaingo to RSPC>double click on the chain-->schedule(F8)
    If you know the data target of loading ,go in rsa1 and right click on the data target and select manage and you can view the request being loaded.

  • HOw to avoid DeadLocks when you schedule a Sql Server Agent Job and calling SSIS packages

    Hi All,
    I have scheduled 2 packages in in Sql Server Agent jobs .
    First job which is having Package 1 executing at 11 AM and where I am inserting the data in the table.
    Second job which is having Package 2 executing at 12 AM and where I am updating the data in the table based on the first job inserted records.
    When I am executing my first job it taking more time and executing till 12 AM and from 12 AM my job 2 also starting ,so getting deadlocks conflicts because inserting happening from job1 and updating happening from Job 2.
    How to avoid deadlocks and fix the issue.
    Please Suggest .
    Thanks & Regards,
    Anand

    Hi Anand,
    Here is another solution, you can set the Job 2 not to run based on a schedule, and create another SQL Server Agent Job which starts at 12 AM and run with a specified time interval to execute a SQL statement in which you do the following steps:
    1. Get the status information of Job 1 using the statement:
    DECLARE @i int;
    EXEC @i = msdb.dbo.sp_help_job @job_name = ‘Job Name'
    2. If the value of @i is 1 which means the status of job 1 is success and current time is, then start the job 2. So, the statement is as follows:
    IF @I = 1
    EXEC msdb.dbo.sp_start_job @job_name= ‘Job Name’
    Regards,
    Mike Yin
    TechNet Community Support

  • Schedule a Session in a Job

    Dear friends,
    I have a LSMW which creates multiple sessions with 2000 records each. For example, the LSMW creates 10 sessions( in Tx. SM35 ) with 2000 records, say material master. Is there any way to schedule every session in a job at particular time?
    Thanks in advance.
    Regards, Murugesh AS

    Hi,
    with report <b>rsbdcsub</b>
    a)  manual 
    b)  automatic with fm K_BATCH_REQUEST
    regards Andreas

  • How to check who has cancel jobs in SM37

    Hello every one.
    Can any one explain how to check  who has cancel jobs in SM37(job overview).
    Is it possible to know such logs.
    In sm37 its only gives details about jobs what ever.
    Thanks & Regards.

    hi.
         Use SM 36 for creating the job...and SM 37 for displayin the job...here
    u can see some details such as job name,job modifier name,modified date from which date to which date....but u must know the job name den only u can find the modifier name there...
    it is possible to know such logs.....
          select the job..in that screen job log button is there..select the button,can get the job log ..ie start time and end time and some  other informations..
    hope this helps u..
    assign sum points if applicable...
    regards,
    ramanan

  • Redwood - Schedule a job dependant on another jobs completion?

    Hoping someone can help as documentation on Redwood seems to be very limited.
    We are currently running Redwood for the "Standard Jobs" without an issue, however we now have a requirement to start testing our batch schedule through Redwood and can't seem to figure out how to create jobs with dependencies on other job completions?
    Can anyone point us in the right direction?
    The other issue we have, is that we are unable to find an option to release a job based on an event trigger?
    Thanks a lot

    Hi Matthew,
    Jobs can be made dependant in two ways.
    1.     Using Job chains where you will be able to have multiple scripts (each script executes a step in multi step job) dependant on one other. (Documentation for the same is available in Redwood help with key word – ‘What is a job-chain’). In this case you will have one job chain with multiple scripts getting executed in a parallel or sequential way. Also it is possible to embed job chains in other job chain. You can take different actions based on output / processing state (completed, cancelled etc.) of previous script in Job chain.
    2.     Raising events by predecessor script which in turn triggers next script.
    First solution is more appropriate and used one.
    If you are talking about events in Redwood they can be raised and sensed by scripts and can be defined in script properties under node –wait Events & Raise events.
    Hope this helps.
    Regards
    Vithal

  • How to findout the sharepoint job which responsible for database re indxing

    Hi
    In sharepoint 2010 i configured RBS storage for  Web application content database
    in our org form  has two web frontend servers,
    two application servers, and two index servers ,one database server
    so when users upload BLOBs to sharepoint library we faced some time RBS storage space problem
    Exception:Microsoft.Data.SqlRemoteBlobs.BlobStoreException: There was a generic database
    error. For more information, see the included exception. --->
    System.Data.SqlClient.SqlException: RBS Error. Original Error: Number 1101,
    Severity 17, State 12, Procedure -, Line 1,<o:p></o:p>
    Message: Could not allocate a new page for
    database 'WSS_Content_80' because of insufficient disk space in filegroup 'PRIMARY'.
    here when i ask our DBA he said there is one sharepoint job is running which saving audit data daily every data and database is re indexing every time , to sharepont content database size is increasing
    so how to findout the job which responsible for database re indxing
    adil

    Audit data is created when an audit event his triggered. Auditing is configured on a per-Site Collection basis.
    http://office.microsoft.com/en-us/sharepoint-server-help/configure-audit-settings-for-a-site-collection-HA102031737.aspx
    There is a Health Analyzer rule named "Databases used by SharePoint have outdated index statistics".
    http://technet.microsoft.com/en-us/library/hh564122(v=office.14).aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to find the job which created the session with errors ?

    Hi,
    I am going to transaction SM35 to see the sessions which has errors. Now if I want to see, what Job was responsible to create that session, how can I see that ?
    Regards,
    Rajesh.

    hi Rajesh,
    Refer to this code to create a session for the erroreneous records
    REPORT  ztest_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *                 Internal Table Declarations                          *
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    *          Selection screen                                            *
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    *          Start-of-selection                                          *
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    *        TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    *          End of Selection                                            *
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    *&      Form  form_uploadff
    *     Form to upload flatfile data into the internal table.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
    *     FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
      IF SY-SUBRC = 0.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    *&      Form  Form_bdcgenerate
    *     Form to Generate a BDC from the Uploaded Internal table
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    *&      Form  populatebdc
    *       FOrm to Populate the BDC table.
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
    *       Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    *  IMPORTING
    *    QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
    *       fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
    *     POST_LOCAL             = NOVBLOCAL
    *     PRINTING               = NOPRINT
    *     SIMUBATCH              = ' '
    *     CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
    *       Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
    *       Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
    *       To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.
    ENDFORM.                    " form_writeop

Maybe you are looking for

  • Get unique value for a range of values from a table

    Please help to identify the sql to get unique value for following scenario Table A has 3 columns column1 column2 column3

  • Enhancement to bypass "Source not included in list despite source list req"

    Dear Experts, When the indicator source list requirement is maintained in the material master, the system will only allow creation of a purchase order if the source  is maintained in the source list (t-code ME01).  If its missing we will get an error

  • In need of informations about Apple's stores

    Hi! I'm writing a mémoire (research) for the university about the Apple stores, their layout and the place of the latest Apple's product: the iPhone 5C in the Apple's stores. I'm also working on the link Apple tries to work out to get the client to c

  • Enhancement object does not exist for enhancement implementation

    Hi Experts, When i tried activating my implementation, i got the sujected error. any kind of inputs will be very helpful. This is an existing implementation and was last changed in October, I just wanted to added few more changes to that. Here is the

  • Adobe Photoshop CS6 trial

    I've been waiting this CS6 and I downloaded ADA(adobe download assistant) but its downloads so slow i just want the 'animation' app in PS can you give me advices for downloading fast???