Column order in screen painter
Hello all,
After creating a form in screen painter the column are not showing in the order they are shown in screen painter.
I checked the .srf file and the order of the columns is correct, but when SAP B1 opens the form the matrix has the order of the columns all mixed up.
Any ideias?
Thanks in advance.
Hi,
Your question belongs to SDK forum. You may search that forum first. If there is no similar question with answer, post it there.
Thanks,
Gordon
Similar Messages
-
Selection screen fields order in report painter report..
hi experts,
i have a problem with selection screen fields order in report painter report.
Actually in report painter report selection screen order is different compare to report writer report selection screen.
how should i get the same selection screen fields order For Report painter report compare to Report Writer report ?
For example, Report Writer selection screen order is:
ledger:
company code:
period:
current fiscal year:
previous fiscal yer:
previous quarter end period:
where as Report Painter selection screen order is:
ledger:
previous fis year:
current fis year:
company code:
period:
previous quarter end period:
please help me regarding with this.
Thanks and Regards,
NAGARJUNA.hi nagarjun,
Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
Ex:
Selection fields No
Exclude Cancelled Lots 5
Material number 1
Plant 2
Material type 3
Inspection Lot Origin 4
Regards,
Lokesh -
Is it possible to rearrange columns in a report painter report? Please let me know how it can be achieved.
Edited by: Dhimbak on Dec 2, 2009 3:44 PM
Edited by: Dhimbak on Dec 2, 2009 3:45 PMHi!
If you can modify the report itself, you can modify the column order as well.
1. Click on the column's herder
2. Mark the column with F9 button
3. Click on the destination column's header
4. Choose shift with F8 button
That's all
Regards
Tamá -
Matrix column position problem in screen painter.
hi.
i am facing one problem.
ie.
i am developing one screen.
it is having 3 matrix
each matrix is having some columns
one matrix ok two matrix ok thrid matrix ok.
but
under third matrix i put some columnes
1, 2 ,3, 4,
in screen painter design mode every thing is ok
it is appearing like 1,2,3,4
but at preview mode or through the code if i open
it is appearing like 1, 4,3,2
in preview mode screen painter if i click on the form settings it is showing only..
matrix one columns only it is not showing either 2 or 3
and if i open the form through the code..
i am able to see the columns of matrix 1 n matrix 2 and matrix 3
i am using some code.
If (pVal.FormUID = "WIP2PROCESS" And pVal.ItemUID = "1000007") Then
oForm = SBO_Application.Forms.Item("WIP2PROCESS")
oForm.PaneLevel = 2
oForm.Settings.Enabled = False
oForm.Settings.MatrixUID = "59"
End If
now through the source code i am able to see the each column under matrix.
but if i change the matrix position at form setting it is changing but
if i click other folder and come back to previous folder..
again the column position is 1, 4,3,2
previously i changed to 1,2,3,4
how can i do it..
screen painter can i change it..
Any information plz update me..Hi Srinivas,
Can you do one thing for me ? Open your form in screen painter, set the columns as you want to display. Now change the unique id for the matrix. Then try to open it through code or see in preview mode.
Hope it helps.
Thanks & Regards
Ankit Chauhan -
Update column in screen painter
i have column in screen painter and i write data when i make enter it's dissapear why???
Did you have corresponding data object defined in program?
I guess this is where the issue comes from. Simply system can't exchange data b/w screen and program.
Try declaring one, it should help then.
Also, what do you mean by column ? If it is a table control you need to use definition of this table, the simplest is usually by
TABLES name_of_table.
If this is a single field taken as reference from DDIC you should simply define it like
DATA name_of_table-name_of_column TYPE name_of_table-name_of_column.
Regards
Marcin -
Screen Painter - Delete a Matrix Column
Hi,
I am trying out Screen Painter. Really nice tool !!!
I added 1 column to much in my Matrix, how do I delete the column?
And how does the Swap button work? (Swap = To trade one thing for another.)
Thank you,
RuneRune,
I don't know if there's an easier way, but I open the XML code (the srf file), find the begining and end of the specific column info and remove it. then Save and the column is gone. You can do this in notepad or any editor. You just have to be careful to remove only the right code, but it's all together in one long section.
Of course make a backup of the srf file first Hope this helps. -
How to add new column in screen painter
Hi
I have try to add new column on existing screen and test screen in se51, the column is added in position correctly. But when I run program call this screen, the added column is placed as the last column.
Please help.
ThanksThank for your replied.
I have check the table control, it has fix column. So, I set fix column to 0 at table control but when execution by program call it's still not update what I have changed. (On test screen in se51, it come out correctly and updated)
So, I don't know why I use program call this screen, the screen is not updated what I have try to change but, when execute in test screen it come out correctly
PS. I have check attribute, it's numbered right.
Please help !!
Edited by: VerdamFK on Oct 4, 2010 8:11 AM -
How to change order of report painter columns
I have a report which shows the columns in one order when in design mode in GRR2 but when the report runs, the columns display in a different order. When in design mode, you can see the actual output order by clicking the form overview button and selecting the columns tab.
I am trying to figure out how to set the column order, short of deleting all the columns and recreating them.
Does anyone know if there is an easy way to do this?
Thanks all!
BobDoug,
using MDC with SAP is ok. Try the following:
- Use SE14->Edit->Storage Parameter->For new creation and specify the ORGANIZIE BY DIMENSION clause.
- Go to the change-mode for the table in SE11. Switch to the 'Fields'-Tab and select the complete second line. Then click on 'Cut'.
- Now select the first line in the same way and click on 'Paste'. By doing so you moved the field at position 2 to position 1.
- Save the changes, click on 'Check' and, if that succeeds, click on 'Activate'.
Hope that helps.
Regards,
Johannes -
How to enter values in ztable from screen painter
Hi guys,
I have a scenario,where i have to enter values in ztable for the values entered in screen painter.The screen painter is supposedly having 10 columns. i enter the value in the grid(table) and when i save, the records have to be inserted into ztable created by me. how to go through the problem. kindly help in giving a flow for the problem .If anybody has gone through this scenario please help out.
Thankx in advance
Regards
Navinif ur entering one record at a time from sreen to table then
u have to use ,
in pai module of the screen u have to code,
case sy-ucomm.
when 'SAVE'.
ztable-roll = ztable-roll.
ztable-name = ztable-name.
insert ztable/modify ztable.
ENDCASE.
if ur screen is having a table control
then u have to create a loop inside a module.
like
loop at tabcontrol_name
module insert_data.
endloop.
and in the doubleclked module,
move-corresponding ztable to ztable.
insert ztable.
Note : in both cases u have selected input fields as from
table/dictionary in the screen.
Regards -
Cannot load XML file in Screen Painter in SAPB1
Hi All,
i am creating an xml file of existing purchase order through the following code
Public Sub getxml(ByVal FormUID As String)
Dim f As SAPbouiCOM.Form
f = sbo_application.Forms.Item(FormUID)
Dim oXmlDoc As Xml.XmlDocument
Dim sXmlString As String
oXmlDoc = New Xml.XmlDocument
'// get the form as an XML string
sXmlString = f.GetAsXML
oXmlDoc.LoadXml(sXmlString)
Dim sPath As String
sPath = IO.Directory.GetParent(Application.StartupPath).ToString
oXmlDoc.Save((sPath & "\ChangedXml.xml"))
End Sub
i am calling this function getxml in pageload of this form as
Private Sub B1_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles sbo_application.ItemEvent
If pVal.FormType = "142" And pVal.BeforeAction = False Then
Dim oItem As SAPbouiCOM.Item
Dim oFolder As SAPbouiCOM.Folder
Dim oform As SAPbouiCOM.Form
Dim oStaticText As SAPbouiCOM.Button
Dim oEditText As SAPbouiCOM.EditText
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
getxml(FormUID)
End Select
End If
End Sub
it will create the xml file ChangedXml.xml in the destination folder, then i will copy that one and paste it and change the extension to .srf.
then i will open screen painter and try to acceess this one it will open the form but it will give an error as Error: Menu - Image Type Not Supported
it will open the screen but it won't open the matrix, the space which consists of matrix in the original form will come as blank.
Please any one help me, it's urjent.
Thanks,
Vaithy
09886807576Hi Vaithy,
Not all the items you have in B1 forms are supported by the UI API and/or the ScreenPainter.
If you need to reproduce a B1 system form you will have to remove all items giving you an error in the ScreenPainter and then have a reduced form.
Why do you need the xml of the Purchase Order form? Please take care if you are trying to reproduce the behavior of the Purchase Order form, there can be some Formatted Searches or other customizations in the B1 form if you are using other addons.
Hope it helps
Trinidad. -
hello all expert,
i have requirement display alv report in screen painter. select options and report display on same screen.
iam taking custom control for display alv report .but when i click on button alv not displayed in custom control.
plz help me anyone /
there is no hurry.
Thanks in advance,
sandeep.
Edited by: Thomas Zloch on Jan 22, 2011 1:00 PM - urgency reducedThanks for reply ,
now i write my code in pbo and pbi event but report not displayed yet.
now this is the code.
*& Report ZTEST_SCREEN1 *
REPORT ZTEST_SCREEN1 .
DATA :
gr_EBELN TYPE RANGE OF EKKO-EBELN,
grs_EBELN LIKE LINE OF gr_EBELN.
DATA:
gs_fieldcatalog TYPE lvc_s_fcat OCCURS 0,
gv_fcat LIKE LINE OF gs_fieldcatalog,
gs_layout TYPE lvc_s_layo.
TYPES :
BEGIN OF gty_item,
mandt LIKE EKKO-mandt,
EBELN LIKE EKKO-EBELN,
lifnr LIKE EKKO-lifnr,
matnr LIKE EKPO-matnr,
desc_text LIKE zEKPO-desc_text,
END OF gty_item,
BEGIN OF gty_EKKO,
mandt LIKE EKKO-mandt,
EBELN LIKE EKKO-EBELN,
lifnr LIKE EKKO-lifnr,
END OF gty_EKKO,
BEGIN OF gty_EKPO,
EBELN LIKE EKPO-EBELN,
matnr LIKE EKPO-matnr,
END OF gty_EKPO.
DATA :
gs_item TYPE gty_item,
gt_item TYPE TABLE OF gty_item.
DATA :
gs_EKKO TYPE gty_EKKO,
gt_EKKO TYPE TABLE OF gty_EKKO,
gs_EKPO TYPE gty_EKPO,
gt_EKPO TYPE TABLE OF gty_EKPO.
DATA :
g_Container TYPE scrfname VALUE 'CC_CONTAINER_GRID',
g_Custom_Container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
g_Grid TYPE REF TO CL_GUI_ALV_GRID.
DATA :
OK_CODE LIKE sy-ucomm,
SAVE_OK LIKE sy-ucomm.
START-OF-SELECTION.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN'.
SET TITLEBAR 'TITLE'.
IF g_Custom_Container IS INITIAL.
"Create CONTAINER object with reference to container name in the screen
CREATE OBJECT g_Custom_Container EXPORTING CONTAINER_NAME =
g_Container.
" Create GRID object with reference to parent name
CREATE OBJECT g_Grid EXPORTING I_PARENT = g_Custom_Container.
PERFORM u_prepare_fieldcatalog.
gs_layout-ZEBRA = 'X'.
"gs_layout-edit = 'X'. " Makes all Grid editable
" SET_TABLE_FOR_FIRST_DISPLAY
CALL METHOD g_Grid->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = gs_fieldcatalog
IT_OUTTAB = gt_item. " Data
ELSE.
CALL METHOD g_Grid->REFRESH_TABLE_DISPLAY.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'EXIT' OR 'BACK' OR 'CNCL'.
LEAVE PROGRAM.
WHEN 'LIST'.
PERFORM u_filter_EKKO.
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form u_filter_EKKO
text
--> p1 text
<-- p2 text
FORM u_filter_EKKO .
REFRESH gt_EKKO.
Define Range Criteria
grs_EBELN-SIGN = 'I'.
grs_EBELN-OPTION = 'EQ'.
grs_EBELN-low = '6000000004'.
grs_EBELN-high = ekko-ebeln.
APPEND grs_EBELN to gr_EBELN.
CHECK gr_EBELN[] IS NOT INITIAL.
SELECT mandt EBELN kunnr
FROM EKKO INTO TABLE gt_EKKO
WHERE EBELN IN gr_EBELN.
CHECK gt_EKKO[] IS NOT INITIAL.
SELECT EBELN matnr
FROM EKPO INTO TABLE gt_EKPO
FOR ALL ENTRIES IN gt_EKKO
WHERE EBELN EQ gt_EKKO-EBELN.
IF gt_EKKO[] IS NOT INITIAL.
LOOP AT gt_EKPO INTO gs_EKPO.
READ TABLE gt_EKKO INTO gs_EKKO WITH KEY EBELN = gs_EKPO-EBELN.
gs_item-mandt = gs_EKKO-mandt.
gs_item-EBELN = gs_EKKO-EBELN.
APPEND gs_item TO gt_item.
CLEAR gs_item.
CLEAR gs_EKKO.
CLEAR gs_EKPO.
ENDLOOP.
ENDIF.
ENDFORM. " u_filter_EKKO
FORM U_PREPARE_FIELDCATALOG .
CLEAR gv_fcat.
gv_fcat-fieldname = 'MANDT'.
gv_fcat-tabname = 'EKPO'.
gv_fcat-col_pos = 0.
gv_fcat-coltext = 'MANDT'.
gv_fcat-no_out = 'X'. " Do not Display Column
INSERT gv_fcat INTO TABLE gs_fieldcatalog.
CLEAR gv_fcat.
gv_fcat-fieldname = 'EBELN'.
gv_fcat-tabname = 'EKPO'.
gv_fcat-col_pos = 1.
gv_fcat-coltext = 'EBELN'.
INSERT gv_fcat INTO TABLE gs_fieldcatalog.
CLEAR gv_fcat.
gv_fcat-fieldname = 'ERDAT'.
gv_fcat-tabname = 'EKPO'.
gv_fcat-col_pos = 2.
gv_fcat-coltext = 'ERDAT'.
INSERT gv_fcat INTO TABLE gs_fieldcatalog.
CLEAR gv_fcat.
gv_fcat-fieldname = 'KUNNR'.
gv_fcat-tabname = 'EKPO'.
gv_fcat-col_pos = 3.
gv_fcat-coltext = 'KUNNR'.
INSERT gv_fcat INTO TABLE gs_fieldcatalog.
CLEAR gv_fcat.
gv_fcat-fieldname = 'MATNR'.
gv_fcat-tabname = 'EKPO'.
gv_fcat-col_pos = 5.
gv_fcat-coltext = 'MATNR'.
INSERT gv_fcat INTO TABLE gs_fieldcatalog.
ENDFORM. " U_PREPARE_FIELDCATALOG -
Decimals problem in Screen Painter
Hi Experts,
I have a table control which consist material & quantity column, How I can set default decimal places in the screen painter field.
As I'm inputting any round value it does'nt show decimals for that. I'm using standard field VBAP-ZMENG form this.
Please help
Regards,
AbhishekHi In SE51 in the attributes of that field you have some thing as DICT tab.
You can select your field type there. You might have to pick it as Decimal.
I hope it helps.
thanks -
hi,
if table column is numc but in screen painter i define as char, can the number appear? i tested it cannot show the number.
thanksIt will not show you the number because the default number as zero will appear as space.
It depends upon how you declare in your internal table but it will not show
Please reward if useful. -
Hi Dear;
where can i find explanation about the screen painter and specially for the grid, columns and matrix
regards;Hi Satish;
i want a document that explain screen painter in deep and not like SDK.
where can i find these docs?
regards -
Screen Painter displays nothing and becomes hang.
<b>Screen Painter displays nothing and becomes hang.</b>
To duplicate:
1. Create a new table and fields. (I created using SQL Enterprise Manager).
2. Create a new form using Screen Painter.
3. Bound several items to column to field of table created on step#1
4. Save and close the form in .srf.
5. Open the saved form and Screen Painter becomes hang.
Is there any mistakes in my steps? Or this is just a Screen Painter Bug?
Thanks in advance,
Jemmy SentoniusWhen creating new tables, make sure to create them via SAP. You can achieve this by either manually creating tables via SAP client or programmatically using DIAPI.
When you bind data to a form via UIAPI (either programmatically or via xml/srf) SAP needs to know the tables you refer to.
When you create tables using Enterprise Manager, SQL Server knows about the tables, SAP does not. Hence your error, I guess.
However Screenpainter should not hang when referencing "invalid" (to SAP) tables. This behaviour ought to be corrected.
HTH Lutz Morrien
Maybe you are looking for
-
WTA How to do MM PR /PO Workflow configuration
Hi Guru, I want to ask how do I configure the MM PR and PO workflow. Do anyone have a simple guide which I can build from. Thank you.
-
Communicating between swf files
movie1.swf has a loader component named myLoader. can movie2.swf contain a button instance that will tell movie1.swf.myLoader what to load?
-
Hello, While creating STO order for intracompany process,i am facing error as 'Delivery type UL not allowed in purchase orders'. Why this message is coming?
-
Unable to install Leopard on MacBook Pro G4
I have a 2.16 GHz PowerBook G4 with 2 Gig of memory. When I try to install Leopard, I get as far as the restart. That it won't do. It comes up and says that it cannot be used as a start up disk and to make sure that the install disk is loaded. Well i
-
How can i deactivate IOS 7? I want to deactivate IOS 7, because i do not even have iPhone and this program is usless for my iPad Mini. i want to have the normal program setting like when i first bought this iPad Mini. thank you