Screen flow logic
Hi.
I need some help. I've never worked with screens until now.
I have created a custom field in tab Basic Data 1 in t-codes MM01/MM02/MM03 ; also i have created a field in MARA table.
When i make some changes to this field in MM02 or when i want to add new text to this field the value it's not saved in MARA table. More, in MM02 if i write some text in this field, and if go to tab Basic Data2, when i return to tab Basic Data 1, this field is cleared (field has no value, is empty).
And , in MM03 (display mode) all fields except this customer field are disabled (grayed).
So, how to solve this problems?
Please someone help me.
Thanks in advance.
Hi,
You need to handle the custom fields in PBO and PAI of the screen exits. There are customer exits available in PBO and PAI of that screen. Write your code in these exits.
Thanks,
Vinod.
Similar Messages
-
Selection screen flow logic change not taking affect. Please help!
Hi
When I am trying to change the selection scren flow logic I get the following message:
Selection screen: Report generation makes screen changes ineffective.
Whatever I am changing is not taking affect in runtime.
Even though I have activated the changed code for the screen
What shall I do resolve this?
Thanks
GopalYou should not be changing the screen flow logic of a standard selection screen 1000. It will always be regenerated. In order to modify the standard selection screen, you can do this in the AT SELECTION-SCREEN output event and loop at screen and change the attributes.
Loop at screen.
if screen-name = 'P_CHECK'.
screen-input = '0'.
modify screen.
endif.
endloop.
Regards,
Rich Heilman -
The modules that we write either in PBO or PAI block , are called by the run time environment on the basis of user action or whether they are called in a order in which we have written these modules ?
Thanks Mansoor .
"Conditional Module Calls
Simple module calls are processed in the sequence in which they appear in the screen flow logic. " This statement I found in SAP help link
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
So im confused whether the modules are called on the basis of the sequence in which they occur or whether they are called on the basis of user interaction . -
Validate user input with the screen flow logic.
Hello guys, im facing some troubles with the following code
field mara-matnr SELECT *
from mara
into table itab_mara
where matnr = mara-matnr
and matnr = mara-matkl
WHENEVER NOT FOUND SEND ERRORMESSAGE 107
WITH mara-matnr .
the editor doest recognize this code in PAI., is the same with VALUES clause.
what im doing wrong ? . thank you very mch.Hi,
Please check code in where condition. Is the condition is right?
field mara-matnr SELECT *
from mara
into table itab_mara
where matnr = mara-matnr
and matnr = mara-matkl
WHENEVER NOT FOUND SEND ERRORMESSAGE 107
WITH mara-matnr .
MATNR is comparing with MATNR and also MATKL.
When you are doing the valiation make sure that use the chain and endchain stamt.
PAI
CHAIN:
MODULE VALI_DATA.
END CHAIN.
Like above do the code. -
Get the trigger module field in screen flow logic.
HI ALL,
CHAIN.
FIELD F1.
FIELD F2.
FIELD F3.
FIELD F4.
MODULE CHECK ON CHAIN-REQUEST.
ENDCHAIN.
In check module, i want to get the field which trigger the modlue.
Thanks and Best regards,
Ivy.Hi,
It is not possible to know which field triggered that module, if you want to know
exactly which field triggered then remove chain ... endchain. and maintain seperate
module for each field if you want to know exactly which field triggered otherwise
chain..endchain will do.
Regards and Best wishes. -
Hi all,
which logic ale is using to upload data? like bdc is using screen flow logic, ale?
L.Veluhi,
the following thread may help you out
ale
reward points if useful
regards,
pavan -
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 batch download the elements and flow logic of screen
hi,all
i am doing programs transfer without using transport request.
it is easy to download simple reports,includeing code, text etc.but how can i deal with reports with customed screen.
for example, i have to download the elements and flow logic of screen 100 in a report. also, i need to upload in another server.
i need you help!
thanks
Regards
LTHi,
There are lots of utilities to do this. just search forum and you will be able to find the one.
Regards,
Atish -
In MVC, do i need a View or Page with flow logic for POPUP window
Hi All,
I have the below scenario using the MVC pattern.
I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create to create order.
But as per the MVC pattern I canu2019t call the view (popup) from another view(main view). So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
I need 6 popup to be called from the main view and once the function is done close the popup.
Please suggest me the flow for this scenario.
Cheers,
Srini.Srini,
1. You can call the view in pop-up because you will be calling the controller using open.window.
Here is the sample code:
method DO_REQUEST .
data:
li_vw type ref to if_bsp_page,
lv_form_field type string,
li_md type ref to zcl_model01.
dispatch_input( ).
li_md ?= get_model( 'm01' ).
lv_form_field = request->get_form_field( 'invoice_create' ).
if lv_form_field is initial.
*------ Request to display main page
li_vw = create_view( view_name = 'main.htm' ).
li_vw->set_attribute( name = 'model' value = li_md ).
call_view( li_vw ).
elseif lv_form_field eq 'true'.
*------ Request to display Invoice page in pop-up
li_vw = create_view( view_name = 'invoice.htm' ).
li_vw->set_attribute( name = 'model' value = li_md ).
call_view( li_vw ).
endif.
endmethod.
Layout:
function do_Invoice()
{ var s=0; r=1; w=300; h=300; x=screen.width/2;
x=x-w/2;
var y=screen.height/4;
y=y-h/2;
popUp=window.open('main.do?invoice_create=true','win','width='+ w
+',height='+ h +', left=' + x +',top='+ y +');
Option2:
Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
Raja
Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM -
Flow Logic jumping to HTML Template (with SAP dialog) & back again
Hello
Overview
========
Within a HTML Template that uses flow logic, can I call a HTML Template that has SAP dialog behind it. The SAP dialog is a function module that has a screen requesting user input and then follows on to display selection based on user input. The user can then select a value that I would like returned to the flow logic screens. Just like an F4 help.
Detail
======
This is for SRM (EBP):
-Internet Service: BBPATTRMAINT
-Theme: 99
-HTML Template and flow logic: MAINTAIN_ATTRIBUTES
Basically I want to give the user more functionality and be able to select addresses using an F4 type scenario.
The function module I want to call is as follows:
CALL FUNCTION <b>'F4IF_FIELD_VALUE_REQUEST'</b>
<b>EXPORTING</b>
TABNAME = 'ADRC'
FIELDNAME = 'ADDRNUMBER'
SEARCHHELP = 'BBP_ADDR_BUPA_BUYER'
SHLPPARAM = 'ADDRNUMBER'
DYNPPROG = 'BBP_ADDR_MAINTAIN'
DYNPNR = SY-DYNNR
DYNPROFIELD = 'BBP_PARTNER_ORG-ADDR_SELECTED'
CALLBACK_PROGRAM = 'BBP_ADDR_MAINTAIN'
CALLBACK_FORM = 'PRESET_COMPANY_PARTNER'
<b>TABLES</b>
RETURN_TAB = IT_RETVALUES
<b>EXCEPTIONS</b>
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5.
This displays a screen for the user to better define search criteria and follows on to display possible selections. The user selection is returned in IT_RETVALUES.
If anyone knows of a similar SAP example where they go from flow logic to HTML templates then that would help a lot.
Any help or direction would be greatly appreciated.
Regards
PeterHey Orcasound, welcome to the forum, and also welcome to Logic.
Nice setup BTW, especially the Dangerous 2BUS into the BC1 coming back to the Rosetta 800"s, that gonna sound sweet mate.
OK Q1: The master fader for output 1-2 is always gonna be there, I've never found a way of getting rid of it, you can fortunately set up the mixer so that it won't show though. At the top of the mix window is a heap of boxes highlighted in blue, all you need to do is deselect the master and the output as per this screen shot:
Save this in your template and you'll never have to see those pesky faders again.
Q2: Same thing really, logic will always show 1-2 output as stereo out. Which is annoying, even if you manually name them from the I/O labels window it's always stereo, everything else if fine apart from 1-2. To be honest I've just learned to live with it.
Glad you made the switch, I find DP to be bloated and a bit tired nowadays. -
Using loop statement in screen flow
Hi Friends,
I have been working on the Module Pool for the last two weeks. But Iam unable to get the main difference between
the " LOOP WITH CONTROL TABCON " and " LOOP AT ITAB WITH CONTROL TABCON CURSOR TABCON-CURRENT_LINE ".
Please make me clear on this issue.
Thanking you in advance,
Regards,
Murali KrishnaThis is copied from sap documentation
link:[Table Controls in the Flow Logic|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/frameset.htm]
LOOP WITH CONTROL ctrl.
ENDLOOP.
These statements create a loop pass through the step loop rows displayed on the screen.
For PAI, they transfer the data of each group into the identically-named fields of the ABAP program or, vice versa,
for PBO from the ABAP program into the step loop fields.
In the LOOP-ENDLOOP loop, you can call modules that process the transferred data and for
PBO read from an internal table, or for PAI import into an internal table.
LOOP AT itab [INTO wa] WITH CONTROL ctrl.
ENDLOOP.
This statement assigns an internal table itab of the ABAP program to the table control and
triggers a parallel loop run over the table control rows displayed on the screen and over the internal table itab.
The additions INTO and WITH CONTROL are possible at the time of PBO, but not at PAI.
The assignment of the loop to the table control takes place at PAI through the internal table.
Using the INTO addition, the fields of the internal table itab are written to the work area wa at the time
of PBO and the content of wa is transported, line by line, to the identically-named fields of the table control
on the screen. Without the INTO addition, you must use an internal table with a header line.
Then the content of the header line is transported line by line to the
identically-named fields of the table control on the screen at the time of PBO.
No module is required for filling the table control rows.
Conversely, at the time of PAI, the internal table rows are not automatically
filled with the contents of the table control rows. Instead, you must call a
dialog module within the loop that modifies the table. -
Where to copy the codes for flow logic?
Hi.
I know that SE37 is to access the source code for function modules,
and SE38 is to access the source codes for programs/reports.
Does anyone know where I could get the codes for the<b> flow logic of the dialog screens</b> called by my programs?
Thanks.Hi,
SE80 transaction
Select program in drop down & enter the program name
Best regards,
Prashant -
after I have done table maintence,what can I do for adding flow logic module?
for example,one field value in the table requires anoter table's value calculation,who can tell me the method?
thanks a lot!Hi
SE11->Utillities->table maintainence generator
You need to enter the values of following fields:
1. Table name
2. Authorization group , and authorization object (select the suitable one )
3. Function group and package
4. Maintainence type : single or double screen maintainence view depending on the option selected.
5. Maintain screen number : you may specify a value or let the system generate one for you.
The validation code for the table entry is written in the flow logic of this screen. Even some of the fields may be made display only , by adding suitable code in the logic or directly disabling the input in table control in the layout.
>> Activate
Check these links for more information which will be very usefull for u
http://help.sap.com/saphelp_nw04/helpdata/en/16/4b3c8c170e11d6999d00508b6b8b11/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/adjusting-table-maintenance-134547
Regards
Pavan -
About screen flow (using tag library)
dear all, i have the following problem...
according to the sample about using tag library to make the screen flow of jsp pages, i successfully construct the tag for showing pages as needing. it works ok but when the number of pages exceeds 29, an exception arrises:
Exception:
java.lang.VerifyError: jsp_eventmanager_html.template
in which template is the jsp page for the tags... i do try to set the size of the buffer but it does no help.
can anyone help me solve this problem? thanks in advance...
yinman.
nullsure,
in the message.jsp
<p>
<!-- use messages tag to display errors -->
<logic:messagesPresent>
<bean:message key="error.header"/>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages>
</ul>
</logic:messagesPresent>
<p>
<!-- use messages tag to display messages -->
<logic:messagesPresent message="true">
<bean:message key="message.header"/>
<ul>
<html:messages message="true" id="msg">
<li><bean:write name="msg"/></li>
</html:messages>
</ul>
</logic:messagesPresent>in the tablibs.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja
Maybe you are looking for
-
How do i merge all the files in a directory into a single file
I need to merge(or move) all the files(all are .txt files) in a directory into a single file?
-
I want to transfer e-mails from MS outlook to CRM,I have created folder u201CSAP CRM E-Mail Transferu201D using Personalize setting under groupware integration, emails form folder u201CCRM E-Mail Transferu201D only need to transfer to CRM Inbox. But
-
Fairly generic Linux question but does my non-root user have to belong to any specific groups to be able to mount the disk drive and usb drives? Whenever I try to access one as my non-root user I get a "Not Authorized" message box (in GNOME).
-
30EA2 dbms_output.put_line not working
Hi All, I've testing new release SQL Developer and the code bellow is not put any data to output? Is it an issue new version ? BEGIN dbms_output.put_line('[text]'); END; SQL Developer Version 3.0.02 Build MAIN-02.83 Thank you in advance Edvard
-
Is 3D file import possible in Motion 3?
Is 3D file import possible in Motion 3? and If so what types work best? Thanks in advance. Eric