cancel
Showing results for 
Search instead for 
Did you mean: 

How to set parameter ID for company code and Cash journal in FBCJ

Former Member
0 Kudos

Hi All,

When I am using t-code FBCJ to set its parameter ID for Company code and cash journal but it is taking wrong company code and cash journal(not taking which I have provided).

Please Suggest.

Thanks

Likhita

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,


I used the below code :-


REPORT  ztest_fbcj.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_cajo TYPE cjnr,

             p_comp TYPE bukrs.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS: s_date FOR sy-datum.

SELECTION-SCREEN END OF BLOCK b2.

START-OF-SELECTION.

*Setting the parameter ID

   SET PARAMETER ID 'BUK' FIELD p_comp .

   SET PARAMETER ID 'CJCAJONR' FIELD p_cajo.

END-OF-SELECTION.

   CALL TRANSACTION 'FBCJ' AND SKIP FIRST SCREEN.

Former Member
0 Kudos

Hi Likhita,

Correct me if i am wrong you are want a develop cash journal report

kindly use the below table to set the Co.code and cash journal number

Table name               field name

TCJ_C_JOURNALS : COMP_CODE

TCJ_C_JOURNALS : CAJO_NUMBER

Thank

Trinath

Former Member
0 Kudos

Hi Likhita,

Can you please share your screen shot i think you had not set your cash journal for your company

kindly check you configuration again

thanks

Trinath Gujari