Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RBDMIDOC program scheduled as a job..but it is not completing

divyatg
Explorer
0 Kudos

Hello Friends,

Required your help/answer ASAP...

One job is scheduled with the program RBDMIDOC and selected Message type as 'MATMAS'.

Sometimes the job is taking less time even there are many records in BDCP2...sometimes it is taking more time even there are fewer records.

Now the main problem is 'Job is not getting completed'...It is keep on running.. We are not sure about the reason?

Please suggest the solution to faster the job and the reason for not completion.

Awaiting your response!!!

Thanks in Advance...

13 REPLIES 13

raymond_giuseppi
Active Contributor
0 Kudos

Could you provide more information, did you look for OSS notes - a must do for standard program - did you recently change of version, did you execute SM50/SM51, etc.

0 Kudos

Thanks for your reply..

Didn't find any suitable notes. Please suggest some notes.

we didn't change any version recently..we are in SAPKA73120 Support pack.

We checked in SM50, Work process in the application servers are also free/Available.

The Sequential Read, Direct Read, Insert, Update, Delete statements are also accessing fine when viewing in SM50. It is not getting stuck at any point when viewing it manually.

There are nearly 7.5 lakh entries in BDCP2 table. Because of this Job is not completing?? It is taking more days to create the IDOC?

0 Kudos

Hello Divya

In SM50 you should be able to see the instance of this report running. You can choose the line and from menu debug it. In debugging you will come to know the reason for running so long might be running for all entries and all.

Thanks

Nabheet

0 Kudos

In SM50/51 you may also notice some other tasks running, or some RFC parallel process that may cause exhaustion of system ressources...

kiran_k8
Active Contributor

If it is PRD, kindly take the help of Basis team to get some info on what actually is holding the job.

DoanManhQuynh
Active Contributor
0 Kudos

did you look at spool log to check out which IDOC got stuck? also check your printer setting ( cause its calling fm GET_PRINT_PARAMETERS) with MATMAS message, it process a block with size 50000 you can read and debug that program, source code quite short and easy to understand.

0 Kudos

Thanks for your reply...

Spool is not getting generated..as the job is not getting completed...There are 8 Lakh record in table BDCP2..it is because of that??

0 Kudos

800k records is not that much, i dont think its the problem. you may have only chose to debug it, analysis through SM50 (chose your process and debug program). maybe you should start analysis with the case there are few records but taking more time.

BaerbelWinkler
Active Contributor

Hi Divya,

here is something you could try to see where the process gets stuck:

  • Make sure that you are on the relevant server where the process is running via SM50.
  • Open another session and go to transaction SAT (performance analysis)
  • Select option "In parallel session"

  • Pick the process you are interested in and activate measurement taking:

  • Let it run for a short time - often 10 to 20 seconds is enough - and then switch it off again.
  • You'll be taken to the SAT-results (if any were captured) and you can poke around the routines and tables accessed during the measurement.

There is obviously no guarantee to find anything but it might at least help to narrow down where a problem might exist. For example, if a process gets executed millions of times in just a few seconds you might be looking at an endless-loop situation. I had something like that recently:

Even if you cannot resolve the issue yourself, you'll have some more information to pass on to either your basis-team or to SAP via an OSS-message.

Hope this helps!

Bärbel

0 Kudos

Thanks Barbel...Let me try..

chaouki_akir
Contributor
0 Kudos

When the following situation occurs

  • "Sometimes the job is taking less time even there are many records in BDCP2..."

then how much IDOC MATMAS are created ?

When the following situation occurs,

  • "sometimes it is taking more time even there are fewer records."

then how much IDOC MATMAS are created ?

There is may be a problem in the distribution model (BD64) for message type MATMAS.

chaouki_akir
Contributor
0 Kudos

Did you use SAT transaction as proposed by Bärbel Winkler ?

If yes, can you share a screen shot of the result like she did ?

kiran_k8
Active Contributor
0 Kudos

Chaouki,

Can you share the info on the possible bottlenecks, a distribution model can cause.

Thanks,

K.Kiran.