How to put a table's all fields on a selection screen?
Hi, I am new here. I am currently create a report in which I need to put a transparent table's all fields on selection screen. Please give me hints about it. Thank you very much in advance.
Tom
Hi,
Use parameter or select-options for all the fields in the transparent table..I am not sure if there is any dynamic way of creating the parameters..
Otherwise you can create a dynamic report..
Check this example for dynamic report..
DATA: p_temp(30) TYPE c DEFAULT 'ZTEST_REPORT'.
TYPES: BEGIN OF t_abapcode occurs 0,
row(72) TYPE c,
END OF t_abapcod.
T_ABAPCODE-ROW = 'REPORT ZTEST_REPORT.'.
APPEND T_ABAPCODE.
T_ABAPCODE-ROW = 'PARAMETERS: P_MATNR LIKE MARA-MATNR.'.
APPEND T_ABAPCODE.
T_ABAPCODE-ROW = 'WRITE: / P_MATNR. '.
APPEND T_ABAPCODE.
INSERT REPORT p_temp FROM it_abapcode.
SUBMIT (p_temp) AND RETURN.
Thanks,
Naren
Similar Messages
-
Not able to hide all fields on PNP selection screen.
Dear Freinds,
i wanted to hide all the field which are given on PNP selection screen, with the help of the
report category i have hided all the field including the Person selection period as i require only the
Data selection period. further through coding as below iam able to remove all the radio buttons
Today, Current month,Current year, from today, upto today,Other Period . But i am getting spaces above period (PNPBEGDA and PNPENDA) . i.e in the frame Period i have spaces being left due to
the radio buttons being Hidden . Could any one let me know how to remove the spaces so that
Period range will set exactly in the frame.
LOOP AT SCREEN.
IF screen-name = 'PNPTIMR4' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-name = 'PNPTIMR2 .
screen-input = '0'.
screen-invisible = '1'.
ENDIF
IF screen-group4 = '090' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-name = 'PNPTIMR1' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '092' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '094' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '100' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP
Please could any one let me know how can i push up the Period date (PNPBEGDA and PNPENDDA)
so that i will not have any blank space left out in the frame(Period) .
Thanks & Regards
Divya.
Edited by: Divya Kumari on Jan 4, 2009 1:53 PMhi, sorry i think i misunderstand you question,
if i can understand it right now? the following code can help you i am using "PNP" Screen no '900'.
tables:pc207, hrp1000,pernr, pyorgscreen.
infotypes: 0001. "Organizational Assignments
nodes: payroll type pay99_result.
at selection-screen output.
loop at screen.
if ( screen-group1 = 'RES' or screen-group1 = 'YB1' or
screen-group1 = 'YB2' or screen-group1 = 'YB3' ).
screen-active = '0'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
try the following too,
TABLES:pc207, hrp1000,pernr, pyorgscreen.
INFOTYPES: 0001. "Organizational Assignments
NODES: payroll TYPE pay99_result.
AT SELECTION-SCREEN OUTPUT.
BREAK-POINT.
LOOP AT SCREEN.
IF (
* screen-name = '%BYB1005_BLOCK_1000'
screen-name = '%FYTI007_1000'
or screen-name = '%FBIS010_1000'
or screen-name = 'PYVW0_0'
or screen-name = '%_PYPERNR_%_APP_%-TEXT'
or screen-name = 'PYPERNR-LOW'
or screen-name = '%_PYPERNR_%_APP_%-VALU_PUSH'
screen-active = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Replay if any problem,
Kind Regards,
Faisal
Edited by: Faisal Altaf on Jan 4, 2009 6:55 PM -
How to put e-mail adress in the print info. selection screen i smartforms?
Hi all,
Is it possible to have e-mail adress sent to smartform with the input parameters e.g. output_options or some other, so that the e-mail adress appears in the selection screen containing printout info such as output device, page selection, print imm.?
Where should the e-mail adress be placed in the input info to smartform then?
Thanks in advance for all the helpul answers!
BR,
ArminTHANKS
-
How to use Count with other all fields
Hello guys. Sorry about my question because it s syntax but i didnt find in google.
How can i use count combined with other all fields.
Like SELECT count(*) 'other all fields like * ' FROM VBAK .
Thank you very much.Don't sure to understand your requirement (count would always be 1, aggregates are only defined with grouping)
So either use two SELECT (or replace count(*) counting Nr of records selected) if no relation between count and field values....
Or use a dynamic SELECT syntax. Use FM DDIF_FIELDINFO_GET to get field list, then create fieldlist with every field name and count(*), create grouplist with every field name
SELECT (fieldlist)
INTO ...
FROM table
GROUP BY (grouplist).
Regards,
Ramond -
How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice
Hi,
Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
Regards,
Rajeev.Follow this step..
1. In SQL Server, go to the SAP B1 Database you're using.
2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
3. Try to paste this -> and click F5
If
@object_type ='13' and @transaction_type in ('A','U')
Begin
If EXISTS
select DocEntry from ONIV
Where DocEntry = @list_of_cols_val_tab_del
and SlpCode<>'-1'
Begin
set @error_message = 'Please select the Sales Employee'
set @error = 1
END
END
Regards
Kennedy -
I have not been able to figure out how to put in a price choice field?.
I have created my form: A Retreat Registration form. I CANNOT yet figure out how to put the cost in so that when a selection is made, it will go to paypal? I have 4 choices that are listed vertically: single room, shared room, early bird rate, etc. They all have choice boxes next to them, but NOW, I need to put the cost line item next to each choice and once a customer chooses that item, this is what will get transferred to Paypal on REGISTER click. HELP anyone?
Thanks,
DebraDo a forum search or look at More Like This on the right side of this page.
This is asked and answered very often. -
In the new iOS7, Having trouble figuring out how to forward text messages. Can someone tell me how to do that? Where the forward button. You used to be able to hit forward and put radio button on all the messages. The screen looks blank to me.
In the new iOS7, Having trouble figuring out how to forward text messages. Can someone tell me how to do that? Where the forward button. You used to be able to hit forward and put radio button on all the messages. The screen looks blank to me.
-
How to Add a new fields in the selection screen of LDB.
Hi All,
I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
So could you please tell me for that where i need to add the code for selecting the data.
Thanks
RoliHi
welcome to SDN forum
If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
if you wants to modify the std LDB of SAp means take the access key and to modify that code
if you add the extra field you have to modify the where conditions in the code also
see the doc
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE.
Regards
anji -
How to add * wild card to a specific field on the selection-screen.
Hello,
How to add a * WIld card to a field in selection screen.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_STCTS FOR G_STCTS OBLIGATORY, "NUMBER SCHEME
S_AT20A FOR G_ATTR20A, "SUBSTANCE ID
SELECTION-SCREEN END OF BLOCK B1.
I need to add Wild card functionality to Number scheme field S_STCTS on selection-screen.
Any suggestions would be apprecaited..
Regards,
KittuHi Kittu,
Here is one sample code:-
select-option : s_name like kna1-name1.
start-of-selection.
if s_name-low = '*'.
select * from kna1 into table it_kna1.
elseif s_name-low = 'pat*' or s_name-low = 'pat'.
select * from kna1 into table it_kna1 where name1 like 'Pat%'.
endif.
In case of wild card Select should be :-
select * from <dbtab> where <field> like 'P%'.
You can also use RANGES in your Code.
E.g. RANGES: R_OBJNR FOR JEST-OBJNR
R_OBJNR-SIGN = 'I'.
R_OBJNR-OPTION = 'CP'.
R_OBJNR-LOW = 'K1*'.
R_OBJNR-HIGH = 'K2*'.
Hope this helps.
Thanks & Regards
Jitendra Gujarathi -
How to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?
hi frnds.
My problem is in module pool screen how to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?And how to do GUI STATUS and GUI TITLE? IN SE80.
ITS URGENT.POINTS WILL BE REWADED.THANKS IN ADVANCE.Hi,
Go through this thread.
[expand and collapse|expand and collapse]
Cheers,
Simha. -
I need below fields at my selection screen.From which table we can find the
Sales Org > only one selection field
Division > only one selection field
Channel > from u2013 to fields
Sales Office Channel > from u2013 to fields
Sales Rep Channel > from u2013 to fields
User ID of the CSR Channel > from u2013 to fields
Customer Channel > from u2013 to fields
Material Channel > from u2013 to fields
Date: Channel > from u2013 to fields
I need these fields at my selection screen.From which tables I find these things.I need this logic also.I need help
-
How to validate a select-option field on the selection- screen
Hi,
I need to validate a selection-option field in the selection-screen.
Requirement is : i need to read each of customer number one by one and validateCan you please me in achieving this.
Best Regards
Mamatha.Bhi,
chk this sample code.
SELECT-OPTIONS : s_kunnr for kna1-kunnr.
AT SELECTION-SCREEN.
if 'S_KUNNR-HIGH' = "condition
"put your required validation here
endif.
rgds
Anver
Message was edited by:
Anversha s -
Using iMovie-does anyone knows how to put two videos side by side in the same screen/
Using iMovie-Does anyone knows how to put two videos side by side in the same screen?
See iMovie Help here.
http://help.apple.com/imovie/mac/10.0/#movb8c659f55 -
Field in the selection screen as a select option with two default values
Hi All,
can anybody tell me how to put field in the selection screen with two defaul values.
for ex: selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
please reply ASAP. Its urgent.
Thanks in advance,
MadhuHi Madhu,
Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
s_ktokd-sign = 'I'.
s_ktokd-option = 'EQ'.
s_ktokd-low = 'Y001'.
append s_ktokd.
s_ktokd-low = 'Y005'.
append s_ktokd.
clear s_ktokd.
However, if you want to mention a range like all the values between these given two values to be considered then u may use,
select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
or
s_ktokd-sign = 'I'.
s_ktokd-option = 'BT'.
s_ktokd-low = 'Y001'.
s_ktokd-high = 'Y005'.
append s_ktokd.
Reward if helpful. -
Can you "combine" criteria for 2 or more fields on a Selection Screen?
Good day everyone,
Here's my question: I understand that I can put fields on a Selection Screen and pre-fill them with data values. In this particular case, I want to pre-fill a couple of hidden fields with data values that will be used as criteria when I read data from the database; however, I need to pull back records that have this COMBINATION of data. For example:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
So in my SQL, if I say "werks IN s_werks" and "btrtl IN s_brtrl", true, it will still work. But really, I need to say "if werks = 'z002' and btrtl = 'z001', or werks = 'z002' and btrtl = 'z002', etc. I can't rely on the simple "IN" functionality because it's possible a new value could be added in the future:
WERKS BTRTL
Z003 Z003
So if I use the "IN" logic and the record has werks = 'Z002' and btrtl = 'Z003', it would be returned. But I really don't want it returned, since a combination of werks = 'Z002' and btrtl = 'Z003' doesn't exist in my table of valid combinations.
Is this even possible to do in a Selection Screen? Do I go ahead and populate the fields separately, use the "IN" functionality, then spin through my resulting internal table and delete anything that doesn't match my "table" of valid combinations? Do I skip putting these on a Selection Screen completely and check the values in my SQL statement?
Thanks in advance -- points, as always, will be given.Hi
Yuo can try to use FOR ALL ENTRIES option.
IF you have:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
You should do something like that:
DATA: BEGIN OF <TAB_SEL> OCCURS 1,
WERKS TYPE WERKS,
BTRTL TYPE BTRTL,
END OF <TAB_SEL>.
WERKS BTRTL
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
SELECT * FROM <TABLE> INTO TABLE ITAB
FOR ALL ENTRIES IN <TAB_SEL>
WHERE WERKS = <TAB_SEL>-WERKS
AND BTRTL = <TAB_SEL>-BTRTL.
In this case you need to fill correctly the internal table <TAB_SEL> with the all combinations.
Max
Maybe you are looking for
-
How to unsubscribe from blog comments?
I've posted a comment on a blog and got subscribed for the comments, but now I don't care to receive those emails anymore and would like to unsubscribe. The email reads: "To stop receiving notifications about this or other Weblogs, go to http://www.s
-
Required tables which touch Transport Request details
Could any one tell me which table we can get the following information 1)Transport Request released by 2)Transport Request Creation Date 3)Transport Request released date 4)Import to the systems 5)Imported to the systems on which dates I checked E07
-
Exception handling in integration processes
Hi, I have a very simple question but I can't find an answer. I have designed an integration process that upon several other things send synchroneously a message to an ABAP proxy. Sometime the ABAP proxy generates exception. In my integration process
-
Use of Serial Number Error?
I have received an error message informing me that I have used the serial number for Adobe Photoshop on two other machines and therefore I cannot continue using Adobe Photoshop until I have a differenct serial number. I have not used the serial numb
-
Re: searching database from a textfield entry
Hi, i am trying to search mySql database from the input of a jtextfield. Please can some add me to there msn and help me its really really important and urgent. my msn is [email protected] Your soonest responce would be greatly appreciated as would y