Document is not a purely clearing document (FBRA)
Dear all
We are trying to reset the clearing of a Vendor Payment made using FBZ2 in foreign currency. SAP gives the error that the document is not a purely clearing document. It is true that the bank sub account is also cleared with the payment and as SAP suggests we need to reverse this clearing as well.
However, my question is why doesn't SAP let us choose between only resetting the clearing or resetting and reversing as it does in similar cases but as I can see when we have payments using FBZ1 in local currency.
Can you please provide some help on this please.
With many thanks,
PRG
Peter-
One reason i can think of is, for foreign payments you would normally do foreign currency re-valuation of the open balances end of the month and there is a chance that for this document, there exists a revaluation document. I remember seeing it before.
If you have to reverse the revaluation document, then you would have to create a revaluation method for reset, and include this particular document in the f.05 transaction and run the program. This way, it will reset original document and you can reverse your payment document.
Hope this helps.
Shail
Similar Messages
-
F-26 Customer code not showing on clearing document
Hello,
I usually run transaction F-26 to do customer clearings.
I dont know what happened for this customer that when I simulate the clearing document the customer line disappear.
The document is cleared normally but the customer code line item does not show on the clearing document (type "CM"-cheque)
PS: When I run F-26 I insert any bank account and amount 0.00 just to specify the document numbers on "additional selections"
I dont know why this happened just this time. I´ve analyzed customer master data on XD03 but I dont know if its something related to this.
What else could I check ?
Thanks,
AlexHi Kyoko,
I agree with you that system probably is working as intended, and also I don't think F-26 is the ideal transaction for this. Probably F-13 is more appropriated.
Anyway, the 2 documents for customer "Y" are with zero balance clearing too (the same as customer "X") but the customer line item appears on the clearing document.
We usually run F-26 to clear more than 2 customers also. We inform the document numbers on additional selection.
So I still need to know why the item line for customer "X" did not appear on clearing document
Regards,
Alex -
Find cleared document according entry date of clearing document.
Hi,
i have poor performance in this issue. I would find cleared document according clearing document. On selection screen are cpudt and cputm clearings documents and i need to find cleared document for these document.
First statement
select bukrs gjahr belnr into table i_bkpf from bkpf where cpudt in so_cpudt and cputm
Second statement
select burks gjahr belnr into table i_itab
for all entries in i_bkpf from bsas where bukrs = i_bkpf-bukrs
<b>and augbl = i_bkpf-belnr and augdt = i_bkpf-budat</b>
Third stat.
select burks gjahr belnr appending table i_itab
for all entries in i_bkpf from bsak where bukrs = i_bkpf-bukrs
<b>and augbl = i_bkpf-belnr and augdt = i_bkpf-budat</b>
all is OK but condition augbl = i_bkpf-belnr and augdt = i_bkpf-budat has very poor performance!!
How to solve it? Do you have any solution?
Thank you very much.Hi Vidlak,
If you might have noticed, BSAK has a secondary index available (number 1) with the fields :
LIFNR
BUKRS
AUGDT
AUGBL
GJAHR
BELNR
BUZEI
in the same order. Now since you cant obviously build and query on the primary key atleast try to complete the secondary index key. I can see i_bkpf has BUKRS & GJAHR key, and in the index AUGDT comes before AUGBL hence in construct your where clause for the third statement as
WHERE BUKRS EQ I_BKPF-BUKRS AND
AUGDT EQ I_BKPF-BUDAT AND
AUGBL EQ I_BKPF-BELNR AND
GJAHR EQ I_BKPF-GJAHR.
this should certainly help improve performance.
Also seeing how many FOR ALL ENTRIES clauses u are using, one thing for performance improvement is ensure the table is NOT empty before using it and sort the table with its keys.
Hope its of some help.
Regards,
Aditya -
Document line item text in Clearing document
Dear All,
Document line item text
My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
(i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
According to me i can use a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
is there any other enhancements possible or can some one help me with the programming logic to be applied here.
Thank you
Regards,
Vasanth Dlike which vendor invoice line item text the clearing document should pick up?
is there any other enhancements possible or can some one help me with the programming logic to be applied here
Why don't you discuss the issue with your client? As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text. What is the reason for the requirement? Perhaps there's another solution. -
The document could not be read: the document does not have a valid format.
I created a 10MB document in Pages about a week ago. Around that time, I reopened the document and edited it with no problems. A week later, I've tried to open the document but Pages gives me the following error:
The document "[Document Name].pages" could not be read. The document does not have a valid format.
I created, edited, and saved this document in Pages, so I am confused as to why Pages would be unable to re-open the file, especially as I haven't done anything to it since it worked last. I was worried that my hard drive might have corrupted the file so I ran diagnostic tests but everything was fine. I was also worried that because the file is synced with my iDisk that iDisk corrupted the file while syncing it or something but I don't know what I could do to check this. Either way, it's an important file and I need to open it: I thought that by putting it on iDisk I would have a copy in case something happened to my computer but this seems not to have helped (and maybe hurt!).
Any file recovery tools or other ways that I can open this file?No, I don’t have Pages ’08 installed, but did in the past—is this a current issue?
Pages ’09 is registered.
I have tried dragging the file onto the app icon directly.
To recover at least the text, I did the “rename as zip, open index.xml” trick. Of course, in order to interpret that file, you do have to understand XML (thank god I do)… but if I hadn’t, man that would’ve been a major bummer. -
Print Document option, not work when adding documents.
Dear friends.
I have checked inside SAP BO the checkbox Print Document when AR Invoice is added (Print preferences) But this action not work because the document not is printed automatically, then the user has to print it manually.
Thanks for your comments,
DanielThanks Rahul,
That was the way: Option Defaults in the User Definition.
Best Regards,
Daniel -
Document number not updating in the document
hi gurus,
this is a excise invoice voucher form used by the client .
some values are not updated in document no.
could someone tell me why it is not updating.
if there are any corrections in code pls update me and solve my problem.
urs
pradeep.r
*& Include ZFI_PAY_ADVICE_F01_STR_2 *
*& Form select_data
text
--> p1 text
<-- p2 text
FORM SELECT_DATA .
REFRESH IT_BKPF.
CLEAR IT_BKPF.
SELECT BELNR GJAHR XBLNR BLDAT BLART INTO CORRESPONDING FIELDS OF
TABLE IT_BKPF FROM BKPF
WHERE BELNR IN S_BELNR
AND GJAHR IN S_GJAHR
AND BUKRS IN S_BUKRS.
IF IT_BKPF[] IS INITIAL.
MESSAGE S001.
ENDIF.
SORT IT_BKPF BY BELNR GJAHR.
LOOP AT IT_BKPF.
SELECT SINGLE EBELN WRBTR WERKS LIFNR KUNNR INTO
(IT_BKPF-ZUONR,IT_BKPF-WRBTR,IT_BKPF-WERKS,IT_BKPF-LIFNR,IT_BKPF-KUNNR)
FROM BSEG
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS
AND KOART = 'K'.
IF NOT IT_BKPF-LIFNR IS INITIAL.
DATA : WRK_ADRNR LIKE LFA1-ADRNR.
CLEAR WRK_ADRNR.
SELECT SINGLE ADRNR INTO WRK_ADRNR FROM LFA1
WHERE LIFNR = IT_BKPF-LIFNR.
SELECT SINGLE NAME1
NAME2
NAME3
NAME4
CITY1
REGION
COUNTRY
STREET
INTO (IT_BKPF-NAME1,IT_BKPF-NAME2,IT_BKPF-NAME3,IT_BKPF-NAME4,
IT_BKPF-CITY1,IT_BKPF-REGION,IT_BKPF-COUNTRY,IT_BKPF-STREET)
FROM ADRC
WHERE ADDRNUMBER EQ WRK_ADRNR.
Text for Country
SELECT SINGLE LANDX INTO IT_BKPF-LANDX FROM T005T
WHERE LAND1 = IT_BKPF-COUNTRY
AND SPRAS EQ SY-LANGU.
Text for Region
SELECT SINGLE BEZEI INTO IT_BKPF-BEZEI FROM T005U
WHERE BLAND = IT_BKPF-REGION
AND SPRAS EQ SY-LANGU
AND LAND1 = IT_BKPF-COUNTRY.
ENDIF.
IF NOT IT_BKPF-KUNNR IS INITIAL.
CLEAR WRK_ADRNR.
SELECT SINGLE ADRNR INTO (WRK_ADRNR) FROM KNA1
WHERE KUNNR = IT_BKPF-KUNNR.
SELECT SINGLE NAME1
NAME2
NAME3
NAME4
CITY1
REGION
COUNTRY
STREET
INTO (IT_BKPF-NAME1,IT_BKPF-NAME2,IT_BKPF-NAME3,IT_BKPF-NAME4,
IT_BKPF-CITY1,IT_BKPF-REGION,IT_BKPF-COUNTRY,IT_BKPF-STREET)
FROM ADRC
WHERE ADDRNUMBER EQ WRK_ADRNR.
Text for Country
SELECT SINGLE LANDX INTO IT_BKPF-LANDX FROM T005T
WHERE LAND1 = IT_BKPF-COUNTRY
AND SPRAS EQ SY-LANGU.
Text for Region
SELECT SINGLE BEZEI INTO IT_BKPF-BEZEI FROM T005U
WHERE BLAND = IT_BKPF-REGION
AND SPRAS EQ SY-LANGU
AND LAND1 = IT_BKPF-COUNTRY.
ENDIF.
MODIFY IT_BKPF.
ENDLOOP.
REFRESH IT_DATA.
CLEAR IT_DATA.
LOOP AT IT_BKPF.
DATA : WRK_BSAKBELNR LIKE BSAK-BELNR.
CLEAR WRK_BSAKBELNR.
SELECT SINGLE BELNR INTO WRK_BSAKBELNR FROM BSAK
WHERE AUGBL = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS.
Advance
IF WRK_BSAKBELNR IS INITIAL.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = IT_BKPF-BELNR.
IT_DATA-GJAHR = IT_BKPF-GJAHR.
IT_DATA-XBLNR = IT_BKPF-XBLNR.
IT_DATA-BLDAT = IT_BKPF-BLDAT.
IT_DATA-BLART = IT_BKPF-BLART.
IT_DATA-ZUONR = IT_BKPF-ZUONR.
IT_DATA-WRBTR = IT_BKPF-WRBTR.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDS
DATA : WRK_TDSWRBTR LIKE BSIS-WRBTR.
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
ENDIF.
DATA : WRK_BSCHL LIKE BSIS-BSCHL.
CLEAR WRK_BSCHL.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'
AND BSCHL = '40'.
IF WRK_BSCHL IS INITIAL.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND XREF3 NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'
AND BSCHL = '40'.
ENDIF.
IF WRK_BSCHL IS INITIAL.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
ENDIF.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
Discount
DATA : WRK_DEDWRBTR LIKE BSIS-WRBTR.
CLEAR WRK_DEDWRBTR.
SELECT SUM( WRBTR ) INTO WRK_DEDWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ EQ SPACE
AND BUKRS IN S_BUKRS
AND BSCHL NE '50'.
IF NOT WRK_DEDWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_DEDWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ EQ SPACE
AND BUKRS IN S_BUKRS
AND BSCHL NE '50'.
ENDIF.
IF NOT WRK_DEDWRBTR IS INITIAL.
IT_DATA-XBLNR = 'Discount'.
IT_DATA-WRBTR = WRK_DEDWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
Invoice
ELSE.
REFRESH IT_BELNR.
CLEAR IT_BELNR.
DATA : W_YEAR(4),
W_MONTH(2) VALUE '04',
W_DATE(2) VALUE '01',
W_YEAR1(8).
W_YEAR = S_GJAHR-LOW.
CONCATENATE W_YEAR W_MONTH W_DATE INTO W_YEAR1.
SELECT BELNR GJAHR XBLNR BLDAT BLART ZUONR WRBTR BSCHL INTO
TABLE IT_BELNR FROM BSAK
WHERE AUGBL = IT_BKPF-BELNR
AND AUGDT GE W_YEAR1
AND GJAHR = IT_BKPF-GJAHR
AND BELNR NE IT_BKPF-BELNR
AND BUKRS IN S_BUKRS.
SORT IT_BELNR BY BELNR GJAHR.
LOOP AT IT_BELNR.
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = IT_BELNR-BELNR.
IT_DATA-GJAHR = IT_BELNR-GJAHR.
IT_DATA-XBLNR = IT_BELNR-XBLNR.
IT_DATA-BLDAT = IT_BELNR-BLDAT.
IT_DATA-BLART = IT_BELNR-BLART.
IT_DATA-ZUONR = IT_BELNR-ZUONR.
IT_DATA-WRBTR = IT_BELNR-WRBTR + WRK_TDSWRBTR .
IF IT_BELNR-BSCHL GE '31' AND IT_BELNR-BSCHL LE '39'.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
ELSE.
IF IT_BELNR-BSCHL GE '21' AND IT_BELNR-BSCHL LE '29'.
IT_DATA-WRBTRC = IT_DATA-WRBTR * - 1.
ENDIF.
ENDIF.
APPEND IT_DATA.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDSBELNR
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
CLEAR WRK_BSCHL.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSIS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND BSCHL = '40'.
IF WRK_BSCHL IS INITIAL.
SELECT SINGLE BSCHL INTO WRK_BSCHL FROM BSAS
WHERE BELNR = IT_BELNR-BELNR
AND GJAHR = IT_BELNR-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND BSCHL = '40'.
ENDIF.
IF WRK_BSCHL IS INITIAL.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
ENDIF.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
ENDIF.
ENDLOOP.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
TDSVBELNR
CLEAR WRK_TDSWRBTR.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'XX'
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSAS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND QSSKZ NE SPACE
AND QSSKZ NE 'XX'
AND AUGBL = SPACE
AND BUKRS IN S_BUKRS
AND QSSKZ NE 'S1'
AND QSSKZ NE 'S2'.
ENDIF.
**INSERTED BY PALANI ON 01.04.2006
IF WRK_TDSWRBTR IS INITIAL.
SELECT SUM( WRBTR ) INTO WRK_TDSWRBTR FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR.
ENDIF.
***END BY PALANI.
IF NOT WRK_TDSWRBTR IS INITIAL.
IT_DATA-XBLNR = 'TDS/ECess'.
IT_DATA-WRBTR = WRK_TDSWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
IT_DATA-VBELNR = IT_BKPF-BELNR.
IT_DATA-BELNR = ' '.
IT_DATA-GJAHR = ' '.
IT_DATA-BLDAT = ' '.
IT_DATA-BLART = ' '.
IT_DATA-ZUONR = ' '.
*DiscountVBELNR
CLEAR WRK_DEDWRBTR.
SELECT SUM( WSKTO ) INTO WRK_DEDWRBTR FROM BSE_CLR
WHERE BELNR_CLR = IT_BKPF-BELNR
AND GJAHR_CLR = IT_BKPF-GJAHR
AND BUKRS IN S_BUKRS.
IF NOT WRK_DEDWRBTR IS INITIAL.
IT_DATA-XBLNR = 'Discount'.
IT_DATA-WRBTR = WRK_DEDWRBTR.
IT_DATA-WRBTR = IT_DATA-WRBTR * - 1.
IT_DATA-WRBTRC = IT_DATA-WRBTR.
APPEND IT_DATA.
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT IT_BKPF.
SELECT SINGLE BUTXT ORT01 LAND1 INTO (IT_DATA-BUTXT,IT_DATA-ORT01,IT_DATA-LAND1)
FROM T001
WHERE BUKRS IN S_BUKRS.
MODIFY IT_DATA INDEX SY-TABIX.
*ENDLOOP.
ENDFORM. " select_data
*& Form print_data
text
--> p1 text
<-- p2 text
FORM PRINT_DATA .
PERFORM OPEN_FORM.
PERFORM WRITE_FORM.
PERFORM CLOSE_FORM.
LEAVE LIST-PROCESSING.
ENDFORM. " print_data
*& Form open_form
text
--> p1 text
<-- p2 text
FORM OPEN_FORM .
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZFI_PAY_ADV_MODN'
LANGUAGE = SY-LANGU.
ENDFORM. " open_form
*& Form write_form
text
--> p1 text
<-- p2 text
FORM WRITE_FORM .
LOOP AT IT_BKPF.
IF SY-TABIX GT 1.
AT NEW BELNR.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'NEW'
WINDOW = 'MAIN'.
ENDAT.
ENDIF.
LOOP AT IT_DATA WHERE VBELNR = IT_BKPF-BELNR.
DATA : BEGIN OF IT_HKONT OCCURS 0,
HKONT LIKE BSIS-HKONT,
WRBTR LIKE BSIS-WRBTR,
END OF IT_HKONT.
REFRESH IT_HKONT.
CLEAR IT_HKONT.
SELECT HKONT WRBTR INTO TABLE IT_HKONT FROM BSIS
WHERE BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR.
DELETE IT_HKONT WHERE HKONT(3) NE '005'.
IF NOT IT_HKONT[] IS INITIAL.
LOOP AT IT_HKONT.
IT_DATA-TOTAL = IT_DATA-TOTAL + IT_HKONT-WRBTR.
MODIFY IT_DATA.
ENDLOOP.
ELSE.
IT_DATA-TOTAL = IT_DATA-TOTAL + IT_DATA-WRBTR.
MODIFY IT_DATA.
ENDIF.
ENDLOOP.
LOOP AT IT_DATA WHERE VBELNR = IT_BKPF-BELNR.
IF IT_DATA-BLART EQ ''. " for invoice Date
IT_DATA-BLDAT = IT_BKPF-BLDAT.
ENDIF.
IT_DATA-LIFNR = IT_BKPF-LIFNR.
IT_DATA-KUNNR = IT_BKPF-KUNNR.
IT_DATA-NAME1 = IT_BKPF-NAME1.
IT_DATA-NAME2 = IT_BKPF-NAME2.
IT_DATA-NAME3 = IT_BKPF-NAME3.
IT_DATA-NAME4 = IT_BKPF-NAME4.
IT_DATA-CITY1 = IT_BKPF-CITY1.
IT_DATA-REGION = IT_BKPF-REGION.
IT_DATA-COUNTRY = IT_BKPF-COUNTRY.
IT_DATA-STREET = IT_BKPF-STREET.
IT_DATA-LANDX = IT_BKPF-LANDX.
IT_DATA-BEZEI = IT_BKPF-BEZEI.
CLEAR : WRK_HBKID , WRK_BANKL.
SELECT SINGLE CHECT ZALDT HBKID INTO
(IT_DATA-CHECT , IT_DATA-ZALDT , WRK_HBKID)
FROM PAYR
WHERE VBLNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND VOIDR = '00'.
SELECT SINGLE BANKL INTO WRK_BANKL
FROM T012
WHERE HBKID = WRK_HBKID.
AND spras EQ 'EN'.
SELECT SINGLE BANKA INTO IT_DATA-BANKA
FROM BNKA
WHERE BANKL = WRK_BANKL.
MODIFY IT_DATA.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEMS'
WINDOW = 'MAIN'.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TOTAL'
WINDOW = 'MAIN'.
ENDLOOP.
ENDFORM. " write_form
*& Form close_form
text
--> p1 text
<-- p2 text
FORM CLOSE_FORM .
CALL FUNCTION 'CLOSE_FORM' .
ENDFORM. " close_formHi
Could you tell us what fields are not updated?
Regards,
Raj -
"Document is not a valid photoshop document"
I started working on a file a few days ago and I saved it before closing out of Elements 11. When i came back it said that the document wasnt valid and i wasnt able to open it. I'm not sure what went wrong and i spent a great deal of time on this and i'd hate to have to start all over again. Please help!
Have you used an lllegal character in the file name, like a dot (my.photo.jpg, say) or punctuation other than dashes or underscores?
-
"Restore last view settings when reopening documents" option not working with all documents
Said option (found under Edit/Preferences, category Documents), which works like an automatic bookmark in that it takes you back to the same place you were at when you last closed a document, is very useful, but apparently doesn't work with *all* documents.
- Does anyone know what determines whether a given document works with this option or not?
- Is this by design or a bug? A matter of PDF format version?
- Is there a way to work around the problem?
I've compared two documents, only one of which works with the option, to determine what the relevant difference may be, and found two suspects (under File/Properties): the PDF version (1.5 in the document that works, 1.4 in the one that doesn't), and 'Fast Web View' ('yes' in the document that works, 'no' in the one that doesn't).
Thanks,
MichaelThis seems to be a problem with some PDF files.
Suggested workaround: If the PDF you have allows "Save As", then try save-as to a new file. The "Restore last view settings when reopening documents" option should then work as expected (in the new file).
(Original post: Restore last view setting not working in version XI) -
'Document Printing' not printing, while single Document prints
Hi Experts,
I have a client where the AR Invoice prints fine when you select a single invioce to print. But when you use the 'Document Printing' functionality to print multiple Invoices, it is not printing. No errors are displayed.
I anyone know about extra settings or know what I'm missing I would really appreciate some help.
Thank you!
MarliHi Experts!
This problem was very strange... This worked on a Database Backup of a few days before. I do not know why the Batch Printing was not working, while the single printing was working...
I tested several scenarios, but in the end I saw that the System Print Layouts in PLD was still batch Printing and my Designed PLD was not (On previous DB it was working). I just created the PLD from scratch and now the Batch Printing is working again.
Thanks for you help!
Marli -
Sales document number not updated in FI document
Hi,
Whenever invoice creates in FI through billing document, system will not update sales document number in FI document(Invoice). Please confirm if there is any way to update sales document number in FI document because I want to create dunning notices on sales order basis.
Request immediate help.
Thanks in advance.Hi,
In the standard system, FI postings will be updated with FI document numbers only. If you want to see respective billing document number in customer ledger, go to FBL5N, select 'Change Layout' icon and move billing document number from 'hidden fields' to display fields list and see.
Regds
Sarma BH -
Long file name document is not uploading in SharePoint Document library?
Hi,
My pdf file name length is more than "90" character. I could not upload this file by using "Open with explorer" option.
Could any one tell me the way to upload kind of files?
Thanks & Regards
Poomani SankaranThere is a limitation set by Microsoft on the URL path length of 256 characters, refer - https://technet.microsoft.com/en-in/library/ff919564(v=office.14).aspx
This restriction is with IE browser and you will not see this in other browsers. -
Not allowing clearing of resetting of pre migration cleared document
HI all SAP Experts
We have recently migrated to new GL .
One entry for outstanding liabilty was posted in March 10 & same entry was cleared in Current year ( i.e April 10 - March 11) & cleared entry was again resetted in current year.
However the same was not reflected in FBL3N ( in open item selection ) neither in F-03 after resetted.
In table BSAS , the same was reflected as cleared item still after resetting of cleared documents & also in table BSIS not showing.
Kindly help me on this so that system can allow clearing of document of after resetting of cleared documents.
Regards
BasantHI
I have checked the includes & programme and all correction has been already made
I am enclosing the snapshot for this
*------- Vorabpruefung für normale Belege -
if *bkpf-bstat = space.
loop at ybseg.
bseg = ybseg.
if bseg-augbl ne space
and bseg-augbl(4) ne 'ALE-'
and bvtst ne char_a
not for credit card payments "Note610158
and not ( gd_ebpp_active = 'X' "Note610158
and *bkpf-tcode = 'F110' "Note610158
and bseg-koart = 'S' "Note610158
and bseg-rfzei <> space ). "Note610158
message e308.
endif.
*------- Pruefen, ob Storno erlaubt ist -
if bseg-augbl ne space
and bseg-augbl(4) ne 'ALE-'
and bvtst ne char_a.
not for credit card payments "Note610158
if gd_ebpp_active = 'X' "Note610158
and *bkpf-tcode = 'F110' "Note610158
and bseg-koart = 'S' "Note610158
and bseg-rfzei <> space. "Note610158
clear: bseg-augbl, "Note610158
bseg-augdt, "Note610158
for 470 bseg-auggj, "Note610158
bseg-augcp. "Note610158
else. "Note610158
message e308.
endif. "Note610158
endif.
Aufbauen Ausziffer-Tabelle XAUSZ1 -
SKV-Buchung wird im Verbucher automatisch ausgeziffert
sofern sie aus der Rechnung (*BKPF_XNETB = X) stammt
if bseg-xopvw eq char_x
and bseg-augbl(4) ne 'ALE-'
not for credit card payments "Note610158
and not ( gd_ebpp_active = 'X' "Note610158
and *bkpf-tcode = 'F110' "Note610158
and bseg-koart = 'S' "Note610158
and bseg-rfzei <> space ). "Note610158
bseg-augbl = char_*.
bseg-agzei = bseg-buzei.
if bseg-buzid ne char_z
or *bkpf-xnetb eq space.
xausz1-belnr = *bkpf-belnr.
xausz1-gjahr = *bkpf-gjahr.
xausz1-bukrs = *bkpf-bukrs.
xausz1-buzei = bseg-buzei.
xausz1-wskto = bseg-wskto.
xausz1-sknto = bseg-sknto.
xausz1-sknt2 = bseg-sknt2.
xausz1-sknt3 = bseg-sknt3.
append xausz1.
endif.
endif.
Whatever the correction is required in 28654 has been already done.
What should i do now.
Regards
Basant -
Error while resetting a cleared document
Hi everyone,
I am getting an error while resetting a cleared invoicing document 'Document xxxxxxxxxxx with origin R4 can not be reversed'. Please guide me how can we reset the clearing of this document.
Thanks and RegardsHi,
You need to reset all clearing for the corresponding FICA document for the print document.
Reset the clearing for the document no. mentioned in the output for EA13 execution.
You need to reset all the clearing for the document, before reversing the same.
To get all the clearing document, go to DFKKOP table, enter the FICA document no. (for the print document on FPL9). Get all AUGBL documents,
Alternatively, you can go on to FPL9 screen, double click on the consumption document, in the basic data you will see the clearing date (if it is cleared), expand the view their (click on + sign), you will se the clearing document no,
Pass the above clearing document no, to FP07, and once all the clearing is reset for the invoice, you can reverse the corresponding invoice through EA13.
Regards,
Rajesh Popat -
What does it mean,resetting of clearing document and reversing of clearing?
Hi SAPians,
Suppose my clearing doc.no is say 100000.if i reverse it thru fb08,system will generate new doc no.m i rite?and the accounting impact will be like debit items will become credit and viceversa.but my doubt is if i only reset the clearing doc.no by FBRA then what will happen and what will be the accounting impact ? and what will happen if i reset with reverse the clearing doc. and what will be the accounting impact?
Regards,
Sumeya offrinDear Sumeya,
You have written "my clearing doc.no is say 100000.if i reverse it thru fb08,system will generate new doc no.m i rite?"
You cannot reverse a cleared document in fb08.
Now let me answer you other questions.
Say for example you have posted a document no. 100005. Then using FB08, you Reverse it and a new CLEARING document no. is generated, say doc. no. 100006. So out here whatever entry posted in doc. no. 100005 gets reversed in document no. 100006. (ie. debit becomes credit & vice versa). This document no. 100006 is your clearing document. Now, both documents, ie. 100005 & 100006 contains no open items. Both documents are cleared against each other.
Now when you only reset the cleared document no. 100006, it becomes an open line item document. There are no financial impacts. But, when you reset and reverse the cleared document no. 100006, a new document number is generated, say for example, document no. 100007 which is a reverse entry of document number 100006. Most importantly, document nos 100006 and 100007 gets cleared against each other. Both, document number 100006 & 100007 are cleared documents. There is a financial impact out here and the original document no. 100005 becomes an open line item document.
It will be a little confusing if you read it once, but put this example on a paper & then analyse, am sure your doubts will be cleared.
Hope this helps.
Regards,
Amit Maniar.
Maybe you are looking for
-
Add does not run with sql server 2008
Hi all, My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B. On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY" we are trying this sce
-
Sony DreamMachine ICF CS10iP not working with iOS 7
I read about this same issue with older versions of iOS, but since this last update, my alarm "goes off" but won't actually play the music on my iphone. It does play the music through its speakers when I hit PLAY, it's just that the alarm wont trigg
-
Hi!! I followed the steps described in the reference guide of Oracle Text to highlights the result of a search in a text, but I can't show the text whit these words highlighting. I copy the code I ran: create table hightab(query_id number, offset num
-
How to convert a boolean expression into a number in SQL (not PL/SQL)
I have a boolean expression FIELD IN (SELECT FIELD FROM TABLE) which I would like to convert into a number, preferably into 0 for true and into 1 for false. The reason being that I want to sum the values in a HAVING clause. I have tried with DECODE,
-
Periodical​ly cycle through tab controls
Hi guys so I have a VI where I have 4 different tabs in a tab control where each one of them is monitoring a different machine's temperature. I would like to know if there is any way to automatically have labview cycle through the tabs at maybe 30 se