How to generate an SE63 object list in batch periodically ?
Dear experts,
we translate program and DDIC-texts of our add-ons continiously to english and
french, in order to keep up translations with the ongoing development we create
the necessary SE63-object list once a week. Since this process is creating
several background-jobs dynamically it is not possible to mark this inital job as
to be repeated periodically. I do understand that but I don't know why there
seems to be absolutely no way to get this done automatically once a week.
Here is what I have already tried in vain in order to achieve this:
- a report performing a CALL TRANSACTION on transaction SE63/SLW3
- an eCATT-script including a TCD-Script on transaction SLW3
(the script works fine if it is started directly, but the only FM that I have found
to start a script with in batch ( 'ECATT_EXECUTE' ) does not do it, but comes
back with a returncode zero, as if it did.
- and I even tried to start the above mentioned eCATT-script by a report doing
a CALL TRANSACTION on transaction SECATT providing the necessary
field settings for the initial and following popup start screen.
Nothing seems to work. The SAP notes on this topic are as useful as the
SAP documentation on the subject "object list" (forget about it).
Who has some experience with this issue respectively ideas for my problem?
How can I generate an object list for translation once a week automatically in
background?
Thanks in advance
Andreas
Hi Lorant,
attached you'll find a download of the ABAP which is to be used as a job step
and an XML-Download of the eCATT-testscript, that processes the generation of a new object list in SE63.
As both developing objects were in our companys namespace ("/HOAG/") which you cannot use, I made a copy in the z-namespace first, from which I have removed a couple of specialties that are certainly of no value for you at all, before I downloaded them for you.
You need to give the script a name in your namespace or in the Z-namespace and then you have to adapt the scripts name in the BDCDATA generation procedure in the ABAP program appropriately.
It may be possible that the eCATT-script doesn't run properly on your system. This is due to the fact, that the sequences of dynpros and fields contained in the dynpros differ a little in all of our 4 SAP development systems that we decided to be translation relevant, This is also the reason why I recorded individual eCATT-scripts for each one of them. It may be possible that you need to record your "own" system compliant script.
An example: the popup screen with the print parameters can be personalized and may therefore look differently for every user in every system.
This is also a good reason why the background job should be scheduled and performed under the name of the same user who recorded the eCATT script before!
And just one last remark: The returncode of the job only gives you an information about wether or not the eCATT script has been executed properly but you do not know if the chain of jobs usually created by the SE63 objectlist creation functionality have been executed completely. The "system" that we set up for the automated objectlist creation is completed by a third ABAP program which is also scheduled daily as a background job. It is started about an hour after the the object list creation should be through and it verifies if the standard SAP jobs (the names of which are beginning with something like "OBJL") ran completely that day and that they are in the status "finished". If this is not the case, our "objectlist verification ABAP" sends a couple of SAP express mails to a certain selection of key users who are supposed to take a look at the system). This all works pretty well in combination!
If you (or the person that you are going to give this task to) know enough of the german language to read it, you won't have any problem with adapting this to your needs because you'll find everything neatly commented in the source code.
regards
Andreas
Similar Messages
-
How to generate global LogFile object
Hi,
I'm new to JAVA, I used to work in C.
In C I could initialize a global file pointer which was known through the whole package, so I could write to a file using the same pointer.
Now in JAVA I have to create an object of the filewriter, but how can I make this object known though the whole package without using parameters every time??
THXThis class will create a file containing all System.out and System.err outputs. You may create more than one instance of it without problem, but the best could be to add a getInstance Method like explained above...
vincent
import java.io.*;
/**This class enable you to create a log file. This file save all default output in a file. Every statement display on the screen with System.out ou System.err will be saved in a file.
<p>
see also <A HREF=http://developer.java.sun.com/developer/TechTips/1999/tt1021.html#tip2>http://developer.java.sun.com/developer/TechTips/1999/tt1021.html#tip2</a>
<br>author <A HREF=mailto:[email protected]>Vincent Dupont</A>
public class Stdout {
public static void startLog(String file){
/** use Stdout.sart(filename) to enable the class*/
try{
SaveOutput.start(file);
} catch (Exception e) {
e.printStackTrace();
} finally {
//SaveOutput.stop();
}//fianlly
}//startLog
public static void stopLog(){
/**this method ends the capture of standard output strings*/
SaveOutput.stop();
}//stopLog
}//stdout
class SaveOutput extends PrintStream {
static OutputStream logfile;
static PrintStream oldStdout;
static PrintStream oldStderr;
SaveOutput(PrintStream ps) {
super(ps);
/**Starts copying stdout and
stderr to the file f.*/
public static void start(
String f) throws IOException {
// Save old settings.
oldStdout = System.out;
oldStderr = System.err;
// Create/Open logfile.
logfile = new PrintStream(
new BufferedOutputStream(
new FileOutputStream(f)));
// Start redirecting the output.
System.setOut(
new SaveOutput(System.out));
System.setErr(
new SaveOutput(System.err));
System.out.println("Starting log file");
/** Restores the original settings.*/
public static void stop() {
System.out.println("Closing log file");
System.setOut(oldStdout);
System.setErr(oldStderr);
try {
logfile.close();
} catch (Exception e) {
e.printStackTrace();
// PrintStream override.
public void write(int b) {
try {
logfile.write(b);
} catch (Exception e) {
e.printStackTrace();
setError();
super.write(b);
// PrintStream override.
public void write(
byte buf[], int off, int len) {
try {
logfile.write(buf, off, len);
} catch (Exception e) {
e.printStackTrace();
setError();
super.write(buf, off, len);
} -
How to generate n random dates between 2 time periods
Hi,
I'm trying to write a method that generates n random dates between 2
time periods. For example, lets say I want to generate n random dates
between Jan 1 2003 and Jan 15 2003. I'm not sure how to go about
doing the random date generation. Can someone provide some direction
on how to do this?
The method signature should look like this.
public String[] generateRandomDates(String date1,String date2,int n){
// date1 and date2 come in the format of mmddyyyyhh24miss.
// n is the number of random dates to generate.
return dateArray;
Thanks.
Peterfirst take a look at the API concerning a source of randomness (Random might be a good guess), then take a look at stuff concerning dates (Date might be cool, maybe you will find some links from there).
Who wrote this stupid assignment? -
How to generate Operating system user list from windows server
Hi,
is it possible to extract the following report from windows server, if yes how to do it,
1) Operating system User list from the server along with following details User Name, User Permission, Last Login date, User Status,
2) is it possible to include staff id, and staff name while creating any Operating system userHi FBMUIIa,
Would you please let us know current situation of this issue? Please refer to Mr X’s suggestion and check if
can help you.
Please also refer to following article and check if this script can help you.
List Local
User Accounts Using WMI
In addition, regarding your current requirement, it seems that scripts will help you to achieve the target better.
I suggest that you would post the question in
Official Scripting Guys Forum or
PowerShell Forum. I believe we will get a better assistance there.
Hope this helps.
Best regards,
Justin Gu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
How to generate the deleted customer list
hi,
is there any transaction code to view the list of deleted customer list
Regards,
MuraliGOTO SE16KNA1 TableF7--Give Deletion flag(LOEVM)=yes and execute
U will get all the deleted customers -
Retrieve objects list of a remote change request
Hi guys,
someone know how can I retrieve the objects list contained in a remote change request (using rfc destination)?
any suggests,examples or solutions?
Many rgsI answer myself...this fm sounds good "TR_OBJECTS_OF_REQ_AN_TASKS_RFC"
bye -
How to send an updated list using batch job
Hi All,
The program displays data on the screen, if the data looks ok, then there is an option to update.
When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
Ex: output of the program
1 2
there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
1 2
3 4
but when i check the spool, it shows the o/p as 1 2 ..it is not sending the updated list.
Please suggest me how to send the updated data
Thanks,
KumarHi Krishna,
I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
*& Report ZTESTSSSSS
REPORT ZTESTSSSSS.
DATA: gt_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat type slis_t_fieldcat_alv,
gt_sort TYPE slis_t_sortinfo_alv,
g_repid LIKE sy-repid,
gt_layout TYPE slis_layout_alv.
start-of-selection.
lt_return-type = 'S'.
lt_return-message = 'test message'.
append lt_return.
CLEAR gt_fieldcat.
gt_fieldcat-fieldname = 'TYPE'.
gt_fieldcat-outputlen = '3'.
gt_fieldcat-tabname = 'LT_RETURN'.
gt_fieldcat-seltext_l = 'Type'.
gt_fieldcat-seltext_m = 'Type'.
gt_fieldcat-seltext_s = 'Type'.
APPEND gt_fieldcat TO lt_fieldcat.
CLEAR gt_fieldcat.
gt_fieldcat-fieldname = 'MESSAGE'.
gt_fieldcat-outputlen = '15'.
gt_fieldcat-tabname = 'LT_RETURN'.
gt_fieldcat-seltext_l = 'Message'.
gt_fieldcat-seltext_m = 'Message'.
gt_fieldcat-seltext_s = 'Message'.
APPEND gt_fieldcat TO lt_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_FIELDCAT = lt_fieldcat
TABLES
T_OUTTAB = lt_return
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
*& Form set_pf_status
text
-->RT_EXTAB text
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'STANDARD'.
ENDFORM. "Set_pf_status
*& Form user_command
text
-->R_UCOMM text
-->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: li_count TYPE I.
IF r_ucomm EQ 'UPD'.
Adding another message
lt_return-type = 'S'.
lt_return-message = 'Another test message'.
APPEND lt_return.
rs_selfield-refresh = 'X'.
rs_selfield-col_stable = 'X'.
rs_selfield-row_stable = 'X'.
l_upd = 'X'.
LOOP AT lt_return.
WRITE: / lt_return-type, lt_return-message.
ENDLOOP.
IF sy-batch IS INITIAL.
l_upd = 'X'.
Open the Job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = w_name
IMPORTING
jobcount = w_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
AND RETURN
WITH p_recnnr = p_recnnr.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = w_number
jobname = w_name
strtimmed = 'X'
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.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "User_command
Thanks,
Kumar -
PM: how to track the operations in prev.maint order against object list
Dear PM Guru's.
i have one issue in my preventive maintenance scenario. i clubed the same type of machines in one maintenance order under object list tab. and i mention the list operations in maintenance order. suppose in one preventive maintenance order 10 operations are maintained and 5objects are mentioned in that order. Now i like to mention all these 10 operations activities against to 5 objects. how i can assign sequentially? i required like 10operations one by one row wise and 5objects side by side column wise. i would like to update the each operation activity against each machine column? how i have to do this one?
Please suggest me and help me.
regards
Jalendhar MeruguUsing Object functionality, we can maintain many equipments in the order.
But the constraint is that one operation can be assigned to only one equipment. In your case, you have 5 objects. If all 10 operations will be performed on 5 objects, then you have to maintain 50 operations & you should assign the objects.
In other words, if one operation will be performed on 5 objects, then you should define that one operation 5 times & you have to assign to technical objects. You can't share one operation to many equipments. -
How to Enable Ratings on SharePoint List using Client Object Model code for Office 365 SharePoint Site.
Thanks in Advance
Rajendra KHi Rajendra,
here you are the code and the blog, let me know if this helps
using (ClientContext ctx = new ClientContext(https://yourSiteUrl))
Web w = ctx.Web;
List l = w.Lists.GetByTitle("yourListName");
ctx.Load(l, info => info.Id);
ctx.ExecuteQuery();
string ListID = l.Id.ToString();
Microsoft.Office.Server.ReputationModel.Reputation.SetRating(ctx, ListID, 1, 5);
ctx.ExecuteQuery();
http://blogs.technet.com/b/speschka/archive/2013/07/08/how-to-use-csom-with-ratings-in-sharepoint-2013.aspx
Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation -
How to add elements into Object[][] type of list, in runtime?
I have Object list, ie.
final Object[][] data = {
{"January", new Integer(150) },
{"February", new Integer(500) },
{"March", new Integer(54) },
{"April", new Integer(-50) }
};How can I dynamicly add new elements in it, at the runtime?
Thank you in advance!Do I have to remove 'final' for that, and then add
elements?
No. you can't change an array's size.
You can do this
Object[][] arr = new Object[numRows][numCols];But once you've created it, its size can't change.*
I don't know what you're doing, though, and what actual data you're putting in, but Object[][] holding rows of [String, Integer] is almost certainly a poor data structure. Think about creating a class the represents one "row" here and then create a 1D array of that class.
* Okay, you can kinda sorta effectively "change" the size of second and subsequent dimensions, since a multidimensional array is an array of arrays. I wouldn't recommend it though: int[][] arr = new int[3][2]; // a 3 x 2 rectangular array of int--it's an array of array of int, with 3 "rows", each of which is an array of int with 2 elements.
arr[0] = new int[10]; // now it's a jagged array whose first row has 10 elments instead of 2Here we haven't changed an array's size, just replaced one of its elements, which is also an array, with a new, larger array. -
How to assign the cost to objects in object list in a PM order ?
Hello,
If there are many equipments in object list in one PM order, how can I assign the cost to every equipment in the order ? And how can I query the cost of every equipment in the order?
I have tried to find the threads posted in the past, but I got no idear.
Waiting for your reply. Thanks.Xifeng Xing
As stated above, when EHP5 arrives it promises operation level costing functionality.
At present this functionality is not available without designing your own reports
PeteA -
Any Pointers on how to get object list values and component values in iw32
Hi,
I have a requirement where whenever a user enters a creates(iw31) or changes(iw32) an order then we have to validate the materials entered by the user before saving the order.We have en interface structure for the transaction 'CAUFVD'.Which gives us the values of functional location and equipment entered under the Reference object.But we need to validate all the object list functional locations and also Order components enetered by the user.Can any one tell me how to get the values of all these fields entered by the user?
And also I need to query Equipment Bill of Material.What does this equipment BOM refers to .Is it the equipments under Object list or something else.
Please Help.
ThanksHi Anu
There is a user exit that gets trigerred when you try to save a work order . The exit is 'EXIT_SAPLCOIH_009' . This exit has the structure CAUFVD_IMP which will give you all the order header values entered by the user.
User exit 'EXIT_SAPLCOBT_001' will give all the values entered by the user including order components. Also check the package CO amd see if there is any other function group suiting your requirement.
hope this helps you.
cheers
shivika -
How to generate a list of pick dates for all scheduled deliveries?
Hi!
How to generate a list of pick dates for all scheduled deliveries?
What all the tables involved?
Thanks
Imran.Thanks for the suggestion concerning the file path. And certainly it would have been nice to have done this before beginning. However this is a project that has been around for quite a while, and the files have been moved into different bins. And now the project sequence is being revised.
So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences? Or, how can I get a list of the file paths of the files that are used in the sequence? -
How we find object list for SAP MM T codes.
Dear Experts,
How can i find object list for SAP MM T codes.
Actualy that is required for SAP User autorization review.
Regards
KumarGet t.codes list from table TSTCT using SE16,Enter t.code as MM* or M*. Execute it.
You will get a list of MM t.codes.
Also you can refer SU22 for authorization objects from above t.codes list. -
How to generate PDF copy of invoice list
Hi All,
I need a favor from you in helping to generate a PDF copy to invoice list .
I observed that spool is not generated for this print output of invoice list but output successfully triggered.
we have z report (zretrieval ) to generated the PDF but it's not allowed to generate PDF.
I tried alternative method by saving the print preview but I can able to save only that particular page.
our business looking for all invoice list pages in single pdf so please guide me to proceed further.
Regards
Srinivasa ReddyI presume your issue is output triggered but PDF file is not generating if the invoice list goes for multiple pages. If this is correct, then you need to talk to your ABAPer as they only, have to check the smartform being used for invoice list.
G. Lakshmipathi
Maybe you are looking for
-
The problem is that you don't know what the target view is until it has been forwarded to. Think about it... the request handling view bean (or command object) has the request handler that has the code that will ultimately forward to another view bea
-
Hi all I think I posted about this before when Flash 8 first came, but I never got any answers. So now that Flash 8 is on its way out, I'm thinking someone else has come across this problem and has figured out a fix for it at this point. I have some
-
Highlight counts as search modification?
Hi. I use Acrobat 7. I'm an indexer, and usually I'm working from a pdf of the book. I do a lot of searching for all occurrences of a word or phrase to decide what to include. And of course, I want to highlight the words I've looked at as I go as a v
-
Duplicate records in BW Data Loads
In my Project I am facing duplicate records in Data Loads, when I compare with PSA and DSO. How to check those are duplicate and is there any mechanism through Excel Sheet or any? Please help me out. Advance thanks for your quick response. Edite
-
Hi I recently downloaded Adobe but when trying to open the file. acsm my ebook, the program exits with the error "Adobe Digital Editions 2.0 has stopped working". I wonder if it is because I have installed in windows 8? Anyone have the same problem?