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

FB3LN values through se38

Former Member
0 Likes
1,279

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

Hi,

use set and get parameter like this sample code :

GET CURSOR FIELD cursorfld VALUE cursorval .

IF cursorfld = 'REC-YBELNR' .

SET PARAMETER ID 'BLN' FIELD cursorval.

  • set parameter id 'BUK' field zbukrs.

  • set parameter id 'GJR' field zgjahr.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

regards

Deepak .

8 REPLIES 8
Read only

Former Member
0 Likes
1,240

Hi,

use set and get parameter like this sample code :

GET CURSOR FIELD cursorfld VALUE cursorval .

IF cursorfld = 'REC-YBELNR' .

SET PARAMETER ID 'BLN' FIELD cursorval.

  • set parameter id 'BUK' field zbukrs.

  • set parameter id 'GJR' field zgjahr.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

regards

Deepak .

Read only

0 Likes
1,240

hi deepak

can u also telll me how to declare cursfld...because am getting cursfld not declared

Read only

0 Likes
1,240

Hi Vijay,

you can try this :

set parameter id 'BUK' field CODE.

set parameter id 'GJR' field YEAR.

CALL TRANSACTION 'FBL3N' AND SKIP FIRST SCREEN.

i think it solve your problem ,

Deepak.

Read only

0 Likes
1,240

Hi

you can define cursorfield and curvalue like this ;

DATA : cursorfld(40) , cursorval(10)

rgds

Deepak.

Read only

0 Likes
1,240

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

Read only

0 Likes
1,240

You cannot affect SELECT-OPTIONS to PARAMETER ID only single values, use PARAMETERS.

If you want to use SELECT-OPTIONS use

DATA:seltab LIKE TABLE OF RSPARAMS.
SUBMIT RFITEMGL WITH SELECTION-TABLE seltab.

You can use RS_REFRESH_FROM_SELECTOPTIONS to read the select-options of your current program and map these to RFITEMGL.

Regards

Read only

0 Likes
1,240

Hi Vijay,

Run this code , it will solve your problems :

TABLES:SKB1.

SELECT-OPTIONS ZBUKRS FOR SKB1-BUKRS OBLIGATORY.

SELECT-OPTIONS ZSAKNR FOR SKB1-SAKNR OBLIGATORY.

SET PARAMETER ID 'BUK' FIELD ZBUKRS-LOW.

SET PARAMETER ID 'SAK' FIELD ZSAKNR-LOW.

CALL TRANSACTION 'FBL3N' AND SKIP FIRST SCREEN.

Regards

Deepak.

Read only

Former Member
0 Likes
1,240

Hi vijay,

Use SAP standard Parameter ID for Specific Screen Field, In this Case BUK and SAK .

Award Points If its Solve Your Problem.

Rgds

Deepak