Making attrbute of field in layout dynamic (mandatory on not in config)
Hi,
One of the functional team member had some issue with configuration. He checked the box in configuration which is mandatory flag chack box in Manitain Field groups. But a particular field does not change it status in transcation.
I am having a very basic ABAP question.
When I go in the SAP program, and see the Attributes of that field in layout editor as Input Field 'Required'. I am wondering if the attribute is set as required, how can configuration make the field non-mandatory. What technique is used to make dynpro field attributes dynamic based on configuration ?
I am thinking a lot on this.
Regards,
Rajesh.
Even if we find the user exit, how can we modify the code. Because the modify in this means modifying the Field attribute in layourt editor. How can we do this ?
Thanks.
Regards,
Rajesh.
Similar Messages
-
Calculations on Total column' fields(bps layout: dynamic calmonth)
hi friends,
in bps, output layout, based on dynamic calmonth i showing number of months. I want to system to calulate total(all calmonths) sum for a particular field.
Lead column data columns
Expenses apr2009 may 2009 june 2009.....mar2010 Total
Office 20 10 20 100
Usually for caculating total in layout builder 2nd screen, we chose tickmark(total) and then write c(1): c(1) like that or simply c(1) which calculates all calmonth values.
My situation is like this, user only enter number of year(s), in terms of range. I populate calmonth field using user-exit based on year range. Next using calmonth field in layout builder as dynamic field. Now user wants TOTAL of individual years along with calmonths. How can i put this condition in layout builder?
eg:
apr2009 may 2009......mar2010 Total(09-10) apr2010 may 2010 ...mar2011 Total(10-11).apr2011 ..Total(11-12).
Expenses 10 20 30..............
Next question, Can i do arthemetic calculation on total fields?
eg:
Lead column apr09 may09 ....mar10 total
A 10 20 100
B 20 30 200
c 10 5 ????(this value i want to calulate by above totals eg: (200/100)* 85.
Can it possible to get that?
thanks,
kumarIt is not possible to hide or change the column width during design time if the layout is ALV.
However if the layout is used in WIB (web interface builder), I believe the column widths can be modified at run time. This would need additional coding.
Regards -
Making a field in selection screen dynamic mandatory
I have a parameter in the select option of a selection screen. The code is below:
TABLES:vbak,kna1,ekko,lfa1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
PARAMETERS: rd1 RADIOBUTTON GROUP rd DEFAULT 'X' USER-COMMAND abc,
rd2 RADIOBUTTON GROUP rd,
rd3 RADIOBUTTON GROUP rd.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS:s_erdat FOR VBAK-ERDAT MODIF ID SAL,
s_vbeln FOR VBAK-VBELN MODIF ID SAL,
s_kunnr FOR KNA1-KUNNR MODIF ID SAL.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE TEXT-003.
SELECT-OPTIONS:p_aedat FOR EKKO-AEDAT MODIF ID PUR,
p_ebeln FOR EKKO-AEDAT MODIF ID PUR,
p_lifnr FOR EKKO-AEDAT MODIF ID PUR.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rd1 EQ 'X'.
IF SCREEN-GROUP1 = 'SAL' OR SCREEN-GROUP1 EQ 'PUR'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF rd2 EQ 'X'.
IF SCREEN-GROUP1 EQ 'PUR'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF rd3 EQ 'X'.
IF SCREEN-GROUP1 EQ 'SAL'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Now the parameters s_erdap & _aedat should both be dynamic mandatory. How this can be achieved?Hi,
This can be done in two ways:
1.
At selection-screen output.
loop at screen.
IF rd1 EQ 'X'.
if screen-name = 's_erdat-low' or screen-name = 'P_AEDAT'.
screen-required = 1.
modify screen.
endif.
endif.
endloop.
the above code would make the lower value in select-option s_erdat and parameter p_aedat mandatory.
2.
at selection-screen.
if rd1 eq 'X'.
if s_erdat is initial.
message 'PLease enter date'.
endif.
endif.
The above will fire an error when you hit execute and the rd1 is choosen and date is not entered
Himanshu -
Dynamic mandatory field error message is not getting displayed in webui
Hi,
In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
Can anybody tell where the problem is?
Thanks,
Hari.Hi Hari,
Really sorry do not know how to convert this nug file to text
How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
Thanks,
Rajesh P -
Making task list field mandatory in creation of maintenance plan?
Dear All,
I need your help in configuration of Making task list field mandatory in creation of maintenance plan. I checked with sceen variant config but that also not giving me any option to make the field mandatory.
Is there any note or user exit for it?
Regards,
Kaushal RaiDear,
Pls check the exit IPRM0004:Maintenance plan / item: Customer check for time "SAVE".
Regards
Sunil -
Making PAN Number Field MANDATORY while creating a Vendor
Dear Experts,
I want to create a Vendor Master with PAN Number Field Mandatory.
Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
Regards - ManjunathHi Trivedi,
I tried the user exit. But it is pulling the values.
Please find the coding here
IF j_1imocust-j_1ipanno = ' '.
MESSAGE e007(zmsg).
ENDIF.
We are not abe get the PAN vanue in j_1ipanno field.
Looking for your help .
Pleas guide. -
Making PAN Number Field MANDATORY in Vendor Master while CREATING VENDOR
Dear Experts,
I want to create a Vendor Master with PAN Number Field Mandatory.
Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
Regards - ManjunathPlease post in the right forum >
-
Making Field-GR BAsed IV Mandatory in ME32L
Hi,
How to make Field-GR Based IV Mandatory in ME32L?
Please suggest.
Thank you.Hi,
Go to SPRO > Materials Management > Purchasing > Scheduling Agreements > Define Screen Layout at Document Level.
Choose your transaction. (me32) If you need this for me32l and if this transaction is not shown, copy me32 and rename it has me32l. This will create a new entry.
Go into the particular transaction and go to "GR/IR Control". Here change the tick to "Required Entry" in the feild "GR based IV".
This should make the field mandatory.
Regards,
Tharaka -
Badi for making gross weight field mandatory in MM01.
Hi,
Pls tell me the Badi for making gross weight field mandatory in MM01/MM02.
Thanks in Advance.Hi!
if it is not working with customizing I would do it in this userexit (CMOD)
MGA00001
it is the user exit before saving the material master data.
have fun
Flo -
User Exit for making the field Bill of Lading Mandatory in Delivery
Please suggest an User Exit for making the field Bill of Lading Mandatory in the Delivery document when we create an inbound delivery.
Hi,
I'm not sure, pls check these
USEREXIT_SAVE_DOCUMENT_PREPARE
EXIT_SAPLV46H_001
NOTIF_EVENT_SAVE
thanks
Mohanprabu C -
Making input selection fields mandatory in Z-reports
Hello Experts,
We have a query on Z-reports:
1)Suppose if we have some 8 to 10 selection parametrs in input screen of a Z-report & we have certain defined output fields,then we make certain fields as mandatory in input selection screen.
2)If client's requirement is not to make any of the fields mandatory, then the logic to be built will be too cumbersome. This is because, user can give any inputs in any permutation & combination. This makes the logic for coding more complicated.
In such cases, what should be the approach, like whether, we should insist client, that any of the fields should be made mandatory entry OR if not, how should we proceed with such a requirement.
NOTE: Logic becomes more complex, with the increasing number of input selection parameters(If none of the fields are mandatory).
Kindly comment / suggest a way out for this.
Regards
MaheshHi Mahesh, In my view, explain the situation to client clearly, also talk to end user .. they'll be in better position to let you know about the information they need in most of the cases (and they don't harm even-if included in other reports as well), make these fields as mandatory. Let the client know that the easier the report, better would be the benefits (may be 1 report can suffice for 5 reports) .. mostly this is what happens in the practical scenarios.
-
Making a UI field mandatory and error out on save if no entry made
Hi Experts,
I have a requirement to make a UI field mandatory and not allowing the opportunity to save if the field has no entry selected out of a DDLB. I marked the field mandatory in the config page and it displays an error message if it is left unentered but still allows to save , ie even with the error message u can save the opportunity.
How can I get this to work and not allow save if the field is entered?
I tried putting a check in the DO_FINISH_INPUT and DO_VALIDATE_INPUT but didnt work........ please helpArpita,
This is a standard program bug with opportunity screen. Fix it by applying SAP Note 1353553 - Opportunity: Behavior of mandatory fields in Web UI -
How to create table field inside the dynamically created table?
Hi, All!
I have created dynamic internal table (using field catalog and CALL METHOD cl_alv_table_create=>create_dynamic_table )
and put this table into FM REUSE_ALV_GRID_DISPLAY. ALV grid work. Now I need to color rows of my ALV, therefore I have to insert new column with name "COLORS" and type lvc_t_scol. I see three ways to do it , but all ones are unsuccessful:
1. Insert column into field catalog. FM REUSE_ALV_FIELDCATALOG_MERGE does not return info about "COLORS" I guess because COLORS is a table.
2. Insert column into field catalog manually. It provides a short dump during dynamic table creating or during call of REUSE_ALV_GRID_DISPLAY.
3. Create dyn table first, then add new field . I could not find a way how to do it :(((((((
Can somebody help me?
TatianaHi,
Here is the solution for this problem, Sample code:
*& Report ZCHA_ALV_GRID_CELL_COLOR *
REPORT ZCHA_ALV_GRID_CELL_COLOR .
TABLES:MARA.
DATA: W_CONTAINER TYPE SCRFNAME VALUE 'ALV_CONTAINER',
W_GRID TYPE REF TO CL_GUI_ALV_GRID,
W_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
W_EVENT_RECEIVER TYPE REF TO LCL_EVENT_RECEIVER.
*layout
DATA: WA_LAYOUT TYPE LVC_S_LAYO.
*field catalog
DATA: IT_FIELDCAT_WRT_OFF TYPE LVC_T_FCAT,
WA_FIELDCAT_WRT_OFF TYPE LVC_S_FCAT.
DATA:BEGIN OF IT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
MAKTX LIKE MAKT-MAKTX,
CELLCOLORS TYPE LVC_T_SCOL,
END OF IT_MARA.
SELECT P~MATNR
Q~MAKTX
INTO CORRESPONDING FIELDS OF TABLE IT_MARA
FROM MARA AS P INNER JOIN
MAKT AS Q ON
PMATNR = QMATNR.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
SET TITLEBAR 'xxx'.
IF NOT W_CONTAINER IS INITIAL.
CREATE OBJECT W_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = W_CONTAINER.
CREATE OBJECT W_GRID
EXPORTING I_PARENT = W_CUSTOM_CONTAINER.
ENDIF.
CLEAR IT_FIELDCAT_WRT_OFF.
REFRESH IT_FIELDCAT_WRT_OFF.
WA_FIELDCAT_WRT_OFF-FIELDNAME = 'MATNR'.
WA_FIELDCAT_WRT_OFF-COL_POS = '1'.
WA_FIELDCAT_WRT_OFF-OUTPUTLEN = '35'.
WA_FIELDCAT_WRT_OFF-SCRTEXT_L = 'Material No'.
APPEND WA_FIELDCAT_WRT_OFF TO IT_FIELDCAT_WRT_OFF.
CLEAR WA_FIELDCAT_WRT_OFF.
WA_FIELDCAT_WRT_OFF-FIELDNAME = 'MAKTX'.
WA_FIELDCAT_WRT_OFF-COL_POS = '2'.
WA_FIELDCAT_WRT_OFF-OUTPUTLEN = '45'.
WA_FIELDCAT_WRT_OFF-SCRTEXT_L = 'Material Desc'.
APPEND WA_FIELDCAT_WRT_OFF TO IT_FIELDCAT_WRT_OFF.
CLEAR WA_FIELDCAT_WRT_OFF.
DATA LS_CELLCOLOR TYPE LVC_S_SCOL.
READ TABLE IT_MARA INDEX 5 .
LS_CELLCOLOR-FNAME = 'MATNR'.
LS_CELLCOLOR-COLOR-COL = '3'.
LS_CELLCOLOR-COLOR-INT = '1'.
APPEND LS_CELLCOLOR TO IT_MARA-CELLCOLORS.
MODIFY IT_MARA INDEX 5.
WA_LAYOUT-CTAB_FNAME = 'CELLCOLORS'.
CALL METHOD W_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = WA_LAYOUT
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT_WRT_OFF
IT_OUTTAB = IT_MARA[].
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Try to assign appropriate points.
Regards,
Suman -
Field selection layout for MIRO
Hi,
I want to maintain the field selection layout for MIRO transaction (i.e i want to maintain mandatory/supress fileds for MIRO header data). Where i can manage......?
Thanks & Regards
Anilkumar DalaiHi,
Using the filed selection of the posting key, you can get the required effect.
Goto OB41, select the posting key 31 and change the field status as required.
Regards, -
Hi,
Can any one provide me the complete MM field selection layout. (want to maintain mandatory/supress fileds) for ex mmr, vmr, po, migo, miro and etc ..hi
mat master OMSR and oms9
vendor master OMSG
now go to SM30 here use following objects
VV_162_B for pr and po
OMJX for MIGO
OB41 for miro
regards
kunal
Maybe you are looking for
-
Is there a way to reuse an image placed in a document without copying it into the file again?
I recently completed my first eBook with iBooks Author. It is a photo essay and contains primarily photographic images. In some places, I used the same image, or parts of the same image, in more than one place. I could not find a way to locate the
-
Can I use applworks database on a handheld device?
I am designing a price book for the grocery store. Would like not to invest in another software so I am attempting to use Appleworks database. My purpose is to take this info to the grocery store on a handheld device. I am open to suggestions on whic
-
I'm a new on programming JavaCard, and have a question about how to use the timer. I want to make an application that is running once every hour. How do set the timer value the first time, when I don't want to use a menu? I have tried to set the time
-
How to display Hierarchy Variable in BI 7.0 WAD
Hi Experts I have a variable for Cost Center which is a Hierarchy Variable and not a Hierarchy Node Variable. I am using BI WAD 7.0 and my requirement is that the user wants to see for what Hierarchy s/he ran for. I am using a Information Web Item wh
-
Hi Experts, i tried the addin for Excel but when use the function "Send selection" or "Send Sheet" no data displayed or dataset created on "bi.ondemand.com". Best Regards. Andrea