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

Passing parameter from my custom program to standard Include

Former Member
0 Likes
1,758


Hi All,

I have creted an ALV report which displays data from GLPCA ,MARA and some other tables. Now my requirement is that when the user clicks the refdocnr or document number field in the ALV then  he will be taken to the overview of billing item screen .( The same feature is there in transaction KE5Z) .

I have already captured the document number using the hotspot click event but I need not  pass it to KE5Z's initial screen. instead I have to pass it to the place where the interactive feature of KE5Z begins.

After debugging I have found out that this interactive feature is written within the include LSLVC_FULLSCREENI01.

How do I call pass the document number from my custom ALV to this include LSLVC_FULLSCREENI01????

Thanks,

Faiz

8 REPLIES 8
Read only

Former Member
0 Likes
1,388

Hi,

Use set the parameter of fields and call the transaction .

It will take you to the screen.

like:

IF selfield-fieldname = 'LIFNR'.

        

         SET PARAMETER ID 'LIF' FIELD wa_VEN-lifnr.

         set PARAMETER ID 'BUK' FIELD wa_VEN-bukrs.

         CALL TRANSACTION 'FBL1N' AND SKIP FIRST SCREEN.

       ENDIF.

Regards

Neeraj

Read only

0 Likes
1,388

Hi Neeraj,

I have done that already but it is not working. Therefore im trying to pass the parameters

directly to the include mentioned in my original mail.

Regards,

Faiz

Read only

0 Likes
1,388

what tcode you are trying to call and what parametres yor are passing.

Read only

former_member207661
Active Participant
0 Likes
1,388

Hello Faiz,

What Neeraj has suggested should work.

Can you please tell which TCode you are trying to call.

Also, please provide your code so that we can see if something is missing.

Warm Regards,

Shyam

Read only

0 Likes
1,388

Hi Shyam,

I'm capturing the reference doc number in a variable and calling the KE5Z transaction

as shown below.

SET PARAMETER ID 'VF' FIELD v_refdocnr.
  
CALL TRANSACTION 'KE5Z' AND SKIP FIRST SCREEN.

Regards,

Faiz

Read only

0 Likes
1,388

is it not parm id BLN for ref Doc No?

Read only

0 Likes
1,388

For BELNR the parameter id id BLN.

Regards

Neeraj

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,388

Why dont you record a BDC till that place and passs