Urgent.....Screen Painter.........ABAP
Hi,
I designed a screen to maintain custom transparent Table.
Before inserting the record I need to check whether the same record exist in the table or not with the screen fileds.
in the screen I get the fields from the same table in which I have to maintain the Table.
How shall I check the table fileds with the screen fileds.
Table Fields
z_intfc
z_attr
z_value
In the screen I select the same fileds.
I don't know how to check the screen fileds with table fields.
Any suggestions please.
I created four push buttons INSERT,UPDATE, DELETE, EXIT
How shall I code thenm in the program to check the above
options?
any suggestions please...
Thanks in advance
sailekha
Hi
For validation, You can have the same fields of the table on your screen.
And, you can say
Select <key field>
from ztable
where keyfield = ztable-keyfield.
OR
You can as well use/move to a structure and use those fields for validation.
You can use the same structure field values for INSERT,UPDATE and DELETE.
Regards,
Raj
Similar Messages
-
ABAP Dictionory type FLTP is nt allowed for screen Painter!!
Hello All,
ABAP Dictionary type FLTP is nt allowed for screen Painter!! am getting this error message if am giving some input.
Thanks
santu
Edited by: santu4u on Oct 23, 2009 1:48 PMHi
Instead of FLTP use Quantity or Currency or Packed Decimals type fields for the Screen Elements.
While you save the data into the database if the database field is of type FLTP the values entered would be automatically converted into FLTP type. We need not take care of this.
---?? What do you mean by IDES version --->
You mean in SE11 or SE16, Wherever it may be you can not use FLTP type on Screen Fields.
This is Standard SAP Procedure, As mentioned Above you can use Packed Decimals or Currency or Quantity Fields
Cheers
Ram
Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:10 PM
Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:13 PM -
ABAP : Screen Painter error
Hi Experts ,
I need your help. Actually i have started working in ABAP as welll. need to know that below is the coding being done for Screen Painter and need your help in troubleshooting error. the Error is :
"Program ZSCREENPAINTER1
"TYPE LINE" or "LIKE LINE" expected, not "BEGIN". ."
coding that i have done is :
PROGRAM ZSCREENPAINTER1.
DATA : OK_CODE TYPE SY-UCOMM,
types: BEGIN OF EKPO,
EBELP TYPE EBELP,
BUKRS TYPE BUKRS,
WERKS TYPE WERKS,
MATKL TYPE MATKL,
END OF EKPO.
thanks & regards ,
M.Sjust to add to all these answers..
'.' (Dot) acts as end of statement in ABAP as ';' works for C..
and ':'(colon) is used for pipeline or chaining more than one statement.. and chained statements are joined using ','(comma)
so
left side : right side1,
right side2,
right side3.
"this actually means..
left side right side1. " ends here
left side right side2. " ends here
left side right side3. " ends here
hope you understand now... its BASIC abap... -
Urgent problem ......In screen Painter
Dear all,
May problem is in the Screen painter. with out clicking the EXIT button, exits out of the screen.
and also the Messages are not displayed.
I designed the screen, using GUI status I created two buttons in the application Toolbar.
one for INSERT.
one for EXIT.
In the main program I coded like this
save_ok = ok_code.
SELECT * FROM ziv_check_intfc INTO TABLE it_check_intfc.
CASE sy-dynnr.
WHEN '2000'.
CASE save_ok .
WHEN 'INSERT'.
LOOP AT it_check_intfc INTO wa_check_intfc.
IF wa_check_intfc-ziv_intfc <> ziv_check_intfc-ziv_intfc.
IF wa_check_intfc-ziv_attr <> ziv_check_intfc-ziv_attr.
IF wa_check_intfc-ziv_value <> ziv_check_intfc-ziv_value.
INSERT ziv_check_intfc.
MESSAGE 'RECORD INSERTED INTO TABLE' TYPE 'I'.
ELSE.
MESSAGE 'RECORD ALREADY EXISTS IN THE TABLE' TYPE 'I'.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDCASE.Make sure that you clear the ok_code after processing it.
save_ok = ok_code.
SELECT * FROM ziv_check_intfc INTO TABLE it_check_intfc.
CASE sy-dynnr.
WHEN '2000'.
<b>CASE ok_code. "save_ok .</b>
WHEN 'INSERT'.
<b>clear ok_code.</b>
LOOP AT it_check_intfc INTO wa_check_intfc.
IF wa_check_intfc-ziv_intfc <> ziv_check_intfc-ziv_intfc.
IF wa_check_intfc-ziv_attr <> ziv_check_intfc-ziv_attr.
IF wa_check_intfc-ziv_value <> ziv_check_intfc-ziv_value.
INSERT ziv_check_intfc.
MESSAGE 'RECORD INSERTED INTO TABLE' TYPE 'I'.
ELSE.
MESSAGE 'RECORD ALREADY EXISTS IN THE TABLE' TYPE 'I'.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
WHEN 'EXIT'.
<b>clear ok_code.</b>
LEAVE PROGRAM.
ENDCASE.
ENDCASE.
Regards,
Rich Heilman -
ABAP : Screen Painter - Graphical layout
Hi Experts ,
I am doing an assignment for the screen painter. but when i click on the layout of it , I am not getting the graphical input. kindly advise. is there some new setting to made.
thanks & regards ,
M.SHi M.S,
If the setting is already check, then the problem is in GUI. While installing GUI there is a option for Screen painter. You need to check it at GUI inatall
For patch details refer [Graphical Layout Editor|http://help.sap.com/saphelp_nwmobile71/helpdata/en/d1/801b77454211d189710000e8322d00/frameset.htm]
Regards
Edited by: Rajvansh Ravi on Nov 26, 2009 6:20 AM -
HI EXPERTS
i am trying design the screens in the SE51 in that i am not able to see the screen painter there..i tried it in
GUI VERSION 640 then i uninstalled the GUI and installed the GUI VERSION 7.10 even though it is showing the same in the SM53 scereen. so plz HELP ME.................................very urgent.
Cheers,
deepakTry to use the Graphical Screen Painter by checking the checkbox in the settings of screen-painter tab in User Specific settings from ABAP development workbench. (Utlities --> Settings). Try this may be it will ok then. Hope you installed all the options while installing the GUI 7.10.
-
How to create a drop down box and text box in screen painter?
Hi i am totally new to this concept of screen painter..please can any tell me
how to create drop down box in screen painter?
How to create or display default date and time values?
How to create text box for giving comments?
How to store the records that we are entering in a table?
Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.Hi,
Check all these.
1.how to create drop down box in screen painter?
To get Drop Drown Box on screen .
Follow these steps.
1.
Go to T.Code SE51 and Select Laypout for the Screen.
2.
Double click on the field for which u want Dropdown box.
3.
Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
4.
Save and Activate ur screen .
5.
Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
6.
The following code should be written under PROCESS BEFORE EVENT in the MODULE.
TYPE-POOLS :vrm.
DATA:
i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
w_natio LIKE LINE OF i_natio.
DATA:
BEGIN OF i_t005t OCCURS 0,
land1 TYPE t005t-land1,
natio TYPE t005t-natio,
END OF i_t005t.
IF i_t005t[] IS INITIAL.
SELECT land1 natio
FROM t005t
INTO TABLE i_t005t
WHERE spras = sy-langu.
IF sy-subrc = 0.
LOOP AT i_t005t .
w_natio-key = i_t005t-land1.
w_natio-text = i_t005t-natio.
APPEND w_natio TO i_natio.
CLEAR w_natio.
ENDLOOP.
ENDIF.
ENDIF.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
values = i_natio
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2.1.How to create or display default date and time values?
1.
create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
2.
Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
3.How to create text box for giving comments?
1.
Define one variable in the TOP include with type STRING means Global variable.
2.
Create one input field by giving screen field name which u have defined in the above step.
4.How to store the records that we are entering in a table?
For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
Check the following steps to handle Table control.
1).
U should take one variable in your internal table or in structure which
is used for table control fields
ex :
data :
begin of itab occurs 0 ,
mark type c , "This is to select the record.
matnr like mara-matnr ,
matkl like mara-matkl,
maktx like makt-maktx,
end of itab .
Controls: TABC types TABLEVIEW using screen 100.
2).
This mark variable should be given in Table control properties.
follow the path
double click on the table control-->attributes .->select
w/SelColumn and in that itab-mark. Check in the figure.
[Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
3).
After that. Take this example.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT ITAB WITH CONTROL tabc
ENDLOOP.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
LOOP AT ITAB.
Module read_table_control.
ENDLOOP.
module user_command_0100.
In this Module read_table_control, You should write the following code
MODULE read_table_control INPUT.
MODIFY itab INDEX tabc-current_line."( This will update the
"ITAB table MARK field with 'X ' whatever we have selected
"on table control.)
ENDMODULE.
4)
If you want to Delete some of the records from Table control
follow this code Create one pushbutton and give Fucnction code to that
and write below code
CASE OKCODE.
WHEN 'CREATE'.
LOOP AT itab WHERE mark = 'X'.
"Use UPDATE statement to create new record.
ENDLOOP.
ENDCASE.
I hope that you will get something.
Regards,
Venkat.O -
Passing the values from selection screen to screen painter
Hello Friends,
I'm making one report program in which im calling one screen which i have designed, in my selection screen there is a select option for customer tht accepts value range now i want to select all the customers entered in select options and pass these values in screen(screen painter).
pls guide me how this can be done.
Regards,
SunnyScreen painter is a tool in ABAP dev workbench used to create the screens using the
T-code SE51. In the screen painter, you can define the following interface elements with their associated attributes.
1. Input/Output Fields
2. Field Names
3. Checkboxes
4. Radio Buttons
5. Group Boxes
6. Sub screens.
7. Pushbuttons with No Fixed Position
Create a Z program in tcode SE38.
Go to transaction SE51.
Enter the created program name and screen number.
Click on flowlogic tab.
Uncomment the statement u201C MODULE STATUS_0100 u201C.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'DISPLAY'.
SELECT SINGLE Fileds to selsct
INTO (interanl table or tablename-fileds)
WHERE Condition. WHEN 'CLEAR'.
CLEAR table.
ENDCASE.
ENDMODULE. -
Regarding the flow logic in screen painter
Hi Experts
I am a BW guy and i am new to ABAP and i need your help to solve my problem.
I have created a table for master data(zemp_data) in R/3 se11..which has fields like zempid,zempname,zmgrid,zdeptid,zdeptname and i have created the respective fields in screen painter too but my problem is i dont know how to link this fields in the screen painter to the fields in table .to be more clear i want the flow logic or module pool code to link this table when i give an entry in the screen painter for the respective fields..i will really appreciate your answers and award the maximum points for the usefull answer ..as i dont know ABAP much if it is a step by step approach ..that would be helpfull
Regards,
RK.Hi Karthik,
Please consider the following
In the screen...the fields must be from the database table in Se11..(in screen painter -> use.."get from Dictionary" -> enter the table name -> select the fields -> drag and drop on the screen) or must have the same name in the database table..This will be a link but unless you code to fetch values from database or update values to database there will be no action taking place
Usually in the PBO(process befor output) we write the code to display values before we accept data from the user ie,set default values on the screen if required and prepare the screen for user input
in the PAI of the screen painter we can do data processing ie, data validations,checks and saving based on what the user wants
So imagine you have buttons placed on the screen and there are buttons from standard application bar like BACK,SAVE, set using PFstatus..all the user actions will be linked to a function cod..ie whenever user presses a button we can uniquely idntify what was pressed by assigning a function code to each button in the menu painter or PF status and do the action accordingly
Assume that you have created a push button on the screen painter and assigned it a function code "PUSH"
so whenever you press the button in the variable sy-ucomm "PUSH" will be captured..this you can check in PAI for the screen like
Case sy-ucomm.
when 'PUSH'.
do the needful coding
when 'SAVE'
Modify database table
endcase.
you can check the standard demo programs in SE38 -> program name-> display for basic ABAP coding you have asked for
(1)demo_dynpro_input_output .
(2)demo_dynpro_dictionary
(3)demo_dynpro_push_button
Pls let us know if you need more help on the same
Reward if helpful
Regards
Byju -
How to set Function Code for Radion Buttons in Screen painter
Hi,
I have faced problem of grouping 3 radio buttons in screen painter (no graphical editor). How to do it?
I have checked similiar threads in SDN, but those are for graphical editor.
Radio Buttons in custom screeen
http://****************/Tutorials/ABAP/Checkbox/page1.htm
http://****************/Tutorials/ABAP/Checkbox/page2.htm
Regards,
SukhboldHi,
U want to create radio button in the selection screen then u can create like this
PARAMETERS : c1 AS CHECKBOX USER-COMMAND cd,
r1 RADIOBUTTON GROUP rad,
r2 RADIOBUTTON GROUP rad.
AT SELECTION-SCREEN OUTPUT.
IF c1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '0'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '1'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks, -
SCreen Painter working not correctly.
Hi,
In se53 when we go to screen painter it's not coming properly..
some line is coming.
and we got EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' error message.
we have sap gui 710 with patch level 7.
the dumpfile also generated.
Runtime Errors STORAGE_PARAMETERS_WRONG_SET
Date and Time 22.07.2008 12:44:27
Short text
The system is configured incorrectly.
What happened?
The current program had to be terminated because of an
error when installing the R/3 System.
The program had already requested 453411792 bytes from the operating
system with 'malloc' when the operating system reported after a
further memory request that there was no more memory space
available.
What can you do?
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
In the system profile, set the parameters
-abap/heap_area_dia and
-abap/heap_area_nondia
to a maximum of 453411792. To be on the safe side, reduce the value by 10,000,
000.
Then restart the SAP system.
Error analysis
When the program was running, it was established that more
memory was needed than the operating system is able safely
to provide. To avoid a system crash, you must prevent this
situation from occurring.
Last error logged in SAP kernel
Component............ "EM"
Place................ "SAP-Server mtw02sdec01_DE7_00 on host mtw02sdec01 (wp
1)"
Version.............. 37
Error code........... 7
Error text........... "Warning: EM-Memory exhausted: Workprocess gets PRIV "
Description.......... " "
System call.......... " "
Module............... "emxx.c"
Line................. 1881
The error reported by the operating system is:
Error number..... " "
Error text....... " "
How to correct the error
Report the error to the group responsible for installing your
R/3 System.
Please help.
regards
deepakDump is telling you what to do...
Review abap/heap_area_dia and abap/heap_area_nondia
I presume you try that before posting right?...
Whats the issue then?
Regards
Juan -
Can any share me the procedure to create a text box in screen painter?
Hi Friends,
Can anyone share me the procedure to create a text box in screen painter and browser for attaching files ....please its urgent....
Points will be definetly rewarded.
ThanksRefer to
How to create a text box in ascreen painter?
where another user (venkateshwar reddy) has asked a very similar question... is this an exam question?
Jonathan -
How to continue the screen in Screen -painter?
Hi friends can anybody help me out in knowing how to continue the fields in screen painter. For clear explanation i have got 20 fields to be entered in my form, but when i am going to layout of screen painter i have been able to accomadate only 12 the rest 8 i want to be in continuation.
hope you can under stand.
suppose if this is the layout
Registration
01. ......
02. ,,,,,,
12. ,,,,,,,,
i have accomadated in one single screen
i want to accomadate the rest 8 in continuation can i know how?
please its urgent for me.hi
increase the window size.
regards
sreelatha gullapalli -
Having Problems with my Screen Painter
Hi,
I'm new to SAP and I'm still learning. I'm on this part of tutorial wherein I am trying to create a Screen using the Screen Painter. But the problem is, the interface of SAP in the book looks something like this:
http://www.kodyaz.com/articles/sap-abap-tutorial-alv-grid-cl_gui_alv_grid-screen-painter.aspx
But my interface looks different. I'm sorry I can't post the picture here but It can be well described. It looks like a "notepad" with horizontal lines.
Has anyone encountered this kind of screen painter? Hope someone could help me.
Thanks.Hi,
Do you receive some error like 'Graphical Layout Editor not available 37527'. Does the problem occurs only for some users or for all the users?
If the issue is for all users, I suggest to check notes 101971 and 204910.
If its for a particular user, please make sure "graphical layout editor" is checked under SE51->munu Utilities/settings->tab ScreenPainter.
Hope this info helps,
Br,
Javier -
Screen painter is not working properly.
Hi,
when i execute se51 the screen painter is not coming properly.
some dotted line coming and throughing the below message.
EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
i am using sap gui 710 final release with patch 7.
can plz suggest wht should be the problem.
Regards
deepakHi Deepak,
As Ashutosh said, please post the thread in the ABAP forum. Do not create a new one.
Moderators,
Please move this thread to ABAP forum.
For the time being, refer the notes: [204910|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=204910], [885581|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=885581] and [101971|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=101971]
Regards,
Srihari -
Report and SAP-SCRIPT & SCREEN PAINTER
Hi all ,
I need some help.
1)How to transport sap-script.
2) print program of sap script are client-dependent or client-independent.
3)Database tables ( on se11) are client-dependent or client-independent. ( is sy-mandt will make dependent or independent)
4) how to create select-option on screen painter or with module pool programming.
5)performance tuning for ABAP report.
points for all answers assured.
thanks.Ihave some notes on transporting sapscript for earlier version of SAP.
The steps may vary based on your version and Suppport PAckages levels.
In the future your version and platform detials will help in a quicker response.
Summary of sapscript EXPORT / IMPORT process.
Steps to export Layout Sets (sapscript)
Log on the Source system and client
This may have to be client 000 and then again in the client in which you do developement.
Note that sapscript is client dependent
SE38 and execute program RSTXR3TR
Tranport number: DS1K9#####
Mode field: EXPORT
File system: Server - radio button
The dataset name: /usr/sap/trans/data/DS1K9#####.layoutsets
CHECK the Display dataset contents checkbox
Execute
Steps to import Layout Sets (sapscript)
Log on the target system and client. This may have to be client 000 and then in the client in which you test, or ultimatly production.
SE38 and execute program RSTXR3TR
Tranport number: DS1K9#####
Mode field: IMPORT
The dataset name: /usr/sap/trans/data/DS1K9#####.layoutsets
CHECK the Display dataset contents checkbox
Execute
Note: when importing into Production, the export does not need to be performed.
Therefore only the import protion is required once the sapscript has been exported from Development.
Maybe you are looking for
-
I have a Macbook and I left it unplugged. It started up slowly when I plugged it in again, but it seemed fine. Once it started charging I shut it down so it would be easier, but now it will not go past the grey screen with the apple. What do I do? I
-
PL/SQL: ORA-00932: inconsistent datatypes: expected REF got CHAR
SQL> desc o.rel_module; Name Null? Type ID NOT NULL NUMBER(6) TYPE NOT NULL CHAR(7) BUILDDATE NOT NULL NUMBER(4) DESIGNROOT NOT NULL NUMBER(6) SQL> desc rel_module Name Null? Type ID NOT NULL NUMBER(6) DESIGNROOT NOT NULL NUMBER(6) REL_COMPOSITEPARTS
-
Hello Experts, I'm trying to printing customer invoice line item in a form. But it is only printing 1st line of the line item. I'm trying to print all documents of the table BSEG. Please advice if I need any coding in SAP scripts. If I need any ABAP
-
Restore iBooks files from time machine backup after clean install
I just did a clean install of Yosemite. I still have a Time Machine backup of my Mavericks install. iBooks in my new Yosemite install does not have all of my books and pdfs in it - just the ones I can download from the iBookstore. Is there an easy wa
-
Can fonts in a PDF be converted to outlines with Acrobat Pro 9?
Acrobat Pro 9.....Sometimes I get a PDF that I will have to do some edits to. Because I dont have some of the fonts used, I cant edit the file without losing the fonts used. Is there a way to have Acrobat maybe resave itself with all the fonts conv