Max Titov IV @ TechSplice

The most beautiful music of all is the music of what happens.
  • Home
  • About
27 Jan 2011

SAP: prompt user for a job-name when scheduling program in the background using SE38

When you want to execute a standard program and run it in the background typically SAP will name the job with the same identification as the program name.

To compensate for this behaviour you can implement a badi [JOB_NAME_SELF] .  Import parameters will include program name and export parameters will contain jobname.

To make the process more flexible you can enhance the functionality by prompting the user to populate the actual program name, here’s how you can accomplish that:

call function ‘POPUP_TO_GET_VALUE’
exporting
fieldname           = ‘JOBNAME’
tabname             = ‘RSJOBINFO’
titel               = ‘Enter the job name’
valuein             = program
importing
valueout            = jobname
exceptions
fieldname_not_found = 1
others              = 2.

Tags: SAP/ABAP

This entry was posted on Thursday, January 27th, 2011 at 12:04 pm and is filed under SAP/ABAP. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

Click here to cancel reply.

You must be logged in to post a comment.

« SAP: substitution rule exclude fields
SAP: scan ABAP programs »
  • Subscribe using FeedBurner
  • Cloud Data

    abap adobe animation basic beautiful builder camera code configuration contribution design development digital engineering fix flash Flex function images interesting lesson new paypal Photography php problem problems program programmer programming review sap SAP/ABAP sdk setup soap software solution story system tables transaction transports user video

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • My Links

    • Cooking
    • Gallery
    • Resume
  • Online Tools

    • Airline Ticket Search
    • Estimate Shipping Cost [from US]
    • Link your Blog
  • Software Engineering Blogs

    • Adam Goucher
    • Joel on Software
    • The Third Bit
    • Wide Awake Developers
  • Categories

    • Everyday stuff
    • Flex
    • Photography
    • SAP/ABAP
    • Short Stories
    • Software Engineering
    • Web Development
  • Gallery

    Roy Tanck's Flickr Widget requires Flash Player 9 or better.

Max Titov IV @ TechSplice is proudly powered by WordPress
Design & code by Jonk
Entries (RSS) and Comments (RSS).