Using 'SUBMIT' and get messages

Hi, all.
I created 2 addon programs.
1 program call another program by 'SUBMIT'.
but I don't get messages outputed by called program.
Is it impossinble?
please let me know.
thanks.

Hello,
In Background, If you want to append messages from called program into calling program, then, in the calling program after the submit stmt, you will have to read the joblog for called program looping at the joblog table of called program using write stmt print all the msg .
Then if u see joblog of calling program , it will have messages of called program also.
Check the code below to get pointers:
"Call the functin module to read the job log of called program in the calling program after the SUBMIT stmt
    CALL FUNCTION 'BP_JOBLOG_READ'
      EXPORTING
        client                = sy-mandt
        jobcount              = g_jcount
        jobname               = g_jbname
      TABLES
        joblogtbl             = g_t_joblogtbl
      EXCEPTIONS
        cant_read_joblog      = 1
        jobcount_missing      = 2
        joblog_does_not_exist = 3
        joblog_is_empty       = 4
        joblog_name_missing   = 5
        jobname_missing       = 6
        job_does_not_exist    = 7
        OTHERS                = 8.
    IF sy-subrc EQ 0.
* Looping at the internal table for the joblog the messages are reported
* to build the joblog in CLOCO
      LOOP AT g_t_joblogtbl INTO g_wa_joblogtbl.
        MESSAGE g_wa_joblogtbl-text TYPE 'I'.
endloop.
endif.
Regards,
Mansi.
Edited by: SAP USER on Apr 17, 2009 6:42 AM

Similar Messages

  • Using SUBMIT and getting the results back

    Hi,
    I need to call a BAPI on-line (not in the background) using a different User ID as the one that's logged in.  I read from the threads the use of SUBMIT ...VIA JOB. 
    CALL FUNTION 'OPEN JOB'...
    SUBMIT zsubmitted_program
           VIA JOB     l_jobname
               NUMBER  l_jobcount
               USER    i_user       ====> changed User ID
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS ls_params
                  AND RETURN.
    CALL FUNTION 'JOB_CLOSE'...
    Questions:
    1. How would I know that the job is finished?
    2. How do I retrieve the messages returned by the BAPI so I can present it on the screen?
    Many thanks,
    Huntr

    Hi,
    I will be wrapping BAPI_MATERIAL_SAVEDATA into a Z program to run it and use the method mentioned above.  I need to know by that method when the batch job is done and how to retrieve the results.
    Is there a function module to retrieve the job status or log?
    Also I think if i write the bapi results in the spool, I should be able to retrieve the spool.  What is the function module to do so?
    Regards,
    Huntr

  • HT204266 My $25 gift card has been used once. I have tried to use it and get a message it has been redeemed. It shows I have $23.71 left. "What is the problem?

    My $25 gift card has been used once. I hav tried to use it and get a message it has been redeemed. It shows I have $23.71 left. "What is the problem"?

    What is the problem? You only redeem it once.
    If it shows $23.71, then you still have credit.  Just buy something.
    Not sure what your issue is.

  • I have an Airport Express connected via optical toslink to a dac/amp in turn connected to speakers. When using iTunes I get message "no speakers connected to Airport Express" and audio sound has drop outs.

    I have an Airport Express connected via optical toslink to a dac/amp in turn connected to speakers. When using iTunes I get message "no speakers connected to Airport Express" and audio sound has drop outs.

    Ok, if you are connecting the AirPort Express Base Station (AX) to the existing wireless network, then the DSL in the next room is most likely a combination DSL modem and wireless router. Thanks for clarifying that for me.
    Although they may only be separated by a single wall, the building material used in that wall may be enough to prevent the AX from receving a "good" signal from the DSL router.
    Since I don't know what computing equipment you have available, please check out this AirPort User Tip: AirPort - Optimal Base Station Placement to see if you can get some SNR measurements at the location of your AX. To do this properly, you will want to power-off the AX and only get these measurements for the DSL router.

  • Why am I unable to send e mails from my IPhone or IPad and get message rejected from outgoing server, message placed in outbox

    Why am I unable to send e mails from my iPhone, and get message rejected by server and message put in outbox.  I have tried changing server ports but to no avail.  I am not very technically minded so any suggestions in laymans terms please.  This is a big problem as I work away frequently and need to answer e mails.  This also happens when at home and on my own wifi.

    Hey Pam3008
    The article below will give some troubleshooting steps to resolve Mail issues.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Reinstalling iTunes and getting message "service 'apple mobile device'failed to start.Verify that you have sufficient privileges to start system services"

    Reinstalling iTunes and getting message "service 'apple mobile device'failed to start.Verify that you have sufficient privileges to start system services"

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • I try to access my new Adobe Pro XI download to use it, and a message says "serial number not valid" or words to that effect.  I downloaded on Friday afternoon.

    I try to access my new Adobe Pro XI download to use it, and a message says "serial number not valid" or words to that effect.  I downloaded on Friday afternoon.  Why?  This should have been easy.

    Contact support by web chat to get your serial number issues sorted.
    Mylenium

  • Firefox will not connect to internet after upgrade. The window pops up but shows "connecting " in tab. And then it sit there. Close it down and then try to reopen it and get message " Firefox already running, Exit program or shut down computer" ???

    Firefox will not connect to internet after upgrade. The window pops up but shows "connecting " in tab. And then it sit there. Close it down and then try to reopen it and get message " Firefox already running, Exit program or shut down computer" ?????????????????

    1st problem see http://kb.mozillazine.org/Firewalls
    2nd problem, to close Firefox properly use File > Exit
    :not with the [x] in upper right corner which close window
    :see http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit
    :if restarting use "Restartless Restart" extension as mentioned there.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I am trying to restore my mac osx 10.7.4 from an ext lacie harddrive and getting message "u can't open the application lacie backup support because power pc application are no longer supported"

    i am trying to restore my mac osx 10.7.4 from an ext lacie harddrive and getting message "u can't open the application lacie backup support because power pc application are no longer supported"

    Use any number of free alternatives to your nearly decade old version of MS Office.
    Consider
    LibreOffice (donation-supported)
    NeoOffice (free)
    OpenOffice (free)
    In addition to the above I also recommend Apple's Pages ($19.99). I use OpenOffice and Pages and have been completely Microsoft - free for years. Life is better without Microsoft.

  • I need to pass multiple select options using submit and reutrn

    dear all,
    my requirement is i need to pass multiple values for work center like(biw01,biw02,biw03    etc) for this iam giving as biwl* and biot* for the tcode zpp_hmm ,using this i am going to get total working hours of perticular equiment.
    for this iam using submit and return query but iam unable to pass multiple work centers as input.
    my code is
    DATA : z_budat TYPE  RANGE OF budat,
           wa_budat LIKE LINE OF z_budat.
    wa_budat-low = '20111001'.
    wa_budat-sign = 'I'.
    wa_budat-option = 'BT'.
    wa_budat-high = '20111031'.
    APPEND wa_budat TO z_budat.
    CLEAR wa_budat.
    *wa_budat-High = '20111031'.
    *wa_budat-sign = 'I'.
    *wa_budat-option = 'BT'.
    *append wa_budat to z_budat.
    DATA : z_arbpl TYPE  RANGE OF arbpl,
           wa_arbpl LIKE LINE OF z_arbpl.
    wa_arbpl-low = 'BIWL*'.
    wa_arbpl-sign = 'I'.
    wa_arbpl-option = 'EQ'.
    APPEND wa_arbpl TO z_arbpl.
    CLEAR wa_arbpl.
    wa_arbpl-high = 'BIOT'.
    *wa_arbpl-sign = 'I'.
    *wa_arbpl-option = 'BT'.
    *APPEND wa_arbpl TO z_arbpl.
    SUBMIT   zpp_rep_hemm_perf WITH s_bukrs = '1004'  WITH s_budat IN z_budat WITH      s_werks = 'SMJT'
                   with   S_ARBPL IN Z_ARBPL USING SELECTION-SCREEN '1000' AND RETURN.
    but my doubt is whether it is corect or wrong what ever i am passing inputs for arbpl.
    thanks in advance.

    You can pass all parameter (rsparams-kind = 'P') and select-options (rsparams-kind = 'S') as a single internal table of type RSPARAMS. Go on appending the field names and values as rows and pass using SELECTION-TABLE parameter of SUBMIT command.
    I gave appending one set of selection values for s_budat field but you can go on appending more values for s_budat and other fields.
    DATA: lt_rsparams TYPE TABLE OF rsparams,
          ls_rsparams TYPE rsparams.
    CLEAR ls_rsparams.
    ls_rsparams-selname  = 'S_BUDAT'.
    ls_rsparams-kind = 'S'.
    ls_rsparams-sign = 'I'.
    ls_rsparams-option = 'BT'.
    ls_rsparams-low =  '20111001'.
    ls_rsparams-high = '20111031'.
    APPEND ls_rsparams TO lt_rsparams.
    SUBMIT zpp_rep_hemm_perf WITH SELECTION-TABLE lt_rsparams
                      USING SELECTION-SCREEN '1000'
                      AND RETURN.

  • Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Go to the support site for the provider of the MRI software.
    Sounds like it windows/PC. I have ran across that for the CDs that veterinarians provide for digital x-rays.
    I would try on a PC or on yuur Mac with Windows via BootCamp or a virtual machine like VirtualBox

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • HT4407 When installing Windows 7 using Bootcamp, I get message: "Need 64-bit Windows Installation USB drive or DVD."  I thought my install disk was for 32 or 64 bit.  What does this mean?

    When Installing Windows 7 using Bootcamp, I get message:  "Need 64 bit Windows installation USB drive or DVD."  What does this mean?

    It means you need the 64 bit Version of Windows on a USB stick or DVD.

  • In windows cmd lueo used \ \ server and get to the pc but mac as done

    in windows cmd lueo used \ \ server
    and get to the pc but mac as done

    Your question (if it is one) makes no sense whatever.
    Please describe your problem in greater detail, and include details of what Mac you have and what version of OS X.

  • I want to run automation test in multiple device say iphone and ipad or two iphone device Is it possible.I have done automation testing using UIAutomation and get it running from iphone device

    I want to run automation test in multiple device say iphone and ipad or two iphone device Is it possible.I have done automation testing using UIAutomation and get it running from iphone device

    plzzz reply to this question as soon as possible

Maybe you are looking for

  • Aquisição de dados via bluetooth

    Bom dia caros colegas, Estou trabalhando num aplicativo sistema de aquisição de sinais utilizando a LaunchPad com o MSP430G2553 e envio os dados dados pra um computador através de um dispositivo Bluetooth (HC-05 2,4GHz ISM) O sistema deve prover: 4 e

  • How to show different value, other than whatever from database in a Field

    I have a repeatating frame (corresponding to one query). there are 6 fields (columns) in th RF. Now say in one of the column the database values are like 1,2,3,4 etc.. I want to show 'ASSIGNED' corresponding to value 1, INPROGRESS corresponding to va

  • Shared Photo Streams without keeping files in my computer

    Hello, I've been taking pictures for about 8 years, and I'm now looking for ways to store them online. I'm talking about over 150GB of pictures, which would be impossible to fit on the internal 128GB SSD. Therefore, is there any way I could create sh

  • PP - QM: Reversal of the usage decision

    Hi Gurus, We have completed Result Recording using QE51N transaction and Usage decision using QA11. It has posted a stock from QI to Unrestricted use. Now I want to take it back from Unrestricted use to QI. This needs reversal of usage decision (What

  • Selective deletion of data target through FM

    Hi, I have one DSO and One Cube.Sales doc is an IO in both the Data targets. So I have to compare sales doc values in DSO and Cube. If the same doc exists in Cube .I have to delete from Cube. Pls tell me how to write code for this. Regards, Swathi