Auto run BDC program
hi,
I Generated one BDC program. Its running properly. But what our client requirement means when data come in Flat file (TEXT file or Excel file) these BDC program should start automatically. How i will do this auto run functionality. If any one knows about this plz let me inform immediately.
regards
bab
Hi
That means your BDC program should be schedulated and the job should be submitted by an event (see trx SM64), this event should be triggered if the file is updated.
Now the problem is to understand how the file is updated, because the program updates the file should trigger the event too.
If the file is updated by a user, u can schedule your program periodically, and if the files is updated u run the BDC
Max
Similar Messages
-
Running BDC program in background for the transaction VL02N
Hi All,
I have coded a BDC program (call transaction method) for the transaction code VL02N. I can able to run the program manually & successfully. But if I execute the program in background(SM36), it is going to dump giving CNTL_ERROR.
Note: I am not using any of the GUI_UPLOAD, GUI_DOWNLOAD funciton modules in the program. But I am using the FTP command funtion modules like( FTP_COMMAND, FTP_CONNECT, FTP_DISCONNECT and FTP_SERVER_TO_R/3).
<removed_by_moderator>
Thanks in advance.
Ramesh.
Edited by: Julius Bussche on Jul 8, 2008 5:55 PMVL02N is an enjoy transaction. You cant run it in background. Please try VL02.
Thanks
Romit -
Run bdc program when flat file comes
Hi friends
I want to schedule my bdc program such that it automatically runs as soon as the flat file comes into application server.
Please help me.
Cheers
VamshiHI,
Follow this procedure, it might help you.
In the program, use following logic.
IF SY-BATCH = 'X'. * This is for checking
whether program is set for back ground
processing.
open dataset .....
if sy-subrc =0.
process data.
else.
continue.
endif.
if you write this logic, as the background job will be scheduled for repetition at a certain interval thenautomatically the flat file will be checked and when it encounters, SY-SUBRC =0 ,the process starts , else no process will be done.
Hope this solves the problem.
Reward points if helpful.
Thanks and Regards.
Edited by: Ammavajjala Narayana on May 29, 2008 11:36 AM -
Does anyone know how to configure a java program so that it runs automatically everytime a computer is turned on?
You don't configure a program to do that, you configure the OS to run a program. How this is done depends on the OS, which you didn't tell us.
I for one copied a reference to my JAR into the Startup folder of Window's Start Menu. -
Error in BDC program which is creating Work Order IW31
Hi All,
I am getting an error - 532 - " Specify only one start time/date " when running bdc program for txn IW31 in back ground. I run the same program in the foreground.. there is no error.. but when I run in background.. I am experiencing the above error.
Thank for Ur time.
Cheers
SenthilHi,
Are you facing this issue during Normal order creation with that functional location ?
Please check CC assignment to functional location and settlement rule applied while saving order.
Thanks
Riyaj -
Auto-Invoice Concurrent program running very slow
Hi,
EBS 11i
Help please.......
Our 2 users are running Auto-Invoice Concurrent programs and it made our 4-cpu (quad core) server spike to all 100%
We have just bounced back the Oracle Apps but still it getting very slow. Is there a way to tune the auto-invoice program?
This problem did not happen before only lately :(. Is it because our data is growing bigger?
Thanks a lot
Ms IndayThanks hussein/helios .....I am panicking now :(
I want to cancell all the queued Autoinvoice Master Program that are submitted so I can trace if they are the ones causing the problem. The Autoinvoice Master Program is calling a child program Autoinvoice Import Program. I also cancelled these child programs. but now I can not cancel the Master Program. Its "Phase" is Running but its status is "Paused". When I cancel it I got error >
Request 2259845 can no longer be cancelled. The Concurrent Manager process
that was running this request has exited abnormally. The ICM will mark this request as complered with error.How can I delete this RUNNING-PAUSED Autoinvice Master Program?
How do I clean up these aborted processes?
Thanks a lot -
After running a BDC program in background, next
After running a BDC program in background, next
day morning when you see the results, few records
are not updated(error records). What will you do
then?
plx explain clearlyIn that BDC u have to process like this .
1.call transaction
if sy-subrc ne 0.
get the records.
endif.
2.Create a new Session with Failed records , So u can process there after.
Regards
Prabhu -
Why a bdc program does not run background
<b>why a bdc program does not run background</b>
Thanks.HI,
BDC programs can run in the background, If you use the Functionmodules which is Uplpoad a file from Presentation server or Upload from presentation server then we can not use the Program in the Background processing. if the BDC program does not have these function modules then we can use the program in Background
Regards
Sudheer -
Help, a auto-running program
i need to implement the function that it will transfer the records that match some conditions in A table to B table.
Question:
1, if implement this function at the side of DataBase, how to do it.
2, if implement this function using java programe, how to let it auto running.
thx everyone
RealYou can use the JDBC API to access DB information from within a Java application.
http://java.sun.com/products/jdbc/ -
Auto execution of program after 1-2 minutes
Hi all,
I want to auto execute a program whenever one or two rows of data are in the table.
In detail the scenario is 'I want to upload the data which ever i am taking in my ztable, so how to run the bdc program it self whenever there is data in the table.
gauravHi gaurav,
the SAP world takes a lot of it's life from generic solutiona for common problems being re-created hundreds or even thousands of times solvin very similar tasks.
But all solutions are created in such a specific way that they can not be re-used without major changes.
Do this:
Enter entry manually via table maintenance and check in lock overview (SM12?) what lock is set for yopur Z table.
In your Z program for entering data in the Z table, try so set the same lock using Enqueue function.
If you can't set the lock, wait for some time, try again. If no success, cancel with Error message.
You Z program for processing the Z table sholud so the same thing: Lock the table (Enqueue), process the entries and delete everyprocessed entry (or mark it as processed).
This program can be scheduled as a job to run every 10 minutes, one hour, daily or whatever is required.
Please do not expect to get the full ABAP code here, just do what you get paid for. Start programming and feel free to ask when you get stuck.
Kind regards,
Clemens -
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 -
Questions on BDC program statements.....
Hi,
Currently i am checking below BDC program for packing material use.
But there is a statement that i am not very clear what it is for...
PERFORM bdc_field USING 'BDC_CURSOR'
'V51VE-EXIDV(01)'.
For the 'V51VE-EXIDV(01)', here why need to add an (01) at the end. What does the (01) means??
Thanks!!!!
LOOP AT i_lips.
CLEAR: i_bdc_tab,i_msg_tab.
REFRESH: i_bdc_tab,i_msg_tab.
PERFORM bdc_dynpro USING 'SAPMV50A' '4004'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LIKP-VBELN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LIKP-VBELN'
i_lips-vbeln.
PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VERP_T'.
*perform bdc_field using 'LIKP-BLDAT'
* record-BLDAT_002.
PERFORM bdc_field USING 'BDC_CURSOR'
'LIPS-POSNR(01)'.
*perform bdc_field using 'LIKP-WADAT'
* record-WADAT_003.
*perform bdc_field using 'LIKP-WAUHR'
* record-WAUHR_004.
*perform bdc_field using 'LIKP-BTGEW'
* record-BTGEW_005.
*perform bdc_field using 'LIKP-GEWEI'
* record-GEWEI_006.
PERFORM bdc_dynpro USING 'SAPLV51G' '6000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'BDC_CURSOR'
'V51VE-VHILM(01)'.
PERFORM bdc_field USING 'V51VE-VHILM(01)'
'BOX'.
*Select all materails
PERFORM bdc_dynpro USING 'SAPLV51G' '6000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=HU_MARKA'.
*Select all Boxes
PERFORM bdc_dynpro USING 'SAPLV51G' '6000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=HUMARKHU'.
*perform bdc_field using 'V51VE-SELKZ(01)'
* record-SELKZ_01_008.
PERFORM bdc_dynpro USING 'SAPLV51G' '6000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=HU_VERP'.
PERFORM bdc_field USING 'BDC_CURSOR'
'V51VE-EXIDV(01)'.
PERFORM bdc_dynpro USING 'SAPLV51G' '6000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
PERFORM bdc_field USING 'BDC_CURSOR'
'V51VE-EXIDV(01)'.
CALL TRANSACTION 'VL02N' USING i_bdc_tab
MODE p_mode
MESSAGES INTO i_msg_tab.
Message was edited by:
Hoo LaaAnd if this is a BDC running in background, or a call transaction, then placing the cursor on a given field has no effect unless it is needed for navigation to the next screen.
When you record a BDC using SHDB there are a lot of statements like this that are added in but are not needed for the BDC to work.
Another example is the "BDC_SUBSCR" field name - this does not in most cases appear to have any effect on how the BDC is processed.
Also, the recording will include fields which have default values on the screen that you do not need to overwrite with the same value from the BDC.
I often delete these statements from the recording, taking care that I understand what the impact is. You can try commenting out the line and see what difference it makes to processing.
When using a BDC for updating a lot of records, having less of these types of lines in the BDCDATA table will speed performance a bit.
Andrew -
To run a program in BACKGROUND using SUBMIT
I need to run a program in background using the SUBMIT option. Here i have to pass an internal table form one program to another which will be used to update sales orders using BDC.
Questions
1} Can we execute a program in background using SUBMIT?
2} I am sending data to a MEMORY ID , if i run the program in background will the memory id work. As in do memory IDs work in the background.
Thanks in Advancerefer same thread.
Re: Problem with SUBMIT in Background -
Problem in creating a BDC program for transaction cj20n(project sytem)
Hi all,
I am trying to create project,WBS element ,network and activity using a BDC program,
I am able to create to a recording for the transaction cj20n using tcode shdb but when i run the recording it doesnt run properly i am not able to create any thing.
I get error saying that a particular field doesnt exist on the screen.
Is possible to create a BDC program for transaction CJ20N ?
Also is there any other alternative apart from using a BAPI or a function module.
Thanks,
NishantHi,
Check below link for BAPIs of transaction cj20n.
[BAPI for cj20n|BAPI for CJ20N transaction]
Thanks,
Asit Purbey. -
Error in AR - Auto Invoice Import Program
Hi,
Please help me out for AR - Auto Invoice Import Program.
When i am running Auto Invoice Import Program in UAT instance then its getting completed but with error and error is not reflecting in RA_INTERFACE_ERRORS_ALL table.
Initially when i ran Interface Program in CRP instance then the program was successfull, but in UAT instance it is giving error,
The Log is as follows, Its a big log but to get an idea please find the few starting lines of the same.
Regards,
Sitesh
org parameter (raamai) = ~91~
raassc()+ Current system time is 02-APR-2012 01:42:57
org parameter (raassc) character = ~91~
org parameter (raassc) numeric = ~91~
raassc()- Current system time is 02-APR-2012 01:42:57
raagsp()+ Current system time is 02-APR-2012 01:42:57
raagsp()- Current system time is 02-APR-2012 01:42:57
raaini()+ Current system time is 02-APR-2012 01:42:57
raaapx()+ Current system time is 02-APR-2012 01:42:57
raaapx()- Current system time is 02-APR-2012 01:42:57
raagbo()+ Current system time is 02-APR-2012 01:42:57
Dumping data fetched from RA_BATCH_SOURCES
batch_source_id = 1141
batch_source_name = Export Entry
auto_trx_numbering_flag = N
copy_doc_number_flag = N
cust_trx_type_rule = I
sold_customer_rule = R
bill_customer_rule = R
bill_address_rule = R
bill_contact_rule = N
ship_customer_rule = R
ship_address_rule = R
ship_contact_rule = N
memo_reason_rule = R
term_rule = I
invoicing_rule_rule = R
accounting_rule_rule = R
unit_of_measure_rule = R
agreement_rule = R
inventory_item_rule = R
fob_point_rule = S
ship_via_rule = S
invalid_lines_rule = R
salesperson_rule = I
sales_credit_type_rule = I
accounting_flexfield_rule = R
invalid_tax_rate_rule = R
rev_acc_allocation_rule = P
gl_date_period_rule = R
create_clearing_flag = N
derive_date_flag = Y
sales_credit_rule = P
sales_territory_rule = R
receipt_method_rule = R
customer_bank_account_rule = R
related_document_rule = R
memo_line_rule = R
allow_sales_credit_flag = Y
receipt_handling_option = N
allow_duplicate_trx_num_flag = N
raagbo()- Current system time is 02-APR-2012 01:42:57
raaggi()+ Current system time is 02-APR-2012 01:42:57
raagixpfx = 0
raagixtpf = 0
raagixddf = 1
raagixacf = 0
raagixagd = 0
raagixatn = 0
raagixadn = 0
raagixcte = 0
raagixdfd =
raagixctc = 1683960112
raagixrmx = T
raagixfdx = 02-APR-12
raagixbix =
raagixbsi = 1141
raagixbnx = Export Entry
raagixoix = 91
raagixrix = 3584119
raagixpix = 20428
raagixpai = 222
raagixuix = 1458
raagixunx = EMS
raagixanx = AR
raagixlul = 2968171
raagixasc = 1
raagixrho = N
raagixrsf = 0
raagixcbf = 0
raagixuax = 1
raagixsnf = 0
raagixtao = 1
raagixptf = 1
raagixstf = 0
raagixrfi = 0
raagixtac = 0
raagixcai = 50388
raagixsbi = 2022
raagixcpr = 2
raagixmau =
raagixmlx = 3
raagixmbx = 99999999
raagixafp = Account
raagixifp = Item
raagixtfp = Sub-branch
Argbdf = 1
Argddo = -9999
raaggi()- Current system time is 02-APR-2012 01:42:57
raaseb()+ Current system time is 02-APR-2012 01:42:57
raaseb()- Current system time is 02-APR-2012 01:42:57
arcdsu()+ Current system time is 02-APR-2012 01:42:57
arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
arcdsu() Use Invoice Accounting For Credit Memo: Y
arcdsu()- Current system time is 02-APR-2012 01:42:57
raaini()- Current system time is 02-APR-2012 01:42:57
raapft()+ Current system time is 02-APR-2012 01:42:57
raagtr()+ Current system time is 02-APR-2012 01:42:57
crb->raaucrpn = RAXTRX
crb->raaucrcr = 3584119
crb->raaucrnt = 0
crb->raaucrml = 3
raagtr()- Current system time is 02-APR-2012 01:42:57
raamil()+ Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
UPDATE RA_INTERFACE_LINES
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2,
LAST_UPDATE_LOGIN = :b3,
SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
ORG_ID = NVL(ORG_ID, :b5),
TRX_DATE = TRUNC(TRX_DATE),
GL_DATE = TRUNC(GL_DATE),
ORIGINAL_GL_DATE = TRUNC(GL_DATE),
CONVERSION_DATE = TRUNC(CONVERSION_DATE),
PURCHASE_ORDER_DATE = TRUNC(PURCHASE_ORDER_DATE),
RULE_START_DATE = TRUNC(RULE_START_DATE),
RULE_END_DATE = TRUNC(RULE_END_DATE),
SALES_ORDER_DATE = TRUNC(SALES_ORDER_DATE),
SHIP_DATE_ACTUAL = TRUNC(SHIP_DATE_ACTUAL),
CUSTOMER_TRX_ID = NULL,
INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL)
WHERE NVL(INTERFACE_STATUS, '~') != 'P'
AND (REQUEST_ID IS NULL OR REQUEST_ID IN (3584119))
AND BATCH_SOURCE_NAME = 'Export Entry'
AND TRX_NUMBER = 'E512000002' AND LINK_TO_LINE_ATTRIBUTE1 IS NULL
AND LINK_TO_LINE_ATTRIBUTE2 IS NULL
AND LINK_TO_LINE_ATTRIBUTE3 IS NULL
AND LINK_TO_LINE_ATTRIBUTE4 IS NULL
AND LINK_TO_LINE_ATTRIBUTE5 IS NULL
AND LINK_TO_LINE_ATTRIBUTE6 IS NULL
AND LINK_TO_LINE_ATTRIBUTE7 IS NULL
AND LINK_TO_LINE_ATTRIBUTE8 IS NULL
AND LINK_TO_LINE_ATTRIBUTE9 IS NULL
AND LINK_TO_LINE_ATTRIBUTE10 IS NULL
AND LINK_TO_LINE_ATTRIBUTE11 IS NULL
AND LINK_TO_LINE_ATTRIBUTE12 IS NULL
AND LINK_TO_LINE_ATTRIBUTE13 IS NULL
AND LINK_TO_LINE_ATTRIBUTE14 IS NULL
AND LINK_TO_LINE_ATTRIBUTE15 IS NULLHi Pk,
in log file i found the below:
arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
and
raaafs()+ Current system time is 02-APR-2012 01-42-57
Failed to allocate memory for memptr
Error calling raaafs()
Error calling raaffc()
Error calling raaaui()
is it related to memory size????????
let me know
Regards,
SItesh
Maybe you are looking for
-
BAPI_SALESORDER_CHANGE [delete line item and update ]
LOOP AT itab_ch . *IF itab_ch-itm_number = selpos1 AND delflag = 'X'.* * Delete Line items s_order_header_inx-updateflag = 'U'. i_order_item_in-itm_number = itab_ch-itm_number. schedule_lines-itm_number = itab_ch-itm_number. sch
-
IOS 7 Where's the unlock sound gone?
Anyone know where the unlock sound has gone in iOS7? Is it a mistake or deliberately removed in this version?
-
Scaning documents to PDF converting to black and white
I have to scan back to back documents for my work into a PDF mode. The documents are on colored paper so this eats up a lot of bites. Is there a way to scan these documents and have the PDF show in black and white to conserve how much computer spac
-
Spaces / Firefox / CMD Tab
Hi @Apple 1) Even if i switch with CMD-Tab to Terminal in Spaces 1 and then back to Firefox, i had to click into Firefox, because it's not active. 2) If i have more terminal windows open and switched back to terminal in antother Spaces Window the las
-
Keybd_event with third party Virtual Key and WM_KEYDOWN
Hi All, I want to use keybd_event() to send this third party virtual key called VK_OEM_CLR or 0xF5 to other application. Third party header file defined: #define VK_OEM_CLR 0xF5 The application that sends the key: keybd_event(VK_OEM_CLR , 0, KEYEVENT