Skip to Content

Introduction to Job Processing in SAP Demand Management

Jobs can be submitted in SAP Demand Management 6.4 by two means: Through SAP DM Web Application and Through Command Line. Though submitting the jobs through the Web Application is far more convenient, it is still good to know how to submit the jobs from command line, if required.

Submitting Jobs to Job Process Server via DM Web Application

Login to SAP DM Web Application using the browser. URL for SAP DM application is: http://<netweaver_host>:<j2ee_port>/applet/index.html

Enter Username/password for SAP DM Login. The SAP Demand Management Web Application starts up:

/wp-content/uploads/2012/05/1_98743.jpg

Click on the Processing link on the left hand panel.

Under the tab: Servers, the system should list all the Process Servers and their status should say ‘Started’:

/wp-content/uploads/2012/05/2_98725.jpg

This ensures that the Processing Server is connected.

Submit a Test Job as follows:

Under the tab: Operations, select Activity –> Regular, Group –> JPS System Test Group and Process –> JPS System Test Process./wp-content/uploads/2012/05/1_98743.jpg

Under Market Hierarchy Selection tab, check the option: Enterprise and click on Submit.

The test job is now submitted and under Filtered Processes tab, it is listed with status Released. After a few moments, the status should change to Completed:

/wp-content/uploads/2012/05/4_98741.jpg

Submitting Jobs to Job Process Server via command line

Connect to a middle tier machine in the environment using an SSH type tool like Putty. Middle tier machine here means the machine on which your Job Process Server is running.

Once connected, navigate to the directory: /<DM-NFS-Mount-Directory>/<DBSID>/java. In some cases, this may have been installed as /<DM-NFS-Mount-Directory>/<DBSID>/<DBSID>/java.

The script available for submitting the jobs is jpssubmit.sh in the above directory and along with the following flags:-groupkey –> JPS Group Key for job to run; required

a.       -processkey –> JPS Process Key for job to run; required

b.       -hokey –> Hierarchy Object Key (node key); required

c.       -eventkey –> Event Key; default is 0; optional

d.       -userkey –> Initiator’s user key; default is -1; optional

e.       -parms –> Parm Value pairs <name>=<value>; MUST BE LAST FLAG!; optional

f.         -queue –> Fully qualified JPS queue name to which route the job; optional

g.       -help –> Displays the usage information; optional

h.       -file –> File where multiple lines of commands may be located (optional and should be only arg when used)

Type the command ./jpssubmit.sh along with flag entries to run one job via command line.

For example, the Test Job submitted in first section using Web Application can also be submitted using command line using the following flags:

/wp-content/uploads/2012/05/5_98742.jpg

Below is an example to run multiple jobs using command line:
./jpssubmit.sh –file joblist.txt

The file joblist.txt contains:
-groupkey 95 -processkey 160 -hokey 32373
-groupkey 95 -processkey 160 -hokey 32374

The status os this job can also be seen from the SAP DM Web Application.

Appendix – Group and Processing Keys

“GROUP_KEY” “NAME”                             “PROCESS_KEY” “NAME”
1                    JPS System Test Group       1 JPS System Test Process
20                  CSO Processing Group                   400 CSO Entry Point
20                  CSO Processing Group                             410 CSO Apply Business Rules and Run MM MSF
20                  CSO Processing Group                             420 CSO Run Market MSF
20                  CSO Processing Group                             430 CSO Price Change Logic
20 CSO Processing Group                        431 CSO Run Market Target
20 CSO Processing Group                        440 CSO Run MM Target
20 CSO Processing Group                        450 CSO Set Price Change Cost
20 CSO Processing Group                        455 CSO Run MM MSF
20 CSO Processing Group                        460 CSO Run Market MSF/Market Target for Enterprise
20 CSO Processing Group                        470 CSO Run Market Target
20 CSO Processing Group                        471 CSO Run ASP
20 CSO Processing Group                        472 CSO Run MM Target and Update opt_wb_table
20 CSO Processing Group                        480 CSO Update PF Status and send alerts
25 CSO Summary Screen Processing Group 405 CSO Summary Entry Point
25 CSO Summary Screen Processing Group 465 CSO Summary Run Market Target for Enterprise
25 CSO Summary Screen Processing Group 475 CSO Summary Run Market MSF and Market Target
25 CSO Summary Screen Processing Group 476 CSO Summary Apply Bus Rules – Run MM MSF/MM Target
25 CSO Summary Screen Processing Group 477 CSO Summary Run ASP
25 CSO Summary Screen Processing Group 478 CSO Summary Run MM Target and Update opt_wb_table
25 CSO Summary Screen Processing Group 485 CSO Summary Update PF Status
50 System                                                                       220 Clean Node Keys
50 System                                                                       800 System Cleanup
70 Build Client Price File                            190 Output text file with prices
95 Demand Modeling and Forecasting       20 Reg PCB Prep
95 Demand Modeling and Forecasting       520 Build Promo Calendar
95 Demand Modeling and Forecasting       630 Analyze tables before SAM
95 Demand Modeling and Forecasting       620 SAM
95 Demand Modeling and Forecasting       505 MOD2 Modeler
95 Demand Modeling and Forecasting       530 KSF Post Parameters
95 Demand Modeling and Forecasting       540 Forecast
95 Demand Modeling and Forecasting       160 Post Modeling Parms to CSO
100 Client Side Forecast                            570 CSF Forecast
140 Import and Cleanse                             710 Load Daily
140 Import and Cleanse                             720 Clean Daily
140 Import and Cleanse                             730 Load Weekly
140 Import and Cleanse                             740 Clean Weekly
140 Import and Cleanse                             750 Publish Market Hierarchy and Linking Information
150 CSO Prep                                                                                      760 Process Competitor
150 CSO Prep                                                                                      770 Process Current
150 CSO Prep                                                                                      780 Process Constraint
150 CSO Prep                                                                                      785 Process Associated
150 CSO Prep                                                                                      790 Update Price File Status
160 Initial System Set-Up                          300 Load/Update REG_ALL_TIME
160 Initial System Set-Up                          310 Load/Update REG_PA_AVAILABLE_DATES
160 Initial System Set-Up                          330 Load OPT_PERCEIVED_PRICE
160 Initial System Set-Up                          340 Build reg_promo_key_xref
160 Initial System Set-Up                          350 Build Price/Cost change history from POS
170 Data Extract                                                             810 Create Data Extract File
10130 Promo Ad Planning                         10600 Model Scenario
10130 Promo Ad Planning                         10610 Model Product
10130 Promo Ad Planning                         10620 Forecast Scenario
10130 Promo Ad Planning                         10630 Forecast Product
10130 Promo Ad Planning                         10640 Recommend Scenario Products/Offers
10130 Promo Ad Planning                         10650 Recommend Product Offer
10160 Promotion Daily                                                    10720 Update Status and Create Price File
100010 Daily Processing                           100080 Daily Markdown Status Update
100010 Daily Processing                           100150 Markdown Build Price File
100020 Weekly Processing                       100160 Markdown Science Prep
100020 Weekly Processing                       100130 ReOptimize Enterprise
100020 Weekly Processing                       100050 New Markdown Create(for Imports)
100030 Re-Optimization                            100010 Store Modeling
100030 Re-Optimization                            100020 Markdown Optimization
100030          Re-Optimization                                         100030 Markdown Forecasting
100030 Re-Optimization                            100100 Markdown Science Process(esme,moe,mfe)
100040 Other                                                                                       100090 Mass Edit
100040 Other                                                                                       100110 Markdown Process
100040 Other                                                                                       100120 Markdown Event Delete
100040 Other                                                                                       100140 Markdown Create Wizard Upload

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply