VL10 - To create DO in background mode
Can anyone advise what's the setting to execute VL10 to create DO in the background mode? It's always showing up as listing in SM37.
Thanks
Peter
I never saw a person, who was successful doing it..
Similar Messages
-
Create Quality Management view for a Material in background mode
I want to know if there is a way to create a Quality Management View (Quality Management tab) on Material Master (material already extended to plant ) in background mode.
The requirement is to add inspection setup data for a material extended to a particular plant in background. I tried using 'BAPI_MATINSPCTRL_SAVEREPLICA' to add the data and it works perfect as required. Now the problem is this BAPI is creating the inspection setup data only for the material which has QM tab in MM02 for e.g. I manually created the inspection setup for a Material from MM01 and then deleted it , now the BAPI works fine for this material because when I created an inspection setup from MM01 it created the QM tab and after i deleted the entry the tab was still there with no entry in inspection setup.
I want to create inspection setup for a material which does not have QM tab.
I have to create everything is background mode. BDC is one option which I am list interested in.
Thank you for helping in advance.Thank you for looking into my issue. I have to do the inspection setup in background without using any front end transaction.
-
Debugg VL10 transaction in background mode
Hi,
I want to know how to debugg VL10 transaction in background mode. Since the control does not go to the breakpoint when clicked on background.Hi,
Try this option..
In classical debugger ..Click settings and check the last option,In back ground task.
Cheers, -
BDC is not working in background mode and working fine in Foreground mode
Hi Experts,
I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
Thanks,
HemaHello,
While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
Cheers,
Nag -
Submit + LIST_FROM_MEMORY in background mode
Hi,
I need to capture the output results from standard program RFKORK00 and hence I designed a wrapper program that calls the standard program.
RFKORK00 generates a report output and I am able to capture the results correctly using the FM LIST_FROM_MEMORY and FM LIST_FROM_ASCI in foreground mode. But when I try to run the same job in background, the FM LIST_FROM_MEMORY does not return any results (I have checked the log by inserting information messages at various points in the program).
I have searched for similar contexts here on SDN and everyone is in agreement that LIST_FROM_MEMORY would work well even in the background mode too but I am unable to find the fault in this case. Could you please help, attached is the code -
SUBMIT RFKORK00
USING SELECTION-SET c_variant
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_abaplist
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = '-1'
with_line_break = ' '
TABLES
listasci = lt_vlist[]
listobject = lt_abaplist[]
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
MESSAGE i099(z1) WITH 'LIST TO ASCI CALL'.
ENDIF.Well, RFKORK00 is indeed a print program that triggers spool in the background.
I gave up playing around memory id, instead I am using the following code to check whether a spool was created in table TSP03.
CLEAR r_rqcretime[].
r_rqcretime-sign = 'I'.
r_rqcretime-option = 'BT'.
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datlo
i_timlo = sy-uzeit
i_tzone = 'EST'
IMPORTING
e_timestamp = v_tzntstmps.
r_rqcretime-low = v_tzntstmps.
**Submit job with changed variant
SUBMIT (p_prog)
USING SELECTION-SET c_variant
EXPORTING LIST TO MEMORY
AND RETURN.
WAIT UP TO 5 SECONDS.
**Fetch the spool number generated by the program
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datlo
i_timlo = sy-uzeit
i_tzone = 'EST'
IMPORTING
e_timestamp = v_tzntstmps.
r_rqcretime-high = v_tzntstmps.
CONDENSE: r_rqcretime-low,r_rqcretime-high.
CONCATENATE r_rqcretime-low '00' INTO r_rqcretime-low.
CONCATENATE r_rqcretime-high '00' INTO r_rqcretime-high.
APPEND r_rqcretime.
SELECT SINGLE rqident FROM tsp01
INTO v_rqident
WHERE rqowner = sy-uname
AND rqcretime IN r_rqcretime. -
Calling a function from a DLL, exectution in background mode.
Dear Experts,
We have created an ABAP report the calls a function from a DLL file. If the report is executed in on-line mode the program calls and executes the function from the DLL, but if the ABAP programa is executed in background mode it doesnt calls the DLL function.
Do you know a way to solve the problem when executing in background mode?
Best regards.
AntonioHi Gabriel,
Let me explain in details about my DLL function.
We are importing the business partners from legacy system into the SAP CRM system, so at the moment we created the BP master data via BAPI, I get the name of the BP and this moment I call the function in the DLL file. I export the parameter name and I receive back a simplified string with the name reduced to a code. This code I get back from the dll it is insert in a Z table, so there is no interaction in the screen, all must be executed in background mode, because there are a lot of business partners to be converted in SAP system.
I am sending my code for your considerations.
Instancia a DLL
CREATE OBJECT dll 'MTCODE.CPFONET'.
IF sy-subrc NE 0.
RAISE without_dll.
ENDIF.
Move para a tabela interna IT_NAME os valores recebidos na TI_NAME
it_name[] = ti_name[].
Para cada registro importado
LOOP AT it_name.
CLEAR v_string_ret.
wa_matchcode-zregid = it_name-zregid.
wa_matchcode-name1_text = it_name-name1_text.
v_string = it_name-name1_text.
CONDENSE v_string.
TRANSLATE v_string TO UPPER CASE.
CALL METHOD OF dll 'SetNome' EXPORTING #1 = v_string.
CALL METHOD OF dll 'ExecMatch'.
CALL METHOD OF DLL 'GetMCData' = v_string_ret.
FREE OBJECT dll.
Preenche os campos do match-code de acordo com o retorno da DLL
SPLIT v_string_ret
AT '|'
INTO wa_matchcode-zparmcln
wa_matchcode-zparmcfn
v_empty
wa_matchcode-name_first
wa_matchcode-name_last
wa_matchcode-namemiddle.
Adiciona o registro com o match-code correspondente na TE_MATCHCODE
APPEND wa_matchcode TO te_matchcode.
ENDLOOP. -
Import data from MS ACCESS in background mode
Hello experts,
i am facing the following problem. I´ve got to import a MS ACCESS database in background mode via job.
I got a solution which works in dialoge:
create object conn 'ADODB.Connection'.
create object rsdb 'ADODB.Recordset'.
concatenate 'Provider=Microsoft.Jet.OLEDB.4.0;'
'Data Source=C:UserspfahlbeDesktopaccess.mdb'
into sql.
call method of conn 'Open'
exporting
#1 = sql.
Any idea how it can be handled in background?The system does not have permission to the useru2019s desktop C:\Users\pfahlbe\Desktop\access.mdb when running in the background.
Recommend moving your MSAccess db to a network location where the system has full-time read-permission, and adjusting your sql accordingly.
Regards,
zKen -
How to store files in shared-folder in background mode
Hello All,
My requirement seems to be simple but I have tried many ways in achieving this, but failed. So require the help in accomplishing this task.
Requirement
I have to create a program in SE38 which will create a internal table with data in it in .XML format(which I can achieve).
My requirement is this .XML file needs to be placed in a shared-folder in "BACKGROUND MODE".
I have tried using GUI_DOWNLOAD function module, but this FM only runs in Foreground mode and fails in Background mode. I have tried convincing my client that I will keep the file in Application Server as it is achievable using OPEN DATASET statements, but they are not willing to accept this.
So can you please help me in achieving this task as I am not getting any solution how to keep the file in Shared-folder in BACKGROUND mode itself(not Foreground).
Best Regards,
TousifHi Sanjeev,
I have just used normal GUI_DOWNLOAD FM. Please find my sample code below
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\Users\baigtomx\Desktop\TOUSIF.XML'
* FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* VIRUS_SCAN_PROFILE = '/SCET/GUI_DOWNLOAD'
* IMPORTING
* FILELENGTH =
TABLES
data_tab = lt_wo
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
When I run this program in foreground mode, the file gets saved(here in the above example I have just used my desktop path. but the actual requirement is to store file in shared-folder i-e Network Drive).
But when i run the same program in background mode, No file is getting stored.
Regards, -
BDC not working in Background mode
Hi All,
I have created a BDC. It is working fine in forground mode but not woking in background mode. Please any one know what could be the problem.
thanks,
ShwetaHi,
I think there is some field in your screen is disabled for input. As it will not through you error.
Please run you BDC in foreground mode and check it and see if you get any message. it will be a sucess message.
this thing happend to me also as my ship to party was disbled in one of screen of VA02.
thanks,
Sarbpreet -
EPS_GET_DIRECTORY_LISTING in background mode
Hi gurus,
I have created a program to get all files in a directory on a server, I am using the FM EPS_GET_DIRECTORY_LISTING.
It's working good in the foreground mode, but it's not the case of the background mode, I got no files.
Thanks in advance for your help.
MAZHi
Did you managed you resolve this?
I am stuck with the same issue. The FM works perfectly fine in foreground but fails when the program is executed in Background.
Also, you had mentioned something about time zone configuration. Could you please elaborate?
Regards,
Rupesh -
Retrieve the date a file was created in the background
EDITED CONTENT----
Apologies all...I just realized there is a specific forum for this type of question. I will post it there.
Thanks Marilyn for point this out>>>>should have read it first as suggested.
/message/2572763#2572763 [original link is broken]
Hi guru's,
I have a custom application that does some windows directory cleaning based an older than 'X' days setting. I have to do some calculation to determine if the file being processed is older than that number of day and delete it if it is. To determine the file created date I use the method DIRECTORY_LIST_FILES from CL_GUI_FRONTEND_SERVICES. This works great in the foreground but dumps in the background because the handle object reference is not created in the class constructor and subsequently does a call to a "NULL" object.
My question:
Does anyone know of a way to get the date a file was created while running in the background? If not, please read on --- I have another question regarding an alternate approach I am trying.
I have tried the following approach FM EPS_GET_DIRECTORY_LISTING to return an internal table with all files in a directory. Works fine in the background, but the created date is not in the return values. Soooooo I looped at the internal table and called this system function:
CALL 'C_FILE_ATTRIBUTES'
ID 'NAME' FIELD tempfile
ID 'TYPE' FIELD singleFile-
ID 'LEN' FIELD file-len
ID 'OWNER' FIELD file-owner
ID 'MTIME' FIELD file-mtime
ID 'MODE' FIELD file-mode
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
This returns the MTime, which is the Modified time (in Epoch time format: number of seconds since Midnight 1 January 1970), but no created time. Does anyone know the ID for the created time? I tried CTIME but no value is returned.
Along with this question: any idea if a FM or Method exists to convert Epoch time to a standard time. I could do the calculation myself....but it seems someone would have already done this. No point in re-creating the wheel.
Thanks so much,
Quack
Message was edited by:
Ryan QuackenbossI will be happy to.
Please post something to this thread.
Retrieve the date a file was created in the background
I UNMARKED this question as a post and reposted in the data transfer forum.
That post is still open. Once you post there, I will mark it ANSWERED and award points.
Thanks for the help
Quack -
Error in BIM when running in background mode
Hi,
I am facing an error when running a BIM in sm35.
The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
It gives the message when running in background mode
"No batch input data for screen SAPLMGMW 4008"
What should I check or do to correct it.
Please help.
Regards
RashiThe BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
I also did the following
1. Created the BIM in my id and tried running( in background) it using the other id ...it was successful
2. Created the BIM in other id and ran ( in background) using my id....it failed.
I will check again for authorisations also.
Regards,
Rashi -
Execute one thread in background mode.
hello ,
I have an application where the user can shows dialogs to displays, adds, modify and delete rows of one tale inside some JTextFields.
I have a problem to use this application, when one same dialog is showed more then one time....
Exactly: not problems come the first time the dialog is showed, but the second time, the time to wait because the performance is executed is very long..., and further, ....when the dialog at last was is shoved, no data of the table are in the JTextFields.
I get errors too when at last the dialog was shoved, and the errors not aways said the same reason..., but all the errors are referred to the impossibility (in the performances that followed the first) to have a suitable resultset containing the data.
Some error are "null pointer exception" to read the resultSet, other error is "Impossibils get a block in the required time" ...
I read documentation and I understand that the fault, probably, could came from the Event Dispach Thread that had the task to manage the creation of the ResultSet.
Now I am trying to solve (at this moment without success) the problem in this direction, ...as well I have not experience about to manage the use of SwingWorker class.
I should like hear what it is wrong in that I am doing...
Initially my code was this
* Create a resultSet, for the current table
private void createResultSet() {
statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
currentResultSet = statement.executeQuery("Select * from " + tableName);
boolean validateState = currentResultSet.last();
regsNmbrOnTheTable = currentResultSet.getRow();
System.out.println("Numero attuale di records = " + regsNmbrOnTheTable);
// here come the exception:
// Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
} catch (SQLException ex) {
reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
// Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
} // createResultSetrecently I modified it in order to put the creation of the ResultSet in background....
* Create a resultSet, for the current table
private void createResultSet() {
(acquiresResultSetInBackground = new AcquiresResultSetInBackground()).execute();
currentResultSet = acquiresResultSetInBackground.doInBackground();
} // createResultSet
// inner class to manage the performance in background mode.
class AcquiresResultSetInBackground extends SwingWorker <ResultSet, Void> {
ResultSet resultSet;
@Override
protected ResultSet doInBackground() {
try {
statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
resultSet = statement.executeQuery("Select * from " + tableName);
} catch (SQLException ex) {
reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
return resultSet;
}How I said I get again the same behavior that was before......
thank you
Regards
tonyMrsangeloFor custom transactions you shouldn't have a problem - unless you're trying to do something that needs dialog with the presentation server.
Set an infinite loop in the custom transaction, launch your program in backround, then from Sm50, go to debug and find out what's going on.
DATA: debug.
WHILE debug IS INITIAL. " Debug from SM50 will get you here, change field DEBUG in the
ENDWHILE. " debugger to contain 'X', and the loop will end.
Also, if your custom tx calls any standard SAP programs/FM, there is a chance that those programs work differently in background than foreground. -
Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.
I rewrote code for debugging purpose and tried to catch error using GetLastError(); method,
but it only printed 0. Below is code snippet; I think Create() throw an exception
and code goes to catch block.
LONG ConnectTS(CString strIP, UINT n_Port)
try{
ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
if(!Create())
// Exception Line
n_Err = GetLastError();
return NET_INIT;
catch(...)
DWORD errorCode = GetLastError();
CString errorMessage
errorMessage.Format("%lu",errorCode);
ErrorLog (0, 0, "Image
System", (LPTSTR)(LPCTSTR)errorMessage);
return IS_ERR_WINDOWS;
Output: -
ConnectTS is calling Create [is going to call]
Image System
0 -
Is it possible upload local file to internal table in background mode?
Hi, all,
Is it possbile to upload local file(not server file) to internal table in background mode.
If possbile ,please tell me detail . Thanks in advance.
Regards,
LilyHello,
This is possible.
If you report has to be executed in background using schedule Job. Then the file path should be constant and it can be hard coded in the report itself while populationg the internal table.
Then create a variant for your report and use that variant in the job.
This will solve your problem I guess.
Regards
Arindam
Maybe you are looking for
-
Performance while saving db entries in a CSV File (Saving the MARA)
Hi Experts. Now, I have a very difficult problem and until now noone could give me a solution. The scenario is that I have to export the complete MARA as CSV (Comma Seperated Text File) on the server (xfer-DIR). So, I select a bunch of mara entries a
-
Flash player still not working after following all discussion advice
Requested information: I have Internet explorer 9/ using 32 bit on 64 bit computer/windows 7/flash player 10.2 version I contracted what my husband called a "rider" virus when I opened a knitting pattern of all things and if I understood it correctl
-
Print front panel by clicking on a boolean button
Hi everyone, I need that a user can print the front panel just by clicking on a button in the front panel. Apparently I need to use Report generation ==> Easy print VI panel + a boolean button. But I have no idea how to make the connections. My code
-
Urgent : Smartforms: Direct printing from module pool/dialog screen
Hi all, i have a module pool screen where in from a screen i have some inputs from the user and after saving user wud click on a button called print which shud print a slip containing the screen data.now for this purpose i have made a smartform which
-
Hi All, Using SSRS05. I have written a stored procedure to delete data from two tables, which works as expected. I would like to call this SP from SSRS so users can enter the two parameters click the button and the data is deleted. The SSRS report is