Back ground mode in BDC
Hi Experts,
I am using 1 BDC to upload MDQ and NWC data in mm42.
This BDC is working fine in foreground mode but it is not updating in background mode.
Why this is happening and how to resolve it.
rgds
Amit
Hi,
If you are working through presentation server back ground mode doesnot work(gui_upload)
if you are working through application server it will run in background mode(open Dataset)
Hope it may help
Thanks & Regards
Ramakrishna Pathi
Similar Messages
-
Server Proxy in back ground mode in ABAP?
Hi,
I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs - SCMS_BINARY_TO_STRING).
However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
Thank you,
MallikHi Malik,
I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs - SCMS_BINARY_TO_STRING).
If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
Regards. -
BDC is not working in back ground
Hi all,
I have created bdc for F-51 but it is not working in back ground (mod N) and it is not showing any error in error tab , but it is working fine in mod A & E .I tried with mod P and using CTU_PARAMS but no use..
I have tested my recording in SHDB , in SHDB I have assigned session ,
And I executed that session in SM35 .
In SM35 I given processing mod foreground and error mod both are working fine but while trying in Background mod it is showing below error
u201CThe difference is too large for clearingu201D
How can I resolve this problem?Hi Rakhi,
The error which you are getting u201CThe difference is too large for clearingu201D will come if the DEBIT AMT - CREDIT AMT <> 0. So the document which you are trying to select is either not there on the list or it is not getting selected while running in background. If it is not getting selected them the reason may be of you screen resolution, have you selected Default Size while recording ? and have you passed the same to CTU_PARAMS.
Thanks & Regards,
Faheem. -
ERROR IN BDC SESSION BACK GROUND ( USING PP03 T.CODE)
Hi Experts,
When i am executing the session ( pp03 T.Code) ,it is working fine in fore ground as well as in display errors mode. But it is not working in back ground mode.
it is raising the exception ( cntl-system-error).
I used flat file which is in the presentation server . I accessed it by gui_upload Function Module.
<b> I am also getting the error using data sets . After upload the presentation server data into one internal table .I sent it to application server using open data set ( transfer ) , after that i read the application server data using open dataset ( read )
into another internal table ( i declared with same structure of flat file ) .</b>
But this time also it is giving same error ( runtime exception).
Please tell me how can i handle using datasets . Its Very urgentttttttt
Please any body help meee ( If any one worked on this (pp03 T.code) ) .
Send the code or Inform the full detailsss as soon as possibleeee
regards ,
dattu malge.Hi,
Go to the transaction SM35 and select your session and then click the Process Button.
Here you select the Processing Mode as "Background".
It is not possible to execute the same session by more than one user at a same time.
RSBDCSUB is used to automate the processing of Batch input session.
Cheers,
Hakim -
BAPI_DOCUMENT_CREATE2 - Document upload to DMS - Back ground
Hi,
We are trying to uploda a file into DMS(CV01N) from SAP R/3, BAPI 'BAPI_DOCUMENT_CREATE2'. This works fine in foregroung but when we ececute it in background, we get an error saying 'Error while checking in and storing'.
Could anyone please suggest me if we can sucessfully execute in back ground mode?
Thanks,
Ranjith Singh.it is not possible to download in background to a presentation server (your local PC) hence it is not possbile to upload either.
when you submit the program to the background thenthe session is no longer attached to the PC that created it.
Because of this you have to go via the application server.
compare hundred of threads by searcing the ABAP forum with keywords +download +background
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c4c1c -
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. -
Hi Friends ,
I have got a clasical report to display it in back ground , when i look at the output length in back ground the is not exceeding more than 255 charecters ,
My out put length is more than 255 charecters due to which few colums are not displayed in back ground .
Can any body help me displaying the whole out put in back ground mode.
It is urgent ,
Full points awarded
AnilAnil,
I understand your problem. As long as i understand, when you execute a report in background the list goes to the spool output. The maximum width of the spool output is only 255 chars even though the list output can have a maximum of 1023 chars.
NB: Reward points if found useful.
I have heard that you can read those spool output with length > 255 chars... you can try using this system call....
CALL 'C_RSTS_OPEN_READ' ID 'HANDLE' FIELD HAND4
ID 'CLIENT' FIELD HIDE_CLIENT
ID 'NAME' FIELD HIDE_NAME
ID 'PART' FIELD HIDE_PART
ID 'RC' FIELD RSTSRC
ID 'ERRMSG' FIELD ERRMSG.
CALL 'C_RSTS_READ' ID 'HANDLE' FIELD HAND4
ID 'BUFTAB' FIELD BUFTAB-SYS
ID 'MAXIX' FIELD 10000
ID 'RC' FIELD RSTSRC
ID 'ERRMSG' FIELD ERRMSG
I am not sure how to use them actually.
Regards
Balaji -
How to suppress the back-ground execution of a query in design mode
hi guys,
there is a bahaviour of the system, that I'd like to change. So, when we
1. start EXCEL
2. go to the designer mode to create a report
3. first drop an InfoProvider (e query) into a cell,
4. second - pull e.g a filter element into another cell, still being in the design mode.
Just in this moment, the query itself has been already started in the back groud, aiming to fill the cache, I guess.
Does anyone know how to suppress the back-ground execution? I'd like to control, when to start the reports execution.
Thanks in advance.
NevenHello,
There is no way to do that if you are creating thru BEx Analyzer.
Instead use the BEx Analyzer, try to create using directly BEx Query Designer.
In that way, the query will not be executed, until you want to...
Thank you
Edward John -
Hai All,
Can any one tell me how to catch the erros in BDC session method back ground job.
I need to update Sales orders in BDC session, back ground job.
Finally at the end I need to generate a report which contains all the succesfull updates & errors.
I tried this using call transaction with messtab and is working fine.
Please tell me how to do this in Session method.
Thanks & Regards,
Bhaskar.Hi Bhaskar,
In Session method what you need to do is before processing of hte BDC first you need to check all the data. And if any error found then populate it into the internal table. And that internal table you need to display it on the output......
I think this is the solution but I am not to sure........
&********Reward Point if helpful*******& -
Does back ground jobs work process go to private mode or not
Hi Experts,
Can any one tell me
Does back ground jobs work process go to private mode or not
Thanks and Regards
Dan !!Hi Dan,
I do not think background work processes would go into PRIV mode.
the orginal information was remove by Admin because provided by Cut and Paste from SAP Online Help.
you will find it <a href="http://help.sap.com/saphelp_47x200/helpdata/en/7a/caa6f3bfdb11d188b30000e83539c3/frameset.htm">here</a>
The distribution, participation in distributing or otherwise sending of this material is against the law. The material you are requesting is copyrighted material and available ONLY to customers of SAP. If you need such documents from the SAP Service Marketplace then you must have "S" user ID and login yourself to retrieve this material. If you do not have a "S" user ID then you should contact your own internal company groups responsible and request one or request them to retrieve the document for you.
By participating and sending such documents you are at risk for legal action and a removal of your account here on SDN and BPX.
DO NOT send material via email such as this! Further actions will result in officials within your company and your SAP Sales Account being notified and could result in legal action against you as an individual. -
Error in BDC Back Ground Processing
Dear All,
I am facing problem on while executing BDC program. First i am executing in Foreground method there it displaying errors occured,
means it showing full discription or error.
But when i used Back ground processing its displayig the full error discription like "No posting object defined for 1230/ / / " here i need full error discription.
please do the need full.
Regrads,
Srinivas.Hi
In background processing you cannot see the error message, for that you have to write logic for capturing messages.
Use 'Format_Message' function module so that you can get the complete message and then you can display that on the screen.
Hope it helps... -
hi,
i want to run the bdc from the program itself not using any transaction
could u plz tell me the syntex clearly with comments.
very urgent plz.Hi,
The name Batch Input Session itself tells u that a batch session will be craeted and u have to run it manually.
Automatically it will not get executed.
Go for ''call transaction'' to execute it immediately...
However if u want to use Batchinput session method, then u have to capture teh session name first and then u can run that Session in the back ground by creating the 'Background job' by sm36.
Cheers,
Simha. -
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 -
Hi Experts,
See the following code.
When i run this program in fore ground it is giving time out error.Current running time is 600 Sec.When i run in Back ground with Immediate.Excute option after some time the job is cancled.When i see the job log It is mentioned as "More memory space requested".
Can any body Plz go thru the code and tell me what is the problem?
*& Report ZTEST_XML
REPORT ZTEST_XML.
*data: ifile like salfldir occurs 0 with header line.
data:p_path TYPE rsmrgstr-path value 'F:\usr\sap\CD5\serena\OCOS\'.
data: p_file type string.
TYPES: BEGIN OF t_xml_line, "Structure for holding XML data
data(256) TYPE x,
END OF t_xml_line.
data: BEGIN OF t_xml occurs 0,
rec TYPE x,
END OF t_xml.
data: begin of jtab occurs 0,
text type string,
end of jtab.
DATA: l_xml_table TYPE TABLE OF t_xml_line. " XML Table of the structure
data: wa(256) type x.
data: wa_xml like l_xml_table occurs 0.
data: l_str type string.
data: start_line type i,
end_line type i,
v_str type string.
data: cnt type i,
idx type i,
count1 type i,
len type i,
diff type i.
data: catalogid type string.
DATA : BEGIN OF DAT OCCURS 0,
LIN type string,
END OF DAT.
DATA: BASIC_TEXT LIKE THEAD OCCURS 0 WITH HEADER LINE.
DATA: YGUID LIKE COMM_PCAT_CTY-GUID,
ZGUID LIKE COMM_PCAT_CTV-PARENT_CATEGORY.
DATA: BASICTEXT like TLINE OCCURS 0 WITH HEADER LINE.
DATA: IT_THEAD LIKE THEAD OCCURS 0 WITH HEADER LINE.
data: begin of IT_SERENA occurs 0,
ID LIKE COMM_PCAT_CTY-ID,
TEXT type string,
end of IT_SERENA.
DATA:WA_SERENA like IT_SERENA.
DATA: wa_files TYPE rsfillst,
ifile LIKE TABLE OF wa_files.
data: begin of it_error occurs 0,
err type string,
end of it_error.
data: errorfile type string value 'error.txt'.
CALL FUNCTION 'SUBST_GET_FILE_LIST'
EXPORTING
DIRNAME = p_path
FILENM = '*'
PATTERN =
TABLES
FILE_LIST = ifile
EXCEPTIONS
ACCESS_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.
loop at ifile into wa_files.
if not wa_files-name cs '.xml'.
delete ifile.
endif.
endloop.
loop at ifile into wa_files.
concatenate p_path wa_files-name into p_file.
open dataset p_file for input in text mode encoding default.
if sy-subrc = 0.
do.
read dataset p_file into l_str.
if l_str = space.
exit.
endif.
if sy-subrc <> 0.
concatenate text-002 p_file into it_error-err.
append it_error.
clear it_error.
exit.
else.
jtab-text = l_str.
append jtab.
clear jtab.
endif.
enddo.
else.
concatenate text-001 p_file into it_error-err.
append it_error.
clear it_error.
continue.
endif.
loop at jtab.
if jtab-text cs 'Catalog ID'.
idx = sy-tabix .
endif.
endloop.
read table jtab index idx.
if sy-subrc = 0.
catalogid = jtab-text.
endif.
if catalogid cs '<![CDATA['.
shift catalogid left by 56 places.
endif.
if catalogid cs ']]></field>'.
replace ']]></field>' with space into catalogid.
endif.
write:/ 'Catalogid is:', catalogid.
IT_SERENA-ID = catalogid.
LOOP AT jTAB.
if jtab-text cs 'longDescription'.
start_line = sy-tabix + 1.
exit.
endif.
endloop.
cnt = start_line.
do.
read table jtab index cnt.
if jtab-text cs '</field>'.
end_line = sy-tabix.
exit.
else.
cnt = cnt + 1.
endif.
enddo.
loop at jtab from start_line to end_line.
concatenate jtab-text v_str into v_str separated by space.
endloop.
shift v_str left by 18 places.
shift v_str left by 10 places.
len = strlen( v_str ).
DO.
IF COUNT1 >= LEN.
EXIT.
ENDIF.
DIFF = LEN - COUNT1.
IF DIFF < 125.
DAT-LIN = v_str+COUNT1(DIFF).
ELSE.
DAT-LIN = v_str+COUNT1(125).
ENDIF.
DAT-LIN = v_str+COUNT1(125).
APPEND DAT.
WRITE :/ DAT-LIN.
CLEAR DAT.
COUNT1 = COUNT1 + 125.
ENDDO.
REFRESH BASIC_TEXT.
REFRESH BASICTEXT.
CLEAR YGUID.
CLEAR ZGUID.
SELECT SINGLE GUID FROM COMM_PCAT_CTY INTO YGUID
WHERE ID = IT_SERENA-ID.
IF NOT YGUID IS initial.
if sy-subrc <> 0.
concatenate text-003 p_file into it_error-err.
append it_error.
clear it_error.
else.
SELECT SINGLE GUID FROM COMM_PCAT_CTV INTO ZGUID
WHERE PARENT_CATEGORY = YGUID.
ENDIF.
BASIC_TEXT-TDOBJECT = 'PCAT_CTY'.
BASIC_TEXT-TDNAME = ZGUID.
BASIC_TEXT-TDID = '0001'.
BASIC_TEXT-TDSPRAS = 'EN'.
APPEND BASIC_TEXT.
loop at DAT.
BASICTEXT-TDFORMAT = '*'.
BASICTEXT-TDLINE = DAT-LIN.
APPEND BASICTEXT.
endloop.
refresh DAT.
loop at basictext.
if basictext-tdline cs '![CDATA['.
replace '![CDATA[' with space into basictext-tdline.
ENDIF.
modify basictext.
ENDLOOP.
loop at basictext.
if basictext-tdline cs ']]>'.
replace ']]>' with space into basictext-tdline.
modify basictext.
endif.
endloop.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = BASIC_TEXT
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER = IT_THEAD
TABLES
LINES = BASICTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CLEAR IT_THEAD.
IF SY-SUBRC = 0.
WRITE:/ 'DATA UPLOADED SUCCESSFULLY'.
ELSE.
WRITE:/ 'DATA NOT UPLOADED'.
ENDIF.
refresh jtab.
refresh DAT.
COUNT1 = 0.
clear v_str.
REFRESH BASICTEXT.
refresh dat.
close dataset p_file.
endloop.
open dataset errorfile for appending in text mode encoding default.
if sy-subrc = 0.
loop at it_error.
transfer it_error-err to errorfile.
endloop.
close dataset errorfile.
endif.
Is there any other FM which is similar to SAVE_TEXT?That depends. Can you please provide some more info how the programs are linked:
several steps in batch planning
cascade of submits
and what kind of failure might occur:
shortdump
Kind Regards
Klaus -
Problem in scheduling job in back ground
hi all,
My project scenario is ,i have written a program to create WBS element.
For 1 WBS creation ,In production it takes 20 to 30 min to create as there are many transactional bdcs.
so i want to run that perticular code (all bdcs) in back ground.
so i wrote another program with name 'zback_job_for_wbs_creation' and added all the required code.
in old program,i have written some code to execute this new program in back ground . this code is below..
FORM submit_for_job.
TABLES:btcevtjob.
DATA:l_jobname LIKE tbtco-jobname,
l_jobnumber LIKE rsjobinfo-jobnumb.
DATA: count LIKE btcevtjob-jobcount,
jobname LIKE btcevtjob-jobname.
DATA: job_was_released LIKE btch0000-char1.
jobname = 'WBS_CREATION'.
EXPORT s_scrnum TO MEMORY ID 'W_SCRNUM'.
EXPORT iscrh TO MEMORY ID 'W_ISCRH'.
EXPORT iscrl1 TO MEMORY ID 'W_ISCRL1'.
EXPORT iscrl2 TO MEMORY ID 'W_ISCRL2'.
EXPORT iscrl2b TO MEMORY ID 'W_ISCRL2B'.
EXPORT iscrl2a TO MEMORY ID 'W_ISCRL2A'.
EXPORT iscrl1a TO MEMORY ID 'W_ISCRL1A'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = count
SUBMIT zback_job_for_wbs_creation
with S_SCRNNUM IN S_SCRNUM
and return via JOB JOBNAME NUMBER COUNT TO SAP-SPOOL
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = count
jobname = jobname
strtimmed = 'X'
IMPORTING
job_was_released = job_was_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8
here i have put break-point in my submitted program..but its not going to the program and job gets closed successfully without executing my code( Submitted Program).
in above submit statement , if i just write submit progname and return ,then it goes to program.
but job_close function module throws exception no 5.
so pls help me out for this..
i want my submitted program to be run in back ground..
thanks.Hi,
Start Job Monitor SM37 and search for your job. I think you will find it.
Jobs are not linked to GUI frontend. So you can't debug your background job in that way.
If you want to debug you must be tricky.
Code a never ending loop with an exit condition which you can control by debugging.
DATA:
stop_for_capture.
DO.
IF sy-uname NE 'HABICH'. "change to your account
EXIT.
ENDIF.
IF NOT stop_for_capture IS INITIAL.
EXIT.
ENDIF.
ENDDO.
When your job is running, start TA SM50 and mark relevant batch work process and
choose by menu program -> program -> debugging.
regards
Walter Habich
Maybe you are looking for
-
CRM_ORDER_MAINTAIN not updating the item level field
Hi All, My requirement is to update a field called "CSC Code" in line item of sales order. hence for this case i am using "CRM_ORDER_MAINTAIN" inside the "ORDER_SAVE" BADI. I am passing the ref guid, ref type, object name ,Logical Key and field name
-
Missing Fiels and Segment in IDOC ORDER05
We have a requirement to include the storage location as part of the ship-to parameters our in procuremet interface based on ALE. We user Idoc ORDERS.ORDERS03 Our System is ERP ECC 6.0 We want to see: 1.Field: E1EDKA1-KNREF 2.Segment: E1EDPA1 I found
-
Video output enabled on iBooks app?
Dear friends, As I would need to make a presentation with an eBook file I created with iBooks Author, does anybody know if the video output is enabled on iPads while using iBooks app? That would be the only way to show ay eBook live with a video proj
-
If I have a 16G 4S and purchase iTunes Match, how will I acess all my music if its 50G?
I want to purchase iTunes Match as I have over 50G of music. However, my new iPhone 4S is only 16G. How does that work?
-
Hi.. We are using CUCM 7.1.3 (30000-2). My Line1 CSS is CSS_International and my CFA (call forward all) CSS is also CSS_International. In this scenario i can able to give a local or Long distance or International numbers as CFA number in my phone. B