Update Routine to Display the field as active or inactive
Hi All,
I have following requirements to write one of the rouine in the update rules. I have the field ZPLANSTAT. I have to write the routine to diplay the follwing the condition in the targets.
ZPLANSTAT: It is "Active" if Planning Status (AT101) = X0ZP. It is "Inactive" otherwise.
ZPLNASTAT should be active if Planning status ( AT101) = XOZP els it should display as inactive .
Can anybodyhelp me in wrting this code.
Regards,
Pradeep
Hi,
In field routine of ZPLANSTAT write the below code.
In 3.5
if comm_structure-AT101 = 'X0ZP'.
Result = 'Active'.
else.
Result = 'Inactive".
Endif.
In 7
if Source_Fields-AT01 = 'XZ0P'.
Result = 'Active'.
else.
Result = 'Inactive'.
endif.
Regards,
Shiva.
Similar Messages
-
How to display the fields in ALV Output without using Field catalog?
How to display the fields in ALV Output without using Field catalog?
Could you pls tell me the coding?
Akshitha.Hi,
u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
data: itab type table of mara.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = itab
CHANGING
ct_fieldcat = lt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*Pass that field catalog into the fillowing FM
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_grid_title = 'REPORTING'
is_layout = gt_layout
it_fieldcat = lt_fieldcat[]
tables
t_outtab = itab. -
How to display the field name in the tabulated view for a content query web part
I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
to include the tabulated view for the content query.
However the way it is displayed is such that only the content is displayed.
As i am using a tabular view wto display the data, i want to display their field names as well.Hi ,
According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
For your issue, please refer to the code as below:
<xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
<html>
<table width="100%">
<xsl:if test="count(preceding-sibling::*)=0">
<tr>
<td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
<td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
<td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
</tr>
</xsl:if>
<tr>
<td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
<td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
<td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
</tr>
</table>
</html>
</xsl:template>
For more information, please have a look at the blog:
http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
http://msdn.microsoft.com/en-us/library/ms497457.aspx
http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
http://blog.sharepointexperience.com/customitemstyle/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to display the field "Country" in the Address Book UI ?
How to display the field "Country" in the Address Book UI ?
Using an add-on, MoreFunctionsForAddressBook gives you that opportunity.
-
How to display the fields in effective
i have 10 fields names as name,add,code,no.seats......
I have two choices those are Table, and other one is add fields and JScrollpane to a panel and display it.
Can any one have other choices to display the fields effectively.You are only limited by your imagination. What sort of answer are you looking for?
-
Can we display the field name vertically
Hi BI Experts ,
Iam using Bex Analyzer to run reports.
1.in report i want to display the field name vertically. is there any possibilities.
2.i had tried using format cells in excel settings , but i have to make settings every time after running the report.
3. i need this settings should be done before running the report and user can see the report such a way that field name should be displayed vertically.
Please suggest me is there any way to do this.
Thanks
TulsiHello,
You can create a workbook, do the necessary format and turn off the format refresh in the Bex Tool bar property. You can turn off the same in Query Property.
[Thanks|http://chandranonline.blogspot.com/]
[Chandran|http://chandranonline.blogspot.com/] -
Displaying the field symbol result in ALV GRID
hi.
I have a requirement to display the field symbol in ALV GRID. I am getting a error 'FIELD SYMBOL NOT YET BEEN ASSIGNED' when i am calling the 'REUSE ALV GRID DISPLAY'. Can any one help me out..I have a requirement that i have to display all the GL indicators as a field.
For that i have created a dynamic internal table so that based upon the GL indicators available in the database table i can create a dynamic internal table with GL indicators as the fieldnames.
Now i want to populate the corresponding amount with respect to the GL indicators in the dynamic internal table.
For ex.
I have a database table as follows:
Vendor Id GL indicators Amount
1000 A 2000
1000 S 3000
I have to created a field symbol as follows
Vendor Id A S
1000 2000 3000.
Now my requirement is that i want this values to be displayed in ALV GRID.
At the point of calling REUSE ALV GRID DISPLAY i am getting the error field symbol is not yet been assigned.. -
Displaying the fields in an order
Hi,
I have a requirement where i need to display the fields in a 2 column layout like left to right and these fields are displayed dynamically. I am using struts , here tiles wont work as the fields are dynamic in nature as well <c:forEach> and <logic:iterate> wont work either as they are used to display the 1 field at a time and will be displayed sequentially, which is one after another. Hence i need to use the while or for loop in the JSP with scriplet to do it.
Something like :-
<table>
<%
int index =0;
CustomerItem item = null;
while( index < CustomerForm.getCustomerItemList.size()){
item = CustomerForm.getCustomerItemList.get(index);
%>
<tr>
<td>
<label><c:out value="${item.custName}"/>
<input type="text" name="${item.custId}"/>
</td>
<%
index++;
if(index<CustomerForm.getCustomerItemList.size()){
item = CustomerForm.getCustomerItemList.get(index);
%>
<td>
<label><c:out value="${item.custName}"/>
<input type="text" name="${item.custId}"/>
</td>
<%
index++;
}%>
</tr>
<%
%>
</table>
This will allow me display the fields in the left to right manner,but i dont wnat to use scriplet , is there the same can be done using <c:forEach> or <logic:iterate> or we whether we can use a custom tag to do it? please shed some light into it.
thanksHi,
Try this
<table>
<logic:iterate id="customerList" name="CustomerForm" property="customerItemList">
<tr>
<td><label><bean:write name="customerList" property="custName"></label></td>
<td><html:text name="customerList" property="custId"/></td>
</tr>
</logic:iterate>
</table>
or
<table>
<logic:iterate id="customerList" name="CustomerForm" property="customerItemList">
<tr>
<td><label><c:out value="${customerList.custName}"></label></td>
<td><input type="text" name="custId" value="${customerList.custId}"/></td>
</tr>
</logic:iterate>
</table> -
The only URL that I ever see in the location bar is the last one I typed there. No matter which tab I activate, the last typed URL is displayed. When I need to copy the URL of an active tab to paste into an email or something I can't see it.
The location bar used to display the URL of each active tab and you could simply click in the address field and the URL would be highlighted so you could edit/copy it or jump to the end of a very long URL to see the final file name.
I can't get this feature to work and I really need this feature as I need to copy URL's quite often. When I have multiple tabs active I sometimes forget which one is for which domain and need to see the URL. It is very annoying to surf blind.
Please help me with this issue as quickly as possible so I can once again do my work easily and with the firefox browser instead of chrome. :(A couple of possible causes.
The first is the file that stores details of browsing history and bookmarks is corrupt. For details on how to fix that see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
Another possible cause is an add-on interfering with the location bar. To test this, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Will these five UPDATE ROUTINE lines accomplish the stated requirement?
Hi,
In an attempt to assign a source date field to a BW target field, based on the condition sourceA1 = A or B, I modified the update routine as follows and a syntax check reveals no errors:
$$ begin of 2nd part global - insert your code only below this line *
Data: V_CCCC D.
$$ begin of routine - insert your code only below this line -
IF ( SOURCE_FIELDS- sourceA1 = '002' or
SOURCE_FIELDS- sourceA1 = '012' ).
RESULT = V_CCCC.
If SY-SUBRC NE 0 .
EndIf.
ENDIF.
i. Will the above routine meet the stated requirement?
ii. So as it is now, what happens if sourceA1 is not '002' or '012'
iii. Any reason why the check error dis not report u201CRESULTu201D as unknown although it was not declared?
iv. Is there a better way of writing that I have above?
ThanksHi,
Your code will accomplish what you are looking for. It will assign the value V_CCC if your sourceA1 field is 002 or 012. If sourceA1 is not 002 or 012, the result field will not be filled.
If you want to clean up your code, you can use the following:
IF SOURCE_FIELDS- sourceA1 = '002' or
SOURCE_FIELDS- sourceA1 = '012'.
RESULT = V_CCCC.
ENDIF.
i. Will the above routine meet the stated requirement?
>as I understand your requirement .... yes!
ii. So as it is now, what happens if sourceA1 is not '002' or '012'
>result will be 0 or space depending on the data type.
iii. Any reason why the check error dis not report u201CRESULTu201D as unknown although it was not declared?
>Result doesn't need to be declared by you, SAP does that for you already.
iv. Is there a better way of writing that I have above?
If this is going into an ODS, you will overwrite non-002/012 values with a space, so be careful. If sourceA1 is not part of the key, you could be overwriting data with nulls.
Brian -
How to display the fields using field catelog in ALV Report
Hi,
I have rquiremrnt in ALV report.I would need to add the new fileld in the ALV output screen.I have added the field but its appearing in the layout set but not directly displaying in the output screen.
I have written the below logic for field catelog.
CLEAR wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'LOGGR'.
wa_fieldcatalog-ref_tabname = 'MARC'.
wa_fieldcatalog-col_pos = l_pos.
wa_fieldcatalog-outputlen = 13.
wa_fieldcatalog-seltext_s = 'Log. group'.
wa_fieldcatalog-seltext_m = 'Logistics group'.
wa_fieldcatalog-seltext_l = 'Log. handling group'.
wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
APPEND wa_fieldcatalog TO it_fieldcatalog.
l_pos = l_pos + 1.
Please let me know why the added field was not displaying automaticaly in the output screen.
Regards,
Reddyhi,
try this
clear wa_fieldcatalog.
wa_fieldcat-tabname = 'ITAB' ( give the internal table which has the field LOGGR)
wa_fieldcatalog-fieldname = 'LOGGR'.
wa_fieldcatalog-ref_tabname = 'MARC'.
wa_fieldcatalog-col_pos = l_pos.
wa_fieldcatalog-outputlen = 13.
wa_fieldcatalog-seltext_s = 'Log. group'.
wa_fieldcatalog-seltext_m = 'Logistics group'.
wa_fieldcatalog-seltext_l = 'Log. handling group'.
wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
APPEND wa_fieldcatalog TO it_fieldcatalog.
l_pos = l_pos + 1. -
How to display the fields dynamically in OAF
Hi All,
I have developed a OAF Page and it has one table region and has 5 rows on it.One of the field on the table is Message Choice.
The requirement is,If I select "Parts" then Lov Field should be displayed and If I select "Services" then one text field should be appear on that perticular table row.
I have created a PPR on Message Choice and done the coding as follows,but it is not working;
Please help me to achive it.
if("lineChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String rowReference =pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OARow row = (OARow)am.findRowByRef(rowReference);
String claimCategory = (String)row.getAttribute("ClaimLineType");
if ("Parts".equals(claimCategory))
row.setAttribute("ClaimPartNoLovRender", Boolean.TRUE);
row.setAttribute("ClaimPartNoRender", Boolean.FALSE);
else
row.setAttribute("ClaimPartNoRender", Boolean.TRUE);
row.setAttribute("ClaimPartNoLovRender", Boolean.FALSE);
Please let me know if there are any other ways to achive the same.
Thanks in Advance..You might have the wrong forum. This forum is on IOP.
-
Regarding MV45AOZZ and MV45AIZZ, using these includes display the fields
Hi,
using the MV45AOZZ and MV45AIZZ includes i have to display some fields in display mode even in chage mode.
The requirement is to make certain fields display only. This would prevent certain users ( SPOC ) not to edit or change these fields without interacting with the OTS team.
SPOC users would go into orders in Change mode and make changes for manual allocation like changing the plants or the Schedule line dates.
Field which need to be in display mode in order change model
Bill to Address ,
Ship to address,
Pricing screens
Payment Terms
Freight terms -
how to do this ?? very urgent.. thanks in advanceDo as below:
1. Insert a module with pattern ZZ* in the PBO flow logic of the respective screen.
2. Create these modules in the programs you mentioned.
3. For disabling field in a screen, code shld be like:
loop at screen.
if screen-name = <screen fld>
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
Regards
Eswar -
ALV output problem in displaying the field lengths.( LONG_DES1 & LONG DES)
I have declared itab of ALV output like below...
Internal table for ALV report generation***********
DATA : Begin of pdet_otab_alv occurs 0,
bukrs LIKE bsid-bukrs, "Company code
postm(4), "Posting month (YYMM format)
xblnr LIKE bsid-xblnr, "Reference document number
kunnr LIKE bsid-kunnr, "Customer (Supplier Billing Customer)
name1 LIKE kna1-name1, "Name 1
buzei like bsid-buzei,
gjahr like bsid-gjahr,
filkd like bsid-filkd, "Rep Number
rname like kna1-name1, "Rep Name
belnr LIKE bsid-belnr, "Document number (invoice number)
blart LIKE bsid-blart, "Document type
zfbdt LIKE bsid-zfbdt, "Baseline date
zterm LIKE knb1-zterm, "Terms
netdt LIKE bsega-netdt,"Due date
sgtxt LIKE bsid-sgtxt, "Text
agerg TYPE t_agerg, "Age range of invoice
wrbtr LIKE bsid-wrbtr, "Original invoice amount
due LIKE bsid-wrbtr, "Amount outstanding on invoice
long_des(250) type c, " Long description
<b> long_des TYPE string,
long_des1 TYPE string,</b>
date_s(10) type c, " Date
short_des(20) type c, " Short Description
counter type i,
End of pdet_otab_alv.
And after filling the internal table fields ( fields 'LONG_DES1' & 'LONG_DES' from FM READ_TEXT 's longtext, which are of 265 chars each )
<b>'LONG_DES1' & 'LONG_DES' are trimmed in ALV out put WHY ?</b>
w_fieldcat-fieldname = 'LONG_DES1'.
w_fieldcat-tabname = 'PDEL_OTAB_ALV'.
w_fieldcat-ref_fieldname = 'SCRTEXT_L'.
w_fieldcat-ref_tabname = 'DD03P'.
w_fieldcat-seltext_l = 'Original Note'.
w_fieldcat-col_pos = 17.
APPEND w_fieldcat TO fieldcat.
CLEAR w_fieldcat.
w_fieldcat-fieldname = 'LONG_DES'.
w_fieldcat-tabname = 'PDEL_OTAB_ALV'.
w_fieldcat-ref_fieldname = 'SCRTEXT_L'.
w_fieldcat-ref_tabname = 'DD03P'.
w_fieldcat-seltext_l = 'Latest Note'.
w_fieldcat-col_pos = 18.
APPEND w_fieldcat TO fieldcat.
CLEAR w_fieldcat.
<b>next part i.e., before passing fieldcat.... I have filled s_layout like below.</b>
<b> s_layout-max_linesize = 1000.
s_layout-colwidth_optimize = 'X'.</b>
Call the following function to display output in ALV form
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZFRSBOI0'
is_layout = s_layout
it_fieldcat = fieldcat
it_events = p_events[]
it_sort = p_it_sort[]
i_save = 'A'
TABLES
t_outtab = pdet_otab_alv1
EXCEPTIONS
program_error = 1
OTHERS = 2.
If the function call is not successful, raise error message
and come out from the program
IF sy-subrc <> 0.
message e000(00) with
'Unable to display report'(e01).
exit.
ENDIF.some body suggested me....we can display full length of text by below coding ?
Is that not correct - just asking....
s_layout-max_linesize = 1000.
s_layout-colwidth_optimize = 'X'.
Call the following function to display output in ALV form
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZFRSBOI0'
is_layout = s_layout
it_fieldcat = fieldcat
it_events = p_events[]
it_sort = p_it_sort[]
i_save = 'A'
TABLES
t_outtab = pdet_otab_alv1
EXCEPTIONS
program_error = 1
OTHERS = 2.
If the function call is not successful, raise error message
and come out from the program
IF sy-subrc <> 0.
message e000(00) with
'Unable to display report'(e01).
exit.
ENDIF. -
How to display the fields,chkbox and a button
Hi All,
Here is the screen shot I may .
Can anyone let me know the code to display a chkbox, button, textfield and a Jlabel fields on the screen in swing.
Thanks
SmiMinimalist exampleimport java.awt.*;
import javax.swing.*;
public MyFrame extends JFrame {
private JLabel label;
private JButton button;
private JTextArea textArea;
public MyFrame() {
super("frame");
label = new JLabel("label");
button = new JButton("button");
textArea = new JTextArea(10,10);
Container container = getContentPane();
container.add(label, BorderLayout.NORTH);
container.add(textArea, BorderLayout.CENTER);
container.add(button, BorderLayout.SOUTH);
pack();
setVisible(true);
public static void main(String[] argv) {
new MyFrame();
}
Maybe you are looking for
-
My palm m105's touch screen doesn't work properly after a sync.
I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here. Now, I plug it into my old computer which st
-
Hyperlink in Excel to a file on network drive not working
In Excel 2010 I created a hyperlink to a word doucment located on our network server. When I click on the link in Excel in only opens up the main folder not even the sub-folder where the document is located in. I can't figure out why it won't open
-
Little problem with rename view
Hej, I've been having a problem an small problem with this... so far i'm changing the position of the tree of and Active Directory account... the major problem is that if i move this account 3 times the accountId fot that resurce is still the origina
-
Including both the Jquery script to calculate the total of calculated column and freeze header row
Hi I managed to get this code from here, http://techtrainingnotes.blogspot.in/2013/03/freezing-title-row-of-sharepoint-2010.html done on the page I also managed to get this code from here, http://www.sharepointed.com/2012/11/28/jquery-total-calculat
-
Hello all, I have been plagued with DB inconsistencies. I have read everything I can to solve this. I was successful by removing all Projects, adding them one at a time and rebuilding after each project was put back into the library. I was finally co