FB50 BDC in background mode.
Hi,
I am developing BDC for Fb50/fb60/fb70. In online mode all of them are working well. But, when I am using batch mode, fb50 is not taking the values after first screen(i.e. it takes only first 7 lines). It places the subsequent values in the same line. For inserting BDC, I am using the FM 'BDC_INSERT' and after that I am trying to execute the batch either manually or by calling 'SM35'.
In online mode, I have used the Call transaction ..addition .. options from opt to define the size of the window.
Lokman
Hi
I've just answered you for a your similar question: see following pos:
Re: BDC for Fb50.
FB50 is enjoy transaction, and this type of transaction doesn't support batch input.
You should use or standard tools:
- BAPI;
- B.I. RFBIBL00
or you create batch input for old transaction FB01.
Max
Message was edited by: max bianchi
Similar Messages
-
Can we schedule BDC in Background Mode - SM37
Hi Guru,
Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
Regards
Durgesh
Moderator message: background/GUI problems = FAQ, please search before posting.
locked by: Thomas Zloch on Oct 6, 2010 2:14 PMGUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
There are plenty of threads on this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
(To execute a BDC in background use report RSBDCSUB.)
Regards,
Raymond -
Hi
After running a BDC program in background, next day morning when you see the results, few records
are not updated(error records). So at that what we do to update the remaining error records.
Waiting for reply...
Regards.Hi,
I am also using BDC Uploads in background mode. I move the error records to separate internal table based on MSTYP in call transaction method. After execution of Recording ,that internal table has set of error records .I will get a file path from the variant saved and upload in error records in tat file path in application server . So they Can Know which records are not created.Some Sample code for moving errors.
CALL TRANSACTION 'VK11' USING it_BDCDATA MODE 'N'
MESSAGES INTO IT_MESSTAB1.
loop at IT_MESSTAB1 INTO WA_MESSTAB1 .
WA_MESSTAB-MSGTYP = WA_MESSTAB1-MSGTYP .
WA_MESSTAB-SPRAS = WA_MESSTAB1-MSGSPRA .
WA_MESSTAB-MES_ID = WA_MESSTAB1-MSGID .
WA_MESSTAB-MES_NO = WA_MESSTAB1-MSGNR .
WA_MESSTAB-MSGV1 = WA_MESSTAB1-MSGV1 .
WA_MESSTAB-MSGV2 = WA_MESSTAB1-MSGV2 .
WA_MESSTAB-MSGV3 = WA_MESSTAB1-MSGV3 .
WA_MESSTAB-MSGV4 = WA_MESSTAB1-MSGV4 .
WA_MESSTAB-e_rec1 = WA_head1-vtweg .
WA_MESSTAB-e_rec2 = WA_head1-werks .
APPEND WA_MESSTAB TO IT_MESSTAB.
endloop.
CLEAR: WA_MESSTAB, WA_MESSTAB1,idx.
REFRESH IT_MESSTAB1.
REFRESH IT_BDCDATA.
IDX = 01.
ENDLOOP.
Regards,
Manesh.R -
hi,
I facing issue in BDC for PA30, My BDC is working in foreground mode but not running in background mode. purpose of bdc is based on value of itab of previous day data update on next day in backgound.
below code i m using in BDC :
INITIALIZATION.
ctu = 'X'.
session = ''.
nodata = ''.
ctumode = 'N'.
cupdate = 'L'.
FORM processs_bdc_data .
DATA: v_date LIKE sy-datum,
begda type pa9004-endda.
DATA:
endda(10) TYPE c,
stime(5) TYPE c,
etime(5) TYPE c,
loaddat(10) TYPE c.
SORT itab BY taskno pernr.
LOOP AT itab.
tabix = sy-tabix.
begda = sy-datum.
PERFORM open_group.
PERFORM bdc_dynpro USING 'SAPMP50A' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=INS'.
PERFORM bdc_field USING 'RP50G-PERNR'
itab-pernr.
PERFORM bdc_field USING 'RP50G-TIMR6'
'X'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RP50G-SUBTY'.
PERFORM bdc_field USING 'RP50G-CHOIC'
'Employee Task Monitoring'.
PERFORM bdc_field USING 'RP50G-SUBTY'
'1'.
PERFORM bdc_dynpro USING 'MP900400' '2000'.
PERFORM bdc_field USING 'BDC_CURSOR'
'P9004-ZZREMARK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPD'.
PERFORM bdc_field USING 'P9004-ZSTATUS'
'NEW TASK'.
PERFORM bdc_field USING 'P9004-ZPRIORITY'
'MEDIUM'.
PERFORM bdc_field USING 'P9004-ZPERNO'
itab-zperno.
PERFORM bdc_field USING 'P9004-BEGDA'
begda.
PERFORM bdc_field USING 'P9004-STIME' '083000'.
PERFORM bdc_field USING 'P9004-ENDDA'
begda.
PERFORM bdc_field USING 'P9004-ETIME' '082959'.
PERFORM bdc_field USING 'P9004-MNDAT'
begda.
PERFORM bdc_field USING 'P9004-TERMN'
PERFORM bdc_field USING 'P9004-ZZTASK'
itab-zztask.
PERFORM bdc_field USING 'P9004-ZZREMARK'
itab-zzremark.
call transaction 'PA30' using bdcdata mode ctumode update cupdate messages into
messtab.
PERFORM messages.
PERFORM close_group.
REFRESH : messtab, bdcdata.
ENDIF.
ENDLOOP.
ENDFORM. " PROCESSS_BDC_DATA
What can be the possible reasons for not updating in backoground mode pls sugess me.
Thanks in advance
tarunTry the following:
Replace your code
call transaction 'PA30' using bdcdata mode ctumode update cupdate messages into messtab.
with
DATA: gs_options TYPE ctu_params. "BIM Processing options
* Set processing options.
gs_options-dismode = 'N'. "N (back) A (Fore) / E (Error)
gs_options-updmode = 'S'. "Synchronous update
gs_options-defsize = 'X'. "Default screen-size (for texts!)
gs_options-racommit = 'X'. "COMMIT WORK
* Perform the transaction 'PA30'
CALL TRANSACTION 'PA30' USING bdcdata
OPTIONS FROM gs_options
MESSAGES INTO messtab.
Edited by: Rob Postema on Sep 6, 2010 11:00 AM
Edited by: Rob Postema on Sep 6, 2010 11:00 AM
Edited by: Rob Postema on Sep 6, 2010 11:00 AM
Edited by: Rob Postema on Sep 6, 2010 11:01 AM -
Error in BDC in background mode.
Hello Experts,
I am having a query related to BDC. I have written the BDC for TCode : CKMPRPN (Future Price Maintenance). When I execute the BDC thru Call transaction method it works properly.
When I Create the Session and execute in foreground mode then also it woks but when i try to execute in background mode it gives me an error.
Please suggest me the proper Solution.
Thanks
SwatiHi ,
Check wheter the field names for the transaction recorded are correct sometimes the field names are not fully copied to se38, if the filed name is to long.However when you run the BDC in foreground it runs ,but when you execute in background it fails, Check for the field names for the recorded transaction in SHDB and in the program.
Thanks,
Ahsan -
How to return the result ( fields ) form using the BDC in background mode ?
hi,
I am now having to develop a sub routines for executing the transaction COR1 using BDC ( transaction SHDB ) , in the FORM i pass the 4 params for the fields of the screens of the transaction ( COR1 is used for creating the process order ) , and at last i have to take the number of the process order that has been created by the transaction , how can i do that , if we can no , in which table it is contained ( AUFNR ) ? .
In fact , i use the CALL TRANSACTION 'COR1' USING BDCDATA......
so , if you please to help me resolve this problem ( it is really urgent )...
Thank you so much .Thank you so much for your reply , I think that it would be very useful to me .
Hi Vijay Sai , i have used the itab TYPE BDCMSGCOLL for calling the transaction but just for taking the error messages , so as you say , it contains all the values of the fields including AUFNR ( which i need to get the its value after creating with COR1 ) .......if it is right , we just need to access the new value by using the query at the internal table just like :
LOOP AT itab INTO wa.
if wa-fname = 'AUFNR' .
res = ws-fval .
ENDIF.
Is that right ? -
Document not posting through F-02 BDC in background.
Hi,
While trying to post park documents for a company code through F-02 using BDC in background mode N, when any single document is having any error then all the documents for that company code are going in error state and not getting posted.When checked in debug mode for the error document, it is showing the Profit center field is not present on screen at BDC whereas the profit center field is actually passed and is present.Please advise.
Edited by: rohan.das on Dec 20, 2011 2:40 PMThere is a POP-Up window in the process, that is not coming in background. identify that screen no and not pass any data, another option is pass OK_CODE for that particular screen.
Hope it's might be useful for you.
Thanks,
Prarthan -
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 -
BDC is not working in background mode and working fine in Foreground mode
Hi Experts,
I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
Thanks,
HemaHello,
While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
Cheers,
Nag -
BDC not working in Background mode
Hi All,
I have created a BDC. It is working fine in forground mode but not woking in background mode. Please any one know what could be the problem.
thanks,
ShwetaHi,
I think there is some field in your screen is disabled for input. As it will not through you error.
Please run you BDC in foreground mode and check it and see if you get any message. it will be a sucess message.
this thing happend to me also as my ship to party was disbled in one of screen of VA02.
thanks,
Sarbpreet -
BDC VA01 in background mode error
Hi ,
I am psoting data into VA01 using BDC call transaction in background mode for two cases.
For one it is running successfully and for the other it is not.
I have compared the data in the table BDCDATA for both the cases and it is same.
Then I tried debugging in foreground mode and the same case which was not running earlier is running in foreground mode.
Please advice what could be the problem?>
ABHI wrote:
> I am getting the following messages:
>
>
>
> TCODE DYNAME DYNUMB MSGTYP MSGID MSGNR MSGV1 MSGV2 MSGV3 ENV
> VA01 SAPMV45A 4001 W VU 1 Purchase order date CTU
> VA01 SAPMV45A 4001 W V1 221 5/27/2010 CTU
> VA01 SAPMV45A 103 I V1 81 CD
> VA01 SAPMSSY3 131 S 0 344 SAPMSSY3 131 CTU
Hello ABHI,
The problem is because of some breakpoints created by you. So it is entering it to debugger in the background mode which cannot be handled by the BDC. Delete all your breakpoints before testing or open a new logon session to test it in background.
Hope this solves your problem.
Regards,
Karthik D -
Create Quality Management view for a Material in background mode
I want to know if there is a way to create a Quality Management View (Quality Management tab) on Material Master (material already extended to plant ) in background mode.
The requirement is to add inspection setup data for a material extended to a particular plant in background. I tried using 'BAPI_MATINSPCTRL_SAVEREPLICA' to add the data and it works perfect as required. Now the problem is this BAPI is creating the inspection setup data only for the material which has QM tab in MM02 for e.g. I manually created the inspection setup for a Material from MM01 and then deleted it , now the BAPI works fine for this material because when I created an inspection setup from MM01 it created the QM tab and after i deleted the entry the tab was still there with no entry in inspection setup.
I want to create inspection setup for a material which does not have QM tab.
I have to create everything is background mode. BDC is one option which I am list interested in.
Thank you for helping in advance.Thank you for looking into my issue. I have to do the inspection setup in background without using any front end transaction.
-
Error while executing BDC in background.
Hi
I have written a program that creates a background job to execute a BDC on Transaction CKMPRPN. This transaction is used to update future price of Materials. When this program is executed in foreground it works perfect. But when it is executed in background it throws these error messages. Same error messages are displayed when I process the BDC recording in background.
Enter at least one plant
Enter at least one plant
Spool request (number 0000023938 ) created without immediate output
No batch input data for screen SAPMSSY0 0120
Can anyone tell me why this problem is occuring only during background execution?
Or Do I need to find out a Function Module to update the future price of materials?Thanks Kris,
Its a useful answer.. But unfortunately in 4.6C version we dont have this option of 'simulate background mode'.
Anyways.. I was able to find the solution.. I used call transaction and executed the BDC program in background and it worked. Earlier I was executing a single transaction for set of materials. But now I m executing separate transaction for each material. It gives these messages at every execution but it also updates the database. Dont know how.. -
Call transaction KB21N processed by a program in background mode
Hi to all,
I call transaction KB21N using BDCDATA in a custom program. If I process this program in foreground mode all it's OK, but if I process the program in background mode, I have a runtime error with DUMP: RAISE EXCEPTION with exception condition CNTL_ERROR. This program has to be executed in background so a bapi exist to use instead of call transaction or something else?
Thank you very much,
regards
AntonioHI Antonio,
The transaction you are dealing with is an SAP Enjoy transaction and for such transactions it is not recommended to do a BDC. YOu should search for a BAPI for the same as you have already identified. Basically the enjoy transactions uses GUI controls which cannot be handled by BDC.
BAPI_ACC_ACTIVITY_ALLOC_POST may serve your purpose.
Regards,
ravi
Message was edited by:
Ravi Kanth Talagana -
SM35 Re-processing of Incorrect/Error session in Background Mode
Hi all,
I am trying to reprocess a session in SM35 which is in Error status. Here I am a facing an issue, if I reprocess this session in background mode then it says that Batch input data is not available for a screen which is already processed. Ideally it should start from the screen where it threw error in the first run. If I select mode as Foreground or Display error then session is getting processed correctly.
Note:
If the session is in Ready to Process state then processing in background works perfectly fine. Has anyone came across this problem ?
Has anyone tried reprocessing Incorrect Session in background mode ??????
Regrads,
AntonyThanks Sandra,
Indeed I understood the problem. And the problem is that transaction KEBC is always executed correctly & since its processed correctly its removed from the BDC Queue
Here transaction KEBC, sets a Memory Parameter, and transaction KEU2, first checks whether the memory parameter is initial, if found intial it pops-up a screen and makes the user enter it. In my case KEBC always run successfully
As you rightly suggested when session is in error, transaction KEBC is not getting called again to set the memory parameter & its throwing the pop-up from the transaction KEU2 to be entered by the user. ( BDCDATA currently dosent handle this Pop-up).
I could have omitted the KEBC transaction, but handling this pop-up from transaction KEU2 becomes tricky since it will only pop-up if the memory parameter is initial. And unfortunately Pop-up is the first screen in the sequence for transaction for KEU2 & nothing can be done in coding level to call KEU2 with the pop-up in all scenarios(Even when Memmory varaible is set) !
So I am kind of in a dilema, how to handle this? What I am suggesting to the Functional consultant is that let the session be only run in background mode (as it will be always in a new internal session memory variable will always be inital ) & I will record this pop-up in my BDC omitting transaction KEBC.
Do you have anyother solution for this?
Or is there any option to re process even the successfull transacations ?
Maybe you are looking for
-
IPhone 3G not responding after upgrading firmware
I've been given an old iPhone 3G 16GB but as it hasn't been used for a while, the firmware on it was 2.8.?? something. I have the latest version of iTunes so I connected it to upgrade so I could download apps as nearly all of them needed iOS 3+. It w
-
Upgrade straight to PI 7.1 EHP1 possible?
Hi Experts - We are running PI 7.0 SP12. Can we directly upgrade to PI 7.1 EHP1? Or firstly complete move to PI 7.1 and than apply EHP1 separately? Thanks for your ideas. Mathias,
-
I need to add a foreign language fonts. How do I do it?
I need to add a foreign language fonts. How do I do it?
-
How to get change log for fields if change document flag is not maintained?
Hi experts, My requirement is display the change log details for the transaction FAGLGA32. In this transaction we have the Field Groups block.if any change is happened for field group we need to capture the change. the field for the field group is RK
-
Communicating with main timeline symbols
Hi, i created a movieclip and exported it to Actionscript. I have a few instances of the new symbol(class) on the main time line and i have some code on the class timeline. im trying to communicate with a movieclip instance that located in the main t