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
Swati
Hi ,
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
Similar Messages
-
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 -
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 -
Error in BDC using 'N' mode while creating production order
Hi,
I am trying to create a production order ( transaction CO01 ) by using a BDC. I just have to fill the header details, components , assign the component to operation , save and exit. When I am running the BDC in 'A' or 'E' mode, it works fine. The 'E' mode doesnt stop anywhere and successfully creates the production order . But when I change the mode to 'N', it throws an error "No batch input data for the screen SAPLCOKO1 0115". I am using Call transaction in BDC to create the production order. What could be the issue? Can someone throw some light?
Thanks,
SuganyaHi Suganya,
I guess that Chandra Madapati is right. I also faced the same issue for another transaction.
If you want to disable the batch input (sy-binpt), you can use the addition OPTIONS FROM in call transaction statement.
It refers to the structure CTU_PARAMS in ABAP dictionary and contains the following components:
Component
Meaning
DISMODE
Processing mode for batch input processing. Values as for the MODE addition.
UPMODE
Processing mode for batch input processing. Values as for the UPDATE addition.
CATTMODE
CATT mode for batch input processing. CATT means Computer Aided Testtool. While batch input is mostly used for data transfer, CATT processes are to be viewed as more complex transactions, since they are reusable tests. Values: " " (no CATT mode), "N" (CATT without single screen control), "A" (CATT with single screen control).
DEFSIZE
Selection as to whether the screens of the called transaction are displayed in the standard screen size. Values "X" (standard size), " " (current size).
RACOMMIT
Selection as to whether the COMMIT WORK statement terminates batch input processing or not. Values: " " (COMMIT WORK terminates processing), "X" ( COMMIT WORK does not terminate processing).
NOBINPT
Selection for the symbol field sy-binpt. Values: " " (sy-binpt contains in the called transaction "X"), "X" (sy-binpt contains in the called transaction " ").
NOBIEND
Selection for the system field sy-binpt. Values: " " (sy-binpt contains "X" after the end of the batch input data in the called transsaction ) "X" (sy-binpt contains " " after the end of the batch input data in the called transaction).
In this, if you give NOBINPT as 'X', the system field sy-binpt becomes disabled. You can also set the processing mode and update mode using DISMODE and UPMODE respectively.
Thanks & Regards,
T. Prasanna Kumar -
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 ? -
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.
LokmanHi
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 -
Error log in VL10a background mode
Hi,
We are using the BADI - LE_SHP_DELIVERY_PROC ->DELIVERY_FINAL_CHECK to populate messages in the log. The messages are populated in the CHANGING parameter (ct_finchdel ) of the method and once an error is inserted in this table, the delivery creation is blocked. The error message is populated in the following way:
ls_finchdel-vbeln = wa_it_xlikp-vbeln. " This is the delivery number
ls_finchdel-pruefung = c_99.
ls_finchdel-msgty = c_e.
ls_finchdel-msgid = c_zsx_idc.
ls_finchdel-msgno = c_208.
insert ls_finchdel into table ct_finchdel.
But there is an issue when we try to create ONE delivery by giving TWO sales orders.
Out of the two sales orders provided, if one of the sales orders goes into error; the delivery should still be created with the other SO. But if the above method is used, all the sales orders which was used to create that delivery will go into error.
Can someone please suggest a solution for this? Basically what we are looking for is a method to update the individual SO in the error log. if all slaes orders which combines into one deliveyr goes into eroor, the delvery creation should be blocked. In other caeses a partial dleivery should be created with appropriate logs.
Best regards,
RajalakshmiThe scenario mentioned by you cannot be handled through the BADI. The method DELIVERY_FINAL_CHECK is triggered just before saving the delivery irrespective of single Order/multiple order as reference. If you want to handle this you should populate the error message log based on the custom validation of all reference orders.
-
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 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 -
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 -
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.. -
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 ? -
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 -
Fatal error while executing BDC in background for PFCG transaction
Hello,
I have requirement where I have to create or modify roles in PFCG transaction.
I used BDC to do this. While executing in foreground it works fine but in
background mode it is giving me runtime error as
"Control Framework: Fatal error - GUI cannot be reached". What
could be the reason behind it.
Is there any BAPI available to meet this functionality where I can modify or
create new roles in PFCG Transaction code.
Thank You.
Regards,
DipakHi Dengyong,
I tried searching with that. But did not get any suitable BAPI or FM to meet this functionality.
Regards,
Dipak
Maybe you are looking for
-
How to I get a mirror image of a 3D extrude and Bevel image?
I created a ribbon using the extrude and bevel effect and then mapping it with a custom symbol. I copied the image and then tried to get a matching image on the flipside to mirror it but cannot seem to figure it out. Is there a way to somehow flip th
-
Web Photo Gallery legacy files CS6 PS
Before purchasing PS CS6, I want to confirm that I will still be able to load the legacy Web Photo Galleries on the program. Anyone know? Thx.
-
Represinting my data and relations between records in diagram " not by the hierarchic
hi all , if there is a group of people in one table and the other table contains another group of people, and there is a relation between those groups, how to create a form or a report representing diagram for this relation. This diagram should be dy
-
Email Button: Can you import information back into a form?
I created a form using Live Cycle and included both a print button and an email button. Is there a way to populate the fields back into the form after the form has been filled out and emailed back? If so, how can I go about extracting the information
-
I have a lot of films I've downloaded in .avi format. I mostly watch them on my MacBookPro using the freeware VLC, but when it comes time to travel I'd like to have them ready to watch on my iPod Classic. Is there a way to convert these .avi files no