How to run transaction MM12 in back ground?

Hi Masters ,
Can you help me out of this? the senario is :
If the validity stanrt date and end date of  a contract is in future date then do not update the material master with PDT value from the contract but call the transaction MM12 (schedule changing of material) in the background on saving the contract.
The following values would be passed from contract to MM12 transaction:
Material No (EKPO u2013 MATNR) to Material Number
Validity Start (EKKO u2013 KDATB) to field Change scheduled for.
Planned Delivery Time (EKPO u2013 PLIFZ) to Planned delivery time in MRP2 view.
Plant (EKPO u2013 WERKS, if present) to Plant.
Please any one help me of this....
Regards
Anshuman
Edited by: Anshuman_Danda on Nov 7, 2011 9:55 AM
Moderator message : Spec dumping is not allowed, search for available information.  Thread locked.
Edited by: Vinod Kumar on Nov 7, 2011 4:59 PM

Hi,
Search for the corresponding BAPI and use it for ur requirement.
Thanks & Regards,
Kiran

Similar Messages

  • How to run the program in back ground with out selection screen ?

    Hi,
    I want to run the program in back ground but don't have selection screen. How to run this program in back ground
    as program has no selection screen.
    Waiting for quick response.
    Best Regards,
    Padhy
    Moderator message: basic, please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 21, 2011 12:43 PM

    Hi,
    Go to transaction SE38 --> Execute --> Background.
    If your program contains selection screen, you have to pass your input values as variants.

  • How to run a report in back ground

    how to run a report in background with out using job open, submit , close is there any other function module to run report in background.

    Hi,
               There are two ways for you to handle,
    one manually setting up the job through SM36 which is better and convinient,
    secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
    Find below steps in doing both:
    Procedure 1:
    1. Goto Trans -> SM36
    2. Define a job with the program and variant if any
    3. Click on start condition in application tool bar
    4. In the pop-up window, click on Date/Time
    5. Below you can see a check box "Periodic Job"
    6. Next click on Period Values
    7. Select "Other Period"
    8. Now give '15' for Minutes
    9. Save the job
    Procedure 2 via Program:
    Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
    L_RELEASE(1) TYPE c.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = 'ZTEMP2'
    IMPORTING
    JOBCOUNT = P_JOBCNT
    EXCEPTIONS
    CANT_CREATE_JOB = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    WITH DESTINATION = 'HPMISPRT'
    WITH IMMEDIATELY = SPACE
    WITH KEEP_IN_SPOOL = 'X' AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = P_JOBCNT
    JOBNAME = 'ZTEMP2'
    STRTIMMED = 'X'
    PRDMINS = 15
    IMPORTING
    JOB_WAS_RELEASED = L_RELEASE
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    INVALID_TARGET = 8
    OTHERS = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Hope the above helps you.
    <b>Reward points</b>
    REGARDS

  • How to run program without set back ground Job in production Server?

    Hi,
    I have developed 1smart forms which is takes so much time for execution and sometimes its time out.
    I have used BSEG, BKPF, BSET, KONV, VBRK, VBAP, LIPS, LIKP these tables in smartform.
    So give me proper solution for this issue?
    Thanks
    Yatin Mahetaliya.

    Hi,
    You could call from your program the function module called SXPG_COMMAND_EXECUTE where you will call a command already defined in SM59 transaction code. You will maybe control the return code with sy-subrc. Then it will possible for you to extract data...
    Don't forget that every time you call GUI_UPLOAD or any method or function from the frontend function group or ABAP object by classes like cl_gui_frontend_services, it will be impossible to run in background.
    Try it..
    pherasath

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • How to keep break point in back ground scheduling Report

    Hi,
    how to keep break point in back ground scheduling Report?
    Regards,

    Hai ,
    One more way to debug  in the back ground is , pur some infinite loop condition and execute the job and in SM50 you can see the job which is running place the cursor on the job and go to the program in the menu and go to debugging from there .
    Example code for infinite loop .
    i=1 .
    loop at itab .
    if i > 5 .
    end loop .
    Regards,
    K.Vinaykumar

  • How can i put out the back ground music???

    how can I set off the back ground music??

    I'm afraid your question is not clear. If you don't want music playing, close iTunes.  If the music is on a web site that you are visiting, mute your sound -  System Preferences>Sound>mute.

  • How do you get you`re back ground to show on the hole page?

    how do you get you`re back ground to to show the hole pict. not just the top part of it?

    If you are referring to a persona then a persona only covers the use interface part with the toolbars and not the browser part that shows the web pages.
    * https://support.mozilla.com/kb/Using+themes+with+Firefox
    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • Call transaction method in back ground Processing?

    HI Friends,
    I am working on interface program to post documents of 309 movement type into MIGO transaction .
    my program is executing succesfully when i am processing  in fore ground.
    but when i am processing in background it is giving error .
    can any help in this requirement?
    *Solution rewarded*

    My Program will do transfer Posting from material to material.
    when i am executing the program in back ground mode The Program statement call transaction fails with the following error
    CALL_TRANSACTION MIGO_TR Return code = 1,001  RECORD:          0
    S
    Field GODYNPRO-ACTION . is not an input field
    S
    Field GODYNPRO-REFDOC . is not an input field
    S
    Field GOITEM-UMMAKTX . is not an input field
    S
    similar statement when executing in foreground it is posting document succesfully.
    kindly revert back for any other information.

  • Can we run F.28 in back ground for all customers.

    Hi ,
    Can we run F.28 for all customers in Back ground.
    Thanks in advance.

    Yes
    you can schedule this in the background
    this will be like any other batch job you schedule
    you will have to give the customer range that you want to execute or upload a list of customers befo9re you click on execute in background
    hope this helps
    Thanks
    Prashant

  • Running Java process in Back ground

    We have a script that starts a Java process in Background. But still if I try to exit from the 'Console', it's not allowing me to do so, and if I forcibly kill the console, it's killing my Java process. My question is, how can I make my java process to run completely in background? Secondly, will the JVM have any references to the console through which it is being called. Please help me.

    Hi Sastry66,
    If your application is going to use stdout/stderr, then there may be a problem. Try to redirect stdout/stderr using shell redirections when starting your java program. You may also want to try using exec java <class-file> to start the process.
    Regards,
    SUN/DTS

  • Run time error in Back ground processing using LSMW

    Hi all,
        We are runnig LSMW to create Positions using tcode PP03. We are able to create positions in the foreground but we are getting error "RAISE_EXCEPTION" in the Backgrond for the same LSMW.
        Kindly suggest me suitable solution if any.
    Thanks in advance,
    Vasanth.

    Hi all,
    Thanks for your reply.
    I  got the solution. When a program is scheduled in background, if it is written in classes and ALV grid display is used, we get this error. I am able to schedule when I change the function module to LIST_DISPLAY.

  • Running in back ground

    Hi Friends,
    Can we run any reoprt in back ground which has GUI_DOWNLOAD function in it?If not, what is the alternative?
    Thanks in Advance

    Jak,
    You can run a report in background because the file will be in presentation server, if you want to run gui_download
    in background, you can only extract the file using
    open data set FILE FILE NAME for output.
    Then you download it from your application server i.e AL11
    Regards,
    KrishnaKumar

  • ALV Grid in back ground

    Hi friends,  i got some problem in alv grid while i am running it in back ground.
      my report contains some currency(amount)  field in out put. when i am removing the amount field it is good result in back ground. but when it consist of amount field it is giving error. it indicating some string length problem. and error analysis as follows.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    In this case, the operand "obj" has the non-character type "P".
      pls tell me can't we run amount field in back ground. if  s  how to solve my error. pls give me some ideas.
                                      Kumar.

    Hi
    Many a times there is a requirement to display ALV Grid (not ALV List) in the background Job. I have checked the SDN Forum for the same and it has been mentioned that ALV Grid cannot be displayed in Background, but the list output of ALV is possible. So user won’t have the actual Grid interface but the List interface.
    There is a workaround to display ALV Grid in Background Job. The only restriction is you can’t schedule the job through SM36. You need to execute the transaction of the report program, fill in the selection screen data and hit Execute.
    The job would be executed in background. User will be able to see the Job Log and Job Status after executing the program. User doesn’t have to go to SM37 to view the job status/log. Once the Job Status is changed to “COMPLETED”, user can click on “DISPLAY SPOOL” to view the ALV Grid.
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

  • Report Back ground processing, error

    Hi,
    I tried to run my program in back ground. It is showing the following error. I'm just Pressing F9 and scheduling the job immediately. When i go and see the "own jobs " in SM36, it shows the "job cancelled". When i see the job log, it shows "Control Framework: Fatal error - GUI cannot be reached" and "ABAP/4 processor: RAISE_EXCEPTION". When i debug the job using JDBG transaction it runs smoothly and generates spool.
    Can you provide some solutioons?

    HI,
    Is your report having some OOPS functionalities?
    Are you making use of any container or ALV GRID object.
    In that case it will not run in background and will give you this error.
    Search in SCN. This has been discussed a lto of times.
    There are several posts on how to avoid this.
    Regards,
    Ankur Parab

Maybe you are looking for