Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error - Negative values not allowed

Former Member
0 Likes
4,423

Hi,

I was running a BDC program with the user for F-28 Post incomming payments. After processing the BDC session it is giving the error saying Negative values not allowed. Can some one please help me find out what is this error and how to fix it.

Thanks,

Neelu.

12 REPLIES 12
Read only

JozsefSzikszai
Active Contributor
0 Likes
2,757

hi neelu,

this transaction is doing some posting to Finance Modul. In Accounting negative values are not allowed, but somehow the program wanted to post negative value to an account. This is the error. What you can do is that whe the program creates the BI session, you have to stop it at the posint when the negative value is assigned to the transaction, and you have to debug, how it becomes negative.

hope this helps

ec

Read only

Former Member
0 Likes
2,757

Hi Neelu,

Best thing would be to debugg the program. Then you can know whether the negative values are coming from the flat file or after uploading the flat file data into your program, is there any logic written to convert into negative value etc.

Hope this helps.

Thanks,

Srinivasa

Read only

0 Likes
2,757

Thank you Eric and Srinivasa.

This program was in production from sometime. Some one else did this program. I was just helping the user. After creating the session should I run it in the foreground? This is really large check with 30,000 records. Please help me. User is in a hurry to clear this check immediately.

Regards,

Neelu.

Read only

0 Likes
2,757

hi neelu,

you should run with type E, so it stops only when there is a problem (i. e. negative value). On the other hand it looked like (at least for me), that the BDC was already running and you know which transactuion has the problem. But the main idea was to go back to the program that creates this BDC, because the real problem is there.

ec

Read only

0 Likes
2,757

Hi Eric,

The program takes the text file as input file and creates the session. When I go to SM35 here I have 3 options to run, fore ground, back ground and display errors only. In additional functions I have Extended log, Expert mode and Dynpro standard size(This is the one checked automatically).

Should I select Display errors only and run it? Please help me with this problem.

Thanks,

Neelu.

Read only

0 Likes
2,757

first run in Background, so if there are too many lines with errors, than it happens in the background. If it is finished, now you have a log, so you know how many problems are there.

If there are not too much you can do in Display errors only mode, to have a closer look. But as I told you have to debug tha main program which creates the BDC

Read only

0 Likes
2,757

Hi Eric,

Thank you.

User said she is using the program from last few months and she said it was running ok. I checked the log it is not showing any errors now, only the Negative values not allowed error. When we ran first time it gave one error few times, 'No appropriate line item is contained in this document' and after giving reason codes, now no more errors.

Thanks,

Neelu.

Read only

0 Likes
2,757

Hi,

How should I run with type E, so it stops only when there is a problem?

Thanks,

Neelu.

Read only

0 Likes
2,757

Hi Neelu,

While executing the program you can set the display mode if the parameter is there on the selection screen else you have to set the parameter in debugging mode.

After session is created,select the radio button for 'Display Errors only' and then run the session during the processing of the session.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa

Message was edited by:

Srinivasa Bhanuprasad Moningi

Read only

0 Likes
2,757

Hi,

Can I select the 'Display Errors only' for session processing to stop when error is there and at that point can I correct the error and process remaining in foreground?

Thanks,

Neelu.

Read only

Former Member
0 Likes
2,757

Hi Neelu,

just take 2 records in the flat file and run it in the foreground with functional guy.

This issue is belongs to Configuration , so better to sit with functional and show them where the error is raised .

if not the configuration problem just check in the flat file the values available is with -ve r not .

No Doudt this is mostly functional configuration.

Thanks

Naveen khan

Message was edited by:

Pattan Naveen

Read only

Former Member
0 Likes
2,757

Hi,

We split the check in to 3 10,000 records. Two of them processed without any problem. One check gave problem with 2 records of less than dollor deposits. I corrected it and the check processed.

Thank you all for your help.

Now I have to figure out why the program did not take less than dollor amounts as deposits and why it was taking those as credits(negative numbers).

Regards,

Neelu.