How To Handle With Back Ground JOB From WEBUI When Click On "Appove"

Hi
How To Scheduled A Job Through ABAP Report In back end  Of CRM when i click on "Approve" Button in WEBUI  From result list.
As per My requirement I have a Search View and Result View
In Search View I have  Below Fields
ITC Vendor ID    
Claim Status
User status (date status changed)
Model
Serial Number
Date completed of Service Completion
Based on Search Criteria I will get Result In Result View.(Suppose 10 Records I got In Result View)
In the Result View I need to Add one Button As "Approve"
When i Click On Approve button One Pop up Message Need to Open And In that popup window I need to Display Below Text
"Approve  Claim Job Has Started In Background  
Note: Only Claims Which are in Submitted  Status  Will be  Approved. you May Close This Window"
In SAP CRM System  Back Ground Job Need To Start When Click On "Approve" Button In WEBUI .
In the Back Ground ABAP Report which will validate based on Result List Records"
In the Result List we may have all types of Claims which are status in "Submitted" "Pending" "Rejected" "Approve".
I need to collect all records from Result list and validate Those Records who's Status in "Submitted
1)Sort all the claims based on ITC Vendor ID.
2)Grouped all the submitted claims against each ITC Vendor ID from the search result
3)Change the status of the selected submitted claims to Approved.
4)Displays information messages as mentioned whenever a claim is approved, the same message will be captured in the job log.
‘Claims <ClaimID 1>,…<ClaimID N> now approved for ITC Vendor ID’.
5)Sending Email to each IRC.
6)Capture all the approved claims in the below format (Format Attached "Screen Shot Attachment")
7)Store the file in the Application Server AL11 in .csv format
Please Find Attachement For Reference.
1)ITC Claim Screen Shot
2)Screen Shot For Attachment
Thanks
Raj

Hi,
You can add the following code in on approve method to show popup to the user,
IF req_edit IS NOT BOUND. " gloabl attribute in impl class of the view
    REFRESH lt_buttons.
    lss_button-id  = 'btnyes'.
    lss_button-text = 'YES'.
    lss_button-on_click = 'YES'.
    APPEND lss_button TO lt_buttons.
    CLEAR lss_button.
    lss_button-id  = 'btnno'.
    lss_button-text = 'NO'.
    lss_button-on_click = 'NO'.
    APPEND lss_button TO lt_buttons.
    CLEAR lss_button.
    CALL METHOD comp_controller->window_manager->create_popup_2_confirm
      EXPORTING
        iv_title          = 'ATTENTION'
        iv_text           = 'Are you sure you want to edit this document?'
        iv_btncombination = '99'
        iv_custombuttons  = lt_buttons
      RECEIVING
        rv_result         = req_edit.
    req_edit->set_on_close_event( iv_event_name = 'EDIT' iv_view = me ). "#EC NOTEXT
    req_edit->open( ).
    RETURN.
  ELSE.
    lr_node ?= req_edit->get_context_node( 'OUTPUTNODE' ).
    lv_outbound = lr_node->get_event_name( ).
*  CLEAR ptc_pricing_status.
*    lv_outbound = req_edit->get_fired_outbound_plug( ).
    IF lv_outbound = 'YES'.
you can use the submit report code here and you can al the validations here
    ELSE. " No
if user clicks no nothing to do..
    ENDIF.
    CLEAR req_edit.
  ENDIF.
Best Regards,
Dharmakasi.

Similar Messages

  • How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Hi Experts,
    How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Can you give us some more information? Background jobs primarily don't have anything to do with Webdynpro.

  • How to find the back ground job details

    Hi All,
       I have a back ground  job running from many days, now we would like to know when this job was created on what date this job actvlly created and schuduled.
               Please informe me how to check this.
    Thanks & Regards,
    Muralikrishna

    On SM37 screen there is plenty of options are there:
    This is what i got from SAP help
    Explanation for each selection field:                                                                               
    o   Jobname: Name of the job as an identifier.                                                                               
    o   Username: Name of the user who designed and planned the job.                                                                               
    o   Start date: The start condition of the job, which could be a time 
    frame or an event that the job is waiting for. Specifying both will   
    yield jobs whose starting condition is  either of the two             
    conditions.                                                                               
    ABAP program step: Name of an ABAP program that acts as a step in a   
    job.                                                                               
    Status selection: The current status of the job. By default, the      
    SCHEDULED option is not marked. To see the scheduled jobs, you must   
    explicitly check this.
    also give the proper values in Job Satus also.

  • How to debug the back ground job

    Hi All,
    I want to debug the program, but it is taking more time so iam running it in back ground, but i need to debug the program from some particular point....is there any other way to debug the program...
    Means...to run the program in background upto particular point and later i need to run it in debug mode.
    Please suggest.
    Thanks & Regards,
    Hari

    Hi,
    You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X'.
    Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER
    You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.
    Hope this helps u.
    Thanks.

  • Problem with back ground job

    Hello experts,
    I have one background job which generates a text file and place it in a FTP folder.
    When one user runs this job its working fine. But,
    When two users run <b>the same background job at same time,</b> then i get trouble with my output file as the data is mixed up.
    How to avoid this!  Appreciate quick response.

    Have each run of the job create a unique file  OR  when a user starts a job, create a "marker" file that prevents all other runs of the same prg from executing until the marker file is deleted.
    The deletion of the marker file would need to be the last step of the prog then.  This would allow the second user to run the prog later (after the first user is done).

  • Relating with back ground jobs

    hi gurus,
    i have 3 fields on sel-screen.one for date of creation of sales order in range and three radiobuttons for yearly, quartly and monthly display of sales order.
    i am creating this pgm  to run in background.
    pls, help me out to write a logic to break varint at run time.
    for eg. if i m inputin 1jan 2007 to 15 feb 2007 than on monthly selection it should give 2 steps:  1 for 1jan to 31 jan and 2nd
    for 1feb to 15 feb.
    similarly, on quartly selection it will retrieve for 1jan to 15 feb.
    pls, help me out to write a logic for this requirement.
    it is very urgent...
    pleeesee  reply it immediatly

    Hi,
    write a second report splittin dates as subscribed. SUBMIT the already existing report several times.
    Spool might be a problem - EXPORT spool to MEMORY and IMPORT might solve the problem.
    Better: plan differnt steps of the jopb for each period. If thsi must be done dynmically you may use function JOB_START to shedule jobs at runtime.
    have fun,
    HP

  • How to keep the security questions boxes from disappearing when clicked?

    I am on a cleared iPad2 and am trying to buy apps from the AppStore.  When I put in my id and password, it asks about adding 3 security questions.  My options are "not now" or "yes."  When I check "not now" it goes back to the app to install; but when I check "yes" it goes to the boxes for questions and answers, then when I check either of those, it goes to a blank white square!  HELP!  I can't buy any apps!

    Hi Ingo,
    If your combobox is a bound control, then when you change a value in it, the save button should be enabled. Strange. But anyway, you can do this.
    In the <b>combobox_OnValueChanged2</b> event, make a call to makeDirty method in the tile:
    If boundAttributeChanged Then
         <b>anchorthatyourcombotiedto</b>.bo.MakeDirty True
    End If
    This will make the Save button enabled.
    Regards, Vadim.

  • Submit Back ground job with error log

    Hi Gurus
    Can anyone help with Back ground job with error log. i want put all the error logs in to 1 internal table and submit the back ground .how can i do that .please help me

    Hi reddy ,
    i am not experienced this in real scenarion .. even though i would like to give my idea
    Put your logic inside the FM and execute in in background task mode on your action button .
    call function 'Function module name' in background task
    exporting
       parameter =
    importing
       ret =
    refer the below link for more detail on executing FM as  background task
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    Regards
    Chinnaiya P

  • Back ground job for automatic MRP run

    Hi pp guru,
    my client want for a particularly  material no XXXXXX ,there should be automatic MRP rum daily at 8:00 pm.
    kindly suggest me how i will map  back ground job in sap..
    regards
    Aqueel

    Dear Aqueel,
    1.Either make a copy of the MRP type say PD and assign the new MRP type to that paticular material.
    2.Or else assign one MRP controller sepecifically for this material.
    3.Activate the User Exit M61X0001 which allows to run the MRP in background based on MRP type or
    a MRP controller.
    4.Create the varaint for running MRP in MDBT.Schedule from here.
    or else use SM36 select the program RMMRP000 and select the variant and go to scehduling and
    select the time and execute.
    Regards
    Mangalraj.S

  • Debugging of back ground job

    Hi gui's,
    How to debugg a back ground job.please any body give answer.
    Thanks,
    santhosh

    In SM37: Select the job, type JDBG in the OK-code and press enter.
    Taken from [http://searchsap.techtarget.com/tip/0,289483,sid21_gci933590,00.html]
    Greetings,
    Blag.

  • How to download the application file to local file by back ground job?

    hi:
      can any one tell me how to download the application file to local file by back ground job? thanks in advance..
    Monson

    Hi,
    In order to download a file from application layer to a local file in background,
    first write a report(ZREPORT1) in which do the following steps:
    OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    loop the g_file and append all the data into another internal table.
    end of this report you shd have all the data in the application layer file into your internal table.
    Now create another report(ZREPORT2) and submit this report in background.
    that is,
    JOB_OPEN
    JOB_SUBMIT and
    JOB_CLOSE
    and in job_submit submit ZREPORT1 which downloads the file in application layer.
    Please reward points if helpful.
    Regards,
    Arul.

  • Create Back ground job for data recieved from a legacy system

    Hi All,
    I have a requirement where i need to schedule a back ground job once a proxy is triggered for the address data sent from a Legacy system. This proxy is triggerred from SAP PI, then i need to create a job shedule where address data is created as BP's(Business Partners) and assigned to a already created Target Group. Then once the Target group is completed with all BP needs to assigned to aCampaign Id. As the data is large it takes lot of time to execute. Please Advice.
    Regards,
    Nagesh Thanneeru

    Hi
    If you can divide the data into two internal tables and later collect into the one internal table, this could solve yuor problem.
    Also you need to make sure that enough memory is available in the system. Check DB6cockpit for that.
    Also there are a lot of correction notes available with SAP for the error"TSV_TNEW_BLOCKS_NO_ROLL_MEMORY"
    Check what the job exactly does, and search for the relevant notes, as there are different notes for different application areas...
    if its a loading job(Infopackage) you can reduce the data packet size of the IP, but that might hamper the loading performance.
    Hope this helps
    Regards
    Shilpa

  • Genetare the back ground jobs of the program from the SM36 tcode

    Hi All,
        Consider the following points:
    -- My main program will schedule the jobs using the CALL TRANSACTION method
    -- Now i want to create a Variant for the Main program and generate the back ground job using the SM36 Tcode
    -- Finally it has all the jobs of the main program
    -- Program is working fine from the Frontend only.....
    Please provide solution for the same.
    Thanks in Advance.
    Regards,
    Ramana

    Sravya,
    On SM36 when you schedule jobs, you will see options like AFTER EVENT and AFTER JOB. You can use these to schedule you jobs accordingly. Else you can also think of making each of these jobs as a steps in one single job if your requirement allows you to do the same.
    In case of using events, you should make sure to raise the event using available FMs.
    thanks,
    Vikram.M

  • How to analyse Back Ground Jobs in BI

    Hi,
    How to analyse Back Ground Jobs in BI
    RSDB2MA1 and RSDB2MA2
    My requirment is to check the error logs for these job
    How to navigate there
    Thanks

    Dear BW user,
    Sm37 and sm50/51
    1)Go to Sm37
    2) Give the job name and in user give as *
    3)press execute or f8
    4) Press job log in the screen..keep refreshing it for update
    5)Press job detaisl..get pid no and wp no..in it
    6) go to sm50/51
    check for given wp no... and pid no..job is running or waiting or not
    sm66
    1)go to sm66
    2)in sm66 you can see only the central instance job running in
    3)You cant find any application server in it
    Hope it helps you,Revert me back if you have any queries
    Assign points if helpful
    Regards
    Bala

  • Output should be in Text format from Back ground job

    Hi friends,
    I have scheduleda back ground job. In the receipent i ahve put my user mail ID. when the job was finished the output came as HTML file. where as my user wants a Text file or excel file.
    We are in ECC 5.0 and i am just scheduling standard ABAP program( costing run
    Is it possible , if yes then, please let me know where to change the setting.
    Cheers
    PK

    Hi,
    I tried the same , it did not work for me. But when i contacted my Basis Guy through SCOT he changed. Now the text file has started coming.
    But now next problem is my spool request is of 215 pages but system is sending the text file for only first 10 pages..
    I have changed the setting for display from 10 pages 215 pages . and belwo even changed the seeting to permanenet between logons..Still system did not send the file to email Id.
    can you help mein this regards
    cheers
    PK

Maybe you are looking for

  • Calculation of planned costs in CS service order with 1 day = 8 hours

    Dear experts! What kind of possibilities do I have to calculate the planned costs in the CS service order (IW31) on the basis 1 day = 8 hours. Right now, when I create the operation with "amount of work" = 5 days, the system calculates 120 hours * x

  • HT2729 data back up

    how do i back up my I phone songs into my library

  • RFC function module called inside an enhancment section

    Hi All, I am calling a RFC function module in background task as a separate unit. I am calling this FM within an enhancement section. Is it alright to use a commit work inside this RFC enabled FM even if I am calling it within an enhancemnt? Please h

  • Problem with the original iphone.

    i have the original iphone for the past year and half. i've dropped it many times, but it didn't harm the iphone. the other day, i dropped it, and it died. it didn't respond to nothing. until i plugged it to the charger, and to the computer. than whe

  • Alternate audio for menu

    I have a motion menu with audio - I want to click a button and have a different audio play - seems simple but I can't get anything to work - can anyone help? Thanks