Debit/credit not showing correctly
Dear All,
I am making a report in which i have to show debit and credit of Actual General Ledger. I am using table FAGLFLEXA-TSL for showing debit and credit . Here I have to put debit in one column and credit in another column. So I wrote the code -
SELECT belnr bukrs gjahr budat INTO CORRESPONDING FIELDS OF TABLE it_bkpf FROM bkpf
WHERE belnr = doc_no
and bukrs = com_code
AND gjahr = year.
SELECT docnr racct tsl drcrk bschl INTO CORRESPONDING FIELDS OF TABLE it_faglflexa FROM faglflexa
FOR ALL ENTRIES IN it_bkpf
WHERE docnr = it_bkpf-belnr.
LOOP AT it_faglflexa INTO wa_faglflexa.
READ TABLE it_bsak INTO wa_bsak WITH KEY BELNR = wa_faglflexa-docnr.
READ TABLE it_ska1 INTO wa_ska1 WITH KEY saknr = wa_faglflexa-racct.
* wa_final-dmbtr = wa_bseg-dmbtr.
IF wa_faglflexa-bschl = '50' AND wa_faglflexa-drcrk = 'H'. " For Debit wa_faglflexa-drcrk = 'H' AND
wa_final-debit = wa_faglflexa-tsl.
endif.
IF wa_faglflexa-bschl = '25' AND wa_faglflexa-drcrk = 'S'. " For Credit wa_faglflexa-drcrk = 'S' AND
wa_final-credit = wa_faglflexa-tsl.
ENDIF.
wa_final-lifnr = wa_bsak-lifnr.
wa_final-racct = wa_faglflexa-racct.
wa_final-txt50 = wa_ska1-txt50.
APPEND wa_final to it_final.
ENDLOOP.
But debit and credit not coming correctly. Please help me to solve the issue.
Thanks,
With regards,
Tripod.
Hi I don't know why you have not clear wa_final after appending to it_final, so I did bolow change, please check.
Here while looping it_faglflexa, all the time it_final gets appended.
If you won't clear wa_final then entries of previouse entry may get mixed up.
Please try below code.
SELECT belnr bukrs gjahr budat INTO CORRESPONDING FIELDS OF TABLE it_bkpf FROM bkpf
WHERE belnr = doc_no
and bukrs = com_code
AND gjahr = year.
SELECT docnr racct tsl drcrk bschl INTO CORRESPONDING FIELDS OF TABLE it_faglflexa FROM faglflexa
FOR ALL ENTRIES IN it_bkpf
WHERE docnr = it_bkpf-belnr.
LOOP AT it_faglflexa INTO wa_faglflexa.
READ TABLE it_bsak INTO wa_bsak WITH KEY BELNR = wa_faglflexa-docnr.
READ TABLE it_ska1 INTO wa_ska1 WITH KEY saknr = wa_faglflexa-racct.
* wa_final-dmbtr = wa_bseg-dmbtr.
IF wa_faglflexa-bschl = '50' AND wa_faglflexa-drcrk = 'H'. " For Debit wa_faglflexa-drcrk = 'H' AND
wa_final-debit = wa_faglflexa-tsl.
endif.
IF wa_faglflexa-bschl = '25' AND wa_faglflexa-drcrk = 'S'. " For Credit wa_faglflexa-drcrk = 'S' AND
wa_final-credit = wa_faglflexa-tsl.
ENDIF.
wa_final-lifnr = wa_bsak-lifnr.
wa_final-racct = wa_faglflexa-racct.
wa_final-txt50 = wa_ska1-txt50.
APPEND wa_final to it_final.
clear wa_final. " added
ENDLOOP.
Similar Messages
-
Account Balance not showing correctly
Sir,
Suppose , i have posted an invoice of Rs.200 against a customer and after some times i recieved payment from this customer of Rs.200 So, accout balance of this customer should be zero.. But when i see the account balance from business partner master data , it should me Rs.-400 in accout balance field but when i navigate through orange arrow in to accoutn balance details , there i get zero in balance due field?? ie. it is showing coorectly in details of account ballance but in the business partner master data it is not showing correctly??hi divya,
Check SAP Note 904002 - Customer account balance is displayed with negative sign
Summary
Symptom
Customer Balance is displayed with minus.
Other terms
Customer balance, Supplier Balance, Credit Balance, Debit Balance, Display Credit Balance with Negative Sign, Company Details, System Initialisation, business partner, accounts, SAP Business One
Reason and Prerequisites
Customer balance is displayed in negative though you expect it to be positive.
Solution
Under Administration->System Initialisation->Company Details and the 'Basic Initialisation' tab you will find the setting 'Display Credit Balance with Negative Sign'. This setting decides how Customer and Supplier balances will be displayed.
NOTE!
When creating a company it is important to know that this setting is irreversible once transactions have been made in the company.
When this box IS checked the following applies:
Customer balances will be displayed as Positive.
Supplier balances will be displayed as Negative.
When this box IS NOT checked the following applies:
Customer balances will be displayed as Negative.
Supplier balances will be displayed as Positive.
This setting also influences the entry of opening balances for the G/L accounts. Depending on this setting, the opening balances must be entered as positive or negative numbers.
By default this box is checked when a new company is created.
Header Data
Release Status: Released for Customer
Released on: 02.12.2005 10:42:10
Master Language: English
Priority: Recommendations/additional info
Category: Consulting
Primary Component: SBO-ADM-INI-DET Company Details
Secondary Components: SBO-BP Business Partners
Affected Releases
Release-Independent
Hope it solves problem.
Jeyakanthan -
Not showing correct output when parsing the date
//WAP the gives the details of employees
import java.io.*;
import java.util.*;
import java.text.Format;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
class employee
private String nm,curr_dt;
private Date dob,doj;
private int salary;
employee()
nm="\0";
dob=null;
doj=null;
curr_dt=null;
salary=0;
void getdata()throws IOException
String dt;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//we can create date with these 3 type of objects
Format fm=new SimpleDateFormat("dd-mm-yyyy");
DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
//object of base class are type compatible with the object of derived class
SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
System.out.print("\nEnter the name of Employee : ");
nm=br.readLine();
try{
System.out.print("\nEnter the date of birth of Employee : ");
dt=br.readLine();
dob=(Date)fm.parseObject(dt);
System.out.print("\nEnter the date of joining of Employee : ");
dt=br.readLine();
doj=df.parse(dt);
}catch(ParseException e){
Date d=new Date();
curr_dt=sdf.format(d);
System.out.print("\nEnter the salary of employee : ");
salary=Integer.parseInt(br.readLine());
void putdata()
System.out.println("\n\n\nEmployee Name : "+nm);
System.out.println("\nDate of birth : "+dob);
System.out.println("\nDate of joining : "+doj);
System.out.println("\nCurrent date : "+curr_dt);
/*if((doj-curr_dt)>1)
salary+=3000;
System.out.println("\nSalary of Employee : "+salary);
class emp
public static void main(String str[])throws IOException
employee emp[]=new employee[1];
System.out.println("\nEnter the detail of employees \n\n");
for(int i=0;i<1;i++)
emp=new employee();
emp[i].getdata();
System.out.println("\n\nDetail of employees are\n\n");
for(int i=0;i<1;i++)
emp[i].putdata();
}*Output:*
Enter the detail of employees
Enter the name of Employee : Rajendra Sharma
Enter the date of birth of Employee : 10-10-1979
Enter the date of joining of Employee : 05-09-2004
Enter the salary of employee : 2000
*it is not showing date in the "dd-mm-yyyy" format and not showing correct month as well*
Detail of employees are
Employee Name : Rajendra Sharma
Date of birth : Wed Jan 10 00:10:00 IST 1979
Date of joining : Mon Jan 05 00:09:00 IST 2004
Current date : 17-08-2008
Salary of Employee : 2000Hi,
Use below code that will help u to sort ur problem.
import java.io.*;
import java.util.*;
import java.text.Format;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
class employee
private String nm,curr_dt;
private Date dob,doj;
private int salary;
private String dobb,dojj;
employee()
nm="\0";
dob=null;
doj=null;
curr_dt=null;
salary=0;
void getdata()throws IOException
String dt;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//we can create date with these 3 type of objects
DateFormat fm=new SimpleDateFormat("dd-mm-yyyy");
DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
//object of base class are type compatible with the object of derived class
SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
System.out.print("\nEnter the name of Employee : ");
nm=br.readLine();
try{
System.out.print("\nEnter the date of birth of Employee : ");
dt=br.readLine();
dob=(Date)fm.parseObject(dt);
dobb= fm.format(dob);
System.out.print("\nEnter the date of joining of Employee : ");
dt=br.readLine();
doj=df.parse(dt);
dojj = df.format(doj);
}catch(ParseException e){
Date d=new Date();
curr_dt=sdf.format(d);
System.out.print("\nEnter the salary of employee : ");
salary=Integer.parseInt(br.readLine());
void putdata()
System.out.println("\n\n\nEmployee Name : "+nm);
System.out.println("\nDate of birth : "+dobb);
System.out.println("\nDate of joining : "+dojj);
System.out.println("\nCurrent date : "+curr_dt);
/*if((doj-curr_dt)>1)
salary+=3000;
System.out.println("\nSalary of Employee : "+salary);
class emp
public static void main(String str[])throws IOException
employee emp[]=new employee[1];
System.out.println("\nEnter the detail of employees \n\n");
for(int i=0;i<1;i++)
emp=new employee();
emp[i].getdata();
System.out.println("\n\nDetail of employees are\n\n");
for(int i=0;i<1;i++)
emp[i].putdata();
thanks,
prabhu selvakumar. -
SharePont 2013 Document Library lookup Column Properties not Showing Correctly when editing in Word
Hi
I keep seeing this issue albeit intermittently. I have set up a doc library for my users which has a custom content type (lookup, metadata columns, etc) . They all appear perfectly most of the time except the lookup column. Sometimes is just
decides to display the title field of the current library and not the lookup list title . It is weird as it has been working perfectly for ages given the library is populated with valid documents.
There are some fixes listed here. Has anyone got any experience of this?
https://social.msdn.microsoft.com/Forums/azure/en-US/e0b55531-509c-4219-8113-61b3e488de69/document-library-metadata-properties-of-a-content-type-do-not-show-correctly-when-editing-in-word?forum=sharepointdevelopmentprevious
Freelance consultantHi,
According to your post, my understanding is that the lookup column not display well while editing in word.
Did you customize the Document Information Panel?
I recommend you edit your custom document information panel or create a new document information panel, then re-publish it to check whether it works.
https://support.office.com/en-gb/article/Create-or-edit-a-custom-Document-Information-Panel-for-a-content-type-b701a9af-3ea6-4c1a-9e1c-75363bd987c9?ui=en-US&rs=en-GB&ad=GB
Or you can also use the methods in the post you have pasted to check whether it works.
As the limitation of the environment, we could not reproduce the issue in our environment.
I would suggest you open a case to Microsoft Customer Service via Phone.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
The web site of Adobe does not show correctly in FireFox
I have a bizarre problem. The site of Adobe (including where I can download the flash player) does not show correctly in FireFox and I only see it as a text HTML page, but without most images (typically, for instance, I do not see the image "Download now" but see a text line "Dowload now", and so on...
This seems to specifically affect the Adobe web site as I have no problme for other web sites (so far).
It is something specific to FireFox as I do have the problem with Internet Explorer.
The problem persis even if I restart FireFox without any add-on (safe mode).
Any suggestion ?Does this only happen in Firefox? What do you see with Internet Explorer or Chrome? If it is only Firefox, I'd try these steps in this order:
1. Clear your cookies and cache
2. Reset your Firefox settings
3. Make a new profile
Chris -
This is my site http://globaledsource.com/ then the characters is not showing correctly. This is what happen in my site http://globaledsource.com/wp-content/uploads/2013/03/MAS_ThemeProbleme-1024x1024.jpg
Hi paulique, the simplest next test would be to disable all plugins and extensions (except Shockwave Flash, which is pretty much indispensable) here, restart Firefox, and see whether your font works without them:
orange Firefox button (or Tools menu) > Add-ons > Plugins category<br>
orange Firefox button (or Tools menu) > Add-ons > Extensions category -
Spot colors not showing correctly in acrobat 11
Spot colors not showing correctly in the output preview as well as the page correctly. I have a spot pms
295 on a page in a few different areas of text and backgrounds. The spot color shows on 1 of my backgrounds
and text and a spot color on another background does not. These items are on the same page. Although I
can use the eyedropper to check the color of these items and it states the spot color is present. The page
also prints correctly. Previews not happening.I included 3 screen shots from Acobat 11 of the test requested. Also, included the last screen shot from Acobat 9 of same file.
Which shows correct preview. To eliminate possible ICC profile issue. I did change profiles to all that were in the profile list
with no change in either test. -
Photo events do not show correctly in my iPhone
Photo events do not show correctly in my iPhone. I have 21 events in my iPhoto but they appear in many different groups in my iPhone.
Mine too. Anyone have a clue how to fix this?
-
Few of the text in Tibetan language subtitle is not showing correctly
Dear frds, I am working on 2 hours project which consist of 3 language i.e. English, Russian and Tibetan. Both English and Russian is showing correct while importing in Encore DVD 2 but few of the text which is in Tibetan Subtitle is not showing correctly. I have choosen the font correctly still few of the text is not correct format.
Is there any way to correct my Tibetan language text either by disabling speeling or grammer check or something else ???
Or is there any other way to import the subtitle is Picture format ???
Will be thankful for your kiind help. I stuck my project, please help me...did you get a solution to this?
We had Encore cs3 and that didn't handle Tibetan well.
Did you use Encore Cs6 to get Tibetan to work ? -
Fonts not showing correctly only when on my account page on app store
fonts not showing correctly only when on my account page on app store
Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
Secondly, try all the other ports on your computer, even a number of times.
Thirdly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
Failing all that, see here - http://support.apple.com/kb/TS1538 for Windows and http://support.apple.com/kb/TS1591 for Macs
And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
http://www.apple.com/support/ipad/assistant/itunes/ -
The onhand quantity at sub inventory level it is not showing correctly
For an item the org level quantityt is showing correctly but at sub inventory level it is not showing correctly.
1)For an item org level the avilablty as below :
On Hand / Avail to Reserve / Avail to Transact are
oRG level 7 7 7
STAGING 7 7 7
STORES 0 0 0
2) Created an Sales order with quantity 5 ,then STAGING decreased by 5 which is correct.
the avilablty as below :
On Hand / Avail to Reserve / Avail to Transact are
oRG level 7 7 7
STAGING 2 2 2
STORES 0 0 0
3) Shipping Transaction not completed,Received 4 into Stores – Staging avail increased by 6 and even STORES also increased by 4 . Here we do not understand why STAGING increased to 6.
the avilablty as below :
On Hand / Avail to Reserve / Avail to Transact are
oRG level 7 7 7
STAGING 6 6 6
STORES 4 4 4
4)Ship Transaction Completed sucessfully now the values are showing correctly.
The avilablty as below :
On Hand / Avail to Reserve / Avail to Transact are
oRG level 7 7 7
STAGING 2 2 2
STORES 4 4 4Hi Patel,
You can create a confirmations using CO11N for sub-operations, but you can only confirm hours, not yield quantity. The yield quantity requried to be confirmed in the operation. You can partially or fully confirm sub-operations.
Enter the order number, sub -operation number all the related data will be displayed execpt greyed quantity fields.
Can you see the "sub-operation" entry field below "oper./activity" in CO11N ?
Thanks & Regards,
Ramagiri -
finder is not showing correct file in cover flow mode. The files shown in the top panel are one file off.
This problem occurs after I move a file or files to trash. If I remove one file, then the sequence is one file off, if I move two files to trash then the sequence istwo file off. For example, if I delete file 1 and highlight (click on) file 3, then the cover flow panel shows file 2, when it should show file 3.
-
VL06I Inbound delivery monitor not showing correct results
Dears,
We are creating inbound deliveries on the basis of POs and creating GR via MIGO after eliminating movement type in line item catageory by using SPRO. For monitoring we would like to use VL06I but its not showing correct results.
Can anyone guid me ?
Regards,
FRYou can list all Inbound Deliveries by selecting "List Inbound Deliveries" Tab in VL06I
May be if you can little elaborate the issue -
Bapi for Debit/Credit Note data
Hi All,
Can someone help me finding an standard BAPI for getting the Debit/Credit note history of a customer.
Thanks in Advance,
Abhi.......Raj you can try with these also:
use...
'BAPI_CRED_MEMO_CREATEFROMDAT2'
data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.
CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'
EXPORTING
ORDER_HEADER_IN = bapi_hdr
business_object = con_cr_memo_bus_obj
convert = 'X'
IMPORTING
SALESDOCUMENT = bapi_salesdoc
TABLES
return = bapi_ret_tbl
ORDER_ITEMS_IN = bapi_itm
ORDER_PARTNERS = bapi_prtnr
ORDER_ITEMS_inx = bapi_itm_out
order_schedules_in = bapi_schd_lin
order_text = bapi_text.
AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE
Please have a look in older topics:
<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="95866"></a>
<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="82006"></a>
Also:
Did you try BAPI_INCOMING_INVOICE_CREATE with DOC_TYPE (CREDIT MEMO) field in BAPI_INCINV_CREATE_HEADER.
Amit. -
Balance Sheet not showing correct sign for Liability and Equity
Hai,
I am using SAP PL 40,
In SAP Balance sheet Report,
Liability Ledgers and Equity Ledgers is not showing correct sign. i mean,
In my Liability Ledger the value is
INR-10000.
In Balance sheet it showing
INR1000.
And also, is it possible to bring Dr and Cr column in Balance Sheet?
Now, it's coming in single Column.
Please help me out.
Regards,
Thanga Raj.K
09710445987Hi
It's the system definition that under Standard Balance Sheet Report, the
Liabilities are displayed with POSITIVE SIGN although we know that the
balance for those liabilities accounts are negative. The reason for it
is that the liabilities accounts are defined as Passive Account, so when
the balance is negative, it's displayed with positive sign. And when
the balance is positive, it is displayed with negative sign. The
definition is mainly for the purpose of the reporting. In most of the
localizations, the financial reports supplied by the business should
display Liability and Equity with positive sign.
If you really want to display them in negative sign , you can define a
customized report template in Financials->Financial Report Templates->
and select all liabilities and tick the box in front of 'Reversal Sign'.
Regards,
Syn Qin
SAP Business One Forums Team
Edited by: Syn Qin on Aug 22, 2008 8:49 AM
Maybe you are looking for
-
my icloud stopped working photo streem wont streem and when I go to icloud web page it says error in cloudos when I try to sumitt this to apple it says icloud stopped working I don't know what to do
-
My application identify payments and amount to pay to different parties. In some cases, a party may receive more than one payment. The payment data is sent to our banking system. The banking system assign cheque number and generate cheque image in AF
-
Can someone explain the speed?
I upgraded from the 40mb service to the 80mb service - as I was receiving 38mb speeds & the tester said a minimum of 75mb for my line, I signed up for the increase (renewing the contract for 18 months). After the upgrade my speed did increase by 10 t
-
Desing input needed: JMS in cluster(s) for OSB
Hi I have two admin servers prod A and prod B on two separate physical boxes. prod A has managed servers MS1 and MS2. : Together they form cluster A prod B has MS3 and MS4.: Together they form cluster B Client forwards request to a loadbalancer which
-
Retrieve item level dates during service order creation before saving
I have a requirement where I need to retrieve item level date (First Response i.e. APPT_TYPE as SRV_RFIRST) and modify the date and put it back to the same screen field when ever a line item is entered. To do this we found a BADI CRM_SERVICE_I_BADI w