How change the if condition ?
Hi,
Now i have a jsp page which is already developed. Now i have to change my jsp code. My problem is how to change the follwoing if condition into normal jsp if condition
this is my code
<c:if test="${runtimeForm.queryCount > 1}">
<input type=image value="client" src="./images/bt_submit.gif" onClick="submitNewQuery(null)" onmouseover="this.src='images/bt_submit1.gif'" onmouseout="this.src='images/bt_submit.gif'">
</c:if> This tell me how to chagne the if conditon into normal one
thanks
MerlinaRoshine
Most people would want to do the reverse - change scriptlet code to jstl. Anyways it is not that difficult if you know that the attribute values are just scoped variables. And the '.' and [] notations are used to access the javabean style properties of the scoped objects.
<%
<RunTimeFormClass> runtimeForm = <RunTimeFormClass>pageContext.findAttribute("runtimeForm");
if(runtimeForm.getQueryCount() > 1){ %>
<input type=image value="client" src="./images/bt_submit.gif" onClick="submitNewQuery(null)" onmouseover="this.src='images/bt_submit1.gif'" onmouseout="this.src='images/bt_submit.gif'">
<%}%>In the above code replace <RunTimeFormClass> with the actual class name in your application.
ram.
Similar Messages
-
How to change the manual condition type value in change sales order BAPI
Hi All,
My scenario here is, i want to either add/change the manual condition type value during change of SO.
When i'm trying to pass the order_conditions_in and order_conditions_inx tables in 'BAPI_SALESORDER_CHANGE'.
Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.Siva,
I guess you posted in Wrong Thread. You need to post in WAS section.
check for any BAPI's available in CRM.
Nagesh Ganisetti. -
How to Change the Document Condition Values in PO print
HI,
I have a requirement to change the document condition values in PO printout. We are using the copied form of MEDRUCK.
Please tell me how can i change the Document Condition Values at run time.
Thanks....hi
hence you have copied standard script you cant able to change the driver program for this you have to use itcsy structure.
go to the page window and select the window which you have the amount field. open the text editor of the windoiw here write
/: PERFORM CONTACT IN PROGRAM ZAMOUNT_ZF110_IN_AVIS1_C
/: USING ®UH-ZALDT&
/: CHANGING &DT&
/: ENDPERFORM
now create a report program with name ZAMOUNT_ZF110_IN_AVIS1_C.
and follow as the example program is .
*& Form CONTACT
text
-->IN_TAB text
-->OUT_TAB text
FORM contact TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA : v_telf1 TYPE telf1.
DATA : v_telfx TYPE telfx.
DATA : v_adrnr TYPE ad_addrnum.
DATA : v_flagcomm6 TYPE ad_flgcm06.
DATA : v_datum(10) TYPE c.
DATA : v_sydatum TYPE sy-datum.
DATA : v_lifnr TYPE lifnr . " Santosh Rawat , 19th Feb
DATA : v_email TYPE ad_smtpadr . " Santosh Rawat , 19th Feb
LOOP AT in_tab.
IF in_tab-name = 'REGUH-LIFNR'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' " Santosh Rawat , 19th Feb
EXPORTING
input = in_tab-value
IMPORTING
output = v_lifnr.
SELECT SINGLE telf1 telfx adrnr FROM lfa1
INTO (v_telf1, v_telfx, v_adrnr)
WHERE lifnr = v_lifnr.
SELECT SINGLE smtp_addr FROM adr6 " Santosh Rawat ,19th Feb
INTO v_email WHERE ADDRNUMBER = v_adrnr. " Santosh Rawat ,19th Feb
SELECT SINGLE flagcomm6 FROM adrc INTO v_flagcomm6
WHERE addrnumber = v_adrnr.
ELSEIF
in_tab-name = 'REGUH-ZALDT' OR in_tab-name = 'REGUP-BLDAT' .
MOVE in_tab-value TO v_datum.
REPLACE ALL OCCURRENCES OF '.' IN v_datum WITH ' '.
CONDENSE v_datum.
MOVE v_datum TO v_sydatum.
*CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = V_DATUM
IMPORTING
OUTPUT = V_DATUM
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = v_sydatum
IMPORTING
date_external = v_datum
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
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.
ENDLOOP.
LOOP AT out_tab.
IF out_tab-name = 'TEL'.
MOVE v_telf1 TO out_tab-value.
ELSEIF out_tab-name = 'FAX'.
MOVE v_telfx TO out_tab-value.
ELSEIF out_tab-name = 'EMAIL'.
MOVE v_email TO out_tab-value. " Santosh Rawat , 19th Feb
ELSEIF out_tab-name = 'DT'.
MOVE v_datum TO out_tab-value.
ENDIF.
MODIFY out_tab FROM out_tab.
*MODIFY TABLE OUT_TAB .
ENDLOOP.
ENDFORM. }
reply for any query.
regards,
venkat. -
How to change the merge condition in OWB generated code
Hi,
This is regarding the OWB generated code for cubes. We required to change the ON condition of MERGE statement. OWB merge the records on the basis of dimension keys only. Is there any ways to provide the customised merge condition or is it possible to add a measure of the cube to be used in ON condition of the merge?Hi,
cant´t you customize the generated Code in the Database?
I know that owb has the trait to do the following:
If you create a Mapping, etc. the generated Code will be deployed as PL/SQL Package in the Database Schema.
Now you can edit the Code as Schema User right in the Database.
Don´t edit it in the Metadata, only in the Databse.
If you run now any Process in OWB, he´ll execute your edited Code,
´cause he just takes whats still there. :-)
It´s not realy clean, but in most Times that works.
LoneWolf -
Changing the pricing condition table
Hi Gurus,
As there is a shortage free tables I want to change the existing condtion table and to add new field to fulfill the requirement.Currently we have the table sales area/PH1-PH6 and I need to change it to sales area/PH1-PH6/material group2.While i am trying to change in V/04 system is not allowing and its showing the following messages "Carry out repairs in non-original system only if they are urgen" andt "function code not allowed". Please let me know how to change the existing condition table.
Regards,
Hari CHalla.Hi
I think you need to get the acces key to change the standard table from SAP in service market place.
Regards
Yatin Thakkar -
"Conditions" button at the material master - Change the related condition
There is "Conditions" button at the material master ("Sales: sales org. 1" tab). We can make condition record of PR00 by this button but at our system the condition for the material price is different (it isZPR0 at our system). How can I change the related condition type as ZPR0 for this button?
Thanks in advance for the answers....Check program LMGMMF0Q and FUNCTION SD_COND_GET_DEFAULT_CONDITION for details.
It looks it is hard coded, but they also mention that Via a user exit (business transaction event), the
default KSCHL and KOTABNR can be set.
Regards, -
SV004 - I need to change the selection condition in the view: J_1BT001W
Hello guys,
Can you please help me with a topic ?
How can I change the selection condition in the view: J_1BT001W ?
I was trying to use se11, but says that J_1BT001W does not exist.
Thanks a lot,
JordanHi Jordan,
The correct view name is J_1BT001WV and not J_1BT001W. It is made of table joins - T001W T001K T005. Please let me know if this answers your question.
Regards
Ram -
How change the graph dynamically based on pivot table.
Hi,
My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
Please help on this.ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..
-
How change the name of iPod?
How change the name of iPod?
When you plug the iPod into iTunes you should see it along the sidebar (the list Library, Store, Shared, Genius and Playlists). Just click on the iPod in that list and it should allow you to edit it
-
How change the report graph color in teststand
how change the report graph color in teststand?
Michael,
You might also be able to customize the style sheet associated with the report. The TestStand Help provides some information about how to customize ATML or XML style sheets to change report colors based on the status of test steps.
Please take a look at the following topics; are these helpful?
ATML Report Style Sheets
Modifying Cell Background Color Based on Step Status in ATML Test Results 5.0 Reports
XML Report Style Sheets
Modifying Cell Background Color Based on Step Status in XML Reports
Tom
TestStand Documentation -
Please provide me how change the Materil using BAPI...?
Hi Guru's,
could please provide me how change the Materil using BAPI...
please provide the BPAI name and step by step process...
if ou provide any program logic that would be helpfull to me...
thanks in advance
Srinivas....Hi,
THis is code .
*& Report Zs_MATMAS_BAPI
*& This program demonstrates how easy it is to create Material master
*& data using BAPI_MATERIAL_SAVEDATA
*& The program also generates a report post-execution displaying errors
*& as well as successful uploads
REPORT Zs_MATMAS_BAPI.
TABLES
FLAGS *
DATA: F_STOP. " Flag used to stop processing
DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
STRUCTURES & INTERNAL TABLES
*BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2. " Return Parameter
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
GEWEI(3), " Weight Unit
SPART(2), " Division
EKGRP(3), " Purchasing group
VPRSV(1), " Price control indicator
STPRS(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
END OF IT_DATA.
SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
'C:\Material_master.XLS'.
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
Form : validate_input_file
Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS>.
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS>.
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
Header
UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
ENDLOOP.
ENDFORM. " UPLOAD_MATMAS
Thanks
Sarada -
Can we change the start conditions of SAP standard workflows
Can we change the start conditions of SAP standard WF10400002
Where i want to assign my own Gross amount in the start conditions.Check out the link below.
[http://help.sap.com/saphelp_nw2004s/helpdata/en/90/83ed38f5f41a28e10000000a114084/content.htm]
[http://help.sap.com/saphelp_nw2004s/helpdata/EN/4c/86bf43feca11d2a64f0060087a79ea/content.htm]
Regards,
Raj -
How change the wallpaper/background with a command line ?
Hi people,
did someone know how change the wallpaper with a command line ?
thx a lotHi,
I think this can be done with PowerShell. We could create a function to set wallpaper:
Function Set-WallPaper($Value)
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
rundll32.exe user32.dll, UpdatePerUserSystemParameters
Open PowerShell; paste the function above in it to make this function work.
Now, if you want to change some wallpaper, you could type the following text:
Set-WallPaper -value "the path of you wallpaper"
If you are interested, I would like to share the following article with you for your reference:
Hey, Scripting Guy! How Can I Hide
My Desktop Wallpaper?
If you need some help on writing this script, you can also post your question to The Official Scripting Guys Forum:
The
Official Scripting Guys Forum
Hope this helps. Thanks.
Alex Zhao
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
HT204266 how change the app store associated with my apple id on my ipad?
I move from canada to australia how change the app store associated with my apple id on my ipad?
I have try to set evry thing with my new australian data but it told me the it`s not possible...
What I can do?
Thanks and Regardsyou could go to settings, then itunes and app stores. you should see an option caleed apple id with your apple id to the side of it. click on it and select the option view apple id. you will have to type in your password. then you will see the details of your acoount. next, select the option called country/region. you will be able to select australia from the list of stores. you willl then change your billling adress (you should be directed). Fill in your adress in australia with your zip code and you will be done.
-
How change the moving average prices?If run costing done In the MR21 system
hI,
How change the moving average prices?If run costing done In the MR21 system notallowing the changing the prices?
Regards
ChannaHi
Showingerror
A current or future standard price exists for material 300000007
Message no. CKPRCH025
Diagnosis
A current or future cost estimate exists.
Procedure
You can set the price of a marked cost estimate through the radio button 'Default Planned Prices' and release it by saving.
Please what is the process changing moving aveerage prices
Maybe you are looking for
-
RADIUS in 10.6 to authenticate Cisco ASA 5505 Strange Error
I have followed the steps as discussed: http://discussions.apple.com/thread.jspa?threadID=2177670&tstart=0 It did work for a number of weeks without any problem. Did not change anything on the Firewall or server, regarding updates etc. But now someth
-
Open Window and Close Window Commands
I used to use Go Live and I could create buttons to enable the end user to open and or close a pop up window. Is there a way to do this in iWeb? Or is it possible to make a graphic appear on a page whenever you roll over a hot spot or graphic on that
-
The wi fi switch on my iPhone 4s is greyed out.
It is greyed out, and now no longer allows me to even turn on the wi-fi on my iphone 4s. Any help is appriceated!
-
How do I tell itunes on a Windows XP PC to start downloading new songs to my external drive ? The whole library has already been moved. I am just one final step away. Everything I`m downloading still lands on C: Relaunching itunes while pressing "shi
-
Ipod has been playing music in my car the past two years. new computer this year and new email address. Backed up to cloud. change ID on itunes. Music on my ipod disappeared. Shouldn't it be on the cloud somewhere?! What's the point of this cloud? An