Errors in Batch
How can I update a custom table and create a TODO if the batch fails?
In the catch block I am trying to rollback the session, update my custom table and do addError(). I have a TODO linked to the batch and I am implementing the createToDoProperties() method.
The TODO gets created. But the custom table updates are rolled back.
Try to disable the indexes on the table then try. I should commit the changes and then enable indexes again.
Let me know if it works.
Biindu H
Similar Messages
-
Error: No batch input data for screen SAPMZVKDIALOGDEMO 1000 Help Needed
Hi Experts!
I wrote a program for BDC. I am attaching the code herewith. When i am trying to process the session in SM35, i was getting the error: No batch input data for screen SAPMZVKDIALOGDEMO 1000. Can anyone please tell me, what am i doing wrong.
Thanks.
REPORT zvkbdcdemo01.
DATA: bdc_tab LIKE bdcdata OCCURS 6 WITH HEADER LINE.
DATA: session LIKE apqi-groupid VALUE 'Session #1'.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
* DEST = FILLER8
group = session
* HOLDDATE = FILLER8
* KEEP = FILLER1
user = sy-uname
* RECORD = FILLER1
* PROG = SY-CPROG
* IMPORTING
* QID =
* EXCEPTIONS
* CLIENT_INVALID = 1
* DESTINATION_INVALID = 2
* GROUP_INVALID = 3
* GROUP_IS_LOCKED = 4
* HOLDDATE_INVALID = 5
* INTERNAL_ERROR = 6
* QUEUE_ERROR = 7
* RUNNING = 8
* SYSTEM_LOCK_ERROR = 9
* USER_INVALID = 10
* OTHERS = 11
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM fill_bdc_tab.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'ZVKTR001'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
dynprotab = bdc_tab
* EXCEPTIONS
* INTERNAL_ERROR = 1
* NOT_OPEN = 2
* QUEUE_ERROR = 3
* TCODE_INVALID = 4
* PRINTING_INVALID = 5
* POSTING_INVALID = 6
* OTHERS = 7
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
* NOT_OPEN = 1
* QUEUE_ERROR = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form fill_bdc_tab
* text
FORM fill_bdc_tab.
REFRESH bdc_tab.
PERFORM populate_bdc_tab USING:
'1' 'SAPMZVKDIALOGDEMO' '1000',
' ' 'SFLIGHT-CARRID' 'LH',
' ' 'SFLIGHT-CONNID' '0400',
' ' 'SFLIGHT-FLDATE' '07/07/2007',
' ' 'SFLIGHT-PRICE' '1982',
' ' 'SFLIGHT-CURRENCY' 'EUR',
' ' 'SFLIGHT-PLANETYPE' 'A310-300',
' ' 'BDC_OKCODE' 'CREA'.
ENDFORM. "fill_bdc_tab
*& Form POPULATE_BDC_TAB
* text
* -->FLAG text
* -->VAR1 text
* -->VAR2 text
FORM populate_bdc_tab USING flag var1 var2.
CLEAR bdc_tab.
IF flag = '1'.
bdc_tab-program = var1.
bdc_tab-dynpro = var2.
bdc_tab-dynbegin = 'X'.
ELSE.
bdc_tab-fnam = var1.
bdc_tab-fval = var2.
ENDIF.
APPEND bdc_tab.
ENDFORM. "POPULATE_BDC_TABThis normally means that you are trying to insert data on a screen for which a particular field is not available.
So check screen number, screen fields and report name. In case of screen fields, use F1, F9 (technical information), and check the name of the screen field for batch processing (all the way at th bottom of the pop-up). This can differ from actual name of the screen field.
If all this is ok, try to create a recording of the transaction with SM37. -
Incoming IDOC Error "No batch input data from the screen SAPMV45A 4001"
Hello ,
The Incoming IDOC with Message type 'ORDERS' is triggering the error message "No batch input data from the screen SAPMV45A 4001" with message no 00344 . There is an SAP note 785000 to handle this type of error message which has been already implemented. Still we are encountering few IDOC error's at the time of sales order creation. The IDOC reaches status 51 throwing the error which is again reprocessed through BD87 .
We are unable to replicate the similar scenerio in Development & Testing systems as it works fine.
Can any one kindly advise how to eliminate the error "No batch input data from the screen SAPMV45A 4001" message at the time of Incoming IDOC processing.
Thanks in advance.
Best Regards
SateeshDear Sateesh
Check this link where the same topic was discussed
[ VA01/VA02: batch-input error in IDoc processing|http://www.sapfans.com/forums/viewtopic.php?f=21&t=313032]
thanks
G. Lakshmipathi -
QM Usage Decision Error : Deficit Batch restricted
I am unable to reject two batches..it shows 'no inventory exsists for this material'
Usage Decision TCode gives me the following error:
Deficit Batch restricted
Can you please tell me, what might be the probable reason?
ThanksWell.. it's basically telling you it can't find the material in the stock category it is looking for it in.
So, to resolve this, first find out where the batches really are.
Get the actual batch numbers from the inspection lots and run MMBE to see where the material is and what the status of the batch is, restricted or unrestricted.
You must then figure out where is the UD transaction looking for the material? You can check this by looking in config and the looking at the settings for the inventory posting. You should see 3 movement types for the reject posting line. One for QI, one for unrestricted and one for blocked.
What you need to do, is a) get the batch inventory into the proper inventory bucket. This might be as simple as unrestricting the batch. b) if you can't get the material where it needs to be, you might be able to temporarily change the movement type used for the reject postings. Then change it back to what it should be once you rejected the material.
Hope this helps.
Craig -
Inbound ORDERS IDoc Error: No batch input....
Dear all,
i try to receive IDocs via the standard function module IDOC_INPUT_ORDERS. Partner profiles etc. are maintained in WE20. However, when I create the Test IDoc in WE19 and process it, i get the following error:
No batch input data for screen SAPMV45A 4001
Message no. 00344
My IDoc looks as follows:
EDIDC 2000000000000203045700 51 2SAPXXX LSXXXCLNT200
E1EDK01 220 56026671
E1EDK14 012OR
E1EDK14 00601
E1EDK14 00701
E1EDK14 008PLANT
E1EDK03 002200909170000
E1EDK03 012200909171212
E1EDK03 022200909171212
E1EDKA1 AG 0003000011
E1EDKA1 WE 0003000011
E1EDK02 001K1234567 20090911
E1EDP01 1 1 EA
E1EDP19 0035200000
Has anyone an idea, what might be the reason for this error?
Best regards
FlorianHello Florian
When you choose function "Inbound Function module" (IDOC_INPUT_ORDERS; WE19) switch the transaction processing to In Foreground or In Foreground after Error.
Then you will clearly see what is missing and it should be easy to find out where to place the missing data into the IDoc.
Most likely segment E1EDP20 (containing the quantity) is missing. Example:
E1EDP20 136.000 0.000 20080822
Regards
Uwe -
Error during batch determination in sales order
Hi all,
I have this information error during batch determination: LB059 " Error when mixing configuration and selection criteria" .
Does anyone know what i´m doing wrong?
We are using materials with characteristics, and when i try the batch determination in a sales order, i got this messagge.
Thank you all!!Hello Juan
The characteristics you used to configure the product in the sales order are passed dynamically during run time as selection criteria to determine a matching class and that's where the problem is happening.
Sit with an ABAPer to debug and find out what's the issue. Your focus for this activity should be on the following includes to Program SAPLV01F:
LV01FFC1
and
LV01FM01
More specifically, test the following Function Modules with your live data to figure out which one is failing:
CLO0_DDB_OBJ_VALUATION_OPEN
CTMS_DDB_HAS_CHARACTERISTICS
CTMS_DDB_HAS_VALUES
CTMS_DDB_DEL_VALUE
CTMS_DDB_SET_VALUE_INTERNAL
CLO0_DDB_OBJ_VALUATION_CLOSE
Hope this helps. Sorry it is hard to give a functional type of response to this very technical issue. -
Error in batch processing: background job cannot be scheduled
Error in batch processing: background job cannot be scheduled in transaction code jpmg0. How to resolve the same?
Hello,
Check system log and also check work process trace, to know the error.
I feel that it could be Authorization issue, you don't have sufficient authorization to do.
Hope this helps.
Regards
venkata
Edited by: venkata emandi on Sep 12, 2011 8:13 AM -
Error "No batch input data for screen SAPMF02D 0130" MASS tcode Msg:00344
Hi,
I am trying to update the filed "Industry"(KNA1-BRSCH) with value "RNRN" in Customer master data (XD01) through Tcode MASS for 1500 customers. I am getting error "No batch input data for screen SAPMF02D 0130" Message no. 00344. I tried to upate one customer but still the same error popped up. We tried implementing SAP note 737698 but it did not work.
Any inputs please??????Hi,
MASS (KNA1)
Select KNA1-BRSCH
execute
select customers
give your value against New values field
and click on mass change button
Rgds
Murali. N -
Error: No batch input data for screen SAPLSTRD 0300 for BDC OB52
Hello,
I have created one program, where i am just calling transaction OB52 using batch input.
CALL TRANSACTION 'OB52' USING bdcdata
MODE input_method
UPDATE 'S'
MESSAGES INTO itb_msg.
When I run my program in background the it is giving me Error "No batch input data for screen SAPLSTRD 0300 ", but I am changing the MODE to 'A' in foreground then it is working perfectly without any Errors.
Can you guide me why i am getting the above error only when i am executing the program in MODE = 'N'...
Regards,
Sujeet MishraHello,
Actually recording is perfect and it was working fine earlier on production server. now the error i am getting is related to transport request. like when we do the changes in transaction OB52 online is will ask you for transport request, but in my recording we are not taking care of this transport request pop-up screen, but it was working fine earlier.
the code which was working fine is written below:
LOOP AT itb_type.
PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
PERFORM bdc_field USING 'BDC_OKCODE' '=POSI'.
* Ecran Positionner, fonct Suite
PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
PERFORM bdc_field USING 'SVALD-VALUE(01)' p_bukrs.
PERFORM bdc_field USING 'SVALD-VALUE(02)' itb_type-mkoar.
PERFORM bdc_field USING 'SVALD-VALUE(03)' itb_type-bkont.
PERFORM bdc_field USING 'BDC_OKCODE' '=FURT'.
* Ecran principal, fonction Sauvegarde
PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
* Période 1
IF ( p_etape1 = 'X' ).
* Si Jour J+1
PERFORM bdc_field USING 'V_T001B-FRPE1(01)' s_sppe1-low.
PERFORM bdc_field USING 'V_T001B-TOPE1(01)' s_sppe1-high.
PERFORM bdc_field USING 'V_T001B-FRYE1(01)' s_spye1-low.
PERFORM bdc_field USING 'V_T001B-TOYE1(01)' s_spye1-high.
ELSEIF ( p_etape2 = 'X' ).
* Si Jour J+6
PERFORM bdc_field USING 'V_T001B-FRPE1(01)' s_frpe1-low.
PERFORM bdc_field USING 'V_T001B-TOPE1(01)' s_frpe1-high.
PERFORM bdc_field USING 'V_T001B-FRYE1(01)' s_frye1-low.
PERFORM bdc_field USING 'V_T001B-TOYE1(01)' s_frye1-high.
ENDIF.
* Période 2
PERFORM bdc_field USING 'V_T001B-FRPE2(01)' s_frpe1-low.
PERFORM bdc_field USING 'V_T001B-TOPE2(01)' s_frpe1-high.
PERFORM bdc_field USING 'V_T001B-FRYE2(01)' s_frye1-low.
PERFORM bdc_field USING 'V_T001B-TOYE2(01)' s_frye1-high.
* Gpe d'autorisation
PERFORM bdc_field USING 'V_T001B-BRGRU(01)' itb_type-brgru.
PERFORM bdc_field USING 'BDC_OKCODE' '=SAVE'.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'.
* Appel de la transaction OB52
CALL TRANSACTION 'OB52' USING bdcdata
MODE input_method
UPDATE 'S'
MESSAGES INTO itb_msg.
Regards,
SUjeet -
Error regarding batch management while creating GRN
Hello,
While creating GR I am getting error as "Please enter batch". So in Material master in Plant data/Stor1 view when i tried to remove the tick for Batch management it is giving the error as "Batch management requirement cannot be changed, choose "Display errors"". In Display errors it says "Batches already exist". In stock overview some batches existed.
- How can I remove this tick.
Regards,
PriyankaHi,
Below is the procedure to change the Batch Management indicator
Hi,
1 Check the Status of material MMBE
2 There should not be any open Purchase Order Use SE16 & Table EKPO Give the material number for which we have to find the Open Pos; Alternateively ME2M can also be used
3 There should not be any Open Production Order Use SE16 & Table AFPO Give the material number for which we have to find the Open Production Orders
4 There sould not be any Sales Order Use SE16 & Table VBAP Give the material Number for which we have to find the Open Sales Orders
5 There should not be any Purchase Requistion Use SE16 & Table EBAN Give the material Number for which we have to find the Open PRs
6 There should not be any Stock in Transit MB5T
7 There should not be any Plant availability Stock MB53
8 There should not be any Reservation MB25
9 Previuos Period Stock should be zero Use MM03 with Plant Stock & Storage Loc. View If Stock Exists follow the Procedure mentioned in next chapter to close
10 Stock requirement should be zero MD04
11 There should not be any open Delivery Use SE16 & Table LIPS Give the material Number for which we have to find the Open PRs
12 There should not be any open Warehouse Transfer Request Use SE16 & Table LTBP Give the material Number for which we have to find the Open PRs
13 There should not be any open Warehouse Transfer Request Use SE16 & Table LTAP Give the material Number for which we have to find the Open PRs
14 The Batch Corresponding to the plant has to be set for deletion indicator MSC2N
If previous period stocks exist, we can make a withdrawal posting as follows
1. Post the same amount to current period stock (for example, using
movement type 561) so that previous period stock and current period
stock are identical.
2. Make a withdrawal posting in the previous period for the stock
together with posting date (for example, using movement type 562).
If any of the above Stock Exists it has to be closed;If Any of the stock exists we cannot uncheck
After closing all the open items;the related business documents viz Purchase Orders,Production Orders,Delivery,etc has to be Archived
Archiving has certain criteria while doing Archiving Process-- Systematic Archival is the Key factor i.e relationship diagram has be met.
SAP Note Number 533383 - Resetting batch management requirement
Reward points if found useful.
Regards,
E.Vengata Raghavan -
Error starting batch job through Data Services Web Service
I have a customer running our web service interface to BODS. We have not been able to successfully start any jobs due to the following error:
Services sent the request to start batch job 'Job_Test_Web_Services' on server 'null'. The Job Server refused the request with error: Job Server not found
The same interface works against other environments (all XI 3.1), so I need some pointers as to where it gets the server name. Sounds to me like a configuration issue, but I am not a BO DS admin and don't know where to look.
Please help.
Thanks.I was able to reproduce this issue in our own lab by going to the BO DS Server Manager and removing the servers from the configuration. Not sure if this is what is happening at this customer site, but I will check it out and post back.
Not sure why they would not have a Job Server defined if they want to run jobs! -
Error in batch session processing in background mode
Hi ,
I am trying to do data transfer using batch session for transaction FD32.
Here the batch session is executing when I am processing the session in foreground.
Whereas in background mode it is failing.
Please check and assit.
Regards
KishoreHi Kishore,
Probably it will be some information or warning message which is coming in the background execution of the session.
That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
Please let us know of any doubts.
Cheers
VJ -
"No Video" error when Batch Capturing
I am getting a new error that I have not seen before when using Batch Capture in FCP. It cues the tape, starts the pre-roll and then spits out an error message that there is "no video". Of course, there is video.
The same thing does not happen when capturing one clip at a time nor does it happen if you capture live (hitting Capture "Now" in L&C window).
Any thoughts?I also don't want to keep paying $23 a month for software that is not 100%.
Software as complex as Premiere Pro will never be 100% bug free.
I'm also inclined to believe this is more of a system issue than a PP issue. I don't recall other reports of this nature, and it works fine on my own system.
The only other thing I can think of to suggest is another FireWire port, possibly by adding a FireWire card to the system. I've read that the chip makes a difference, so research over in the Hardware forum. -
Error executing batch file within web application
Hi all,
I am trying to execute a batch file from within my web application (struts 1.2).
The batch file is being kept inside the 'src' folder. The batch file contains only one command to open NOTEPAD.
The code inside my Action class is:
URL url = getClass().getResource("/test.bat");
java.io.File file = new java.io.File(url.getPath()) ;
String path = file.getCanonicalPath();
r.exec(path);
I have deployed this on tomcat and get an error like this:
java.io.IOException: Cannot run program "C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\CIGTAFAPP\WEB-INF\classes\test.bat": CreateProcess error=2, The system cannot find the file specified
The problem is not with the batch file because when I try to execute the file directly from the classes folder, it opens up the notepad editor.
I have a specific requirement where I need to create/read this batch file from within the project structure.
Can someone please help me with this?
RegardsThe entire content of the file is as below:
set javaTestProjectPath=D:\projects\CIGTAF\LRTestCases
C:
cd %javaTestProjectPath%
set path=C:\Program Files\Java\jdk1.6.0_21\bin
set classpath=%javaTestProjectPath%\bin;%javaTestProjectPath%\lib\selenium-server-standalone-2.20.0.jar;%javaTestProjectPath%\lib\testng-6.4.jar;%javaTestProjectPath%\lib\junit-4.10.jar;%javaTestProjectPath%\lib\poi-3.6-20091214.jar;%javaTestProjectPath%\lib\mail.jar
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\Mailsetup.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\MailAuthenticator.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadData.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadWriteExcelResults.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\SeleniumFramework.java -d %javaTestProjectPath%\bin
java org.testng.TestNG %javaTestProjectPath%\SelXD-Config.xml -d %javaTestProjectPath%\test-output
none of these are getting executed.
regards
Edited by: 887789 on May 4, 2012 1:46 AM -
Why am getting this ME083 error in BATCH JOB, where as ONLINE not getting?
Hi Experts,
Am creating Purchse Requisation by using BAPI ---> BAPI_PR_CREATE.
If I run ONLINE, Purchse Requisations are creating in EBAN table, with out any erorr messages, fine.
If the same prog. is scheduled as BATCH JOB in production, the Purchse Requisations are creating, fine, but, there is a ERROR MESSAGE in JOB LOG, saying that " ENTER PLANT " of M essage ID& # is "ME 083 "
So, let me know that,
1 - Why am not getting this error message, If I run it ONLINE?
2 - Even though there r error message in JOB LOG (as I mentione din the above), Why the Purc. requisations are creating?
3 - How to track that, from Where this error is coming in BATCH JOB, How to debug the BATCH JOB, after its scheduling?
4 - How to fix it?It is not uncommon for informational/warning messages to appear when a BAPI is run in batch.
Such messages do not prevent the completion of a job, but may provide information about the status of processing.
When you run the job online the message may just flash briefly on the bottom of the screen, and you might not even notice it.
I get similar messages when I run other BAPIs, where the message is logged but the process continues to run.
To address the question of the message itself, if you look at the code underlying the BAPI, for example, include L2105I01, which contains the methods, you can see the place where the message is issued.
The message is issued if field PR_TYPE in the header structure is initial.
This is fairly easy to find just by examining the source behind the BAPI and the methods that it uses.
You can navigate to include L2105I01 just by clicking on Method process in BAPI_PR_CREATE, just as you can with any other navigable object in ABAP.
You should see this in BAPI_PR_CREATE around line 108.
CALL METHOD l_ref_bapi->process( ).
Double click on process.
Method renumbering is then called by Method process if the actyp = hin (a constant meaning add/create which is set in BAPI_PR_CREATE), and if ITEM_INTVL (Item number interval) is not initial.
Double click on Method renumbering.
Method renumbering then checks if field PR_TYPE is initial, and if it is, then the message 083 that you are getting will be issued. You will also see that the message is issued as a warning only, which is why the document is still created.
You can drill down through the code by double clicking, as usual with navigation.
I found this initially by clicking method set_header, which brought up the include with the method code. I then searched for 083, which is the message id. I then backtracked to find out what the path to Method renumbering was.
Always do a little digging in the source, the message has to come from somewhere. If the first search does not get a hit, try the next one until you exhaust the possibilities. I chose set_header, since it appeared to be specific to the function of the BAPI, and something like that will usually be the best place to start. In this case, it took me right to it.
Brian -
Hi,
Iam getting a Error
" Error returning from function G_SET_FETCH,returncode 3"
in a particular batch job, when i tried to understand where it arised from i found its from a Standard SAP program LSHL2F05 and if the FM 'HELP_VALUES_GET_NO_DD_NAME' Fails, This Error Occurs.
How to correct this Error???
Regards,
AnitaHi All,
Thank You very Much for your response.
I checked GS02 Transaction which is used to maintain SET ID's. The User entered the wrong SET ID and that was the problem. Now , Its fine.
Rich, Thanks for turning my attention to SET ID. I was not looking at it at all and was looking at the Job log error message rather.
Thank you Everyone.
Regards,
Anita
Maybe you are looking for
-
Firefox will work fine, then for no reason stop loading websites.
I'll be having a great time on Firefox when out of nowhere it will stop loading websites - it won't give me an error message, it will just saying 'connecting' and spin forever. This can happen at any time and is beginning to get really frustrating -
-
Re: Subscription expired message??
I had quite some credit on Skype, suddenly I could not comunicate with contact partners. Received a message that my contract had expired. My credit is locked up, unless I pay an extra fee for some contract not specified, I will loose my credit if I d
-
Cursor - Suggestions for Dynamic select statements
Hey, Am trying to define a cursor like this - cursor c1 is select table_name from dba_tables INTERSECT select table_name from dba_tables@SOME_DBLINKMy need is to pass this dblink as IN parameter to the procedure and use it in the select statement for
-
Help - Custom Jumpstart 10/09 x86 with ZFS
Hi, I'm trying to Jumpstart Solaris 10/09 x86 with ZFS root paritition. Everything seems to be going okay. My problems are 1. The Server does not automatically boot after completing jumpstart 2. After installation, everytime I reboot the newly jumpst
-
Finding out source database & schema
Hi All , I am logged on to Oracle thru PL/SQL. how can i actually find out which database & schema am i on ? appreciate ur advice tks & rdgs