Module pool fields enable
hi abapers,
I developing a screen.
am using this screen to insert header and item tables to database.
in the initial display am making all fields in disable mode in PBO.
so wen i click on update or display i hav to enable some key fields.
am making enabling the particular fields in PAI but its showing in disable mode.
even when i click 'ADD LINE' button i have to make multiple entries to my line item table based on my header table.entries.
<<inapproprate text removed by moderator>>
Thanks & Regards,
Rajesh
Edited by: Matt on Nov 5, 2008 1:19 PM
use flag...
declare variable flag1 ,flag2,flag3, flag4 type c....
in pai...
when push1.
flag1 = 1...
when push 2.
flag2 = 1.
etc......
in pbo....
if flag1 = 1.
loop at screen.
endloop.
endif.
if flag2 = 1.
loop at screen.
endloop.
endif.
etc....
Similar Messages
-
F4 querry for module pool fields
Hi,
I am using module pool programming. In this there is a field BTRTL which has a standard search help. But there is another field BTEXT , description of BTRTL , which has to be populated as soon as BTRTL is selected usung F4. Is it possible using module pool?Hi,
Also check this link for details.
Re: HOW to ADD F4 help to a field on SCREEN (MODULE POOL)
See if it helps.
Regards,
Hemant. -
Query on module pool field -f4 help
Hi all,
My query is as follows :
There are 2 fields in module pool screen :
sector
lfd
Now there is a table called sector with 2 fields sector and lfd.
now when f4 is pressed on the above sector field, this sector table has to be called so that I can select the required sector from the f4.
I am able to do till above.
Now the issue is when I press f4 on sector field and select the required sector, the lfd value for this corresponding sector should be automatically populated in lfd field on the the above module pool screen.
please let me know regarding the above.
regards,
srinivasHi
after assigning the value to lfd field
call the same screen again. ex: call screen 'screen name'.'
or
Try this..
global variable
Data: Variable type c.
in your PBO
if variable is not initial.
lfd = 'Variable'.
endif.
clear Variable.
in POV
after calling F4IF_FIELD_VALUE_REQUEST function module and assigning the output to sector field
Variable = lfd value.
once after executing your f4 functionality, if you press enter you will see the value in lfd field as well
Regards
Edited by: Anesht on Sep 30, 2010 5:56 PM -
Module Pool-to enable find and fint next button
hi all
i have one module pool program, and i have to enable find and find next button on top of the screen, it should work as it works for our standard transaction(eg-SE28).
Can anyone provide or tell me were I can get the code.
Thanks & Regard
RajyalaxmiHi Friend,
Please assign a function code against find button in PF-STATUS.
Write the code in PAI to find the data in module pool.
Code sequence will be like:
......AFTER CALLING A SCREEN( MODULE DIALOG BOX)..WITH STARTING AT 30 8 ENDING AT 60 10...
......IT WILL SHOW TH SCREEN ON THE MIDDLE OF SCREEN..
......WRITE CODE .... SET SCREEN 0. LEAVE SCREEN...I
....READ THE CONCERN INT TABLE WITH THE VALUE ENTERED BY USER FOR SEARCH
... THEN....TAB_CTRL-TOP_LINE = SY-TABIX.
Hope it will help you.
Regards
Krishnendu -
Hello ABAP Experts,
I am BW person, and looking to extract the data from the table display from one of the trasactions in R/3.
tcode: fmderive
i checked the the program it is : SAPMABADR (module pool)
fields of hte table belong to: structure FMDERIVE
If i can get the data into a internal table. That would be great, i can do the rest of the processing before i extract this data to BW.
Any suggestions appreciated.
Thanks,
BWerHi,
It is possible to extract data in internal table. The internal table should be of a particular STRUCTURE which is created in SE11. Populate the internal table in program.
I do not remember the exact command, but it is somewhat as below. With this it is possible to extract data in BW.
*<QUERY HEAD> "Always comment this statement
loop at it_data into wa_data.
append wa_data to it_fmderive.
endloop.
*<QUERY BODY> "Always comment this statement
The internal table it_fmderive can be used to extract data in BW. This is the only way to extract data.
Also refer following link :
http://www.thespot4sap.com/articles/SAP_ABAP_Queries_DataRetrievalUsingProgram.asp
Best regards,
Prashant
Message was edited by: Prashant Patil -
Problem with I/O field in module pool
hi experts,
I am displaying some text in I/O field in module pool screen. I am giving the attributes of I/O field as "output only" type and no input. Initially the input was not enabled for it, only it should be in display mode. Once i click on 'CHANGE' pushbutton then only the input should be enabled and it should be in change mode.will u tell me how to do it programatically.HI,
In PAI of that screen..
when the sy-ucom is 'Change' then use the Loop at screen--Endloop to modify the attributes value.
example..
LOOP AT screen
CASE screen-name.
WHEN 'Fieldname.
screen-input = 0.
screen-active = 0.
MODIFY screen.
ENDCASE.
Edited by: avinash kodarapu on Dec 10, 2008 12:16 PM -
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 -
How to delete the row in table control with respect to one field in module pool programming?
Hi,
Can I know the way to delete the row in table control with respect to one field in module pool programming
Regards
Darshan MSHI,
I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
I have written this code,
module USER_COMMAND_9000 input.
DATA OK_CODE TYPE SY-UCOMM.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'DELETE'.
LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
APPEND LS_SOURCE TO LT_RESTORE.
DELETE TABLE LT_SOURCE FROM LS_SOURCE.
SOURCE-LINES = SOURCE-LINES - 1.
ENDLOOP.
But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
So I thought of doing with respect to the field. -
Edit a field in ALV tree in a subscreen of a module pool
Hi
I want to make a field editable in the ALV tree based on some condtions in a subscreen of a module pool. I used the edit = 'X' field in the fieldcatalog still it is showing the field as display and not edit.
Please help me to get the field as editable and save it to the database table.
Please not this is ALV TREE
Regards,
MozilaHi Mayank,
Thanks for the reply
I am using oops method.
I tried making the field which is to be made editable as wa_fieldcatalog-edit = 'X'. But its not working. I didnt get you when you said edit in layout object.
I also went through the demo programs but these programs are not having editable fields.
My code is as follows:
IF tree4 IS INITIAL.
* create container for alv-tree
l_tree_container_name = 'TREE4'.
CREATE OBJECT l_custom_container
EXPORTING
container_name = l_tree_container_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
* create tree control
CREATE OBJECT tree4
EXPORTING
i_parent = l_custom_container
i_node_selection_mode = cl_gui_column_tree=>node_sel_mode_multiple
i_item_selection = 'X'
i_no_html_header = 'X'
i_no_toolbar = 'X'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
* create hierarchy
CALL METHOD tree4->set_table_for_first_display
EXPORTING
is_layout = s_layo
CHANGING
it_sort = it_sort
it_outtab = it_final
it_fieldcatalog = it_fieldcat.
ELSE.
CALL METHOD tree4->refresh_table_display
EXPORTING
it_sort = it_sort
EXCEPTIONS
program_error = 1
failed = 2
cntl_system_error = 3
others = 4
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. -
Remove field in Alv grid module pool
Hi Experts,
I have a requirement where in I need to remove a field on the display screen for a particular record.
In detail..
I have a created a module pool program where in the final out put was shown using CL_gui_alv_grid on the new screen.The normal display will start with a check box(editable),kunnr,ktokd etc..The requirement is for a particular record the check box should either disappear or disable.Please help me out in achieving this.Thanks in advance.
Initially I got very good response from Neha and Satya and felt very confident enough in the fix but I dont know where I am doing wrong the issue is not yet fixed.Satya or Neha can you tell me where am I doing wrong seeing the below code.
types:BEGIN OF lty_final,
chbox TYPE char1,
org_nam TYPE name1_gp,
vkorg TYPE vkorg,
parvw TYPE parvw,
ktokd TYPE ktokd,
kunnr TYPE kunnr,
pr_cnt TYPE char3,
fir_nam TYPE name1_gp,
las_nam TYPE name1_gp,
parau TYPE parau,
telf1 TYPE telf1,
STYLE TYPE lvc_t_styl, " New field added in the structure
END OF lty_final.
data:lt_final type table of lty_final,
ls_final type lty_final.
DATA : ls_stylerow TYPE lvc_s_styl ,
lt_styletab TYPE lvc_t_styl .
loop at lt_final into ls_final. """Final internal table
if ls_final-pr_cnt = lc_yes.
ls_stylerow-FIELDNAME = 'CHBOX'.
ls_stylerow-STYLE = cl_gui_alv_grid=>mc_style_disabled .
APPEND ls_stylerow TO lt_styletab.
CLEAR ls_stylerow.
ls_final-STYLE = LT_STYLETAB.
MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.
endif.
endloop.
gs_layout-zebra = 'X'.
gs_layout-edit = ' '.
gs_layout-no_rowmark = 'X'.
gs_layout-stylefname = 'LT_STYLETAB'.
CALL METHOD grid_display->set_table_for_first_display
EXPORTING
i_save = 'X'
i_default = 'X'
is_layout = gs_layout
CHANGING
it_outtab = lt_final
it_fieldcatalog = gt_fieldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
With Regards,
Srini...Use the following codes in loop it will work.
Loop at lt_final into ls_final. """Final internal table
if ls_final-pr_cnt = lc_yes.
ls_stylerow-FIELDNAME = 'CHBOX'.
ls_stylerow-STYLE = cl_gui_alv_grid=>mc_style_disabled .
INSERT ls_stylerow INTO TABLE lt_final-STYLE. " use insert
*APPEND ls_stylerow TO lt_styletab.
*CLEAR ls_stylerow.
*ls_final-STYLE = LT_STYLETAB.
*MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.
endif.
endloop.
Regards,
Gurpreet -
F4 help for a field in module pool
Hello Experts,
I need to provide f4 help on field sales office(VKBUR) in my module pool program.
I have searched forums about it. but all forum contains either doc. no or customers etc.
these field are directly available on table, so very easy to find.
But for sales office, how can i provide f4 help. there is no straight entries in tables like for this company code this sales office.
so its getting difficult for me to provide help.
so if anybody know the solution plz help, and if anyone know table where all sales offices are stored, i will be thankful.
Thanks,
AmarHi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
How to get center alignment of Input/Output field in Module Pool
Hi Friends,
I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
Thank U in advance.
Mahender.Hi,
Use syntax "Centered".
take one variable push into the field
write w_variable1 to w_variable2 centered.
next push the varaible to Destination screen input/output Field .
Make sure the Field the Character Type.
Prabhud@s -
How to enable the 'FIND' Button in Module Pool Screen. Logic please
Hi All,
I am writing one Module Pool Program. I have one requirement like I have to put FIND, FIND+ buttons on different screens.
I am able to do the code for normal FIND. According to my requirement I have to display one Popup when the user click on FIND button. Once he entered some value it should find all the records and all the fields and display the list of hits in another popup. This whole process should as same as in SE11 Transaction functionality.
Example: SE11 ->Table Entries -> and click the FIND Button. I need the same functionality in my Program.
Please let me know ASAP. If you provide some code sample it will be Great.
Thanks & Regards
KiranHi
If you have just implemented the code for FIND I believe u need to add some little modifications for FIND+.
U need only to manage the position of the last found value, so u need to go on from that position for FIND+.
The position should have the two coordinates X (the position in the record) and Y (the number of the record):
- FOUND should start for postion = 0, 0
- FOUND+ should start for position = X, Y
Max -
Assigning 2 fields of same table in Module pool screen
Hi,
I want to assign similar fields of table in module pool screen.
In one case i directly use the tablename-fieldname and in other case when i try doing the same i get error. I know that this is not possible.
Is there any way to get around this. The field i am referring to is attached to a custom domain which is having defined fields. In the second assignment i need to retreive the values of the domain and display it in dropdown mode so that the users are able to select it.
Regards,
ImranThe domain only attached with this field?check the same domain attached to any other field and insert that field in the screen.
shibu
reward if helpful -
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.
Maybe you are looking for
-
Error while executing Jdev10g Appl
Hi, Please note that I am getting following error while executing my application. Although I have access to update and insert the record on the table,but still it gives the following error. The difference is Its a synonym of the current connected db
-
OS 10.4.9 - RAID - External Firewire Striping questions
Hello, I have an Apple XServe running 10.4.9 Server, serving a handful of Apple 10.4 clients. We were looking to add inexpensive storage to this server, so we purchased three Lacie External BigDisk Extreme Firewire drives, daisy chained them together
-
"Server connection failed" message
Sometimes on my iPhone 5c I can't access new emails. All other devices work fine. Internet working on other apps on phone, too. Message says "Cannot get email. Connection to server failed"
-
Question about when subscribing to a directly published stream
Hi, In the article there : http://www.adobe.com/devnet/flashmediaserver/articles/real-time-collaboration.html#article contentAdobe_numberedheader_1 We can see this under 'User lookup' RTMFP assigns a peer ID to each participant. These peer IDs are 25
-
Contribute cs4 and dreaweaver cs3
i use dreamweaver cs3. my client want to change his website with contribute cs4. Is this possible??