Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FBL3N

Former Member
0 Likes
526

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

2 REPLIES 2
Read only

Former Member
0 Likes
349

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.

Read only

Former Member
0 Likes
349

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.