Background Mode
Hi all,
I would like to know how can I find which program is being used when I click on button Background in transaction VL10A.
I tried to debug but i was not able to find.
Thanks a lot for your help.
Best regards
Hi,
I debugged and found out the issue.
The problem is in nomenclature. When it say's background it doesn't mean as a job. It means using ABAP FM's without user interaction.
You can appreciate this by understanding that there are two options: DIALOG and BACKGROUND.
When you choose DIALOG you go to transaction and enter/modify and save changes whereas in BACKGROUND it happens automatically using FM's.
That is the reason there is no job since no job is created in the first place !
Hope this helps in understanding.
Regards
Nishant
Similar Messages
-
XLS from Application server in background mode to internal table
Hi,
I need to transfer the content of an excel file in the application server to an internal table while running my program in background. My file is xls, cant use csv. For dataset bin mode, I need to know how to transfer the data to my internal table, already searched on forum but didnt find answer, at least not for background..
ow, I am using v6 here
about the ALSM_EXCEL_TO_INTERNAL_TABLE, I get the upload_ole error all the time, and with TEXT_CONVERT_XLS_TO_SAP, conversion_failed all the time too...
here is the code, just the load part and data declaration:
REPORT zbeto.
TYPE-POOLS: truxs.
TYPES:
BEGIN OF y_cot,
text1(12) TYPE c,
text2(12) TYPE c,
text3(12) TYPE c,
text4(12) TYPE c,
text5(12) TYPE c,
END OF y_cot.
DATA: it_datatab TYPE STANDARD TABLE OF y_cot,
wa_datatab TYPE y_cot,
it_raw TYPE truxs_t_text_data.
DATA:
v_file TYPE rlgrap-filename,
begin_col TYPE i VALUE '1',
begin_row TYPE i VALUE '2',
end_col TYPE i VALUE '5',
end_row TYPE i VALUE '102',
t_ctmp TYPE y_cot OCCURS 0 WITH HEADER LINE,
t_xls TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
PERFORM f_load_xls.
FORM : f_load_xls
FORM f_load_xls.
v_file = '
ZSAPDEV\SAPDEVINTERF$\COTACAO\TESTE.XLS'.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = v_file
i_begin_col = begin_col
i_begin_row = begin_row
i_end_col = end_col
i_end_row = end_row
TABLES
intern = t_xls
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 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.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = v_file
TABLES
i_tab_converted_data = it_datatab[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
t_ctmp[] = it_datatab[].
ENDFORM. "f_load_xls
both FM arent working, and when I try to execute in background mode, before anything, I recieve the following error:
Message text:
Error during import of clipboard contents
Message class:
ALSMEX
Message no.:
037
Message type:
A
and without the ASLM FM, the TEXT_CONVERT give me the conversion_failed exception...
the directories are right, that I am sure, because I just copy&paste it from CG3Z/CG3Y when I uploaded and downloaded to
check the file in the server...
am I missing something?
thanks again,
Roberto Macedo
(PS: I made another topic because none replied the other in 4 days and wasnt solved yet)Hi!
You didn't find answer for this, because it is not possible. If you run your program in background, it is running on the server, and does not have any connection to your local machine. That's why you can't upload/download in background mode.
You might try to address somehow your local PC, with its IP or MAC address, but I don't think does this task worth so much time.
Run your program in online mode, or if you want to run it in background, then upload your file into the SAP server.
Regards
Tamá -
BDC Program is not working in background mode
Hi All,
I hv one bdc program for tcode fb02 which is working fine in foreground mode and data is updated to each screen properly. While running the same program in Background mode data is not updated. Can u seggust the solution.
Regards,
Rahul SHi ,
Remove the break point in the BDC performs.
put the break point once u complete the BDC.... otherwise execute the BDC in MODE 'E'.. error mode.
regards,
Rama Reddy
Edited by: ram reddy on Nov 16, 2009 5:37 AM -
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. -
Can we schedule BDC in Background Mode - SM37
Hi Guru,
Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
Regards
Durgesh
Moderator message: background/GUI problems = FAQ, please search before posting.
locked by: Thomas Zloch on Oct 6, 2010 2:14 PMGUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
There are plenty of threads on this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
(To execute a BDC in background use report RSBDCSUB.)
Regards,
Raymond -
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. -
Running a Dynpro-based Report as a Job/in Background mode
Hello,
i've got a report which hasn't got a selection-screen as its startscreen, but a complex dynpro and is based on different start-buttons and not only the "basic" F8/Run-Button. the users still would like to be able to run the report in background mode and as an automated weekly job. moreover they want to use their own configuration/variant for date-fields etc., just like they are used from a selection-screen. is this possible "out of the box" with a dynpro-based report or how can i archive this through my own programming logic?
thanks for your help,
dspHi,
I guess yes, but since you seem to have several processes possible at startup (those buttons), you will have to code a new bit of code at the start of your application. This to choose the correct process... you should have a new statement like
IF sy-batch IS NOT INITIAL.
"Perform batch process
ELSE.
"Perform normal run
ENDIF.
For the variant, I'm not sure to really get the idea... Do the users already use variants with the actual version? or is there no selection screen at all? If not, you should use one and set-up parameters to pre-fill your dynpro fields...
Kr,
Manu -
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.
-
Error in batch session processing in background mode
Hi ,
I am trying to do data transfer using batch session for transaction FD32.
Here the batch session is executing when I am processing the session in foreground.
Whereas in background mode it is failing.
Please check and assit.
Regards
KishoreHi Kishore,
Probably it will be some information or warning message which is coming in the background execution of the session.
That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
Please let us know of any doubts.
Cheers
VJ -
Call transaction KB21N processed by a program in background mode
Hi to all,
I call transaction KB21N using BDCDATA in a custom program. If I process this program in foreground mode all it's OK, but if I process the program in background mode, I have a runtime error with DUMP: RAISE EXCEPTION with exception condition CNTL_ERROR. This program has to be executed in background so a bapi exist to use instead of call transaction or something else?
Thank you very much,
regards
AntonioHI Antonio,
The transaction you are dealing with is an SAP Enjoy transaction and for such transactions it is not recommended to do a BDC. YOu should search for a BAPI for the same as you have already identified. Basically the enjoy transactions uses GUI controls which cannot be handled by BDC.
BAPI_ACC_ACTIVITY_ALLOC_POST may serve your purpose.
Regards,
ravi
Message was edited by:
Ravi Kanth Talagana -
SM35 Re-processing of Incorrect/Error session in Background Mode
Hi all,
I am trying to reprocess a session in SM35 which is in Error status. Here I am a facing an issue, if I reprocess this session in background mode then it says that Batch input data is not available for a screen which is already processed. Ideally it should start from the screen where it threw error in the first run. If I select mode as Foreground or Display error then session is getting processed correctly.
Note:
If the session is in Ready to Process state then processing in background works perfectly fine. Has anyone came across this problem ?
Has anyone tried reprocessing Incorrect Session in background mode ??????
Regrads,
AntonyThanks Sandra,
Indeed I understood the problem. And the problem is that transaction KEBC is always executed correctly & since its processed correctly its removed from the BDC Queue
Here transaction KEBC, sets a Memory Parameter, and transaction KEU2, first checks whether the memory parameter is initial, if found intial it pops-up a screen and makes the user enter it. In my case KEBC always run successfully
As you rightly suggested when session is in error, transaction KEBC is not getting called again to set the memory parameter & its throwing the pop-up from the transaction KEU2 to be entered by the user. ( BDCDATA currently dosent handle this Pop-up).
I could have omitted the KEBC transaction, but handling this pop-up from transaction KEU2 becomes tricky since it will only pop-up if the memory parameter is initial. And unfortunately Pop-up is the first screen in the sequence for transaction for KEU2 & nothing can be done in coding level to call KEU2 with the pop-up in all scenarios(Even when Memmory varaible is set) !
So I am kind of in a dilema, how to handle this? What I am suggesting to the Functional consultant is that let the session be only run in background mode (as it will be always in a new internal session memory variable will always be inital ) & I will record this pop-up in my BDC omitting transaction KEBC.
Do you have anyother solution for this?
Or is there any option to re process even the successfull transacations ? -
Execution of Report with Tabstrips in Background Mode
Hi everyone,
I have used 2 tabstrips in my report. When I choose the second tabstrip, give the related I/P's and then execute in Background mode. The O/P generated is coming for the 1st tabstrip instead of what I'd selected.
How could I execute the report in Background Mode for my Second Tabstrip? Any changes to be done in my Coding?
Please throw some light into this !!!!
Regards,
Ramakrishnan.GHi
You may have attached user command to your tabs in definition -
<b>DATA : TAB1, TAB2.
SELECTION-SCREEN BEGIN OF TABBED BLOCK TB FOR 2 LINES.
SELECTION-SCREEN TAB (15) TABNAME1 USER-COMMAND TAB1 DEFAULT SCREEN 101.
SELECTION-SCREEN TAB (15) TABNAME2 USER-COMMAND TAB3 DEFAULT SCREEN
102.
...</b>
Now in
<b>
INITIALIZATION.
TABNAME1 = 'TAB1'.
TABNAME2 = 'TAB2'.
AT SLECTION-SCREEN.
IF TB-ACTIVETAB = 'TAB1'.
TAB1 = 'X'.
TAB2 = ' '.
ELSE.
TAB1 = ' '.
TAB2 = 'X'.
ENDIF.
START-OF-SELECTION.
IF TAB1 = 'X'.
PERFORM ROUTINE_FOR_TAB1.
ELSE.
PERFORM ROUTINE_FOR_TAB2.
ENDIF.</b>
Cheers.
( Dont forget to reward if answers helped ) -
when the apple review team review our app,they point out that our app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of trajectory replay come ture。in fact, we have added function when the app is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
the blow is the content of the review team email:
We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
"Continued use of GPS running in the background can dramatically decrease battery life."
Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
- complete details of your rejection issue(s)
- screenshots
- steps to reproduce the issue(s)
- symbolicated crash logs - if your issue results in a crash log
If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.
-
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 -
Hi experts as per the requirement my program should run at specific time in background mode, it need to upload the Personal numbers from the input file and for those personal numbers extract the data from multiple tables. but this report shd run in background.
and download the output in the form of flat file.
as i'm running in background mode can't use the F.M GUI_Download and GUI_Upload.
can any one guide me how to solve this issue and why can't we use these F.M. if we can't use then what is the alternative to run in background mode.A program that runs in background mode doesn't have any connection to a frontend. After all, you can schedule it to run at a time where your frontend computer is not running.
In this case you have to load your files on the application server (or a mount point) and use the FMs C13Z_FILE_DOWN(UP)LOAD_ASCII(BINARY)
Regards
Frank
Maybe you are looking for
-
Has anyone experienced the loss of audio when using Apple TV when it has been working fine?
I can't get any audio through my reciever when using Apple TV. It's been working fine until a week ago. I've check my reciever, unplug the TV, and Apple TV as described but nothing. I switch to my Direct TV input and I can get audio when not using AT
-
Hi, Scenario: I have to Count --> Profit Making Deals on KF BOOK_VALUE. KF: BOOK_VALUE Char: UPDATE_TYPE so for Profit Making Deals I have to Restrict BOOK_VALUE on UPDATE_TYPE with DBT_B001(Profit). then I have to Count. what is the procedure and wh
-
I had MacKeeper & Norton & Bitdefender on my iMac - I'm still having problems
I I was told by an Apple technician to never install or even download MacKeeper - too late.- I've removed the software but after reading the comments here, I may have been duped into insuring more probllems into my iMac. I'm running the latest Yosemi
-
Datasource connection in Weblogic server using JDeveloper
Hi, I am using JDeveloper 11g Release 2 (11.1.2.1.0) and WebLogic Server Version: 10.3.5.0. We have a project (ant build.xml) with some Application Modules. In JDeveloper we did the following to create a connection to datasource in the WebLogic: 1- C
-
Error in Looking up Remote JNDI Object
My platform: WebLogic Server 6.0 SP2 My question: Apart from adding a user named "user1" in "remote_server", what else should I need to configure in order to allow my local WebLogic server to lookup an JNDI object in remote WebLogic server? Please he