Application Development 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: 

Any way to position in some ALV record from other tcode ?

former_member425121
Participant
0 Kudos

Hi

I have a Z program who calls the tcode FS10N, this tcode has an ALV Grid showing some records (the periods). If we select some period (some record) with cursor and only one click, the record selected heightens and became yellow.

I need in my Z program when it calls FS10N, this tcode appears with some record (some period) selected, just because the user wants to see easier the period he gives in the Z program.

Is this possible ??

I don't think so; i put in the parameters id the values for FS10N appears with the account, company and year giving in the Z program; but how can i select a FS10N period in the Z program ?

Any idea ?

Thanks

Frank

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I've been looking at the program, I have a 46c system, without modifying SAP code, it does not appear to me that you can do what you want. The transaction does not give you any position to, or filter functionality. If it did, then I would say that it is possible.

Regards,

Rich Heilman

10 REPLIES 10

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I've been looking at the program, I have a 46c system, without modifying SAP code, it does not appear to me that you can do what you want. The transaction does not give you any position to, or filter functionality. If it did, then I would say that it is possible.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

I have not tried it as yet but i think you can use bdc to call the transaction and select the particular line item of th ALV grid using bdc cursor.

Regards

Kamran Ellahi

0 Kudos

Hi

Thanks for your answers.

About using BDC, if i use it the tcode will be executed in

BDC mode, so the user will need to see the window wich controles the tcode execution, isn't true this ?

I need the user see the tcode finaly screen (i exclude first screen using 'skip first screen'), so i would set the parameter MODE = 'A', but then the tcode will be executed showing the control BDC window, wich shows OKCode step by step. Or is there any way with BDC for execute the tcode 'normally' behavior; that is the screens appears but do not appears the window control OKcode ?

Thanks

Frank

0 Kudos

Yes, what you need to do is include the BDC code up to the point where you want the user to take over. Do you recording in SHDB, only use the code up to the point where the user takes over, and set the MODE = 'E'. When the BDC is executed, it will will stop where the recording code has gone to, then will allow the user to take over and finish the transaction.

Regards,

Rich Heilman

0 Kudos

Hi

Don't have you think to do by yourself?.

The FS10N shows the records of GLT0 table and use fm FDBL_BALANCES_DISPLAY to show the data.

After doing doubleclick it call the std report RFITEMGL (the same assigned to trx FBL3N), so you could directly to do a submit.

See the form CALL_LINE_ITEM_REPORT of include LFDBLF02, here you can see how to fill the table for free-selection.

Max

Message was edited by: max bianchi

0 Kudos

Thanks Rich

I'm trying to do your tip, but first i want to see if the BDC code really sets any field to put the cursor in some record (period). So i create some sessions in SHDB, setting the cursor in differents ALV records and there is not any difference in the SHDB code generated, even if i give double click in the periods records to go to other detail screen in the tcode, there is not some code in the sessions indicating the line i am selecting.

So, then wont be a way to set the cursor in some record with the BDC code, am i right ?

Thanks !!

Frank

0 Kudos

Hi Frank

The GRID ALV is an enjoy program/transaction, these kind of object couldn't supporte a B.I.

I tried to create a BI for a report with a grid ALV, but I didn't work and I had to find another solution.

Max

0 Kudos

Thanks Max

That's the reason why i didn't saw in the BDC some place indicating a way to posisionate the cursor in some ALV line (period). (like other transactions wich generates in SHDB some code like XFIELD(02)).

So then , i will explore another solution to this user request.

Thanks everybody for your help.

Frank

0 Kudos

You are right, that's what I was trying to tell you in my first post. There is no functionality provided to you "outside" of the ALV container that you can use to position to your record. If there was, then you would be able to do something here. Your only way now is to copy the program and modify it which may or may not be good for you.

Regards,

Rich Heilman

0 Kudos

Thanks Rich

Regards

Frank