How to use standard classes to create custom modulepool program like ME21N
I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
CL_TABLE_VIEW_MM
CL_BASIC_MODEL_VIEW_MM
CL_COMPOSITE_SCREEN_VIEW_MM
CL_SCREEN_VIEW_MM
CL_TABLE_VIEW_MM
CL_TABSTRIP_VIEW_MM
CL_TC_BUTTON_VIEW_MM
CL_TC_ITEM_VIEW_MM
CL_TOGGLE_VIEW_MM
CL_VALUE_MODEL_VIEW_MM
and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programming
I think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
Regards
Marcin
Similar Messages
-
How to use standard function keys as custom keys
how to use standard function keys as custom keys.
i have encountered that problem while developing a screen, there i'm supposed to use standard function key F2 ( which actually meant for choose) for clearing the screen fields where the cursor is present and f1 for saving data that entered in screen fields, etc...
kindly help me out.Hi ,
Solution to use SAP reserve function keys F1 .. F4 (mostly this requirement comes up for RF screens) can be acheived by assigning your new Function code using the Menu path Utilities --> F key Consistency in the Menu Painter (SE41) . Once you assign your cutom function code to the standard Fn keys the only remaining step is to make sure that you set a curson on any of the field on sceen by using the Key Word "SET CURSOR" .
If you dont use the key word SET CURSOR in the PBO of the screen then you might not see any response for F4.
Thanks -
How to use standard Java file in custom module
Hi All,
I want to use some CatalogItemImpl.java file in my custom DC but i was unable to find any entry in the standard component in businessobject.xml file as <businessObject name="XYZ" className="x"/>. Can anyone let me know how can we use the file file in my custom DC.
Please provide your inputs......
Regards,
Rahul.Hi Rahul,
You will not find the "CatalogItemImpl" in the 'businessobject.xml'. The 'businessobject.xml' is there to define session based API of modules. Those API have properties and web channel builder values injected when the user start a web session.
For the "CatalogItem", you will have to use the Generic Factory concept. The Generic Factory is used to allocate instance given a configuration. If no configuration exists, the default implementation is used. By adding an entry in the Generic Factory you can choose to allocate your class instead of the default class.
Within the catalog module, the alias to use for classes extending "CatalogItemImpl" is "com.sap.wec.app.common.module.catalog.businessobject.ext.interf.CatalogItemExtInterf".
Please refer to the extension guide on how to manage the Generic Factory configuration file.
Regards,
Robin -
How to use standard VS commands in custom menu (vsct)
Hi,
I have a .vsct file which defines a custom menu. I want to add some default Visual Studio commands to this menu as well. I already managed to add some default commands such as copy / paste:
<UsedCommands>
<UsedCommand guid="guidVSStd97" id="cmdidCopy"/>
</UsedCommands>
<CommandPlacements>
<CommandPlacement guid="guidVSStd97" id="cmdidCopy" priority="0x0100">
<Parent guid="guidMyMenuCommands" id="grpMyMenu"/>
</CommandPlacement>
</CommandPlacements>
When I do this, the "Copy" command shows up in my custom menu, with default Icon, text and shortcut - just as it should be. However, this does not work for all commands. To be precise, when I want to add the following commands...
<UsedCommand guid="guidVSStd2K" id="ECMD_FORMATDOCUMENT"/>
<UsedCommand guid="guidVSStd2K" id="ECMD_COMMENT_BLOCK"/>
<UsedCommand guid="guidVSStd2K" id="ECMD_UNCOMMENT_BLOCK"/>
...nothing happens - no entry is added to my custom menu. How can I include the above default commands in a custom menu?
Thanks,
MaxI just found out that the above commands are there after all, but they are invisible until a source code file is opened. I expected them to be grayed out instead of being totally invisible.
Nevertheless, there are some commands that cannot be "instantiated" with the CommandPlacement tag. Instead, one needs to create a button for the respective command to show up in the menu. The following code shows an example:
<UsedCommands>
<UsedCommand guid="guidVSStd97" id="cmdidGotoDefn" />
</UsedCommands>
<Commands>
<Buttons>
<Button guid="guidVSStd97" id="cmdidGotoDefn" priority="0x0400">
<Parent guid="guidMyMenuCommands" id="grpMyMenu" />
<Strings>
<ButtonText></ButtonText>
</Strings>
</Button>
</Buttons>
</Commands> -
How to use standard SAP stylesheets in WAD
Hello ,
I created a new Web template.
Assigned a data provider, inserted a table.
In order to view i include a Analaysis box in one of the cell of Table.
Now i need to change the colours of result rows.
How to use Standard Stylesheets provided by SAP.
Where this stylesheets will be located
Under which properties.
How to use those.
How to edit those and save as we wanted.
An y step by step documents, please send it to [email protected]
I want to include Information button in Template, so when executing if user click this button he/she should know,
What are provided variables and if they chosen some specific variable restriction to see the result,
Also by default this information should get print.
In standard sap portal, this button is located on upper right corner.
Please advise.Thanks Rusty,
Thats exactly right,
I included a naviagtion block and it worked well
But while printing the query on Web template, It only prints the data that is coming in Analysis block.
Similarly while running the query thru BEX to Portal,
Navigation block is on left, but while printing it prints exactly every data in Information tab.
Information is the button located on upper right corner.
If you click, it will give you information such as , which restrictions u did, which extra filters you added everything.
And while printing it prints this information too.
I want to do the same designing for my custom Web template.
How can i do that.
I already added navigation block, so it will be easy for users to drag and drop Chars and KFs in rows and columns as well as filter if they needed.
I hope you are trying to understand.
Also for using stylesheets can you suggest.
So that i can make changes to row and columns.
I am unable to locate stylesheet in any of the properties. -
How to use standard texts in smartforms
Hi Friends,
How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
thanks in advance,
regards,
sharma.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to use standard Smart forms
hi All,
Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE
Thanks,
NitinHi,
first u copy the standrad smartform to z and then modify it,
SOME STANDARD SMARTFORMS
SF_EXAMPLE_01,
SF_EXAMPLE_02,
SF_EXAMPLE_03,
LB_BILL_INVOICE,
ENETR SMARTFORMS TCODE
PRESS F4 HERE U FIND ALL STANDARD SMARTFORMS
OR
U GO TO TRANSACTION CODE NACE
SAMPLE PROGRAM FOR SMARTFORM,
. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Thanks&Regards,
Phani
POINTS HELPFUL -
Explain how to use standard LSMW for MM01
Can anyone explain how to use standard LSMW for MM01 Tcode.pls explain briefly.
Hi
Create a project using 0020 as method.
Max -
How to use multiple classes for each form
Hi,
I have created two forms using screen painter and now i want to use different classes for these two forms .
I have declared the Sbo Connection in main class i.e. Set Application ,Connection Context() but while connecting to other classes
for executing the code for that form SAP is not connected to that class.How to use multiple classes functionality i don't able to
do that.Please provide some sample codes for that as it will be more helpful for me to understand.
Thanks & Regards,
AmitHi Amit,
In fact, its more advisable to use separate classes for every form that you use. Have one common class, say, for eg., clsMain.cs which has all the connection and connectivity to other classes, wherein, the menu event and item event of this main class, will just be calling the menu / item event of other classes.
The individual functionality of the child classes will be called from the item / menu event of the respective classes.
Item event in clsMain.cs will be as below.
private void oApplication_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
SAPbouiCOM.Form oForm;
BubbleEvent = true;
try
if ((pVal.FormTypeEx == "My_Form1Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
NameSpace.Repots.ClsForm1.ClsForm1_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
if ((pVal.FormTypeEx == "My_Form2Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
NameSpace.Repots.ClsForm1.ClsForm2_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
Now, in the individual classes, you can have their respective item events, which will be called from the main class, and the respective functionalities will occur.
Hope this helps.
Regards,
Satish. -
How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS
Hi Friends,
How to de-activate some functions in the Menu bar?
Eg: - Sales document
Create
Change
Display
I want to de-activate "Change"
In other words: - How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS in my program.
Regards,
Hari
Edited by: Bhatlapenumarthy Hari Krishna on Jun 9, 2008 5:22 PMKrishna,
It is not possible to deactivate the CHANGE option in themenu bar using the method disable_functions of cass CL_CTMENU. This method allows you to deactivate only the function codes of the CONTEXT MENU, which is available only when u press the left mouse button.
U can use the SET PF-STATUS 'XXX' EXCLUDING fcodes option to disable the CHANGE.
*****Reward points if useful
Regards,
Kiran Bobbala -
How to use assistance class in WD4A?
Hi SDN,
Can you please tell me How to use assistance class in WD4A?
Regards,
RahulCreate a class that inherits the class cl_wd_component_assistance. By default, it will have the method if_wd_component_assistance~get_text, which is used to retrieve text elements defined in the class. You can also add any other methods to it, like accessing your data etc.
In your wd4a component, in the main component overview screen, there will be a tetxfield for assistance class. define your class name there. You do not have to instantiate it separately. You can access the class methods using the object wd_assist, which will be created globally in your component.
Regards
Nithya -
How to use the bind variable in custom.pll
Hi,
How to use the bind variable in custom.pll.Its through error.
any one gem me.
very urgent.
M.Soundrapandian.Hello,
Please, ask this kind of questions in the e-business forum.
Francois -
How to use standard tags in JSP
Hi all,
Just wanted to know how to use standard tags of endeca in JSP ... say for example to display Dimension Name using standard tags.
Thanks
--Sami was just checking whether we can use endeca TAG'S ( typo mistake in my earlier post not the JSTL standard library )....in my JSP
We cannot use endeca TAG ...as they are for different purpose.
Sameer -
How to use Standard Text in ALV
How to use Standard Text in ALV header part? Can you please help me by giving the answer?
Hi ,
You can read the Standard text using read_text function module and then print in LV header part. -
How to use two dimensional array in custom.pll
HI
How to use two dimensional arrays in custom.pll
I tried by the following way .
type ship_array is table of number index by binary_integer;
type vc_array is table of ship_array index by binary_integer;
But I am getting the error as that
A plsql table may not contain a table or a record with composite fields.
Please tell me the way how to use themwhich forms version are you using? two dimensional arrays are available in >= 9i if memory serves.
regards
Maybe you are looking for
-
Folder and ! - i need someones help!
from looking at previous posts seems this is a pretty common problem... my ipod is showing the folder and exclamation mark, and isnt recognized by itunes or the updater... is there anything i can do before paying for it to be fixed? please someone he
-
New computer ?? on how to move library to new computer
I have done a search and followed some directions regarding this. But I'm a complete dummy when it comes to this. I'm hoping for some gently advice :-)) I have a new computer and want to move all my itunes to the new computer since it is faster. My n
-
My iMac needs 4 Minutes to start
I don't know why, but my iMac needs 4 Minutes for every start. I have disconnected all USB devices. Can somebody help?
-
Saving FormCentral Form to PDF
When I save my Form to PDF the text doesnt show up when I open the pdf copy with Adobe.
-
Client (Solaris) remote call hangs 225sec if Server (Window7) is down.
We are noticing the RMI Client remote call from Solaris machine hang of exactly 225 seconds if RMI Server on Windows7 machine is shutdown. RMI Server is shutdown for valid reasons. The expectation is, Client would throw a RemoteException immediately