12-30-2005 10:03 PM
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
12-30-2005 10:59 PM
12-30-2005 10:59 PM
01-02-2006 5:34 AM
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
01-02-2006 5:59 PM
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
01-02-2006 6:08 PM
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
01-02-2006 6:45 PM
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
01-02-2006 7:22 PM
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
01-02-2006 7:34 PM
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
01-02-2006 7:44 PM
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
01-02-2006 8:23 PM
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
01-02-2006 8:42 PM