Processing the session in background
Hi experts,
I have created a BDC program in session method. Once i executed the program, it creates a session name.
Then i select the corresponding session name in SM35 and process it in background.
But i dont want to goto SM35 and process the session explicitely.
How to process the session in background without going to SM35 tcode?
Regards,
Shanthi
Hi shanti,
check with below code... but one point keep remember. when your trying to post a question check SDN and if your not succeeded then only post the question. so it will avoid the duplicate postings on the same topic i am right ?.
Hi,
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.
~lingannna
Similar Messages
-
Hi guyz.
I have two questions regarding this.
1. When we process the session, is that a mandatory that the User id with which the session is created and the authorization user id be the same? Because when Iam trying to run a session from my program using submit statement,those two id's are different, so the session is showing that it is incorrectly processed. But when I go to SM35 and process the session in the foreground, it is processing well. But when I run the session in the background, it is showing incorrectly processed.
2. One user with his user id is processing the session. When he is processing, he is getting a error which is related to some authorization issue. But when the same user id is copied into another test id and run the program then the session is getting processed well.if authorization object is used...then the list of users who have access to this authorization object can process. In sm36 anybody can do...but in a program u have to check whether the userid has authorization or not...
-
Triggering a report after the completion of processing the session
Hi Friends,
I want to know how to trigger an report after the completion of processing the session.
Thanks,
RajHi
SELECTION-SCREEN *
PARAMETERS: p_name LIKE apqi-groupid,
p_datum LIKE apqi-credate,
p_time LIKE apqi-cretime,
p_event LIKE tbtco-eventid.
DATA *
DATA: fl_job_ok TYPE c,
fl_event TYPE c,
cont_sysubrc_6 TYPE i.
DATA: start_time LIKE sy-uzeit,
start_date LIKE sy-datum,
time LIKE sy-uzeit,
delta_time TYPE i.
DATA: apqitab LIKE STANDARD TABLE OF apqi WITH HEADER LINE.
DATA:
btc_running LIKE tbtco-status VALUE 'R',
btc_ready LIKE tbtco-status VALUE 'Y',
btc_scheduled LIKE tbtco-status VALUE 'P',
btc_released LIKE tbtco-status VALUE 'S',
btc_aborted LIKE tbtco-status VALUE 'A',
btc_finished LIKE tbtco-status VALUE 'F',
btc_put_active LIKE tbtco-status VALUE 'Z',
btc_unknown_state LIKE tbtco-status VALUE 'X'.
START-OF-SELECTION *
START-OF-SELECTION.
DATA: a VALUE '1', b.
Controllo esistenza job:
start_time = sy-uzeit.
start_date = sy-datum.
DO.
apqitab-creator = sy-uname.
CALL FUNCTION 'BDC_OBJECT_SELECT'
EXPORTING
name = p_name
datatype = 'BDC'
CLIENT = SY-MANDT
date_from = p_datum
DATE_TO =
time_from = p_time
TIME_TO =
QSTATE = 'F'
session_creator = apqitab-creator
TABLES
apqitab = apqitab
EXCEPTIONS
invalid_datatype = 1
OTHERS = 2.
IF sy-subrc <> 0.
fl_job_ok = space.
ELSE.
LOOP AT apqitab.
CASE apqitab-qstate.
WHEN 'F'. fl_job_ok = 'X'. EXIT.
WHEN 'E'. fl_job_ok = 'E'. EXIT.
WHEN OTHERS. fl_job_ok = space.
ENDCASE.
ENDLOOP.
IF fl_job_ok = 'X' OR fl_job_ok = 'E'.
EXIT.
ENDIF.
ENDIF.
IF start_date <> sy-datum.
start_time = sy-uzeit.
ENDIF.
time = sy-uzeit.
delta_time = time - start_time.
IF delta_time > 1800.
EXIT.
ENDIF.
REFRESH apqitab.
ENDDO.
IF fl_job_ok = 'X'. " Trovato JOB
fl_event = 'X'.
IF fl_event = 'X'.
Attiva evento
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = p_event
EXCEPTIONS
bad_eventid = 1
eventid_does_not_exist = 2
eventid_missing = 3
raise_failed = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
ELSE.
MESSAGE i999(zfagm) WITH p_event 'is successfully actived'(002).
ENDIF.
ELSE.
MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
ENDIF.
ELSE.
IF fl_job_ok = space.
MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
ELSE.
MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
ENDIF.
ENDIF.
Max -
Error While Processing Batch Session in Background Mode
Hi,
I am creating batch input sessions for Transaction FB01. Each Batch Session will have multiple transactions for FB01. My Batch Session is getting created. But when i am trying to process that batch session in backgroung mode ( thru SM35 ), it is failing. The Error says "Transaction Error". And when i process the same session in foreground mode, it is getting successfully processed. Any suggestion in this will be very helpful.Hi,
Check in your program if you have properly handled the OK codes.after every transaction is complete the 'Back' button has to be triggered.That could be the reason it's working in FG mode and not BG mode.Generally,OK Code is '/EBCK'.This should work. -
I have a problem in processing the program in background
Hi,
We have cloned the T'code V_V2 and added some additional functionality and when we try to run the program in background the error is blocking the process
This is because, say example i am tring to process the sales order in production systen through my program ,in that time some one may chage the sales document . in trhis case my program should not blocked it should check the block before processing and then it should proceed.
is there any FM to find the blocked sales order.
Regards,
VijayTry using the FM:
ENQUE_READ2
Passing the follwing values:
GNAME --> VBAK (Sales Order header table)
GARG --> The lock argument
(This will be a combination of client number anb Sales Order No.
Eg: '3001210000054' where the first three digit i,e 300 is the client No
and 1210000054 is the sales order no.)
Regards,
Firoz. -
Process bdc session in Background
Hi all,
I have created a BDC Session, Now i want to process it in Foreground not in Background.
I know taht we use report RSBDCSUB for background processing but don't know the procedure for Forground.
Sugess.
Points will be sured for valuable answers.
Thanks
Sanket sethihi,
if you want it to be done by program then try this which is done through program
TABLES: LFA1,
RF02K.
TYPES: BEGIN OF TY_ITAB,
LIFNR LIKE RF02K-LIFNR,
KTOKK LIKE RF02K-KTOKK,
NAME1 LIKE LFA1-NAME1,
SORTL LIKE LFA1-SORTL,
LAND1 LIKE LFA1-LAND1,
SPRAS LIKE LFA1-SPRAS,
END OF TY_ITAB.
DATA: T_ITAB TYPE TABLE OF TY_ITAB,
W_ITAB TYPE TY_ITAB.
DATA: I_BDCDATA TYPE TABLE OF BDCDATA,
WA_BDCDATA TYPE BDCDATA.
DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
DATA : JOBNAME(32) TYPE C,
JOBCOUNT(8) TYPE C.
DATA: R1 TYPE I VALUE 1,
C1 TYPE I VALUE 1,
R2 TYPE I VALUE 4,
C2 TYPE I VALUE 8,
FILEPATH LIKE RLGRAP-FILENAME.
SELECTION-SCREEN: BEGIN OF BLOCK B1.
PARAMETERS:P_SRCFIL LIKE RLGRAP-FILENAME.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SRCFIL.
PERFORM SELECT_FILE USING P_SRCFIL.
START-OF-SELECTION.
FILEPATH = P_SRCFIL.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = FILEPATH
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 8
I_END_ROW = 4
TABLES
INTERN = ITAB1.
PERFORM ORGANIZE_UPLOADED_DATA.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = 'XK01'
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME.
LOOP AT T_ITAB INTO W_ITAB.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RF02K-LIFNR'
W_ITAB-LIFNR.
PERFORM BDC_FIELD USING 'RF02K-KTOKK'
W_ITAB-KTOKK.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0110'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-SPRAS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LFA1-NAME1'
W_ITAB-NAME1.
PERFORM BDC_FIELD USING 'LFA1-SORTL'
W_ITAB-SORTL.
PERFORM BDC_FIELD USING 'LFA1-LAND1'
W_ITAB-LAND1.
PERFORM BDC_FIELD USING 'LFA1-SPRAS'
W_ITAB-SPRAS.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0120'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0130'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENTR'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0380'.
PERFORM BDC_FIELD USING 'BDC_CURSOR' 'KNVK-NAMEV(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '=ENTR'.
CLEAR W_ITAB.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XK01'
TABLES
DYNPROTAB = I_BDCDATA.
REFRESH I_BDCDATA.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP' .
JOBNAME = 'JOB'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
DELANFREP = ' '
JOBGROUP = ' '
JOBNAME = JOBNAME
IMPORTING
JOBCOUNT = JOBCOUNT
CHANGING
RET =
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'SUCCESSFUL JOB OPENING'.
SUBMIT RSBDCSUB
WITH MAPPE = 'XK01'
WITH VON = SY-DATUM
*WITH Z_VERARB = 'X'
WITH ERR = 'X'
WITH LOGALL = 'X'
AND RETURN EXPORTING LIST TO MEMORY.
ENDIF.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBCOUNT
JOBNAME = JOBNAME
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 I000(0) WITH 'JOBCLOSE'.
ENDIF.
*& Form ORGANIZE_UPLOADED_DATA
text
--> p1 text
<-- p2 text
FORM ORGANIZE_UPLOADED_DATA .
SORT ITAB1 BY ROW COL.
LOOP AT ITAB1.
CASE ITAB1-COL.
WHEN 1.
W_ITAB-LIFNR = ITAB1-VALUE.
WHEN 2.
W_ITAB-KTOKK = ITAB1-VALUE.
WHEN 3.
W_ITAB-NAME1 = ITAB1-VALUE.
WHEN 4.
W_ITAB-SORTL = ITAB1-VALUE.
WHEN 5.
W_ITAB-LAND1 = ITAB1-VALUE.
WHEN 6.
W_ITAB-SPRAS = ITAB1-VALUE.
ENDCASE.
AT END OF ROW.
APPEND W_ITAB TO T_ITAB.
CLEAR W_ITAB.
ENDAT.
ENDLOOP.
ENDFORM. " ORGANIZE_UPLOADED_DATA
*& Form select_file
text
-->P_P_SRCFIL text
FORM SELECT_FILE USING P_SRCFIL.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = P_SRCFIL
ENDFORM. " select_file
*& Form bdc_dynpro
text
-->P_0131 text
-->P_0132 text
FORM BDC_DYNPRO USING PROGRAM LIKE BDCDATA-PROGRAM DYNPRO LIKE BDCDATA-DYNPRO.
CLEAR WA_BDCDATA.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO I_BDCDATA.
ENDFORM. " bdc_dynpro
*& Form bdc_field
text
-->P_0136 text
-->P_0137 text
FORM BDC_FIELD USING FNAM LIKE BDCDATA-FNAM FVAL TYPE ANY .
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO I_BDCDATA.
ENDFORM. " bdc_field
reward if useful,
thanks and regards -
URGENT - HOW TO PROCESS A BDC SESSION (IN BACKGROUND) FROM INSIDE A REPORT
Hi All,
I have a requirement wherein I need to create a BDC session for mass update(from file) of one transaction and check if at all that update has taken place and proceed with the same session for another transaction.
For this I need to know how to process the session in background in a report, so that if the processing is done, the next set of data to update a different transaction can happen.
All inputs are welcome and highly valuable to me.
If someone is unable to intrepret this, I'll detail it again.
Thanks in advance,
Vaishnavi VaradarajanHi,
1.Use RSBDCDRU is an exe pg.With this u can download the logs into local file.
2.It will create the spool request .from there u can download or print.
OtherWise:
Use the code from the link below. U need to provide the session queue id as input and it will download the log to an excel file. U can change it to ur reqmt.
Re: BDC
regards
kiran -
I want to covert the BDC to background process
Hi,
I want to change the BDC program to Background processing . I am posting the code below, can you change it.
FUNCTION YFIIN_CRC_SET_FLG1.
""Local Interface:
*" IMPORTING
*" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
*" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
*" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
*" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
*" VALUE(USER) LIKE APQI-USERID OPTIONAL
*" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
*" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
*" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
*" VALUE(QMNUM_001) LIKE VIQMEL-QMNUM
*" EXPORTING
*" VALUE(SUBRC) LIKE SYST-SUBRC
*" TABLES
*" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
subrc = 0.
perform bdc_nodata using NODATA.
perform open_group using GROUP USER KEEP HOLDDATE CTU.
perform bdc_dynpro using 'SAPLIQS0' '0200'.
perform bdc_field using 'BDC_CURSOR'
'RIWO00-QMNUM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RIWO00-QMNUM'
QMNUM_001.
perform bdc_dynpro using 'SAPLIQS0' '7200'.
perform bdc_field using 'BDC_OKCODE'
'=GNOK'.
perform bdc_field using 'BDC_CURSOR'
'VIQMEL-QMNUM'.
perform bdc_dynpro using 'SAPLIQS0' '7200'.
perform bdc_field using 'BDC_OKCODE'
'=BUCH'.
perform bdc_field using 'BDC_CURSOR'
'VIQMEL-QMNUM'.
perform bdc_transaction tables messtab
using 'IQS2'
CTU
MODE
UPDATE.
if sy-subrc <> 0.
subrc = sy-subrc.
exit.
endif.
perform close_group using CTU.
ENDFUNCTION.
==================================
***INCLUDE BDCRECXY
Batchinputdata of single transaction
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
Nodata-Character
DATA: NODATA_CHARACTER VALUE '/'.
create batchinput session *
FORM OPEN_GROUP
USING P_GROUP LIKE APQI-GROUPID
P_USER LIKE APQI-USERID
P_KEEP LIKE APQI-QERASE
P_HOLDDATE LIKE APQI-STARTDATE
P_CTU LIKE APQI-PUTACTIVE.
IF P_CTU <> 'X'.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING CLIENT = SY-MANDT
GROUP = P_GROUP
USER = P_USER
KEEP = P_KEEP
HOLDDATE = P_HOLDDATE.
ENDIF.
ENDFORM.
end batchinput session *
FORM CLOSE_GROUP USING P_CTU LIKE APQI-PUTACTIVE.
IF P_CTU <> 'X'.
close batchinput group
CALL FUNCTION 'BDC_CLOSE_GROUP'.
ENDIF.
ENDFORM.
Start new transaction according to parameters *
FORM BDC_TRANSACTION TABLES P_MESSTAB
USING P_TCODE
P_CTU
P_MODE
P_UPDATE.
DATA: L_SUBRC LIKE SY-SUBRC.
IF P_CTU <> 'X'.
CALL FUNCTION 'BDC_INSERT'
EXPORTING TCODE = P_TCODE
TABLES DYNPROTAB = BDCDATA
EXCEPTIONS OTHERS = 1.
ELSE.
CALL TRANSACTION P_TCODE USING BDCDATA
MODE P_MODE
UPDATE P_UPDATE
MESSAGES INTO P_MESSTAB.
ENDIF.
L_SUBRC = SY-SUBRC.
REFRESH BDCDATA.
SY-SUBRC = L_SUBRC.
ENDFORM.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF fval <> NODATA_CHARACTER.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Insert field *
FORM BDC_NODATA USING P_NODATA.
NODATA_CHARACTER = P_NODATA.
ENDFORM.Hi..
Incase of Session method you have to Schedule the Program RSBDCSUB in backgroud using the Tcode SM36.
This program Takes the Session Name as input and Process the Session in background.
Note: Create a variant with the Session name for this program
<b>Reward if Helpful</b> -
BACK GROUND SCHEDULING OF THE SESSION METHOD
Dear experts,
i am using session method for data transfer,i need update the data periodically.
how can i do this?
i am following this method, in sm35i am processing the session in background---thruough this data is updfating at atime.
but i wnat to schedule it...can any one give stpe by step guidse to make this possible ,,,for session method, i know t.codes sm6 and sm...but how to use them?
guide me ........thanks in advanceHi,
use the following code.
submit rsbdcsub
with mappe eq 'ssession name'
exporting list to memeory and return.
reward if helpful
Rgds
Umakanth -
Background scheduling the sessions
hi,
i want to schedule the session in background without going to sm35. i want to schedule it using rsbdcsub please give some idea or some codehi,
After calling FM BDC_CLOSE_GROUP for closing the session, process that session without going to SM35 with submit instruction.
here p_v_group is session name, which have been passed in FM BDC_OPEN_GROUP
*SUBMIT rsbdcsub
WITH mappe EQ p_v_group
WITH logall EQ c_x
AND RETURN.*
Reward points if it is helpful.
Regards,
Srilatha -
Warning while processing the BDC session for ME11 - create info records
Hi,
I have succesfully created a BDC recording(SHDB) for ME11 transaction. but when I am trying to process the session(SM35) with file having correct data, I an getting a warning message" Please check Unit of measure and conversion factor" eventhogh correct values are being populated in the respective fields. Status of the run is shown as INCORRECT.
Any pointers on avoiding this warning message would be appreciated.
PS: I have tried putting an extra OK CODE with enter button, dint work....try to use transaction SXDA_TOOLS and Object type: BUS3003
Here you will find the standard batch-input program RM06IBI0 -
The session could not be processed in lsmw
Hi Experts,
I am uploading data using lsmw following direct input method.But in this i got an error when processing the session.It shows the status message like 'the required session could not be processed'.It also read and convert the input data file successfully.
Can anyone pl help me what the mistake i have done.
Thanks in advance!!!Adobe Lightroom - Find moved or missing files and folders
-
Hi All,
My program is generating a session . Now i need to process this session in background without going to the SM35
Is there any other alternative to do so using the FMs or by settings any options in the SUMBIT statement .
Thank you,
Regards.
Padmasri.Yes Option is there byusing SPOOL Generation.
Create a new program and Copy same Internal table into it.
Use SUBMIT for that program in your main program as follows:
SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT
SPOOL DYNPRO
SPOOL PARAMETERS MSTR_PRINT_PARMS
AND RETURN .
Use FM as follows to sent spool for execution in background.
EXPORT T_MAIN = T_MAIN TO MEMORY ID 'T.Code'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
AUTHORITY = SPACE
COPIES = '1'
COVER_PAGE = SPACE
DATA_SET = SPACE
DEPARTMENT = SPACE
DESTINATION = 'LOCL'
EXPIRATION = '1'
IMMEDIATELY = SPACE
IN_ARCHIVE_PARAMETERS = IN_ARC_PARAM
IN_PARAMETERS = IN_PARAM
LAYOUT = SPACE
MODE = SPACE
NEW_LIST_ID = 'X'
NO_DIALOG = 'X'
USER = SY-UNAME
IMPORTING
OUT_PARAMETERS = MSTR_PRINT_PARMS
VALID = MC_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
Regds,
Anil -
How can we execute the session in error mode through SE38 program
Dear Experts,
How can we execute the BDC session in error mode through se38 programme....
we can execute the session in the below 2 ways
1) Through SM35 we can process the session manually in foreground/Error mode or Background also.
2) through RSBDCSUB (standared Program) we can process the session in back ground.
But i want to process the session in foreground or Error mode..Do we have any standared program for process the session in foreground or error mode.
Please suggest.
Regards,
Bussa.Hi Bussa,
Please maintain the mode as 'E' . If there is any errors it will stop else it will run.
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-WhySHDBdidn%27trecordsomescreens%3F
Regards,
madhu. -
How to process a Session automatically ?
Hi everybody,
I am new to ABAP. Pls clear my doubt.
I had done a BDC using a session method. Every time should i need to goto SM35 & process the session? Or is there any other method to process the session automatically? If yes how. Pls give in detail. Can we shedule the session?
Thanks in advance.
Vijay.HI
GOOD
YOU CAN USE RSBDCSUB TO SCHEDULE YOUR BDC PROGRAM -
RSBDCSUB Release batch-input sessions automatically
http://www.auditnet.org/docs/SAPR3AuditingGuidelines.pdf
http://www.sappoint.com/abap/files.pdf
http://www.anao.gov.au/WebSite.nsf/Publications/4A256AE90015F69B4A25691C000B27FE/$file/ORIGINAL_handbook.pdf
THANKS
MRUTYUN
Maybe you are looking for
-
I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change t
-
Ipod Problems: Folder Icon
i got my 30gb 5G ipod for Christmas and i have had a few small problems, But this is the worst, When i connect my Ipod to my Windows PC it resets itself, Shows the folder icon and then turns off. Ive trawled the support with no avail.The Ipod Updater
-
Hello togehter, my colleagues from CZ have problems with the standard report RPLHZPT2. I already created a OSS but I didn't know for what this report is used! Can someone explain me for which process this report is used in CZ? THX Thomas
-
Servlet config cannot be resolved
Hi, I have used: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/ to change my program to unicode. When I put this section into my servlet: ServletConfig config = getServletConfig(); encoding = config.getInitParameter("PARAMETER_ENCO
-
Safari won't close down, all windows remain open
mac book won't shut down because Safari won't close