CALL transaction in back ground
Hi
i am writeing the bdc program for iw32 transaction using call transaction
iw32 for updating the status of a order
it is working good in all screesns mode and error mode
but it is not updating the status of a order in no screens mode
any answers
In all screens mode you should be doing nothing but pressing enter until the end of processing.
But as you had said you check something to set the status, if I ain't wrong I think you should go through your code so that even the status is set when the transaction is run and you need to only keep pressing enter to go through all the screens.
Check where in all screens mode where user interaction is being done by you and try modifing the code. Try putting in code for the status selection. Then it will not give any error and will go through without any user-interaction.
Hope what I had to say is useful to you.
3Cheers,
Raga Suman.
Similar Messages
-
Call transaction inside of call function in back ground task
Hi,
Is it possible to use call transaction statemement inside of call function in back ground task. I am getting error if i use the same. Any help will be highly appreciated.Hi,
I don't think this is possible. The call goes into error in SM58, what you can try to do is after the function is called, you can submit the program RSARFCEX by setting the user name as sy-uname and other parameters as * and set all the checkboxes.
regards,
Advait -
How to Run a Custom Transaction in Back Ground after give the Input?
Hi,
I have problem that how to execute a Custom Transaction in Back Ground after end user will save a variant for input. In my Transaction there is no menu to save a Variant & to Execute in Back Ground.
Please suggest me how to do this in my Custom Transaction.Hi Ramana,
what kind of report you want to execute? the report is Executable Report or Modulepool prog. ??
if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
Why you want to run it in background with transaction code if you have this options?
Regards,
Sunil kairam. -
Field missing when running the KSB1 transaction in Back ground
Hi,
With the help of Zreport am executing the KSB1 transaction in back ground and after execution of KSb1 am retrieving the report output and am displaying.
Issue is when am running Zreport in back ground the the output of KSB1 is giving the output by hiding the last column, where as am running Zreport in foreground the output of KSB1 giving the output with out hiding last field. Please guide me why the variance is coming in output when am running the Zreport in background........ and please advise me to rectify the problem....In background it cant be displayed if report width is more than 255 chars. Check line size.
Satya -
Call function inside of call function in back ground task
Hi Friends,
I am calling one function in back ground task. that is executing after save of the transaction. And inside of that transaction i am calling one more function but in debugging the cursor is not going inside of that function. What could be the reason. Please help me.
Thanks a lot in advance.Hi,
Inside of the first function any way i will come after save
using update task debugging. Once it reach inside of firt function and if i press f5 then second function is coming and if i press f5 there then it is coming out of the function and it is not going inside. The second function is called directly not in back ground.
Thanks.. -
Execute a transaction in back ground
Hi,
How can i execute an user defined transaction in background
This transaction does not have an selection screen.hi rajitha,
try this code
hi
use this table
btcevtjob
and a sample code is also there
Try this
Execute the below program
tables: btcevtjob.
parameters: job like btcevtjob-jobname.
data: count like btcevtjob-jobcount.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
DELANFREP = ' '
JOBGROUP = ' '
jobname = job
SDLSTRTDT = NO_DATE
SDLSTRTTM = NO_TIME
JOBCLASS = JOBCLASS
IMPORTING
JOBCOUNT = COUNT
CHANGING
RET = RET
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ sy-subrc.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
ARCPARAMS = ARCPARAMS
authcknam = authcknam
COMMANDNAME = ' '
OPERATINGSYSTEM = ' '
EXTPGM_NAME = ' '
EXTPGM_PARAM = ' '
EXTPGM_SET_TRACE_ON = ' '
EXTPGM_STDERR_IN_JOBLOG = 'X'
EXTPGM_STDOUT_IN_JOBLOG = 'X'
EXTPGM_SYSTEM = ' '
EXTPGM_RFCDEST = ' '
EXTPGM_WAIT_FOR_TERMINATION = 'X'
jobcount = count
jobname = job
LANGUAGE = SY-LANGU
PRIPARAMS = ' '
REPORT = ' '
VARIANT = ' '
IMPORTING
STEP_NUMBER = STEP_NUMBER
EXCEPTIONS
BAD_PRIPARAMS = 1
BAD_XPGFLAGS = 2
INVALID_JOBDATA = 3
JOBNAME_MISSING = 4
JOB_NOTEX = 5
JOB_SUBMIT_FAILED = 6
LOCK_FAILED = 7
PROGRAM_MISSING = 8
PROG_ABAP_AND_EXTPG_SET = 9
OTHERS = 10
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ sy-subrc.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
AT_OPMODE = ' '
AT_OPMODE_PERIODIC = ' '
CALENDAR_ID = ' '
EVENT_ID = ' '
EVENT_PARAM = ' '
EVENT_PERIODIC = ' '
jobcount = count
jobname = job
LASTSTRTDT = NO_DATE
LASTSTRTTM = NO_TIME
PRDDAYS = 0
PRDHOURS = 0
PRDMINS = 0
PRDMONTHS = 0
PRDWEEKS = 0
PREDJOB_CHECKSTAT = ' '
PRED_JOBCOUNT = ' '
PRED_JOBNAME = ' '
SDLSTRTDT = NO_DATE
SDLSTRTTM = NO_TIME
STARTDATE_RESTRICTION = BTC_PROCESS_ALWAYS
STRTIMMED = ' '
TARGETSYSTEM = ' '
START_ON_WORKDAY_NOT_BEFORE = SY-DATUM
START_ON_WORKDAY_NR = 0
WORKDAY_COUNT_DIRECTION = 0
RECIPIENT_OBJ = RECIPIENT_OBJ
TARGETSERVER = ' '
DONT_RELEASE = ' '
TARGETGROUP = ' '
DIRECT_START = DIRECT_START
IMPORTING
JOB_WAS_RELEASED = JOB_WAS_RELEASED
CHANGING
RET = RET
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ sy-subrc.
note: pre-requiste for doing this is execute the report and save the variant for the report which you need to execute in bg.
after doing this program execute it give a jobname for this.
then provide the report , variant and authcknam in job_submit FM.
*go to sm37
*enable the option scheduled
*and then enter the period for which u need to execute ur program in background providing necessary details such as jobname , time and date etc
With regards
S.Janagar -
What is the diffarence between call function in back ground task and call function in update task? Can we do the same functionality by using any one of the above function?
Calling a FM in background task will call FM in background work process as tRFC while calling in update task will call the FM in update work process. The update task will be executed after COMMIT WORK statement. The tRFC FM are will be no. of times (BASIS Settings) till the process executes correctly.
-
Back ground execution of t.code with variant !!
Hi Team,
I need excute the Z transaction code ( which is assigned to to stnadard program).
How can i execute this transaction in back ground with the given specified variant. (program should be executed for every 5 mts).
Regards
Badari TalankiHi Badari,
when you set the Background Job via <b>SM36</b>, you can mention the Variant. and set the time , so that the report will run for every 5 minutes with the mentioned variant. Check it.
Regards
Vijay -
BDC-Process session in back ground
HI to all,
Is there any FM to call session in back ground
i am using RSBDCSUB apart form this if there is any FM please tell me.
regarda
raadhaHi,
Use this sample code
DATA: RUNTIME TYPE I. "Runtime
DATA: GROUP LIKE APQI-GROUPID, " Mappenname
BDCIMMED LIKE RFIPI-BDCIMMED, " nur BDC: sof. Abspielen
BDCSTRTDT LIKE TBTCJOB-SDLSTRTDT, "nur BDC: Startdatum
BDCSTRTTM LIKE TBTCJOB-SDLSTRTTM. "nur BDC: Startzeit
form mappe_abspielen_im_batch.
GET RUN TIME FIELD RUNTIME.
JOBNAME = 'RFEBFD00-FIEB'.
JOBNAME+14 = RUNTIME.
eak-point.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
JOBGROUP = 'FIEB'
IMPORTING
JOBCOUNT = JOBCOUNT
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03.
IF SY-SUBRC NE 0.
MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.
ENDIF.
SUBMIT RSBDCSUB AND RETURN
USER SY-UNAME
VIA JOB JOBNAME NUMBER JOBCOUNT
with mappe = group
WITH MAPPE = BI-NAME
WITH VON = SY-DATUM
WITH BIS = SY-DATUM
WITH Z_VERARB = 'X'.
BDCSTRTDT = SY-DATUM.
BDCSTRTDT = SPACE.
BDCSTRTTM = SPACE.
BDCIMMED = 'X'.
bdcstrttm = runtime.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBNAME = JOBNAME
JOBCOUNT = JOBCOUNT
STRTIMMED = BDCIMMED
SDLSTRTDT = BDCSTRTDT
SDLSTRTTM = BDCSTRTTM
EXCEPTIONS
CANT_START_IMMEDIATE = 01
JOBNAME_MISSING = 02
JOB_CLOSE_FAILED = 03
JOB_NOSTEPS = 04
JOB_NOTEX = 05
LOCK_FAILED = 06.
IF SY-SUBRC NE 0.
MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.
ENDIF.
CLEAR BDCIMMED.
BDCSTRTDT = SPACE.
BDCSTRTTM = SPACE.
Regards
Krishna -
Call transaction method in back ground Processing?
HI Friends,
I am working on interface program to post documents of 309 movement type into MIGO transaction .
my program is executing succesfully when i am processing in fore ground.
but when i am processing in background it is giving error .
can any help in this requirement?
*Solution rewarded*My Program will do transfer Posting from material to material.
when i am executing the program in back ground mode The Program statement call transaction fails with the following error
CALL_TRANSACTION MIGO_TR Return code = 1,001 RECORD: 0
S
Field GODYNPRO-ACTION . is not an input field
S
Field GODYNPRO-REFDOC . is not an input field
S
Field GOITEM-UMMAKTX . is not an input field
S
similar statement when executing in foreground it is posting document succesfully.
kindly revert back for any other information. -
Error in Back ground job schedule for call transaction
Hi Experts ,
I have a Program which as Three BDC in it . 1 - to create contact person , 2- customer 3-sales order
Using call transaction if i run with all screens and no screens it's running fine..
if i schedule it background job
conact and customer works fine but sales order not works ..
can anyone give me the solution ?Hi Phani and Pavan ,
It works Fine for Back ground anf fore ground i.e ( N and A ) sales order is created here .
but Sales order not created when i schedule it in back ground as
Program - execute in back ground .
sales not created when i schedule it in background job only using SM36 or Program - execute in back ground ?
Edited by: Pradeep Annaiah on Jan 13, 2009 5:29 AM -
Uploading XL file using call Transaction and running in back ground
Hi all,
I am updating the T-code VA01 using call TRansaction method ....
i am uploading the file is XL file for that i m using the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
But if execute my program in the back ground This FM is giving Dump because it can not Execute in Back GRound...
Plz let me know any FM to upload data from Excel file Both from foreground and back ground....
Plz let me know ASAP..
Thanks,
SureshHI...,,
When u run any program in Background, it will not have any contacts with the presentation server.... You cannot upload a presentation server file..
But u can use the Application server file...
SO first store this excel file's data in Application server using the transaction CG3Z and then use the Open data set and read dataset to upload the application server file !!!
reward all helpful answers !!
regards,
sai ramesh -
Back ground ( Call Transaction) while running locking Tcode
When iam running Call Transaction in background , suppose other user open ( it is giving popup like another user locked) transaction at that time i am getting created records sucessfully even it is not running Call trransaction can any body help me out.
HI,
when ever you are program is running that transaction for a specific order and other user tries to access this transaction and opens the same order it will give this error.
Thanks
Mahesh -
Calling Transaction code & returning back to calling program
Hi,
I have requirement as below
Write the report to call the transaction code say for example different tcode (1000 in number) need to be executed and after every tcode execution it should return back to calling report. I tried using "CALL TRANSACTION 'ABC' AND SKIP FIRST SCREEN" it does execute the tcode but need the user interaction to return back to report, where here i want do this programatically.
can someone please help me & what is possible ways this can be do able.
Thanks,
John.There are two method of BDC
1- Call transaction method
2- BDC Session method
In this case you can use call tansaction method.
Syntax- call tansaction abc using gt_bdcdata.
Do the recording with t-code SHDB for that particular transaction and after the necessary modification use it in your program.
Please check f1 help of call transaction for details. -
Call transaction MMBE from another program and press Back button
Hello,
I have program that is used as a 'launch pad' for some of our heavily used transactions. When I call the main 'launch pad' program, the user will select a button and a Call Transaction MMBE is initiated (USING the first screen). The user selects a material for display and presses the execute button (F8). The material overview is displayed correctly. When the user presses the Back button (F12), transaction returns all the way back to the first called program and not to the first screen for transaction MMBE as expected.
Does anyone know how I can change the screen flow and go back to the fist screen of MMBE and not the screen of the first called program?
Regards,
RCRod,
In your case i think it is not possible as it is standard functionality by SAP.
Try work around, may be modification to the program will work.
Regards,
Amey
Maybe you are looking for
-
I have a quickbooks back-up file from my CPA in my email which I need to save to a folder in mydocuments which Quickbooks can then open. Firefox saves it to a downloads folder and I never get the option to save it somewhere else on my computer. I can
-
Partition by virtual column, select - sinlgle partition on two columns
Pls, I have a question - we have table with COLUMNs: -- TIME_KEY - julian - date value (to_char(sysdate, 'J')) - we would like to have virtual date value: -- TIME_ID - virtual column with interval partitioning (great!) CREATE TABLE lsd_cntr_pokus ( t
-
What happens when the ATV drive is full?
I'm considering purchasing either the 40GB or 120GB ATV and have a question about storage space. Will I be able to copy/sync to my computer, content purchased or rented on the Apple TV? I store my iTunes library on an external Firewire drive. TIA
-
Hi when I run my forms the scroll bar on the tab canvas is disabled. How can enable it?
-
TS2446 i can't update my application from my account
i can't update my applicaton and can't download any app because my apple id show me message ( Your Apple ID has been disabled ) , i change my password but can't resolved thanx <Email Edited by Host>