Dynamic Screen Programming
Hello Experts,
I want to create dynmic screen. There are multiple rows of my data.
Like for example, There is information of every subject of the student
Data line in node -> Student number,Name,Sub,Marks
Now with multiline data, if 1 student has 4 subjects, he will have 4 lines but number and name will be common
so Number and Name will come on 1 line
and 2,3,4,5 line will contain subject Name and Marks. Like this data will be generated for all students -> Student count and subject count for each student is not decided.
UI elements used will be of type, Textview,Input field,Image ,check box and Dropdown(Data is editable).
I have created all this elements using dynamic programming for a single element of node.
What I understand if I need to do the same thing for Multiple elements of node. I will need to create dynmamic node for each of element as Binding happens at node level not elmenet level.
I also tried it using table giving different UI elements for cell but here there is huge compromise on the appearance of screen.
Please advice me if there is any other way.
Thanks in advance.
Regards,
Hema
Hello Amit,
I refered the reply
Here is the code given in thread...
In one method I created the node -
IF lr_node IS BOUND.
wd_comp_controller->lr_node = lr_node. "Global variable
ENDIF. "if lr_node is bound.
Aslo copy the table structure you crreated dynamically to global variable for later reference.
On SAVE -
FIELD-SYMBOLS :
<lt_table> TYPE STANDARD TABLE .
CALL METHOD wd_comp_controller->lr_node->get_static_attributes_table
IMPORTING
table = <lt_table>. "dynamic table
I am not sure when is lr_node in wd_comp_controller is created- before writing wd_comp_controller->lr_node = lr_node.
I checked the other links in the thread..but didnt help...
Can you please help me to understand ... how should I bind the dynamically created Node in the View to component controller as it needs to be accessed in different view as well..
Thank you
Edited by: Hemalata Borate on Feb 15, 2010 12:39 PM
Similar Messages
-
How to create dynamic screen using module pool programming
Hi,
Could anybody help me how to create dynamic screens?
I am developing a screen with HR Person with assignment info. If PERNR have multiple assignments, i need to show all the details one by one. How to show the details on screen. I need to call one by one assignment information dynamically.
Please suggest me how to do, apart from using table controls.
Thanks,
KamalYou may have the below options:
1) Table Control
2) Individual fields
3) ALV
4) pop-up screen -
FIle path in Screen Programming
Hi I am new to screen programming.
My program would pick a file from desktop and process it.
I am a bit confused how would I give the file path. Should it be a input/output field??
I want something like,
PARAMETERS: filename TYPE text255 OBLIGATORY.
ANy suggestions.
Ster.Hi,
Try this code ..
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
field_name = p_file
CHANGING
file_name = p_file.
DATA : lv_file TYPE string.
IF P_FILE IS NOT INITIAL.
lv_file = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
DAT_MODE = ' '
tables
data_tab = LT_ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Regards,
Saran -
Plugging in iPhone 'interrupts' full-screen programs
When I plug in my iPhone to charge, if I'm currently in a full-screen program (i.e., playing World of Warcraft), it causes the program to be interrupted and go to a partial minimization. Is there a way I can get this to stop? Thanks.
I just started getting this same problem in IOS 7.1, never had a problem till before IOS7.1 When it gets to step 6 or 7 it will turn to a blue screen and restart with a message on my Mac that says "iphone can not be detected" or something like that.
Anyine got any fixes for it? -
Screen Programming * removed_by_moderator *
Hi everyone,
I'm very new for screen programming in OOP's . Can any one tell me how to implement the screens in our report? plz tel me how to write attributes, element list and flow logic and also how the flow logic is implemented using layout? give me simple code...( i'm excepting ABAP code not theorotical part)...
Thanks in Advance
Edited by: Julius Bussche on Jul 16, 2008 8:37 AMHey!
Check out this link
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
One thing
Kindly close all your questions you have posted before otherwise moderator will lock this question . Read the rules of enagagement.
Name: priya patil - View user's Business Card
Registered: Apr 18, 2008
Total Posts: 47
Total Questions: 28 (28 unresolved)
Forum Points: 0
Regards
Abhijeet -
How to add F1 help on a field for a screen program?
Dear all,
Can you suggest the method / sample code to add F1 help text for a field on a screen program.
what is the methodology to do this!!?
Regards,
VjHi,
if u maintain the doccumentation for the data element of a field(if it is from data dictionary table) which u r refering to create the screen element u don't need to write any doccumentation.otherwise follow this link
Adding F1 help.
rgds,
bharat. -
Tutorial for Screen programming & Module-Pool programming
Hi Experts,
I have no previous knowledge of Screen programming & Module-pool programming.
Please provide me good tutorials on those so that I can master those in a couple of days as I need to use those in my current assignment.
I require those badly.
Rewards assured.
Thanks.
Anirban.
Moderator message: please do not ask for documents or tutorials, search for available information, do not use terms that assign a higher priority to your issue compared to all others, do not promise rewards.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Edited by: Thomas Zloch on Nov 15, 2010 2:14 PMhai guru,
use abapdocu----- tcode give ur keyword and search it.
or
sap technical .
search in sap sdn ok.
thanks.
anji -
How to handle dynamic screens in bdc
HI SIR,
i am working on BDC for CA02 in this i have probelm that if operation 10 it doesnot contains any items it showing one screen and if operation 10 contain some items
and its item counter increasing automatically in this case it coming to this screen through some other screen.so.plz help me how to handle this dynamic screens in bdc ,plz help.hi sir,
now i am working BDC UPLOAD with tcode CA02 in this in second screen their are some rows like in table control
opt
10 x
20
30 x
like above in this if row one of column contains 'x' then if i want to fill sub item then it display i one screen EX 100 else if it dsplay screen 200(ie item 10 already contains subitems it display x in one row column(i.e selected check box) else it show unselected check box.plz tell how to know wheather check box is selected or not from screen to .plz tell.
thanking u -
Hi,
One quick question, I have created a screen with reference to a custome table fields and it is working fine. When I enter values for the first time, the values look ok in debug but when I change the values on the screen, the new values are not updated in the screen fields in debug. Old values are shown in the debug.
I guess there is some kind of logic to do this. Like using the dynamic screen fields read or ....
Can someone help me on this?
Regards,
Roopesh Singhhi there...
when u first enter the values, they get into the work area related to the screen fields.....
but when u change the values, they dont get changed in the workarea associated with the fields. since the data does not get updated in the fields, it wont show in the debugging mode. so chk ur code and make sure u update the data in the variables associated with the fields.
do reward if helpful or get back with further queries. -
Hello Everyone!!! I am having tough times solving query on Dynamic Screen Resolution in J2ME. How can you create an application in J2ME that automatically adjusts to the screen resolution to the phone it is being installed. That means if the resolution is small the layout automatically adjusts to the screen resolution and if its bigger then accordingly... Please help....
If you can use a UI framework/toolkit I suggest LWUIT. If not, code using proportions. Avoid absolute values of x, y, width and height. I made a sample at http://smallandadaptive.blogspot.com/2010/12/bar-chart.html
-
Hi,
How to get dynamic screen location for all devices..........
Without changing coordinates from source code it will suit for all devices(Nokia, Samsung, Motorola).......... How to get this...
Help me pls............Use code like this:
public class start extends Canvas {
public static int scrW;
public static int scrH;
public start() {
setFullScreenMode(true);
scrW = getWidth();
scrH = getHeight();
} -
Crystal Report Intigration using screen programming
I am having 2 problems regarding crystal report.
1) I have developed crystal report using crystal report wizard for table 'MARA'
now i want to call this crystal report using screen programming. How i can do this.
2) and how i can call parameterised crystal report using abap programming.
can any one help me ?
Thanks.hi,
this is code for open the crystal report press the button.
First import the crystal report using Report and layout manager
goto administration->setup->general--->Report and layout manager
create one button in add-on form.when we press the button the following event triggered.
get the docnumber for that particular form and pass it.
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
If pVal.ItemUID = "btnPrint" Then
Dim strAcNcmr As Integer
strAcNcmr = objForm.Items.Item("txtDocNo").Specific.Value
Dim oRS As SAPbobsCOM.Recordset
oRS = objSBOAPI.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = ' Purchase Indend' AND Type = 'C'")
objSBOAPI.SBO_Appln.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString())
Dim oForm1 As SAPbouiCOM.Form
oForm1 = objSBOAPI.SBO_Appln.Forms.ActiveForm
oForm1.Items.Item("1000003").Specific.String = strAcNcmr
oForm1.Items.Item("1").Click()
oForm1.Items.Item("1").Visible = False
oForm1.Items.Item("2").Click()
End If
this is easy solution for open the crystal report for add-on form
Thanks & regards
B.lakshmi narayanan -
Offline Screening program /SAPSLL/SPL_OFFLINE_SCREENING
Hi all,
Has anyone tried running the Offline screening program /SAPSLL/SPL_OFFLINE_SCREENING in the background.
I have tried this but am getting a message that this program is not executable in the background.
Can anyone please enlighten me on this.
Thanks in Advance,
SamYes, this program can be run in background.
You must provide filenames in the "File Path on Application Server" area of the screen. Specify the "Path of Source File" and "Path of Local File" fields -- please note that these file must be in XML format with specific tags. Once you provide these parameters for these fields, you can "Execute in Background." The result will be written to an XML file that is specified in the "Path of Target File" field. Also, if you have enabled the configuration to "Write Audit for Simulation of SPL Screening" in the "Control Settings for "Sanctioned Party List Screening" Service" configuration activity, you will be able to review the SPL Audit Trail for any matches.
Let me know if this helps.
Chris -
I/o field in screen programming
the default data type of i/o field in the screen programming is char(1). how can we declare it as char(10), i want to capture the value of the field in one screen to another field in other screen... in doing this i am able to get only the first character....
how to populate the whole value....
thank you.Hello,
Is the dialog program custom or SAP?
If custom, try going into SE80 for the function group and check what the source of the screen field is. If it comes from a structure, then you will need to increase the source field in the structure, which means you also have to check and see if any other code or program will be impacted by the field size increase. If the field is defined directly on that particular screen, then you should be able to increase the size using the Screen Painter (Attributes tab) for that field. You would still need to check for references to the field to see if any other code is affected.
Hope this helps.
K--- -
Copied screen program not working
Dear experts,
There is one screen program which is already created.
I have to remove One push button from text box.
I had this program and removed the push button .
Now when I test the program through SE51 the other pushbuttons are not working.
When I debugged It . The program is not calling my screen but it is calling SAPLSCR0 and screen Number 0401.
My doubt is from where this program is called.
After copying the program which screen numbers I have to give to copied program.
Can I give the same screen numbers Or I have to change screen number.
how to check the available screen numbers which I can use.Hi,
What Raghavender said is exactly correct. Also Besides this, You have to create Transaction since it is the module pool program. While creation of the transaction code, make sure that you have to provide the main screen number. I mean the initial screen number. This effects the screen execution alot.
Cheers,
Murali Krishna T
Maybe you are looking for
-
When I use the feather options on a Vector mask, it works but when I save the file, close it and open it again the feather settings are reset back to zero. I am using Photoshop CS4 Extended on windows XP. I saw that a mac user was having the same pro
-
Hi All, I tried to find a solution myself reading all posts and some document from help, like the external mapping context but without success until now. So please, could you help me to find right solution ? 1/ Idea is that a comp A uses (used compon
-
Query Regarding Translation API
I am using Microsoft Translator API (Microsoft Azure MarketPlace). There is a mention of getting Access Token. Through Access Token We need to translator API. I have a doubt whether generated access token will remain constant or going to change each
-
IPhone 3GS is iPhone is diabled connect to iTunes but nothing happens when I connect?
How do I unlock iPhone 3GS when it states iPhone disabled connect to iTunes? I would appreciate any help to get it working again with the data remaining.
-
Does chrome work on yosemite?
I put yosemite on my macbook pro and the chrome browser does not work worth a darn, anybody else have that problem or know how to fix the problem.