Background Execution of Smartforms
Hi Frineds,
Here is a requirement to execute a smartforms Layout in background. Can you please provide the detail step for execution.
Rgds, Krishan Raheja
Hi,
Please post your thread in right forum to get fast responce.
There is no difference. Print preview is equivalent to foreground, actual print/fax is equivalent to background where a spool is generated. I am assuming that you are not directly executing the smartform FM.
Please be clear on the question if you are not ok with the above answer.
Thanks,
Vinod.
Similar Messages
-
Hi guys,
does anybody know what's going on with the bug described in the subject? The original notice was:
3632886: [Background Execution][Mobile] Error 3768 is coming when executeInBackground is set to false with notification center pulled down, incoming call, double tab on Home button..
I cannot find anything about a solution or something else. I cannot find it in the Adobe Bug database as well. I think the bug still exists in the latest AIR 3.9 SDK but, I'm not pretty sure. Maybe someone knows a workaround?
Thanks in advanceHi Nimit,
thank you for your fast reply. I tested an empty app on iOS 7.0.2, compiled with the Air 3.9 release from 10.12.13 (yesterday). The app restarts, when I switch between Safari and the app. Is this a feature or a bug? -
OBJECTS_OBJREF_NOT_ASSIGNED error in a background execution
Hi,
I have a problem at the background execution of my program. I have this error : "OBJECTS_OBJREF_NOT_ASSIGNED"
Information on where terminated
Termination occurred in the ABAP program "SAPLCNDP" - in
"DP_CONTROL_ASSIGN_TABLE".
The main program was "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ".
In the source code you have the termination point in line 1
of the (Include) program "LCNDPU10".
The program "SAPLCNDP" was started as a background job.
Job Name....... "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD"
Job Initiator.. "COULOUMIESXA"
Job Number..... 15580300
Source Code Extract
Line SourceCde
>>>>> FUNCTION DP_CONTROL_ASSIGN_TABLE.
2 *"----
3 ""Lokale Schnittstelle:
4 *" IMPORTING
5 *" REFERENCE(H_DP) TYPE CNTL_HANDLE OPTIONAL
6 *" REFERENCE(H_CNTL) TYPE CNTL_HANDLE
7 *" VALUE(TABNAME) LIKE X030L-TABNAME OPTIONAL
8 *" VALUE(MEDIUM) TYPE C OPTIONAL
9 *" VALUE(PROPERTYNAME) TYPE C
10 *" VALUE(DATE) LIKE SY-DATUM OPTIONAL
11 *" VALUE(TIME) LIKE SY-UZEIT OPTIONAL
12 *" VALUE(DESCRIPTION) TYPE C OPTIONAL
13 *" TABLES
14 *" DATA
15 *" TABFIELDS STRUCTURE RFC_FIELDS OPTIONAL
16 *" COLUMNS_TO_STRETCH TYPE TABLE_OF_STRINGS OPTIONAL
17 *" EXCEPTIONS
18 *" DP_ERROR_CREATE
19 *" DP_ERROR_SEND_DATA
20 *" DP_ERROR_ASSIGN
Active Calls/Events
No. Ty. Program Include Line
Name
6 FUNCTION SAPLCNDP LCNDPU10 1
DP_CONTROL_ASSIGN_TABLE
5 METHOD CL_GUI_FRONTEND_SERVICES======CP CL_GUI_FRONTEND_SERVICES======CM007 63
CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
4 FORM ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_INTERFACE 141
DIRECTORY_LIST_FILES
3 FORM ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD 165
%_SEL_SCREEN
2 MODULE (PAI) ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD 805
%_END_OF_SCREEN
1 EVENT ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD <SYSINI> 20
SYSTEM-EXIT
Thanks for help.How do I retrieve a file list in background without use directory_file_list method?? I try this code of the RSWATCH0 program:
CALL 'C_DIR_READ_START' ID 'DIR' FIELD a_dir_name
ID 'FILE' FIELD a_generic_name
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
DO.
CLEAR file.
CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD file-type
ID 'NAME' FIELD file-name
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.
ENDDO.
But, I retrieve files of SAP server random... I don't retrieve my files! -
Way to get alv grid varients info during background execution
I have used the function module 'REUSE_ALV_GRID_LAYOUT_INFO_GET' to get info alv grid varients i.e already created layout info. Is there any other way of getting this info as this is not giving the exact layout during background execution.
Hi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
exceptions
program_error = 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.
endform. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
exceptions
program_error = 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.
endform. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek -
Background graphics in smartform
How to include background graphics in smartform in a particular cell on conditional basis
Hi,
You can set the background picture at page node level not at window or cell node level
double click page node> background picture tab> set the graphic name.
regards
padma -
Dynamic change in Background Picture for Smartform
Hi,
I need to keep a background Image in smartform only in specific condition.
I have done like this :
I have taken one variable in the intialization and I am filling with the image name for a specific condition.
This variable , I am giving it in the Background Picture Tab.
But I am getting run time error as Graphic cannot be displayed.
Here I am giving the code In the initialization:
Here p_obnam is my variable of type TDOBNAME
SAMPLE is my image name which is in SE78
CASE p_biltyp.
WHEN 'ZRE' OR
'G2'.
p_obnam = space.
WHEN 'ZF5'.
p_obnam = 'SAMPLE'.
WHEN OTHERS.
p_obnam = 'SAMPLE'.
ENDCASE.
Please let me know...how can I do this.
Regards
SandeepHi,
In the Initialization tab specify the condition..
ex:
if you want to print the symbol of the currency in the background according to the currency..
if w_currency = 'USD'. "---->Data received
w_name = 'DOLLAR' "--->Image in SE78
elseif w_currency = 'INR'.
w_name = 'RUPEE'. "--->Image in SE78
endif.
now you mention w_name as &w_name& in the background picture of the smartform.
This will print the symbol according to the currency you received from the driver program or in the smartform itself.
Thanks & Regards
Sarves -
Hi,
i want to know the procedure for background execution for reports with example ,
Thank u,
Regards,
Sivaram.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Apr 20, 2011 2:26 PMHello Ambichan,
The normal Execute Button has the Function Code <b>ONLI</b>. you will just have to set this to <b>SJOB</b> in the PAI to make the same button trigger the Background job.
Look at this code...
tables sscrfields.
parameters p_test.
at selection-screen.
if sscrfields-ucomm = 'ONLI'.
sscrfields-ucomm = 'SJOB'.
endif.
start-of-selection.
write p_test.
Get back if you have any doubts.
Regards,
Anand Mandalika. -
Dynamic Actions: background execution
Hi
here below the Dynamic Action that I have customized:
0000 04 310 P T001P-MOLGA='15'
0000 04 315 P PSPAR-MASSN='Z1'/X
0000 04 316 P PSPAR-MASSN='Z2'/X
0000 04 317 P PSPAR-MASSN='Z3'/X
0000 04 318 P PSPAR-MASSN='Z7'/X
0000 04 319 P PSPAR-MASSN='ZC'/X
0000 04 320 I INS,0016,,,(P0000-BEGDA),(P0000-ENDDA)/D
0000 04 325 W P0016-EINDT=P0000-BEGDA
The background execution works correctly for Action Types Z3 and Z7 which are not linked to Recruitment.
The execution of Dynamic Action DOESN'T WORK in the background mode but it works in foreground (even if in the dynamic action I've wrote /D) for Z1-Z2-ZC: these actions are linked to Recruitment.
Can you help me?
Paola
Edited by: Pizeta on Mar 2, 2012 10:59 AMAll the Actions are for Personnel Administration.
Actions:
Z1-Z2-ZC in T529A-FUNCH are customized like "7 Initial hiring and transfer of data from Recruitment" --> the dynamic action works but in foreground
Z3-Z7 in T529A-FUNCH are customized like "0 Other actions" or "1 Initial hiring" --> the dynamic action works correctly in the background
P. -
Wait in Background execution Co
Hi,
Can a background execution co put to wait?
My requirement is to put an action on wait i.e. it should not be completed {should be in background}
I tried using background execution co.
on satisfying the condition I am setting the result state and completing the step by "executionContext.processingComplete();".
If condition is not satisfied,neither any result state is set nor this step is completed. It was found that background execution gets completed without any result state.
How to avoid this.
How to implement so that it should wait whenever condition is not satisfied?
Web dynpro CO completes on calling processingcomplete().
If we do not call this method it stays there.
Regards,
Pratik
Edited by: Pratik Khandelwal on Jul 16, 2009 9:30 AM
Edited by: Pratik Khandelwal on Jul 16, 2009 9:35 AMHi Ankur,
I have already tried this way.
As we are using background execution callable object, it gets executed automatically.
Automatically means it gets into Queue and server will take care of it's execution I think.
According to my understanding, all the background activities is filled in Queue and from there it gets executed after certain period of time.
I used a loop as described above. Due to continuous loop, the background activities of other processes stops or hanged.
The background activity is on continuous check (loop). So, in a Queue it got stuck in processing of this activity.
If I summarize, Due to continuous loop background execution is not getting completed. this is affecting other background activities also.
Correct me if I am wrong.
Or do I have to do something more.
Regards,
Pratik Khandelwal -
Hi,
We really appreciate the new execute in background function in direct mode, but we have gotten some unforeseen problems with it.
Many things that didn't dispatch events in the background like Loader does that now, and in that event chain we have some OpenGL calls.
We will fix that issue, but its a massive job and we need to submit a new version ASAP.
Is it possible to disable background execution so it behaves like Air 3.8 ?
-SimonHi could you please share a few more details -
1. What AIR version are you using. Could you please try the latest beta available here - http://labs.adobe.com/downloads/air.html
2. Backround execution is 'off' by default for iOS, unless you opt-in using UIBackgroundModes or nativeApplication.executeInBackground. Did you use either of these? If yes, removing them would disable all background execution for iOS apps.
Hope that helps. -
ALV GRID with two Containers Background Execution
Hi Friends,
I have to display two ALV GRIDS on two Container one below another in one screen.
I tried with 'DOCKING CONTAINER' - it works fine in foreground and not in BACKGROUND exection.
In background execution (F9) only one grid is getting displayed.
Please suggent whether I can go for CUSTOM CONTAINER or SPLITTER or some other way.
But I should use GRID DISPLAY and it should work in BACKGROUND EXECUTION also.
Regards,
VijiHi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
exceptions
program_error = 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.
endform. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
exceptions
program_error = 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.
endform. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek -
Implementation callable object for background execution
Hi experts,
I am Using NWDS 7.0
while i am trying to create background execution callable object , i didnt find the DC :caf/eu/gp/api.
so i followed the pdf "How to Get NW04s SP7 Guided Procedure APIs for Local Development" and added the required DC's.
The problem is that while i am selecting the dc "caf/eu/gp/api" the following message is displaying
"illegal dependency: Acess list does not allow use of sap.com/caf/eu/gp/api for sap.com/bckg_co(MyComponents
Is there any other way to add DC's ?
pls help me out
Thanks in advance
kiranHi Kiran,
1. go to development Infrastructure --> select ur Software component --> in the component properties Tab > select dependencies Tab->click on Add Button.
2. in the pop up window , select the Software component (Gp - Core) which has the caf/eu/gp/api component and give the dependency details and click Finish.
3. Ensure that Unrestricted acesss is granted for this component. this u can check, by selecting caf/eu/gp/api and select permissions tab in component properties.
hope it helps,
Thanks and Regards -
GP Mail: Unexpected internal exception during background execution
Hi,
I have designed a process in Guided Procedures which send mails when Approved or Rejected. I get an exception for users who have yahoo or gmail IDs.
Technical Exception:
Unexpected internal exception during background execution: The message contains non-trusted or invalid receivers
Is there any setting /configuration for sending mails to these.
Pl help
Thanks,
Vasu
Message was edited by:
Vasu MullapudiHi,
are you using the Bounced Mails Framework to manage you mails? If so, one possible explanation is that BMF blocks untrusted messages.
To configure BMF options, go to the Administration workset and edit the list of trusted addresses in BMF.
More info:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/450862f1f014bce10000000a155369/frameset.htm">Administering the BMF</a>
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/4491dafaab0597e10000000a155369/frameset.htm">Managing Trusted Addresses</a>
HTH
Regards, Petja -
RM07DOCS Layout for background execution
Hi,
I'm executing RM07DOCS, in foreground execution, the layout can either be graphical(detailed) or List(overview list of mat docs). In background execution, the only display available is the graphical(detailed list of Matdocs).
Is there a way to setup the program to output in list (overview list of mat docs) view in background execution?
please advise if this can be done and how can it be done.
thanks,
NCDear expert
this link might be help you
http://www.****************/Tutorials/ALV/ALVLayout/Variant.htm
http://help.sap.com/saphelp_470/helpdata/en/6b/2f13439c9f11d194da00a0c930328a/content.htm
Regards
Ajeesh.s -
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS
HI
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMSHi,
goto se78 -> in the menubar click graphic and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
U can import anykind of image which u have stored in ur pc through se78..
Regards,
Priya.
Maybe you are looking for
-
I updated to ios6 and I'm no longer able to connect to Wi-Fi. Wi-Fi is not active in the settings so it is impossible to turn it on or off. Turning phone off and on didn't fix the problem. Before an upgrade everything worked perfectly fine. Is there
-
Where'd the row and column headings go?!
I'm an experienced Excel user trying to learn Numbers....help! So, I have a spreadsheet that I just exported to PDF after which all row and column headings disappeared! No idea why this would be or how to get them back short of closing and re-opening
-
Need Oracle 9.2.0.6 Set up file
hi Gurus, can you guide me where I can download the oracle 9.2.0.6 on Solaris (64 Bit). Thanks, tippu
-
HT4859 how do i retrieve my info from icloud
How do i retrieve my info from iclou
-
Export to PDF - white background
When I print ot export to PDF and I want to add a a background to the file in Acrobat afterwards, this background doens't seem to show... meaning the background is white instead of transparant. Any way to settle this? I need this option for my invoic