05-11-2007 6:08 AM
hi all
as most of u know if we give FB3LN transaction we need to give G/L account number and company code my requirement is like this i need to compile the code below
REPORT ZFBL3N.
TABLES:SKB1.
SELECT-OPTIONS CODE FOR SKB1-BUKRS OBLIGATORY.
SELECT-OPTIONS YEAR FOR SKB1-SAKNR OBLIGATORY.
CALL TRANSACTION 'FBL3N'.
And now the the value i give thru dis code as input should be given as input to the FB3LN transaction like i should not enter any more values in FB3LN TCODE...please help and if needed giv the necessaru changes
with regards
vijay
05-11-2007 6:19 AM
Hi Vijay,
Refer this code :
TABLES:SKB1.
SELECT-OPTIONS CODE FOR SKB1-BUKRS OBLIGATORY.
SELECT-OPTIONS YEAR FOR SKB1-SAKNR OBLIGATORY.
Start-of-selection.
Set parameter id 'BUK' value code.
Set parameter id 'SAK' value code.
CALL TRANSACTION 'FBL3N'.
Reward points if helpful.
Regards,
Hemant
05-11-2007 7:03 AM
05-11-2007 7:13 AM
HI
DIS IS D CODE I RECHANGED ACTUALLY IT IS TAKING IN THE FBL3N TRANSATION BUT ITS TAKING SOME OTHER VALUE....PLEASE HELP....AND MENTION THE CHANGES THAT ARE TO BE DONE LIKE WHERE IT HAS TO BE DONE
REPORT ZFBL3N.
TABLES:SKB1.DATA : cursorfld(40) , cursorval(10).
SELECT-OPTIONS CODE FOR SKB1-BUKRS OBLIGATORY.
SELECT-OPTIONS YEAR FOR SKB1-SAKNR OBLIGATORY.
START-OF-SELECTION.
SET PARAMETER ID 'BUK' FIELD CODE.
SET PARAMETER ID 'SAK' FIELD YEAR.
CALL TRANSACTION 'FBL3N'.
END-OF-SELECTION.
VIJAY
05-11-2007 8:19 AM
Hi,
Try this :
PARAMETER CODE LIKE SKB1-BUKRS OBLIGATORY.
PARAMETER YEAR LIKE SKB1-SAKNR OBLIGATORY.
instead of ur codes :
SELECT-OPTIONS CODE FOR SKB1-BUKRS OBLIGATORY.
SELECT-OPTIONS YEAR FOR SKB1-SAKNR OBLIGATORY.
Its working for me. actually u have to give parameter for parameter clause. or if u want to execte with existing codes then use these codes.
SET PARAMETER ID 'BUK' FIELD CODE-low.
SET PARAMETER ID 'SAK' FIELD YEAR-low.
Jogdand M B
05-11-2007 8:08 AM