Processes in background

I am running a tcl script which calls a shell script, which in turn calls 4 shell scripts (for running 4 instances of an executable ). Please don't ask me why (all this), as this is some third party tool. Normally I would run this from scheduler but for debugging I have to run this on the command prompt.
I need to run this in background because this is a time consuming process and can take 10-12 hours and I am on a VPN connection. The connection will be lost after some time of inactivity.
I am not able to run this in background. I have tried "&" after the command and also nohup utility. As soon as I kill the session, the processes also stop (ps -ef). I am not sure why this is happening.
I need your expert views on this. Is this because of the strange way, the process is getting called or I am doing something wrong.

Dear redsoccerteam,
You will have better luck asking this question on one
of the OpenSolaris forums, presuming the operating system
is Solaris. Go to opensolaris.org and click on the 'forums' link.

Similar Messages

  • Two transactions, same program, processed in background task problem

    Y0 Team ABAP,
    i got something here that bugs me.
    I have done a report. Nothing special, simple selection screen, selection of data, and output via SALV.
    One of my selection screen fields (a parameter) is VKBUR and it is "obligatory".
    2 weeks ago i got the requirement to create a copy of this program, and adopt VKBUR as select option.
    Since i didnt want changeanomalies i decided not to duplicate the program, but just add a second transaction to my program.
    In a routine at event at-selection-screen output, i´m hiding either the parameter or the select option, depending on which tcode was used.
    In some routine which gets triggered at the event at-selection-screen i´m moving either what we got in our parameter to our local range we use for the select, or just assign the select option to our local range, or process an error message if according field is not filled. Yeah that obligatory condition is done by myself since i cant just set the obligatory addition to the statement.
    This all works quite fine so far.
    BUT:
    Today i hear that the end-users process that report in background task by pressing F9.
    Problem is now that when it is processed in background task, sy-tcode is initial, so i dont know which of the transactions the user picked, and so i dont know which of the two fields has to be filled.
    Sure i could do another report, containing just my second selection screen, and when this is checked, do a submit on my real report, tho i still believe there must be some more elegant way.
    Any ideas?

    Unfortunateley those subtotals cant be handeled by the layout, thats why i manually add them.
    But you got me back on track! right now i´m for your solution.
    right now i´m having just ONE selection screen with the select option on it.
    User can decide if he fills just one value or more.
    In the end i loop over my output table and look if there are records of different VKBUR´s.
    If there are i know he wants subtotals and process them. If its just data of one VKBUR i can spare myself the hassle as there is anyway just one records per VKBUR so subtotaling this wouldnt make sense.
    thanks. Thats what i will present my consultant now lets see if i can get him satisfied with it...

  • Need help with parallel process in background; not able to call FM in bgnd

    Hello,
      I am trying since 2 days to solve the issue of parallel process in background without using FPP.
    For which I want to call function module of class method in new task but to be processed by background process and not dialog.
    I searched so many websites but everyone has suggesteed to 'call function in background task' . But the fact is the processing of function happens by dailog process even in this case.
    I want to loop at table and call FM or class method inside each loop.
    Kindly suggest me how can I call function or class method in new task in everycall and prcoess it in background.
    thanks

    Balaji,
    Is the name of the button between single or double quotes?
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • Recommandable Profile Option PO:Workflow Processing MODE (Background/Online

    Hi
    We are using oracle11i 11.5.10.2 on windows 2000 server
    which Value is Recommendable for Profile Option PO:WORK FLOW PROCESSING MODE (BACKGROUND or ONLINE)?
    for PO Approval
    Thanks
    With Regards
    A-Z

    Hi,
    It is advisable to Set "PO:Workflow Processing Mode" profile option to "Background" which is a default value
    If you set it as Online, it completes an entire approval workflow process before letting you proceed to the next activity, but provides you with an updated Status (for purchase orders) as soon as it finishes.
    When this profile option is set to Background, you must start the Workflow Background Engine, which you access through the System/application Administrator responsibility. It is recommended that you set this process to run frequently (Schedule), if you are using it for Background mode approvals.
    /S.P DASH

  • How to get program which is been processed in background

    Hi Experts,
          While doing PI sheet (CO60) the document gets posted for movement type 101 in MIGO which is processed in background. I need know which standard program is processed to get the document posted in background.
      The two function modules are configured for this i.e pi02-COCM_PROCESS_RECORD
    pi05 - COCI_CONFIRM_OPERATION. I tried to debugg by setting break point in these two funtion module but it is not getting triggered.
       The reason might be because the process ia automatic or any other. How can i find out how the document is getting posted the break point is not get triggered for any cases .Please suggest.

    Hi Harshitha ,
        The FMs pi02-COCM_PROCESS_RECORD and pi05 -COCI_CONFIRM_OPERATION
      are called at multiple locations .Might be the place where u hav set the break point the FM is not getting triggered from that location but from the location where u hv not set the break point for the same FM.
        Instead set the break point in the FM definition. or set the debugging swith again where actually the posting is done.
    regards,
    ajit.

  • Dialog process  vs Background process

    Hi,
    What is the difference between dialog and background process?
    Can a dialog process is used in a process chain?
    Does an ABAP program followed by change run be a dialog process or background process in a process chain?
    What is the standard maximum runtime duration of a dialog process?
    Regards,
    Pradeep

    Hi,
    Dialog Process - Executes dialog programs (ABAP)
    Background Process -  Executes time-dependent or event-controlled background jobs.
    All the Processes in Process Chain will be Scheduled in Background.
    and The Maximum workprocess Time will be defined by BASIS Team.
    -Vijay

  • Return table from report processed in background .

    Hi All ,
        I have a requirement where from inside a method , I  have to process a report in background and this report should return a internal table with SAP data which have to be processed further .
       Can anyone suggest me is it possible to get a return internal table from a report processed in background .
    All your responses/suggestions would be appreciated ..
    Regards,
    Ranjita

    Hi,
         You can Export the internal table to a memory location and import the entries in the report.
    Regards,
    Srini.

  • Update Work Process and Background work process

    Hi Friends,
    I have a doubt regarding the "Update Work Process and Background work process" ......
    which one is used at what scenario ?????
    If not wrong --> update work process is used when there is an update task .........??? and similarly If background work process is used when there a background task is given explicitly .........???
    Can we can update anything through Background>????
    If yes .... which workprocess will be selected at that time??????
    Expecting your answers ??
    Thanks in advance !!
    Cheers
    R.Kripa.

    HI
    GOOD
    UPDATE WORK PROCESS->
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm
    BACKGROUND WORK PROCESS->
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4a/2d513897110872e10000009b38f889/content.htm
    THANKS
    MRUTYUN

  • Submit BDC to process in background automatically

    How would I automtacally have my BDC session to process in the background and complete it without going through SM35 to process in the background.

    Please check this sample code.
      SUBMIT rsbdcsub AND RETURN
             EXPORTING LIST TO MEMORY
             WITH mappe = p_sessionnanme
             WITH von   = w_datum
             WITH bis   = sy-datum
             WITH z_verarb = c_true
             WITH fehler = c_false.

  • Error in batch session processing in background mode

    Hi ,
    I am trying to do data transfer using batch session for transaction FD32.
    Here the batch session is executing when I am processing the session in foreground.
    Whereas in background mode it is failing.
    Please check and assit.
    Regards
    Kishore

    Hi Kishore,
    Probably it will be some information or warning message which is coming in the background execution of the session.
    That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
    Please let us know of any doubts.
    Cheers
    VJ

  • Process Chain background jobs

    Hi All,
    we got a typical issue in Process Chain,  every day process chain triggers in the midnight, and yesterday morning It got failed while activating DSO for HR data,  and we observed that the jobs are running in the background for longer time (there are 3 jobs related to HR still running since around 24 hours). In order to run the following processes which are no way related to HR, we made turning red to Finish (to skip this process - using Function module RSPC_PROCESS_FINISH) to make sure other reports work perfectly. yesterday PC ran successful expect HR data.
    Today morning we observed that the jobs are still running and also PC gets stopped in deleting contents of HR (after this we are loading HR DSO) . the process neither failed nor success. we checked in Sm37 and observed that job related to Delete content of HR data is also still running and in active status.
    it is not allowing us to skip the process as we did for the HR DSO. So we thought to kill the job and Killed the JOB of delete content of HR data, and tried refreshing in Process Chain. But the variant is empty now and process stopped at before the Delete contents (which are another deleting cubes) now the process is at delete contents of CUbe (which is before step to the delete HR DSO), if we right click and check the options it is showing display variant and display messages.
    We repeated the Process chain again it stopped at delete content HR DSO(back ground job running again and running longer time), the process is at delete contents DSO HR, (showing the box half filled).
    how to skip this delete contents of HR data DSO, because we don't want to stop all the following processes(which are not related to HR) and how to make my PC ran successful (expect HR) to make my report working perfectly expect HR reports
    Thanks in advance,
    Teena
    Edited by: Teenab on Feb 10, 2011 10:42 AM
    Edited by: Teenab on Feb 10, 2011 10:43 AM
    Edited by: Teenab on Feb 10, 2011 10:45 AM
    Edited by: Teenab on Feb 10, 2011 10:50 AM

    Thank you for the reply,
    Yes we can create PC for HR seperately.
    Presently the thing is yesterday we din't loaded the HR data (as we skipped the process by forcefully finished the process using FM -RSPC_PROCESS_FINISH) , As the jobs are still running morethan 26 hours. Now DSO HR doesn't have any data, but the process has been stopped at the deleting the content of HR data (our assumption since the HR loading jobs running longertime causing this, job delete content HR is also active and running (while loading it is trying to delete it, so it might be locked)
    But we need to skip the process of HR delete content now, inorder to run other process successful, (we can create other HR PC  later) but can you suggest the solution for now.
    Thank you,
    Teena
    Edited by: Teenab on Feb 10, 2011 11:03 AM

  • Parallel processing in background

    Hi All,
    I am processing 1 million of records in background, which takes approximately around 10 hrs. I wanted to reduce the time to less than 1 hr and tried using parallel processing. But the tasks run in Dialog workprocesses and giving abap short dumps due to time out.
    Is there any other solutions using that i can reduce total processing time.
    Please note that i cannot split. I am getting 1 million records from a select query and after processing all those records in SAP, I am sending to XI and XI will post in legacy system.
    Please note that all other performance tunings done.
    Thanks,
    Rajesh.

    Hi Rajesh,
    Refer sample code for <b>Parallel Processing</b>:
    By doing this your <b>processing</b> time will be highly optimized.
    Go thru the description given in the code at each level.
    This code Checks available WORK PROCESSes and assigns data in packets for processing. This way you save a lot of time esp when data is in Millions.
    Hope it helps.
    REPORT PARAJOB.
    Data declarations
    DATA: GROUP LIKE RZLLITAB-CLASSNAME VALUE ' ',
    "Parallel processing group.
    "SPACE = group default (all
    "servers)
    WP_AVAILABLE TYPE I, "Number of dialog work processes
    "available for parallel processing
    "(free work processes)
    WP_TOTAL TYPE I, "Total number of dialog work
    "processes in the group
    MSG(80) VALUE SPACE, "Container for error message in
    "case of remote RFC exception.
    INFO LIKE RFCSI, C, "Message text
    JOBS TYPE I VALUE 10, "Number of parallel jobs
    SND_JOBS TYPE I VALUE 1, "Work packets sent for processing
    RCV_JOBS TYPE I VALUE 1, "Work packet replies received
    EXCP_FLAG(1) TYPE C, "Number of RESOURCE_FAILUREs
    TASKNAME(4) TYPE N VALUE '0001', "Task name (name of
    "parallel processing work unit)
    BEGIN OF TASKLIST OCCURS 10, "Task administration
    TASKNAME(4) TYPE C,
    RFCDEST LIKE RFCSI-RFCDEST,
    RFCHOST LIKE RFCSI-RFCHOST,
    END OF TASKLIST.
    Optional call to SBPT_INITIALIZE to check the
    group in which parallel processing is to take place.
    Could be used to optimize sizing of work packets
    work / WP_AVAILABLE).
    CALL FUNCTION <b>'SPBT_INITIALIZE'</b>
    EXPORTING
    GROUP_NAME = GROUP
    "Name of group to check
    IMPORTING
    MAX_PBT_WPS = WP_TOTAL
    "Total number of dialog work
    "processes available in group
    "for parallel processing
    FREE_PBT_WPS = <b>WP_AVAILABLE</b>
    "Number of work processes
    "available in group for
    "parallel processing at this
    "moment
    EXCEPTIONS
    INVALID_GROUP_NAME = 1
    "Incorrect group name; RFC
    "group not defined. See
    "transaction RZ12
    INTERNAL_ERROR = 2
    "R/3 System error; see the
    "system log (transaction
    "SM21) for diagnostic info
    PBT_ENV_ALREADY_INITIALIZED = 3
    "Function module may be
    "called only once; is called
    "automatically by R/3 if you
    "do not call before starting
    "parallel processing
    CURRENTLY_NO_RESOURCES_AVAIL = 4
    "No dialog work processes
    "in the group are available;
    "they are busy or server load
    "is too high
    NO_PBT_RESOURCES_FOUND = 5
    "No servers in the group
    "met the criteria of >
    "two work processes
    "defined.
    CANT_INIT_DIFFERENT_PBT_GROUPS = 6
    "You have already initialized
    "one group and have now tried
    "initialize a different group.
    OTHERS = 7..
    CASE SY-SUBRC.
    WHEN 0.
    "Everything’s ok. Optionally set up for optimizing size of
    "work packets.
    WHEN 1.
    "Non-existent group name. Stop report.
    MESSAGE E836. "Group not defined.
    WHEN 2.
    "System error. Stop and check system log for error
    "analysis.
    WHEN 3.
    "Programming error. Stop and correct program.
    MESSAGE E833. "PBT environment was already initialized.
    WHEN 4.
    "No resources: this may be a temporary problem. You
    "may wish to pause briefly and repeat the call. Otherwise
    "check your RFC group administration: Group defined
    "in accordance with your requirements?
    MESSAGE E837. "All servers currently busy.
    WHEN 5.
    "Check your servers, network, operation modes.
    WHEN 6.
    Do parallel processing. Use CALL FUNCTION STARTING NEW TASK
    DESTINATION IN GROUP to call the function module that does the
    work. Make a call for each record that is to be processed, or
    divide the records into work packets. In each case, provide the
    set of records as an internal table in the CALL FUNCTION
    keyword (EXPORT, TABLES arguments).
    DO.
    CALL FUNCTION 'RFC_SYSTEM_INFO' "Function module to perform
    "in parallel
    STARTING NEW TASK TASKNAME "Name for identifying this
    "RFC call
    DESTINATION IN GROUP group "Name of group of servers to
    "use for parallel processing.
    "Enter group name exactly
    "as it appears in transaction
    "RZ12 (all caps). You may
    "use only one group name in a
    "particular ABAP program.
    PERFORMING RETURN_INFO ON END OF TASK
    "This form is called when the
    "RFC call completes. It can
    "collect IMPORT and TABLES
    "parameters from the called
    "function with RECEIVE.
    EXCEPTIONS
    COMMUNICATION_FAILURE = 1 MESSAGE msg
    "Destination server not
    "reached or communication
    "interrupted. MESSAGE msg
    "captures any message
    "returned with this
    "exception (E or A messages
    "from the called FM, for
    "example. After exception
    "1 or 2, instead of aborting
    "your program, you could use
    "SPBT_GET_PP_DESTINATION and
    "SPBT_DO_NOT_USE_SERVER to
    "exclude this server from
    "further parallel processing.
    "You could then re-try this
    "call using a different
    "server.
    SYSTEM_FAILURE = 2 MESSAGE msg
    "Program or other internal
    "R/3 error. MESSAGE msg
    "captures any message
    "returned with this
    "exception.
    RESOURCE_FAILURE = 3. "No work processes are
    "currently available. Your
    "program MUST handle this
    "exception.
    YOUR_EXCEPTIONS = X. "Add exceptions generated by
    "the called function module
    "here. Exceptions are
    "returned to you and you can
    "respond to them here.
    CASE SY-SUBRC.
    WHEN 0.
    "Administration of asynchronous RFC tasks
    "Save name of task...
    TASKLIST-TASKNAME = TASKNAME.
    "... and get server that is performing RFC call.
    CALL FUNCTION 'SPBT_GET_PP_DESTINATION'
    EXPORTING
    RFCDEST = TASKLIST-RFCDEST
    EXCEPTIONS
    OTHERS = 1.
    APPEND TASKLIST.
    WRITE: / 'Started task: ', TASKLIST-TASKNAME COLOR 2.
    TASKNAME = TASKNAME + 1.
    SND_JOBS = SND_JOBS + 1.
    "Mechanism for determining when to leave the loop. Here, a
    "simple counter of the number of parallel processing tasks.
    "In production use, you would end the loop when you have
    "finished dispatching the data that is to be processed.
    JOBS = JOBS - 1. "Number of existing jobs
    IF JOBS = 0.
    EXIT. "Job processing finished
    ENDIF.
    WHEN 1 OR 2.
    "Handle communication and system failure. Your program must
    "catch these exceptions and arrange for a recoverable
    "termination of the background processing job.
    "Recommendation: Log the data that has been processed when
    "an RFC task is started and when it returns, so that the
    "job can be restarted with unprocessed data.
    WRITE msg.
    "Remove server from further consideration for
    "parallel processing tasks in this program.
    "Get name of server just called...
    CALL FUNCTION 'SPBT_GET_PP_DESTINATION'
    EXPORTING
    RFCDEST = TASKLIST-RFCDEST
    EXCEPTIONS
    OTHERS = 1.
    "Then remove from list of available servers.
    CALL FUNCTION 'SPBT_DO_NOT_USE_SERVER'
    IMPORTING
    SERVERNAME = TASKLIST-RFCDEST
    EXCEPTIONS
    INVALID_SERVER_NAME = 1
    NO_MORE_RESOURCES_LEFT = 2
    "No servers left in group.
    PBT_ENV_NOT_INITIALIZED_YET = 3
    OTHERS = 4.
    WHEN 3.
    "No resources (dialog work processes) available at
    "present. You need to handle this exception, waiting
    "and repeating the CALL FUNCTION until processing
    "can continue or it is apparent that there is a
    "problem that prevents continuation.
    MESSAGE I837. "All servers currently busy.
    "Wait for replies to asynchronous RFC calls. Each
    "reply should make a dialog work process available again.
    IF EXCP_FLAG = SPACE.
    EXCP_FLAG = 'X'.
    "First attempt at RESOURCE_FAILURE handling. Wait
    "until all RFC calls have returned or up to 1 second.
    "Then repeat CALL FUNCTION.
    WAIT UNTIL RCV_JOBS >= SND_JOBS UP TO '1' SECONDS.
    ELSE.
    "Second attempt at RESOURCE_FAILURE handling
    WAIT UNTIL RCV_JOBS >= SND_JOBS UP TO '5' SECONDS.
    "SY-SUBRC 0 from WAIT shows that replies have returned.
    "The resource problem was therefore probably temporary
    "and due to the workload. A non-zero RC suggests that
    "no RFC calls have been completed, and there may be
    "problems.
    IF SY-SUBRC = 0.
    CLEAR EXCP_FLAG.
    ELSE. "No replies
    "Endless loop handling
    ENDIF.
    ENDIF.
    ENDCASE.
    ENDDO.
    Wait for end of job: replies from all RFC tasks.
    Receive remaining asynchronous replies
    WAIT UNTIL RCV_JOBS >= SND_JOBS.
    LOOP AT TASKLIST.
    WRITE:/ 'Received task:', TASKLIST-TASKNAME COLOR 1,
    30 'Destination: ', TASKLIST-RFCDEST COLOR 1.
    ENDLOOP.
    This routine is triggered when an RFC call completes and
    returns. The routine uses RECEIVE to collect IMPORT and TABLE
    data from the RFC function module.
    Note that the WRITE keyword is not supported in asynchronous
    RFC. If you need to generate a list, then your RFC function
    module should return the list data in an internal table. You
    can then collect this data and output the list at the conclusion
    of processing.
    FORM RETURN_INFO USING TASKNAME.
    DATA: INFO_RFCDEST LIKE TASKLIST-RFCDEST.
    RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO'
    IMPORTING RFCSI_EXPORT = INFO
    EXCEPTIONS
    COMMUNICATION_FAILURE = 1
    SYSTEM_FAILURE = 2.
    RCV_JOBS = RCV_JOBS + 1. "Receiving data
    IF SY-SUBRC NE 0.
    Handle communication and system failure
    ELSE.
    READ TABLE TASKLIST WITH KEY TASKNAME = TASKNAME.
    IF SY-SUBRC = 0. "Register data
    TASKLIST-RFCHOST = INFO_RFCHOST.
    MODIFY TASKLIST INDEX SY-TABIX.
    ENDIF.
    ENDIF.
    ENDFORM
    Reward points if that helps.
    Manish
    Message was edited by:
            Manish Kumar

  • Parallel processing in background using Job scheduling...

    (Note: Please understand my question completely before redirecting me to parallel processing links in sdn. I hve gone through most of them.)
    Hi ABAP Gurus,
    I have read a bit till now about parallel processing. But I have a doubt.
    I am working on data transfer of around 5 million accounting records from lagacy to R/3 using Batch input recording.
    Now if these all records reside in one flat file and if I then process that flat file in my batch input program, I guess it will take days to do it. So my boss suggested
    to use parallel processing in SAP.
    Now, from the SDN threads, it seems that we have to create a Remote enabled function module for it and stuf....
    But I have a different idea. I thought to dividE these 5 million records in 10 flat files instead of just one and then to run the Custom BDC program with 10 instances which will process 10 flat files in background using Job scheduling.
    Can this be also called parallel processing ?
    Please let me know if this sounds wise to you guys...
    Regards,
    Tushar.

    Thanks for your reply...
    So what do you suggest how can I use Parallel procesisng for transferring 5 million records which is present in one flat file using custom BDC.?
    I am posting my custom BDC code for million record transfer as follows (This code is for creation of material master using BDC.)
    report ZMMI_MATERIAL_MASTER_TEST
          no standard page heading line-size 255.
    include bdcrecx1.
    parameters: dataset(132) lower case default
                                 '/tmp/testmatfile.txt'.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element: MATNR
           MATNR_001(018),
    data element: MBRSH
           MBRSH_002(001),
    data element: MTART
           MTART_003(004),
    data element: XFELD
           KZSEL_01_004(001),
    data element: MAKTX
           MAKTX_005(040),
    data element: MEINS
           MEINS_006(003),
    data element: MATKL
           MATKL_007(009),
    data element: BISMT
           BISMT_008(018),
    data element: EXTWG
           EXTWG_009(018),
    data element: SPART
           SPART_010(002),
    data element: PRODH_D
           PRDHA_011(018),
    data element: MTPOS_MARA
           MTPOS_MARA_012(004),
         end of record.
    data: lw_record(200).
    End generated data section ***
    data: begin of t_data occurs 0,
          matnr(18),
          mbrsh(1),
          mtart(4),
          maktx(40),
          meins(3),
          matkl(9),
          bismt(18),
          extwg(18),
          spart(2),
          prdha(18),
          MTPOS_MARA(4),
        end of t_data.
    start-of-selection.
    perform open_dataset using dataset.
    perform open_group.
    do.
    *read dataset dataset into record.
    read dataset dataset into lw_record.
    if sy-subrc eq 0.
    clear t_data.
    split lw_record
       at ','
    into t_data-matnr
          t_data-mbrsh
          t_data-mtart
          t_data-maktx
          t_data-meins
          t_data-matkl
          t_data-bismt
          t_data-extwg
          t_data-spart
          t_data-prdha
          t_data-MTPOS_MARA.
    append t_data.
    else.
    exit.
    endif.
    enddo.
    loop at t_data.
    *if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                 'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                 '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                 t_data-MATNR.
    perform bdc_field       using 'RMMG1-MBRSH'
                                 t_data-MBRSH.
    perform bdc_field       using 'RMMG1-MTART'
                                 t_data-MTART.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                 'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                 '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                 'X'.
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    perform bdc_field       using 'MAKT-MAKTX'
                                 t_data-MAKTX.
    perform bdc_field       using 'BDC_CURSOR'
                                 'MARA-PRDHA'.
    perform bdc_field       using 'MARA-MEINS'
                                 t_data-MEINS.
    perform bdc_field       using 'MARA-MATKL'
                                 t_data-MATKL.
    perform bdc_field       using 'MARA-BISMT'
                                 t_data-BISMT.
    perform bdc_field       using 'MARA-EXTWG'
                                 t_data-EXTWG.
    perform bdc_field       using 'MARA-SPART'
                                 t_data-SPART.
    perform bdc_field       using 'MARA-PRDHA'
                                 t_data-PRDHA.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                 t_data-MTPOS_MARA.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                 '=YES'.
    perform bdc_transaction using 'MM01'.
    endloop.
    *enddo.
    perform close_group.
    perform close_dataset using dataset.

  • Sourcing Cockpit: Document still being processed in background

    Dear experts,
    we are facing the following problem in SRM 5.0 extended classical szenario.
    In transaction Sourcing Cockpit when I click on create PO I reach the "Sourcing - Document Preview" screen, where I can click on button "Process PO".
    Everytime I click on button "Process PO" I get the error message "Document is still being processed in the background; try again later".
    PO is created but in status HELD. I have to go to transaction "Process Purchase Order (BBP_POC)" in order to create PO so that status changes to ORDERED.
    There are no entries in table BBP_WFLOCK.
    Thanks in advance and best regards
    AD

    Thanks for your answer.
    Regarding your points:
    1) It happens in almost 95% of the cases but as per now we could not figure out a rule when it happens and when not.
    2) yes, it happens also after logoff.
    For the user that is working in sourcing cockpit, the following entries are in SM12:
    100     USER1     14:06:36     X     CRMD_ORDERADM_H     10047BDCB4F6CD52BF8E1000000AC1ABC35     1     0
    100     USER1     14:06:36     E     PRCD_HEAD     10047BDCDBE6CD52BF8E1000000AC1ABC35     1     1
    Regards
    AD

  • How to run a process in background?

    hallo,
    I'm starting a process with runtime.exec() like this:
    Runtime r = Runtime.getRuntime();
    String[] conv = new String[1];
    conv[0] = "executablepath";
    Process p=r.exec(conv);
    Now I want that the application does not appear and run in background. How do I do this?
    I'm working with Windows NT4.0
    Thanks

    I've tried what you said, but the application didn't run in background.I made a daemonthread and the appl. ran but in the foreground. Isn't there a method to do it with with a command?

  • Idocs processes in Background

    Hi
    Maybe someone has posted this before,  I've got a question to ask my understanding is if inbound Idocs is set "trigger by background program"  in we20 and then job RDBAPP01 is scheduled then it will run in 1 background process.
    If parallel processing is use then will use dialog processes based on server group configured.
    My issue is  why Idocs scheduled to trigger by background program (without parallel processing) still using all DIalog processes, I expect to just use 1 background process.
    Have anyone experience this issue before ?
    Thanks
    Susanto

    I know that for inbound interface it is possible to define if in foreground or background and if parallel processing is allowed.
    Who knows how I can do this also for outbond?

Maybe you are looking for

  • Video Lagging/Choppy videos on Macbook Pro

    Hello, I am having a problem while watching videos online: video lagging/choppy videos. Sometimes the video is stuck in a certain frame although I still have the sound on the background; sometimes the video slows down completely (frame+sound). It sta

  • Decode for EXISTS and  NOT EXISTS conditions

    Hello all, I need to use either EXISTS or NOT EXISTS before the subquery based on the situation. I have written a test query but its erroring out. Please check it. select 1 from dual where DECODE('A','A',EXISTS ,NOT EXISTS) (select ename from EMP whe

  • Third party router

    My HH3 is slowly expiring, I decided rather than getting into a lenghty frustrating exchange with BT I'd replace it with a 3rd party router. It hasn't went well. First replacement: TP-Link TLWR841N. I've download speed issues I can't reslove and some

  • Can i use std OR document and do the billing directly with out delivery

    hi, sap gurus, can i use standard OR document and do the billing with out creating delivery doument if i can create what are the configuration settings for that actually. regards, balaji.t 09990019711

  • Shipment delay

    I bought the Adobe master collection CS5.5 from my college, but Adobe experienced a severe shipment delay that pushed back the shipping date more than a month. We have lots of projects to work on during this time and it's not feasible for me to liter