Module Pool:editable field not changing
Hi All,
I created one module pool program with three fields MATNR,EBELN,KTMNG(qty). KTMNG is user key in accordingly to create delivery order.
Now the problem is when user key in KTMNG field value let say 10.000.when press enter Again its taking the database value(20.000 for example).
how to keep the user key value 10.000.
here is my coding:
PROCESS BEFORE OUTPUT.
LOOP AT ITAB INTO WA WITH CONTROL tabcontrol.
MODULE STATUS_0100.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT ITAB.
ENDLOOP.
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'DIS'.
REFRESH:ITAB.
SELECT EBELN MATNR KTMNG INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO
WHERE EBELN EQ EKPO-EBELN.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ZTESTING'.
SET TITLEBAR 'ZTEST'.
MOVE:WA-EBELN TO EKKO-EBELN,
WA-KTMNG TO EKPO-KTMNG,
WA-MATNR TO EKPO-MATNR.
VCONTROL-LINES = SY-DBCNT.
ENDMODULE.
Please help me.
Thank You,
Anu.
PROCESS BEFORE OUTPUT.
LOOP AT ITAB INTO WA WITH CONTROL tabcontrol.
MODULE STATUS_0100.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT ITAB.
" add this
CHAIN.
FIELD EKKO-EBELN.
FIELD EKPO-KTMNG.
FIELD EKPO-MATNR.
Modify tablecontrol.
ENDCHAIN.
ENDLOOP.
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'DIS'.
" Comment this start and Pushi to PBO and check if ITAB is initial then do below Qyery
REFRESH:ITAB.
SELECT EBELN MATNR KTMNG INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO
WHERE EBELN EQ EKPO-EBELN.
" Comment this end
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ZTESTING'.
SET TITLEBAR 'ZTEST'.
MOVE:WA-EBELN TO EKKO-EBELN,
WA-KTMNG TO EKPO-KTMNG,
WA-MATNR TO EKPO-MATNR.
VCONTROL-LINES = SY-DBCNT.
ENDMODULE.
MODULE TABLECONTROL OUTPUT. "New addition in PAI for Modify
MOVE:EKKO-EBELN TO WA-EBELN,
EKPO-KTMNG TO WA-KTMNG ,
EKPO-MATNR TO WA-MATNR .
MODIFY ITAB FROM wa INDEX tabcontrol-current_line
ENDMODULE
Similar Messages
-
Module pool Image is not changeing
Hi
In my report Im calling a screen with Image. I have different images uploaded using SE78. But everytime same image is comming, not different. If I click on different ouput image the workarea is changing (WTAB-IMAGE) but the same image is comming. The code is below. I am unable to trace the bug. Please help.
REPORT ZKD_PIC_ON_SCREEN.
TYPES : BEGIN OF TTAB,
IMAGE TYPE CHAR70,
END OF TTAB.
DATA : ITAB TYPE STANDARD TABLE OF TTAB,
WTAB LIKE LINE OF ITAB.
START-OF-SELECTION.
" all image are different
WTAB-IMAGE = 'AERDE04-C'.
APPEND WTAB TO ITAB.
WTAB-IMAGE = 'AETDF07-C'.
APPEND WTAB TO ITAB.
WTAB-IMAGE = 'XPFTD01-C'.
APPEND WTAB TO ITAB.
WTAB-IMAGE = 'XPFTF02-C'.
APPEND WTAB TO ITAB.
LOOP AT ITAB INTO WTAB .
WRITE AT : /2 WTAB-IMAGE.
HIDE WTAB-IMAGE.
ENDLOOP.
AT LINE-SELECTION.
IF WTAB-IMAGE IS NOT INITIAL.
CALL SCREEN 700 STARTING AT 10 10 .
" created a Custom control name PICTURE_CONTAINER
ENDIF.
*& Module STATUS_0700 OUTPUT
* text
MODULE STATUS_0700 OUTPUT.
SET PF-STATUS '700'.
* SET TITLEBAR 'xxx'.
DATA: W_LINES TYPE I.
TYPES PICT_LINE(256) TYPE C.
DATA :
CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
EDITOR TYPE REF TO CL_GUI_TEXTEDIT,
PICTURE TYPE REF TO CL_GUI_PICTURE,
PICT_TAB TYPE TABLE OF PICT_LINE,
URL(255) TYPE C.
DATA: GRAPHIC_URL(255).
DATA: BEGIN OF GRAPHIC_TABLE OCCURS 0,
LINE(255) TYPE X,
END OF GRAPHIC_TABLE.
DATA: L_GRAPHIC_CONV TYPE I.
DATA: L_GRAPHIC_OFFS TYPE I.
DATA: GRAPHIC_SIZE TYPE I.
DATA: L_GRAPHIC_XSTR TYPE XSTRING.
CALL METHOD CL_GUI_CFW=>FLUSH.
CREATE OBJECT:
CONTAINER EXPORTING CONTAINER_NAME = 'PICTURE_CONTAINER',
PICTURE EXPORTING PARENT = CONTAINER.
CALL METHOD CL_SSF_XSF_UTILITIES=>GET_BDS_GRAPHIC_AS_BMP
EXPORTING
P_OBJECT = 'GRAPHICS'
P_NAME = WTAB-IMAGE " It is changeing but Image is not changing
P_ID = 'BMAP'
P_BTYPE = 'BCOL'
RECEIVING
P_BMP = L_GRAPHIC_XSTR
* EXCEPTIONS
* NOT_FOUND = 1
* INTERNAL_ERROR = 2
* others = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
GRAPHIC_SIZE = XSTRLEN( L_GRAPHIC_XSTR ).
L_GRAPHIC_CONV = GRAPHIC_SIZE.
L_GRAPHIC_OFFS = 0.
WHILE L_GRAPHIC_CONV > 255.
GRAPHIC_TABLE-LINE = L_GRAPHIC_XSTR+L_GRAPHIC_OFFS(255).
APPEND GRAPHIC_TABLE.
L_GRAPHIC_OFFS = L_GRAPHIC_OFFS + 255.
L_GRAPHIC_CONV = L_GRAPHIC_CONV - 255.
ENDWHILE.
GRAPHIC_TABLE-LINE = L_GRAPHIC_XSTR+L_GRAPHIC_OFFS(L_GRAPHIC_CONV).
APPEND GRAPHIC_TABLE.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
TYPE = 'IMAGE'
SUBTYPE = 'X-UNKNOWN'
SIZE = GRAPHIC_SIZE
LIFETIME = 'T'
TABLES
DATA = GRAPHIC_TABLE
CHANGING
URL = URL.
CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL
EXPORTING
URL = URL.
CALL METHOD PICTURE->SET_DISPLAY_MODE
EXPORTING
DISPLAY_MODE = PICTURE->DISPLAY_MODE_FIT_CENTER.
CLEAR : L_GRAPHIC_XSTR, URL, CONTAINER.
ENDMODULE. " STATUS_0700 OUTPUT
*& Module USER_COMMAND_0700 INPUT
* text
MODULE USER_COMMAND_0700 INPUT.
DATA : OK_CODE LIKE SY-UCOMM.
CASE OK_CODE .
WHEN 'OK'.
CLEAR OK_CODE .
LEAVE TO SCREEN 0.
WHEN 'CANC'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0700 INPUT
Edited by: KaushiK©Datta on Feb 25, 2009 11:24 AMTry to call:
CONTAINER->INVALIDATE_CACHE
Regards.
Jordi -
Module pool screen element not shown
Hi,
I have a module pool with table control.
I have added a new field to the internal table and included it in layout-checked properties and it is active/shown in output and input enabled
Also, when I checked in PBO debugging, loop at screen, when the screen element is this field, active/input/output = 1
I have activated the program/generated it/logged off from system and logged in again (to take care of refreshing the screen)
The internal table has values for this field.
When I execute the screen directly instead of module pool program, field is shown in table control
But when I execute the module pool program, this field and heading are not shown in table control but empty space allocated for this field is shown.
May I know how can I resolve this.
Thanks!Hi Vasu,
Go through this [Sample|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm].
Regards,
Maruthi -
Regarding Module Pool Text Field
Hi,
Can any body tell , is there any possiblity to change the font style and size of the Module pool text field.( Because I want a Heading in the screen)
Regards
PrashanthHi,
Goto the Layout Editor of your Screen.
Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that > will open a Popup > in that <b> set Area Title to TRUE </b>.
Rgds,
Jothi.
Do Award pts for helpful answers. -
No Interval effect in Module Pool Program field
Dear All,
If I want to introduce No Interval effect of the Report Selection screen ,in Module Pool program field,what will be the approach.
Thx in Adv.Define the selection-screen as a subscreen and call it in the initial screen of ur transaction.
Check this link
http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
Also check this demo program
<b>demo_sel_screen_as_subscreen.</b> -
Can't drag the currency key in local currency to the pool of fields not use
Hi everyone,
Hopefully you can enlighten me with this issue coz im trying to drag the currency key in local currency to the pool of fields not used (UCWB<Data Model<Data Basis<Data Model(TAB)) but nothing happened, i can't transfer it to the pool of fields not used.
Note:I came with this decision(transferring the currency key in local currency to the pool of fields not used ) because SAP prompt me with this:
The currency key in local currency is not required in the data basis. It is merely an implicit part of the data model
I really dont have any idea why i can't drag it to the pool of filed not used, i tried to look for some sap notes but i can't find one.
thanks in advanceHi Dan,
Actually it is not really an error, i just would like to pattern the configuration of our newly upgraded BI server to our BW server.
In our BW server, the currency key in local currency is mapped to the pool of fields not used. I can't seem to do the same in the BI server because everytime I try to drag the currency key in local currency to the pool of fields not used, nothing happens, it isn't mapped. -
Module-pool edit mode to non edit mode
Dear friends ,
I am working with module-pool, In that when i enters value that field should become Visible mode and should not allow user to edit amount Please guide me .
thanks & regardsHi try this way...
PROCESS BEFORE OUTPUT.
MODULE status_<screen>.
* Table control for OUTPUT
LOOP WITH CONTROL <TableControl>.
MODULE Modify_screen.
ENDLOOP.
MODULE Modify_screen OUTPUT.
* Table control reading values from input screen & displaying on screen
READ TABLE <Internal table> INDEX <Table control >-current_line.
* Logic for screen Display Mode when User enters data
IF <ITAB>-FIELD is not Initial. "This means User has enterd Data for the Particular Row
LOOP AT SCREEN.
IF screen-name = 'ITAB-FIELD'. "Passs the table/WorkArea with Field name to make field Display mode
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDMODULE.
Prabhudas -
Module pool screen field should default without pressing enter
Hi
I have got a main module pool screen which has a tabstrip with four tabs.
There are 2 fields in the main screen when we select from F4 for the first field then the field 2 should default in case of a condition.
This happens only when i press enter. I want the second field to change as soon as the first field is selected.
How do I trigger the PAI as soon as the field 1 is selected.
eg: Field 1 : i/p
Field 2 : display
Field 3 : i/p
On F4 for field 1 say i select value 'A' then the valu for field 3 should default to value 'B'. Also field 2 should be displayed based on combination of field 1 and field 2. But now it does it only on pressing enter.
How do I solve this problem?Also if i select field 1 value A and dont press enter and go to the subscreen tab then it does not do any thing. It allows to go on the subscreen tab. But actually it should default the field 3 value. It does it only when I press enter.
Also the F4 is from dictionary that is the screen fields are from dictionary. I have not created any F4 for the fields.
Please help me solve this problem
Regards,
mozilaHi
You can achieve this using List Box only not by Input Field. Since Input field doesn't trigger automatic PAI/PBO
Go through the below thread
populate drop down menu based on entry in another field
or an alternative is--> In PBO use POPUP_GET_VALUES Fm to get the First input field based on that you can enter further values
unicode error
Cheerz
Ram -
Custom module pool + Amount field decimals display same as standard screen display
Hi All,
Requirement: A custom module program screen field has to be designed which displays decimal values of amount fields same as amount fields in standard screen.
Standard screen behavior: If the standard screen fields are observed, they refer to data elements WRBTR or AZSOL_F05A (transactions FB50/FB03/FB01). However, number of decimal places that are visible on screen are dependent on the currency that is provided.
Both the data elements have 2 decimal places.
For currency USD two decimal places are displayed - in TCURX - decimal places are two.
For currency JPY or CLP - zero decimal places are displayed - in TCURX - decimal places are zero.
i.e., even though the screen field refers to data element or domain that has the characteristic to show 2 decimal places, based on currency, decimal places are adjusted.
I would like to know how this is happening on standard screen fields.
Solution Required for: How to make the custom screen amounts to display same number of decimal places as standard screen amount fields.
P.S: Before posting the query here, research has been done in SDN and other places. It has been identified that quantity fields adjustments are discussed. However for amount field even though discussed earlier, did not reach a conclusion.
I would like to get a solution for this one.
Thanks in advance.
Goutham.Thank you all for taking time to take a look at this query.
This issue has been resolved.
Resolution: If the standard transactions (FI transactions in specific) are observed, whenever there is a field that displays amount value, there will be a corresponding field (may not be beside the amount field, somewhere on the screen or in the same sequence of screens) where the currency key value would be entered.
For instance, if you look at FB50 - there is field on top for the user to input currency key value (like USD or CLP or INR).
When any amount field is declared - this currency key field is provided as the reference field in the screen attributes of the amount field.
In short, in the custom module pool program, provide a field that holds currency key value and use this field as reference field for the amount fields.
Do repond to this thread if the resolution is not clear.
Thank you all once again.
Goutham. -
Module-pool screen field value under POV event
Hi All,
I have one issue...please suggest me solution for this.
In module-pool program i have one screen(1000) which has one field(hrname_1000).
Under this event:
PROCESS ON VALUE-REQUEST.
FIELD hrname_1000 MODULE hrname_1000.
under this module hename_1000 i have used F4IF_INT_TABLE_VALUE_REQUEST to put a search help for field hrname_1000.
after that i am trying to retrive HR related stuff's based on the field on module-pool i.e i am using hrname_1000 in the where condition.
but problem is that im not getting value for hrname_1000 which im giving in the module-pool screen.
thats y my select query is not working.
Where as im getting values for the hrname_1000 under PBO & PAI.
It will look like below.
PROCESS ON VALUE-REQUEST.
FIELD hrname_1000 MODULE hrname_1000.
(under the above module)
SELECT DISTINCT ename plans FROM pa0001 INTO CORRESPONDING FIELDS OF TABLE itab WHERE stell = '50001026'.
LOOP AT itab INTO wa WHERE ename = hrname_1000.
ENDLOOP.
Please suggest
Thanks & regards
AnsumeshIn some of the cases the screen field is present in the screen but not holding the value in the required structure or field.
so here u need to check the option of reading the screen field values explictly..
//once u hit an enter and do the f4 i think the value will be there ...but if u dont hit enter and do an F4 the value cannot hold and i think u r in this case ..
1.Fill the screen field name in the structure dynpread.
DATA: BEGIN OF DYNP_VALUES OCCURS 10.
INCLUDE STRUCTURE DYNPREAD.
DATA: END OF DYNP_VALUES.
DYNP_VALUES-FIELDNAME = 'HRNAME_1000'.
APPEND DYNP_VALUES.
* read screen values
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = HELP_REPID "call the repid of ur prog
DYNUMB = HELP_DYNNR "pass the screen number
TABLES
DYNPFIELDS = DYNP_VALUES
EXCEPTIONS
OTHERS = 1.
now dynp_values hold the field name and field value of the screen .
now
SORT DYNP_VALUES BY FIELDNAME.
READ TABLE DYNP_VALUES WITH KEY 'HRNAME_1000' BINARY SEARCH.
IF SY-SUBRC EQ 0.
HELP_XXXX = DYNP_VALUES-FIELDVALUE. "store the value into a variable
TRANSLATE HELP_XXXX TO UPPER CASE.
ENDIF.
Now check the code with the value if its getting populated which once there will make ur select work ..
Vijay.. -
Module Pool Text field should be display Bold
Hi Freinds,
I have created Module Pool.
1. My requirement is Text Field display Bold & I want to Change of Text Size.
2. After executing Menu bar option are Disable mode, I want in Enable mode.
Thx in Advance.1) By default in PBO you can see 'MODULE status_0001 OUTPUT'
2) if you double click on that it will take you to enable the PF-STATUS (please check the below code).
3) If you double click on PF_0001 then menu painter will be opened to create status.
4) For more information[ click here.|http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm]
*& Module STATUS_0001 OUTPUT
* text
MODULE status_0001 OUTPUT.
SET PF-STATUS 'PF_0001'.
SET TITLEBAR 'TB_0001'.
ENDMODULE. " STATUS_0001 OUTPUT
regards,
~Satya -
To develope an alv report or module pool and field link.. and effor require
HI,
I want to display the fields with sort functionality with fields
kunnr kna1 table
name1 kna1
and email id from table ADR6 field SMTP_ADDR
my question ison mapping
from kna1 we can get field kunnr and name1
and adrnr
to put in adr6 to fetch email id
can anyoe suggest on select statements link as table kna1 has one unique kunnr
but it can have multiple name1 and adrnr
so how to pick the kunnr ,name 1 and adrnr from table kna1 and map to
adr6 table
as witinn the table kna1 there can be multiple name1 related to one single kunnr
so wil it be like
select kunnr from kna1..into it_kunnr
then select nam1 from table kna2 for all entrirs in It_kunnr
or firse selet kunnr name1 from kna1 into table it_kunnr
pls suggest an appropiat select statament
and i suppose this can be achevied by alv report no need for moudle pool
regards
Aroraopened a new thread with changes subject
-
TEXT FIELD NOT CHANGED IN JVA DOCUMENT
Hi Experts,
Have an issue here. When we change a document line item text in a FI document in FB02, the same change is not reflected in the JV document in GJLI. Can you please explain why this happens or if there is a solution for this.
Thanks,
Hari DharenHi,
1. First Check if Text is updated in Material document or not. if not then
Check in system if function module MBCF0002 is activated or not.
if it is activated then code must be written there for Text to flow.
follow SAP Notes 1518592 - Table MSEG-SGTXT is not filled
MBCF0002 exit EXIT_SAPMM07M_001 include ZXMBCU02
2. please check notes 837859 for MIRO Text because there are three differnet Text in MIRO
Hope Help U !
Regards,
Pardeep Malik -
Editing Fields not working in Adobe 9 Standard
I imported a word doc and am trying to make a form out of it with fill-in fields. When I am creating the fields, they all show up blue with a red border. I tried to go in and edit them and although it "takes" my settings when I go back to the form they are still blue/red. Can anyone help? Thanks!
If you mean that the background is blue, it may be that you have field highlighting on. If the borders appear red but you've set the border color to a different color, it may be that you've set them to be required, in which case they will be red if the fields are blank. The default "required" border color is controlled by a user preference.
-
Value of input text field not changed!
hi,
i have a select menu. when i change the value of the select menu, i have the event method and in the event method i change an value of a other input text field, but in the html page, the input text doesn't change his value.
i bind the input text field to the value field in class with the folowing command.
<h:inputText binding="#{backing_main_test:testInputField}" value="#{backing_main_test.testValue}"/>
please help me.
thanks, christoph<h:inputText binding="#{backing_main_test: <--- was that colon intentional?
Maybe you are looking for
-
HT5622 i have been change my apple id, but now i can't use my new apple id for iCloud
hay there, i have a probem with my icloud account, i have change my apple id to a new one, and now i want to change my icloud accunt to a new one, when i delete the old icloud account on my iphone they ask to enter the password, and when i entered th
-
This is another one of the Zen Micro Issues. So I'm fully excited to get my new mp3 player. I got two batteries with my micro so that was a plus. I toss in a battery and setup the software on the PC. I fully installed everything then plugged in the z
-
How to create characterstic formula variable in reporting
how to create characterstic formula variable in reporting tell me any one in steps thanks
-
Modify IR based on my query/search
Apex 4.x I am able to search for BLOB content using the pl/sql : declare v_name varchar2(100); v_doc blob ; begin select name, doc into v_name,v_doc from BLOB_TABLE where CONTAINS(doc,':P2_GO')>0; end; I am default displaying all the docs in IR with
-
Can stop a deleted event error message pop up from recurring.
Can send screen shot but the PC version of ask question fails to up load the word doc which has the screen shot image in it. The down load wheel just runs continuously with out stopping