‎2007 May 11 7:38 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.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.
And now the the value i give thru dis code as input should be given as input to FB3LN transaction like i should not enter any more values in FB3LN TCODE.....The above code is taking values but the value that is coming der in the FBL3N tcode but am getting a differnt value der.....please help and if needed giv the necessary changes
with regards
vijay
‎2007 May 11 7:52 AM
Hi Vijay,
Whenever you are using SET and GET be careful. The vales which you are sting should be the recent values.
Why because, it will st the Vales in SAP memory. So, those should be the recent values.
Please, check the <b>set parameter</b> , clear that field and immediately transfer it to an variable and pass it thru BDC in Call tranasction.
Thanks
Manju.
‎2007 May 11 7:57 AM
Hi,
And also, USE
CALL TRANSACTION 'FBL3N' USING MODE 'A' UPDATE 'S' MESSAGES INTO
TBL_BDCMSG.
By that you can see all screen and trap the error.
Thanks
Manju.