Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FI Validations

Hi Guru's

I am trying to Validate T-CODE F-43 /F-63

Line Item 1 : Posting key = '40' AND G/L = '950001' AND

Material >= 'BEAF01'

AND Material <= 'BEOH05'

It is Working Fine single Line Item validation

But I want to Check Both Line Items at a time

Posting key = '31' AND

G/L >= '200000' or (Range of Vendor Numbers )

LIke

Ex: 1

Posting Key 40 G/l Account 950001 and material xxxx to xxxx

Posting key 31 and Vendor Numbers Range 10000 to 20000

Ex: 2

40 950002 and material xxx to xxxx

31 vendor number range 20001 to 30000

like this ,

How to check 2 Line Items at a time in FI

I written this code in Line Item.

How to write code in complete Document.

Thanks & Regards

Raj

replied

Hi Raj,

You can always debug your code; put a breakpoint and see what goes wrong. Ask your ABAPer to help you on this one; the code is very simple. You just have to put a loop on BSEG data an check the rows.

Something like this (I took my recent substituion):

LOOP AT BOOL_DATA-BSEG INTO BSEG

WHERE KOART = 'S'

AND HKONT = '0044450000'.

IF BSEG-PRCTR NE SPACE.

BKPF-XBLNR = BSEG-PRCTR.

ENDIF.

ENDLOOP.

Regards,

Eli

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question