Try to capture the dynamic selections of a standard LDB
Hi experts,
I checked on the SDN, some people said we can use set parameter and EXPORT/IMPORT to do it. Does it mean we use this statement in the LDB and send the value of selections to memory then get them in the program? If there is a standard LDB, how can I get the value of its dynamic selections?
Also There are some FMs, such as FREE_SELECT_*, but the INIT and DIALOG FM are used to show the user dialog and fetch its results. The rest FMs in the FG are used to convert the format of the selection reults. So is there any FM which can be used to get the value of the dynamic selections of a standard LDB in my program? I hope there is a selection ID for the LDB's dynamic selection and it can be captured by a FM.
Thanks for reading and help.
use fm RS_REFRESH_FROM_DYNAMICAL_SEL
here's a sample to search for a free selection (her field XBILK)
DATA RANGE TYPE RSDS_TRANGE.
DATA : BEGIN OF WA OCCURS 0,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FRANGE_T TYPE RSDS_FRANGE_T,
END OF WA.
DATA : BEGIN OF CA OCCURS 0,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
SELOPT_T TYPE RSDS_SELOPT_T,
END OF CA.
DATA ERR.
DATA: RSDSSELOPT LIKE RSDSSELOPT OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'
EXPORTING
CURR_REPORT = SY-REPID
MODE_WRITE_OR_MOVE = 'M'
IMPORTING
P_TRANGE = RANGE
EXCEPTIONS
NOT_FOUND = 1
WRONG_TYPE = 2
OTHERS = 3.
ERR = 9.
LOOP AT RANGE INTO WA.
APPEND WA.
IF WA-TABLENAME = 'SKA1'.
ERR = 0.
ENDIF.
ENDLOOP.
CHECK ERR = 0.
ERR = 9.
LOOP AT WA-FRANGE_T INTO CA.
APPEND CA.
IF CA-FIELDNAME = 'XBILK'.
ERR = 0.
ENDIF.
ENDLOOP.
CHECK ERR = 0.
ERR = 9.
LOOP AT CA-SELOPT_T INTO RSDSSELOPT.
IF RSDSSELOPT = 'IEQX'.
ERR = 0.
ENDIF.
ENDLOOP.
hope that helps
Andreas
Similar Messages
-
Two fields needed in the dynamic selection of standard tcode CN47N
In tcode CN47N,In the dynamic selection Under Dates Network/Order, Two fields start and finish date are needed.
Hi,
I already did this in SE36. The problem is that my Z-fields do not appear in BSIK. They appear only in BKPF... And in SE36 if I try to select the Z-fields in BKPF, they do not appear in the dynamic selections.
Thanks for your answer. Kind regards,
Isabel -
How to change the Dynamic Selection screen
Dear Freinds,
I have requirement where in on the selection of Dynamic Selections ( iam using PNP logical database) i want to add another fields , could any one tell me how to change Dynamic Selections as per my requirement.
please let me know .
regards
divyaHi Prat,
I have done similar way and saved the view ( i.e se80> ediobject>table>table name > given all the tables required for me and i try to saved it is not allowing to save and giving message as empty view cannot be saved. Therefore i have selected the tables which have been added and made one by table and selected them . some how it got saved. Now when i added this name of the view in the custom report caterogy and executed my custom report and selected the > dynamic selections i found as empty and in debugging i can see all the 4 tables which i have mentioed while createing view are there . But i dint understood why the custom View is empty.
please correct me where i went wrong.
regards
divya' -
The dynamic selection for profit center in FBL1N isn't working
Dear all,
I have one one issue regarding FBL1N.
The dynamic selection for profit center in FBL1N isn't working.
If we enter profit center, we don't get any value.
As per developer after debugging, table BSIK is not getting updated, hence values are not updating in the report.
Please let me know, any configuration is missing.
BR,
ShailendraTry BSEG and see if its there for the particular doc. If its not there its a functional issue, you have to capture profit center at the time of entry. You can either make the profit center field mandatory or substitute it at the time of document generation. Consult your FI consultant. If u have activated New GL features the profit center may me in table FAGLFLEXA. but i don't think u can get the profit center from this table for your purpose, you may need to develop a zreport.
And its not BISK its BSIK
Edited by: Harisankar S on May 4, 2010 3:05 PM -
Capture the rows selected ,tableView
Hi Friends,
I have a requirement and i was searching in the forum and i have seen the same question been asked
Capture the rows selected in a multiselect table view (BSP) but i couldn't able to judge how the thread is closed
We have a tableView that is filled on selecting a value from a dropDownListBox.
and now i select some rows from the table view and click on a button(say btn_ok)
now the data is processed .
now what is my requirement is when i again run the page and select the same drop down value i want to see the rows to be already selected for which i have done before
example
dropdown -
> a is selected
table view
1----> selected
2
3---->selected
4
5---->selected
6
btn ok
next time i want to c these selected rows already as SELECTED
Regards
BhavanaHi,
Are you able to fetch single row? If yes then debug and try to solve it. I don't have SAP System right now but this will help you. First change your table selection mode "Multiple". After that write following code in your "OnInputProcessing"
Sending Selected Field to the calling Screen
DATA : tv TYPE REF TO cl_htmlb_tableview,
tv_data TYPE REF TO cl_htmlb_event_tableview,
event TYPE REF TO cl_htmlb_event.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'tv_field' ).
RECEIVING
data = tv.
tv_data = tv->data.
w_field = tv_data->row_key.
Where w_field is your field name. By the way this I used to get one row. Try debugging and may be you will find your way.
Thanks,
Muhammad Usman -
How to add a new Field in the Dynamic Selection screen section.
HI,
There is a requirement in which I need to add a field in existing program of dynamic selections.
I need to add a field KNKK-DBRTG (Customer Rating) in dynamic selections screen of some existing report
which has a dynamic selection screen with other fields like customer account, company code etc. Along with this i need to add Customer rating field also in the selection screen.
I have used GET KNKK statement to select this in the Dynamic selection screen. But I need to make it appear
on the screen.
LDB used is the Customer Database.
I have added GET KNKK statement after GET KNA1 statement.
Can any one help me how we can make this rating field appear in the selection screen.
With the GET statement Credit control area Fields can be selected in the selection screen but I have to permanantly add the field in the selection screen.
Regards
Prashant PrabhuHi,
So you need that this new field have data in old records?
1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
2.- If condition "1" is not yours.
First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
Hope it helps. Regards, Federico -
How to capture the value selected in the drop down box
Hi all,
I am populating values in drop down box by using FM vrm_set_values in module pool.
like below
01 ABC
02 ACB
03 BCA
04 CAB
in module pool drop down box element name is RQGM-VALUE.
Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
i need to capture the value selected in the drop down box and pass it to another variable.Hi,
Refer this standard code. Your issue will be resolve.
REPORT demo_dynpro_dropdown_listbox.
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
DATA: wa_spfli TYPE spfli,
ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
TABLES demof4help.
name = 'DEMOF4HELP-CONNID'.
CALL SCREEN 100.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE init_listbox OUTPUT.
CLEAR demof4help-connid.
SELECT connid cityfrom cityto deptime
FROM spfli
INTO CORRESPONDING FIELDS OF wa_spfli
WHERE carrid = demof4help-carrier2.
value-key = wa_spfli-connid.
WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
CONCATENATE value-text
wa_spfli-cityfrom
wa_spfli-cityto
INTO value-text SEPARATED BY space.
APPEND value TO list.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE.
MODULE user_command_100.
save_ok = ok_code.
CLEAR ok_code.
IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
LEAVE TO SCREEN 200.
ELSE.
SET SCREEN 100.
ENDIF.
ENDMODULE.
MODULE user_command_200.
save_ok = ok_code.
CLEAR ok_code.
IF save_ok = 'SELECTED'.
MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
demof4help-connid.
ENDIF.
ENDMODULE. -
FAGL_FC_VAL in ECC 6.0 M not able to get the dynamic selection options
Hi
While executing the transaction FAGL_FC_VAL in ecc 6 we are not getting the dynamic selection option same as ecc 5 we need business area as selection option.
Please provide solution.. if any note to be applied we will do that. we have recently migrated to ECC 6.0
Regards,
AbhijeetSorry. This typo was only in this forum message. Within the BPEL process it's :
<from expression="ora:countNodes('inputVariable','payload','/ns1:Transmission/ns1:TransmissionBody/ns1:GLogXMLElement/ns1:Release') "/>
Still 0 count. -
Need to Add BKTXT in the dynamic selection in FB03
Hi Gurus,
In the dynamic selection FB03, the field BKTXT is not included in the dynamic selection. Would it be possible to add this field?
Youre inputs would be greatly appreciated.
Thanks and best regards,
JeCCas_DJHi,
You wants to add the BKTXT field on the selection screen of FB03?
Why? for what purpose?
Better copy the program related FB03 to some Zprogram and modify it by writing a select statement to get this BKTXT firld form BKPF/BSEG tables.
SInce this is a text field, normally we don't put onthe selection screen.
Regards,
Anji -
Disable the Dynamic Selection Icon from T.Code FBL1N
Hi,
I want to disable the Dynamic Selection Icon from T.Code FBL1N...
Please Note that i found a link where some code is given for this problem.
Remove the dynamic selection screen.......
Please tell me where i paste that code....after initialization or where....
Thanks...
Edited by: Prince Kumar on May 16, 2009 8:59 AMHi,
1) COPY the program RFITEMAP and create a ZRFITEMAP
2) and added this code in the INITILIZATION event. You can search ZRFITEMAP with INITIALIZATION and add below code there.
INTIALIZATION.
DATA: t_exclude TYPE STANDARD TABLE OF sypfkey.
APPEND 'DYNS' TO t_exclude.
"DYNS is the dynamic selection screen function code.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = t_exclude
Regards
Shital -
Which table the dynamic selection view will be stored
Dear Freinds,
I have created a dynamic selections view form Se80 > Editobject>Selection view > Created by adding the required tables pa0002,pa006,pa0009 . But the transport request we have saved it locally
now i want to create a transport request for the dynamic view . Could any please let me know how to create transport reqest for the Dynamic selection
View which has been created.
regards
divyaHiDivya,
yo have saved the changes into local object and now you want to generate the TRN and for the save you have to change the attribute > GOTO > Other object Entry and changed the package and TRN will generate .
Regards
Sheetal -
To read a fields from a Dynamic selections.. In LDB PNP
Dear All,
I need a suggestion from you, Please inform how to go about this.
We have created our own Dynamic Selection (Extended the PNP_DEFAULT with IT 0008 fields) and this button is comming next to variant and when we click we are able to see the fields from IT 0008 and we are entering the TRFGB as '06' and this is all working fine .
Now, We would like to retrtieve the data entered in Dynamic selection into our own local variable as we need to read some other (own own tables) with TRFGB and this needs to be done before GET PERNR event.
Please inform me how to read the data entered in the Dynamic selections to our own local variables in ABAP Program.
Thanks and have a nice day ahead.
Regards,
Mangalagi S VDear Suresh,
Thanks for your Suggestion.
Sorry, I am not able to award a Points for you , I am getting 'Error'.
Regards,
Mangalagi S V -
How to customize the data selection on a standard 2LIS_08TRTLP
Hi All,
on the datasource '2LIS_08TRTLP Shipment delivery per stage', I would need to filter on '0DEL_TYPE delivery type' but it is not part of the standard 'data selection' for this datasource.
I have some initial loading issue if I cannot filter directly at the datasource on a specific delivery_type.
How can I 'enhance' the data selection for this standard datasource with the addition of this new filtering condition on 'DEL_TYPE'
thanks in advance for your great support
DHNGGo to change mode of datasource using transaction code RSA6. uncheck the hide sel and customer field column.
Check the check box - del type and save it.
it will be available for selection and check it in rsa3
hope it helps you
mahantesh -
How to capture the values selected at selection screen
Hi.
I need some basic idea reg. to capture the selected values at selection screen into an internal table.
for example.
Selection-screen having the following fields,
Grade1....a1
grade2..a2
grade3..a3
grade4..a4
grade15--a15
Now i want to get the values of grade into an internal table.. so that i can create dynamic table based on selected values
a1 a2 a3 a4 a5...use function moduel
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = repname " Your report name
TABLES
SELECTION_TABLE = it_sels.
you can get all values from the selection screen
a® -
How to default the Document Type in Dynamic selections linked with DDF LDB?
Hello all,
A report is associated with Logical database DDF. In the selection screen we have Dynamic selections screen in which Document type is one of the fields. As per the requirement, this field document type(BLART) needs to be filled by default on certain actions done by the user. To be more precise when user clicks on a particluar check box, then document type values from a customized table should appear in that parameter in dynamic selections.
Query here is I am not able to track the selection screen name for those dynamic fields. Can you please guide me in knowing the selection screen name for document type so that I can append values into it upon certain actions. I tried to check in the LDB 'DDF' but I could not get any apt information there.
Thanks in advance.
Chandra.Hi,
In the report event at selection-screen output, based on the user action you can do that try like below:
at selection-screen output.
if p_checkbox = 'X'. "Checkbox checked
s_blart-low = 'F'.
s_blart-option = 'EQ'.
s_blart-sign = 'I'.
append s_blart.
endif.
Regards,
Himanshu
Maybe you are looking for
-
IMovie09 Hangs when importing 3 minute .MOV recorded from iPhone 3GS,
Hi All, Ok, so I have had a quick search to solve this but had no luck, and I am a Mac newbie, so please be gentle Here is my problem - I recorded one of my kids singing a song with my iPhone, sync'd this up with iTunes, converted it to iPod compatib
-
My new Iphone wont sync in Itunes as my old Iphone
Old Iphone broke. Backed it up to my computer. Tried to sync new Iphone with Itunes as OLD iphone, but wouldnt take and set it up as new. Any help is greatly appreciated
-
Mail 7.1- Reduce window size in a new email
I'm having problems reducing the window size when writing a new email. Mail 7.1 does not let me reduce the window size once I introduce a email address. Thank you for your help.
-
Titles not sharp in Qicktime version
My titles on the time line are sharp but in the quicktime version are unsharp. Any idea?
-
I want to convert XML file into SAP Internal table
Hi Frndz, My xml file is: <?xml version="1.0" ?> - <!-- Comments: START DATE :1/11/2002 11:26:14 PM --> - <!-- Comments: RFID Tags read by Mercury4 Copyright Praff@Anantara Solutions --> <RFIDs><ID>0x303030303030303035050000B5EC</ID><ID>0x30083