Code to write syntax for JOB submit ( Please answer ASAP)

Hi,
I need sytax to submit a job
Right now I am using this code to send 4 parameters.
I need to send these 4 in a structure.
submit Ztestjob USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.
So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
I need the syntax for submit .
I also need to know how to catch the structure with values in the BGPROGRAM.
Anyone please answer ASAP
Message was edited by:
        ramana peddu
Message was edited by:
        ramana peddu

Hi,
<u>SUBMIT</u>
Calls an executable program of type 1.
Syntax
SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
                          [USING SELECTION-SET <var>]
                          [WITH <sel> <criterion>]
                          [WITH FREE SELECTIONS <freesel>]
                          [WITH SELECTION-TABLE <rspar>]
                          [LINE-SIZE <width>]
                          [LINE-COUNT <length>].
Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
Regards,
Bhaskar

Similar Messages

  • Pass structure of values for Job submit

    Hi,
    I need sytax to submit a job
    Right now I am using this code to send 4 parameters.
    I need to send these 4 in a structure.
    <b>submit Ztestjob USER sy-uname
          via job p_jobnm
          number p_jobcount
          with afko-rsnum eq afko-rsnum
          with aufnr_d eq aufnr_d
          with sernr_d eq sernr_d
          with  p_lmnga eq  p_lmnga
          AND RETURN.</b>
    So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
    I need the syntax for submit .
    I also need to know how to catch the structure with values in the BGPROGRAM.
    Anyone please answer ASAP
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu

    Hi,
    If want to pass an internal table...
    Then create a dummy select-options...
    And then pass the values in the select-options..
    Then in the submitted program you can use the select-options internal table..
    Thanks,
    Naren

  • HT6533 Where can I find the third party app? I'm really in trouble that I can't record and check my blood  glucose. Of cause I exported the data from app, but It's not readable for me. Please reply ASAP and give me other solution.

    Where can I find the third party app?
    I'm really in trouble that I can't record and check my blood  glucose.
    Of cause I exported the data from app, but It's not readable for me.
    Please reply ASAP and give me other solution.

    You find third-party apps in the App Store. What app are you looking for? Due to problems, Apple removed the ability to record that information in Health. You can always go back to whatever you used before three weeks Health was released. Why can you not check and record your blood glucose? I would assume you check it using blood samples and a glucose meter which has nothing to do with your phone. You should be able to record it in any number of apps, from Notes to purpose made third-party apps.

  • When im on my apple tv my mac will either start playing music or the volume will go up and down.  Its not on airplay or anything.  Everything work except for this.  thank you please answer ASAP. thanks

    When im on my apple tv my computer will either start playing music, or the voume will go up and down.  Its not on airplay, so i dont know whats wrong... please answer ASAP. Thank you so much!

    The computer is picking up the signal from the remote. Go into system preferences - security - general. Click the padlock and go into advanced. Check disable remote control infrared receiver.

  • Please answer asap install question post

    https://support.mozilla.org/en-US/forums/firefoxaurora/708210?last=46112#post-46112
    please answer asap install question post

    Hi C,
    No, you should wait till the end of the Welcome video, when the message says it will restart to finish installation it means installation is still in progress, conclude the procedures.
    Happy installing, good luck.

  • Code for Job  submit

    Hi ,
    I am trying to write code for open job , submit & close job.
    I need to send 4 fields as parameters from program1 to the BGprogram.
    Anyone please tell me the syntax for submit.I cun't find any syntax for this.
    Thanks in advance,

    ..Create new job
        CONCATENATE lc_job_prefix l_pr_count
            INTO l_job_name SEPARATED BY '_'
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname                = l_job_name
          IMPORTING
            jobcount               = l_job_count
          EXCEPTIONS
            cant_create_job        = 1
            invalid_job_data       = 2
            jobname_missing        = 3
            OTHERS                 = 4
        IF sy-subrc <> 0.
    ....Error creating job
          IF NOT sy-msgid IS INITIAL.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE s000(zz) WITH
                'Failed to create job'(021)
                l_job_name
          ENDIF.
        ELSE.
    ....Submit job {
          MESSAGE s000(zz) WITH
              'Creating job'(022) l_job_name l_job_count '...'
              INTO l_msgtx
          PERFORM show_progress USING l_msgtx 0 1.
          IF v_sort = 'X'.
            SUBMIT (sy-cprog)
                  WITH s_pernr BETWEEN l_pernr_min AND l_pernr_max
                 WITH s_g_ctrl IN r_cs_ctrl
                  WITH s_g_land IN r_cs_land
                  WITH s_g_gs IN r_cs_gs
                 VIA JOB l_job_name NUMBER l_job_count
                  TO SAP-SPOOL SPOOL PARAMETERS   l_print_parm
                               ARCHIVE PARAMETERS l_archive
                               WITHOUT SPOOL DYNPRO
                  AND RETURN
          ELSE.
            SUBMIT (sy-cprog)
                  WITH s_pernr BETWEEN l_pernr_min AND l_pernr_max
                  WITH s_g_lub IN r_cs_lub
                  WITH s_g_pro IN r_cs_pro
                  WITH s_g_pub IN r_cs_pub
                  VIA JOB l_job_name NUMBER l_job_count
                  TO SAP-SPOOL SPOOL PARAMETERS   l_print_parm
                             ARCHIVE PARAMETERS l_archive
                             WITHOUT SPOOL DYNPRO
                  AND RETURN
          ENDIF.
    ....Start immediately
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount                          = l_job_count
              jobname                           = l_job_name
              strtimmed                         = true
            EXCEPTIONS
              cant_start_immediate              = 1
              invalid_startdate                 = 2
              jobname_missing                   = 3
              job_close_failed                  = 4
              job_nosteps                       = 5
              job_notex                         = 6
              lock_failed                       = 7
              OTHERS                            = 8
          IF sy-subrc <> 0.
            IF NOT sy-msgid IS INITIAL.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              MESSAGE s000(zz) WITH
                  'Error releasing job'(023)
                  l_job_name
                  l_job_count
            ENDIF.
          ELSE.
            MESSAGE s000(zz) WITH
                'Job released'(024) l_job_name l_job_count
                INTO l_msgtx
            PERFORM show_progress USING l_msgtx 0 1.
          ENDIF.
    ....} Submit job
        ENDIF.
    ..Increment process count
        ADD 1 TO l_pr_count.
      ENDDO.
      MESSAGE s000(zz) WITH l_pr_count 'job(s) created.'(025).

  • Does the ipad 2 have a application to take down orders for my business please advise ASAP

    Basically i am a young start up business and when i go to meetings i would like to be able to manage my stock levels, invoices and take orders can this be down with an application for I apad2 please no answers going there is bound to be an application need concrete answer please
    Many thanks
    Mooie

    Tamara
    I have an e-commerce selling french wines on my e-shop.
    When i have my meetings, I would like to be able to open a software (such as Handshake genre of software).
    and be able to find the contact im meeting with , browse my selection, process the order then be able to email a pdf invoice? Does this help at all, Not sure what supplementary details I can give to help.
    Kind Regards
    Mooie

  • Can Apple replace my IPhone 5c charger slot? Please answer ASAP!!

    I accidentally went swimming with my phone in my pocket last night; it was in the water for probably thirty minutes. When I got home I realized what had occurred and put it in a bag of rice overnight. Today I tried to charge it and I also realized there was a piece of rice stuck deep inside my charger slot. I have now gotten it out but I am afraid in the process I destroyed the pins in the charger hole. I'm not 100% this is the case, though. I will have to give it a couple hours to see if one: the water destroyed it internally, I mean after all it was in there a while, and two: if I destroyed the pins in the charger slot. I'm very anxious, someone please answer soon. Thanks for the help.

    If you didn't leave it in the rice for at least a week the phone is dead, and not just the charger slot.

  • Im trying to type my password but only zero and nine work I tried restarting but it still wont work have any ideas please answer ASAP

    im trying to type my password but only zero and nine work I tried restarting but it still wont work have any ideas please answer ASAP

    Have you tried resetting your iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • Question about reinstallation please answer asap!

    I'm currently reinstalling os x snow leopard and i wanted to know if I should just turn it off when it tells me it will restart to finish the installation? please answer asap

    Hi C,
    No, you should wait till the end of the Welcome video, when the message says it will restart to finish installation it means installation is still in progress, conclude the procedures.
    Happy installing, good luck.

  • HT1866 i am on windows seven and my itunes was working fine but now when i try to open it it tells me that "itunes is on a locked disk or you do not have write permissions for this folder"  please help me

    im really stuck

    In my case its a new computer the old one was stolen and the time machine disk did not work for a restore but did for copying the info to the new mac

  • Render Farm for FCP 7 PLEASE HELP ASAP!

    I have been searching all day for a way to get a render farm going on FCP. Problem is, any of the places that have any type of remote answer are from at least a year ago, and apply to FCP 6.
    I have no experience with setting up a render farm, but I need to render out a lot of footage with effects ASAP to meet a deadline.
    If anyone out there could A. tell me if it's even possible to set up a render farm on FCP 7, and B. how to do it, in dummy's guide terms, because I am setting this up for the first time in desperation.
    PLEASE HELP!!!
    ~ Sean

    Just as well; deadlines are not where you want to try to attempt unknown hardware hacks.
    When you get time, after your deadline has expired, tell us about your project and how you allowed your effects to go unrendered for so long. We can help you not do that again.
    bogiesan

  • A technical question-not a complaint for Apple? please answer

    I have a technical qeustion which I have now posted 3 times. Why cant I sync my Outlook 2002 calenders & contacts to my ipod using itunes 7. Is this simply because outlook 2002 is no longer supported or is this just a glich? I would really apreciate some kind of response. This is a techical question and not a COMPLAINT.

    Thanks for your help
    Although it dosen't specifically say it is not supported I agree, it would seem that its isn't. I can't understand why. It was supported by itunes 6 and I didn't have to go through all this rigmarole to sync contacts and calenders, why oh why?

  • Can i get this fixed for free?, please reply ASAP

    so I upgraded my ipod touch 4g- to the IOS 6 and after it downloaded, it turned off and try'd turning back on but it keeps turning off and on i cant reach the home screen, and sometimes the screens turns blue and after a fedw seconds it turn white.- (i have not jailbroken my ipod)- can i get this fixed for free?

    yea i tried holding down power button and home at same time to reset but that doesent work, and when i plug the ipod into my computer it dosent show the device. so i cant connect it to itunes either.

  • Tell me as much as you know about iCloud as possible(do you have to pay for it). PLEASE ANSWER.

    Please answer

    Answer what?
    Ask a specific question and you'll get a specific answer.
    Or just read about iCloud yourself here: http://www.apple.com/icloud/

Maybe you are looking for

  • Importing from iMovie to FCP -- Timeline

    I've been using iMovie and am about to upgrade to FCP. If I import an iMovie project file into FCP, does it import the clips and the timeline/editorial layout? In other words, will I be able to see my layout/edits in the FCP timeline, or will FCP onl

  • How can I turn off an iPhone 5 that has a broken lock button and is frozen?

    I have an iPhone 5 and my screen has been frozen for about 20 minutes and the lock button is broken. I have assistive touch but that is also frozen. Are there any ways to turn off my phone?

  • Problem with access restriction

    I have about 50 to 80 users under my internet connection and i used the router 2500 and make there repeater of the single connection but i want to restrict many of the user on interner and some on timely but is not possible with this version of produ

  • General doubt about devices and java applets

    I have one general doubt abt devices. Do all devices come with an SDK so that any language can interact with them?. Whats does it mean if i say that i need to build a CAB file for the devices and use them in my html object tag. Can programming langua

  • How Oracle process Snapshot log?

    Hello, we are updating a column in a very large table that will result in a very large mlog$. The column is not a part of the snapshot. We have only one simple snapshot that references this table. The testing proved that even this column is not a par