02-08-2008 6:53 AM
Hi,
How can I do this.
I need to check del block or billing block LIFSK , FAKSK = 'x' and always group by document type and print the total of net value.
I have already used select statements for vbak .I want to know how to validate lifsk and faksk with x value .
Pls help me.
Stalin.
02-08-2008 6:59 AM
Hi,
You can do the following.
SELECT
SINGLE lifsk
FROM
tvls
INTO
variable
WHERE lifsk = p_lifsk. "p_lifsk is the parameter mentioned in the selection screen
IF sy-subrc <> 0 .
ENDIF .
For Faksk use the table tvfs instead of tvls.
Reward if helpful.
02-08-2008 7:01 AM
Hi,
Use X as mentioned below.
You can do the following.
SELECT
SINGLE lifsk
FROM
tvls
INTO
variable
WHERE lifsk = X.
IF sy-subrc <> 0 .
ENDIF .
For Faksk use the table tvfs instead of tvls.
Reward if helpful.