How to dispaly abap output in bsp
hi experts
can u say me how to display the output from abap in bsp.
there is an report which gives employee details , output is shown using write statement in report . i need the to call this ouput in bsp.
Dear Pradeep,
The same thing I alo have worked with.
Follow the thing which is refered below.
In ONINPUTPROCESSING event handler
have the below code where ZERRS is the name of the report.
submit zerrs with selection-table seltab and return
exporting list to memory.
import int_result to it_bsp from memory id 'ZERRS'.
In TYPEDEFINITIONS
have your own data type.
types: BEGIN OF int_result ,
( VARIABLES),
END OF int_result.
types: mytab type standard table of int_result.
In PAGEATTRIBUTES
it_BSP TYPE MYTAB
In LAYOUT
you design the page according to the variable present.
Reward points if it is helpful.
Gokul.
Similar Messages
-
How to convert abap output/excel output to pie charts
Hi.......
I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
Points wud be surely rewarded.............Thank in AdvanceTry demo sample program GFW_PROG_PIE
ot t_code GRAL to find such programs.
In addition to this please also check the chart engine (cl_gui_chart_engine).
You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS. -
How to convert Abap output/excel output into pie charts
Hi.......
I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
Points wud be surely rewarded.............Thank in AdvanceHi Younus Khan,
sample code to load output to excel sheet.
Use function module GUI_UPLOAD
The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\test.csv'
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
or,
U can use the FM
SAP_CONVERT_TO_XLS_FORMAT
to convert itab data to excel
check this FM also
GUI_DOWNLOAD
And, for converting into xml format. I did it in ecc6.0
*& Report ZTESTSDN
REPORT ztestsdn.
TABLES: vekp,
likp,
vbak.
TYPE-POOLS: ixml.
DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
TYPES: BEGIN OF my_xml ,
data(256) TYPE x,
END OF my_xml.
DATA: xml_table TYPE TABLE OF my_xml.
DATA: l_xml_size TYPE i,
ld_fullpath TYPE string.
START-OF-SELECTION.
SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ','
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME =
IMPORTING
pe_bin_filesize = l_xml_size
TABLES
i_tab_sap_data = itab
CHANGING
i_tab_converted_data = xml_table
EXCEPTIONS
CONVERSION_FAILED = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = l_xml_size
filename = 'C:\test.txt'
filetype = 'BIN'
IMPORTING
filelength = l_xml_size
TABLES
data_tab = xml_table
FIELDNAMES =
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
You can go use ADOBE AIR for developing the pie chart widget...
kindly reward if found helpful.
cheers,
Hema. -
How to generate the output of BSP application in PDF format?
Hi,
I need to modify one BSP application, which generates its output in the form of PDF. I have checked all the methods in the bsp pages and its corresponding controller class's. I couldn't find any relevant method, which deals with generating the output in PDF.
Could you please share your valuable thoughts on this?
Again it would be helpful, If anyone of you share some knowledge on Interactive Adobe Forms.
Thanks,
Johnokay, awesome
i'd use DOM or some high level API for this (don't write it by hand using plain File IO)
okay, try this site, it goes through building a document, adding elements, writing to file, etc.
http://www.roseindia.net/xml/dom/ -
How to call a abap report in BSP
hi all,
Please can anybody tell me how to call abap report in BSP..
with regards,
Santosh.Also see below BSP tutorial
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
Regards. -
How to Download displayed output to Excel Using Bsp Application
Hi Experts,
please give me some idea because I am New In BSP.
How to Download displayed output to Excel Using Bsp Application.
If any sample code please do send me.
In my condition I am getting data in 2-3 table view formats on one page and i want download that in Excel.
please help me.
Regards & Thanks,
YogeshHi,
This is more a question for the BSP forum.
Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
runtime->server->response->set_header_field( name = 'Contnet-Type'
value = 'application/vnd.ms-excel' ).
runtime->server->response->delete_header_field( name = 'Cache-Control' ).
runtime->server->response->delete_header_field( name = 'Expires' ).
runtime->server->response->delete_header_field( name = 'Pragma' ).
Also check threads like
Download BSP data into Excel
export bsp-table to excel
Export BSP Table to Excel
Eddy
PS. Reward useful answers and earn points yourself -
How to call an abap report in BSP..
hi all,
Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
with regards,
Santoshcheck this thread
Urgent!! How to call a custom transaction or an ABAP program in BSP? -
How to assign an output type to a document via ABAP
Hello Guru's
I have an interface with a 3rd party system to send information from deliveries. When a delivery is created, we trigger output with 'Post goods issue' and output triggers the interface.
We need to also trigger output with 'reverse goods issue' and here is the problem. When GI is cancelled I don't know how to trigger the interface having the control from Sales not from MM.
I'm thinking to use the same approach assigning an output to the delivery in a user-exit of GI cancellation process. But I don't know how to assign this output to a delivery document using ABAP. I have looked for BAPI's or Functions but no successful.
- Do you know how to assign outputs to documents via ABAP?
- Do you have any other idea to trigger the interface when GI is cancelled?
Thank you in advance,
ManuelHi,
Guess u need to maintain it in SPAD transaction.
Cheers
VJ -
Urgent!! How to call a custom transaction or an ABAP program in BSP?
Urgent!! How to call a custom transaction or an ABAP program in BSP?
We are pretty new on BSP. Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program. Would we have to create a button or event handler to do that? And the detailed steps?
Thanks in advance and we will definately give you reward points!hi Durairaj,
During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
<td>
<htmlb:inputField id = "client"
value = "<%= client %>" />
</td>
Then we added Client to the page attribute and define it as type String, then get another error:
The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
OnInputProcessing:
code
event handler for checking and processing user input and
for defining navigation
event handler for data retrieval
event = cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP? -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF -
How to display smartform output?
Hi,
Can anybody give me some hint on how to display a smartform output containing tables and texts in a bsp?? I have searched the forum but since I am new to bsp,I am not finding a caompact solution by following which I can get the idea. Please help..Hi,
Check this link [Smartform PDF output in BSP|Smartform PDF output in BSP;
Hope this helps you.
Regards,
Rajani -
How to call Java API from BSP?
I have a requirement to call Java API from BSP application.
I have checked the forum and found that it is possible by using some ABAP codes.
However there is no pointer on how this is done.
Can someone explain the details on how to call Java API from BSP is done?
I found class CL_EJB_JAVA_OBJECT_METHODS to call a method in EJB but can't find function or SAP class to call Java API.
Actually is there any BSP extention which can used to call Java API?
Thanks,
Hendricheck out these weblogs, it should give you an idea how to go about it.
/people/ignacio.hernndez/blog/2006/12/04/speech-synthesis-listen-the-application-server-is-talking-to-you
/people/puru.govind/blog/2006/12/20/let-abap-speak
Regards
Raja -
How do I seperate code in BSP ?
Hi,
How do I seperate code in BSP ?
(I do not want to make classes or "external" FM.)
In abap I can use the form-statement.
form ShowConfirmedPO.
endform
//MartinHi Martin,
I am a little bit curious. Why you don't want to create any classes/FMs? Believe me if you want to write complex bsp applications which are easily maintainable, extendable and have a good testability you should always use MVC and MVC needs classes. You have all the cool tools available use them
And regarding your question I don't think there is another way to structure your code when you don't want to use classes.
regards
Thomas -
How to dispaly two dicimal points
How to dispaly two dicimal points in java (Example 1) 5.70 Example 2) 561 but it should display as 561.00)
Example1) Here I am able to display 5.7 but it should display as 5.70
Example 2) Here I am able to display 561 but it should display as 561.00
Following is the code I wrote
package oracle.apps.ont.margin.server;
import java.text.NumberFormat;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAViewRowImpl;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
public class GetOrderLineDetailsVORowImpl extends OAViewRowImpl
public GetOrderLineDetailsVORowImpl()
mDECIMAL_PLACES = 2;
public Number getHeaderId()
return (Number)getAttributeInternal(0);
public void setHeaderId(Number value)
setAttributeInternal(0, value);
public Number getLineId()
return (Number)getAttributeInternal(1);
public void setLineId(Number value)
setAttributeInternal(1, value);
public Number getLineTypeId()
return (Number)getAttributeInternal(2);
public void setLineTypeId(Number value)
setAttributeInternal(2, value);
public String getLineNumber()
return (String)getAttributeInternal(3);
public void setLineNumber(String value)
setAttributeInternal(3, value);
public String getOrderedItem()
return (String)getAttributeInternal(4);
public void setOrderedItem(String value)
setAttributeInternal(4, value);
public String getOrderQuantityUom()
return (String)getAttributeInternal(5);
public void setOrderQuantityUom(String value)
setAttributeInternal(5, value);
public Number getPricingQuantity()
return (Number)getAttributeInternal(6);
public void setPricingQuantity(Number value)
setAttributeInternal(6, value);
public String getPricingQuantityUom()
return (String)getAttributeInternal(7);
public void setPricingQuantityUom(String value)
setAttributeInternal(7, value);
public Number getOrderedQuantity()
return (Number)getAttributeInternal(8);
public void setOrderedQuantity(Number value)
setAttributeInternal(8, value);
public Number getUnitSellingPrice()
return (Number)getAttributeInternal(9);
public void setUnitSellingPrice(Number value)
setAttributeInternal(9, value);
public Number getUnitListPrice()
return (Number)getAttributeInternal(10);
public void setUnitListPrice(Number value)
setAttributeInternal(10, value);
public String getItemTypeCode()
return (String)getAttributeInternal(11);
public void setItemTypeCode(String value)
setAttributeInternal(11, value);
public String getLineCategoryCode()
return (String)getAttributeInternal(12);
public void setLineCategoryCode(String value)
setAttributeInternal(12, value);
public String getItemIdentifierType()
return (String)getAttributeInternal(13);
public void setItemIdentifierType(String value)
setAttributeInternal(13, value);
public Number getUnitCost()
return (Number)getAttributeInternal(14);
public void setUnitCost(Number value)
setAttributeInternal(14, value);
public Number getRebate()
return (Number)getAttributeInternal(15);
public void setRebate(Number value)
setAttributeInternal(15, value);
public Number getDiscount()
Number vUnitListPrice = getUnitListPrice();
if(vUnitListPrice == null)
vUnitListPrice = new Number(0);
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
double discount = (vUnitListPrice.doubleValue() - vUnitSellingPrice.doubleValue()) + vRebate.doubleValue();
if(discount < (double)0)
discount = 0.0D;
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(discount)));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setDiscount(Number value)
setAttributeInternal(16, value);
public Number getMargin()
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
Number vUnitCost = getUnitCost();
if(vUnitCost == null)
vUnitCost = new Number(0);
try
Number vMargin = new Number((vUnitSellingPrice.doubleValue() + vRebate.doubleValue()) - vUnitCost.doubleValue());
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
Number number = new Number(form.parse(form.format(vMargin.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setMargin(Number value)
setAttributeInternal(17, value);
public Number getExtendedListPrice()
if(getUnitListPrice() != null && getPricingQuantity() != null)
return getUnitListPrice().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedListPrice(Number value)
setAttributeInternal(18, value);
public Number getExtendedDiscount()
if(getDiscount() != null && getPricingQuantity() != null)
return getDiscount().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedDiscount(Number value)
setAttributeInternal(19, value);
public Number getExtendedRebate()
if(getPricingQuantity() != null && getRebate() != null)
return getPricingQuantity().multiply(getRebate());
else
return new Number(0);
public void setExtendedRebate(Number value)
setAttributeInternal(20, value);
public Number getExtendedSellingPrice()
if(getUnitSellingPrice() != null && getPricingQuantity() != null)
return getUnitSellingPrice().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedSellingPrice(Number value)
setAttributeInternal(21, value);
public Number getExtendedCost()
if(getUnitCost() != null && getPricingQuantity() != null)
return getUnitCost().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedCost(Number value)
setAttributeInternal(22, value);
public Number getExtendedMargin()
if(getPricingQuantity() != null && getTempMargin() != null)
try
Number vMargin = getTempMargin().multiply(getPricingQuantity());
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
Number number = new Number(form.parse(form.format(vMargin.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
else
return new Number(0);
public void setExtendedMargin(Number value)
setAttributeInternal(23, value);
public Number getMarginPercent()
double vMarginAmount = 0.0D;
vMarginAmount = getUnitSellingPrice().doubleValue();
if(vMarginAmount == (double)0)
return new Number(100);
vMarginAmount = (getMargin().doubleValue() * (double)100) / vMarginAmount;
Number marginPercent = null;
try
marginPercent = new Number(vMarginAmount);
catch(Exception e)
e.printStackTrace();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(marginPercent.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setMarginPercent(Number value)
setAttributeInternal(24, value);
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)
throws Exception
switch(index)
case 0: // '\0'
return getHeaderId();
case 1: // '\001'
return getLineId();
case 2: // '\002'
return getLineTypeId();
case 3: // '\003'
return getLineNumber();
case 4: // '\004'
return getOrderedItem();
case 5: // '\005'
return getOrderQuantityUom();
case 6: // '\006'
return getPricingQuantity();
case 7: // '\007'
return getPricingQuantityUom();
case 8: // '\b'
return getOrderedQuantity();
case 9: // '\t'
return getUnitSellingPrice();
case 10: // '\n'
return getUnitListPrice();
case 11: // '\013'
return getItemTypeCode();
case 12: // '\f'
return getLineCategoryCode();
case 13: // '\r'
return getItemIdentifierType();
case 14: // '\016'
return getUnitCost();
case 15: // '\017'
return getRebate();
case 16: // '\020'
return getDiscount();
case 17: // '\021'
return getMargin();
case 18: // '\022'
return getExtendedListPrice();
case 19: // '\023'
return getExtendedDiscount();
case 20: // '\024'
return getExtendedRebate();
case 21: // '\025'
return getExtendedSellingPrice();
case 22: // '\026'
return getExtendedCost();
case 23: // '\027'
return getExtendedMargin();
case 24: // '\030'
return getMarginPercent();
case 25: // '\031'
return getExtendedMarginPercent();
case 26: // '\032'
return getTempMargin();
return super.getAttrInvokeAccessor(index, attrDef);
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
throws Exception
switch(index)
case 0: // '\0'
setHeaderId((Number)value);
return;
case 1: // '\001'
setLineId((Number)value);
return;
case 2: // '\002'
setLineTypeId((Number)value);
return;
case 3: // '\003'
setLineNumber((String)value);
return;
case 4: // '\004'
setOrderedItem((String)value);
return;
case 5: // '\005'
setOrderQuantityUom((String)value);
return;
case 6: // '\006'
setPricingQuantity((Number)value);
return;
case 7: // '\007'
setPricingQuantityUom((String)value);
return;
case 8: // '\b'
setOrderedQuantity((Number)value);
return;
case 9: // '\t'
setUnitSellingPrice((Number)value);
return;
case 10: // '\n'
setUnitListPrice((Number)value);
return;
case 11: // '\013'
setItemTypeCode((String)value);
return;
case 12: // '\f'
setLineCategoryCode((String)value);
return;
case 13: // '\r'
setItemIdentifierType((String)value);
return;
case 14: // '\016'
setUnitCost((Number)value);
return;
case 15: // '\017'
setRebate((Number)value);
return;
case 16: // '\020'
setDiscount((Number)value);
return;
case 17: // '\021'
setMargin((Number)value);
return;
case 18: // '\022'
setExtendedListPrice((Number)value);
return;
case 19: // '\023'
setExtendedDiscount((Number)value);
return;
case 20: // '\024'
setExtendedRebate((Number)value);
return;
case 21: // '\025'
setExtendedSellingPrice((Number)value);
return;
case 22: // '\026'
setExtendedCost((Number)value);
return;
case 23: // '\027'
setExtendedMargin((Number)value);
return;
case 24: // '\030'
setMarginPercent((Number)value);
return;
case 25: // '\031'
setExtendedMarginPercent((Number)value);
return;
case 26: // '\032'
setTempMargin((Number)value);
return;
super.setAttrInvokeAccessor(index, value, attrDef);
public Number getExtendedMarginPercent()
double vMarginAmount = 0.0D;
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
vMarginAmount = vUnitSellingPrice.doubleValue() + vRebate.doubleValue();
if(vMarginAmount == (double)0)
return new Number(100);
Number vMargin = getMargin();
if(vMargin == null)
vMargin = new Number(0);
vMarginAmount = (vMargin.doubleValue() * (double)100) / vMarginAmount;
Number marginPercent = null;
try
marginPercent = new Number(vMarginAmount);
catch(Exception e)
e.printStackTrace();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(marginPercent.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setExtendedMarginPercent(Number value)
setAttributeInternal(25, value);
public Number getTempMargin()
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
Number vUnitCost = getUnitCost();
if(vUnitCost == null)
vUnitCost = new Number(0);
try
Number vTempMargin = new Number((vUnitSellingPrice.doubleValue() + vRebate.doubleValue()) - vUnitCost.doubleValue());
Number number = vTempMargin;
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setTempMargin(Number value)
setAttributeInternal(26, value);
protected static final int HEADERID = 0;
protected static final int LINEID = 1;
protected static final int LINETYPEID = 2;
protected static final int LINENUMBER = 3;
protected static final int ORDEREDITEM = 4;
protected static final int ORDERQUANTITYUOM = 5;
protected static final int PRICINGQUANTITY = 6;
protected static final int PRICINGQUANTITYUOM = 7;
protected static final int ORDEREDQUANTITY = 8;
protected static final int UNITSELLINGPRICE = 9;
protected static final int UNITLISTPRICE = 10;
protected static final int ITEMTYPECODE = 11;
protected static final int LINECATEGORYCODE = 12;
protected static final int ITEMIDENTIFIERTYPE = 13;
protected static final int UNITCOST = 14;
protected static final int REBATE = 15;
protected static final int DISCOUNT = 16;
protected static final int MARGIN = 17;
protected static final int EXTENDEDLISTPRICE = 18;
protected static final int EXTENDEDDISCOUNT = 19;
protected static final int EXTENDEDREBATE = 20;
protected static final int EXTENDEDSELLINGPRICE = 21;
protected static final int EXTENDEDCOST = 22;
protected static final int EXTENDEDMARGIN = 23;
protected static final int MARGINPERCENT = 24;
protected static final int EXTENDEDMARGINPERCENT = 25;
protected static final int TEMPMARGIN = 26;
int mDECIMAL_PLACES;
package oracle.apps.ont.margin.server;
import java.text.NumberFormat;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.jbo.ViewLink;
import oracle.jbo.domain.Number;
import oracle.jbo.server.ApplicationModuleImpl;
import oracle.jbo.server.ViewLinkImpl;
// Referenced classes of package oracle.apps.ont.margin.server:
// GetOrderLineDetailsVOImpl, GetOrderLineDetailsVORowImpl, GetOrderHeadersVOImpl
public class MaintainOrdersAMImpl extends OAApplicationModuleImpl
public MaintainOrdersAMImpl()
mDECIMAL_PLACES = 2;
public String computeMarginPercent()
double dTotalSellPrice = 0.0D;
double dTotalRebate = 0.0D;
double dTotalMargin = 0.0D;
GetOrderLineDetailsVORowImpl orderlineRow = null;
GetOrderLineDetailsVOImpl orderVO = (GetOrderLineDetailsVOImpl)findViewObject("GetOrderLineDetailsVO");
orderVO.reset();
while(orderVO.hasNext())
orderlineRow = (GetOrderLineDetailsVORowImpl)orderVO.next();
dTotalSellPrice += orderlineRow.getExtendedSellingPrice().doubleValue();
dTotalRebate += orderlineRow.getExtendedRebate().doubleValue();
dTotalMargin += orderlineRow.getExtendedMargin().doubleValue();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
return form.format((dTotalMargin * 100D) / dTotalSellPrice);
public void getContextInfo(String pHeaderId)
GetOrderHeadersVOImpl orderVO = (GetOrderHeadersVOImpl)findViewObject("GetOrderHeadersVO");
if(orderVO != null)
try
Number numHeaderId = new Number(pHeaderId);
orderVO.initQuery(numHeaderId);
orderVO.reset();
orderVO.next();
oracle.jbo.Row ro = orderVO.getCurrentRow();
if(ro != null)
GetOrderLineDetailsVOImpl linesVO = (GetOrderLineDetailsVOImpl)findViewLink("HeaderToLinesVL1").getDestination();
if(linesVO != null)
linesVO.first();
catch(Exception exception) { }
public GetOrderHeadersVOImpl getGetOrderHeadersVO()
return (GetOrderHeadersVOImpl)findViewObject("GetOrderHeadersVO");
public GetOrderLineDetailsVOImpl getGetOrderLineDetailsVO()
return (GetOrderLineDetailsVOImpl)findViewObject("GetOrderLineDetailsVO");
public ViewLinkImpl getHeaderToLinesVL1()
return (ViewLinkImpl)findViewLink("HeaderToLinesVL1");
public static void main(String args[])
ApplicationModuleImpl.launchTester("oracle.apps.ont.margin.server", "MaintainOrdersAMLocal");
int mDECIMAL_PLACES;
Please help me in this regard.
Thanks in advance.hi,
With this code u can show 451 as 451.0
see my it will help u.
import java.util.*;
import java.text.*;
public class DecimalFormatDemo {
static public void customFormat(String pattern, double value ) {
DecimalFormat myFormatter = new DecimalFormat(pattern);
String output = myFormatter.format(value);
System.out.println(value + " " + pattern + " " + output);
static public void main(String[] args) {
customFormat("######.##", 123456);
} -
how we create abap query can any1 tell me?
Reporting tool :Standard reports
Purpose :Provide solutions for your most frequent reporting requirements
Advantages :Can be used immediately
No developments required
Limitations :Limited flexibility
Output fields cannot be selected as required
HIS
Purpose :Hierarchies are displayed as graphics
Reports are executed using selected structures or substructures, that is, using preselected sets of objects
Advantages :User-friendly method of displaying hierarchical structures
Integration with InfoSet Query and standard reports
No need to switch from one HR application to another if you want to execute reports from different applications
Little training required
Limitations : Limited flexibility
Tool is used to execute standard reports and customer reports
It cannot be used to create reports
InfoSet Query
Purpose :Intuitive, general SAP reporting tool used to create customer reports
Enables you to create reports for all areas of HR
When InfoSet Query is accessed from Human Resources (HR), the Query area and User group parameters already contain values and you can only perform ad hoc reporting. If InfoSet Query is accessed this way, it is called Ad Hoc Query in HR (see HR in InfoSet Query).
Advantages :User-friendly interface
Very easy to use
No programming required
If integrated with SAP Query, you can continue processing queries using SAP Query
Set operations enable you to create sets of objects as required for which data must be output
Can be included in roles using a suitable InfoSet
Limitations :InfoSets and user groups must be defined in SAP Query before you can use InfoSet Query
Multiline lists cannot be displayed
SAP Query
Purpose :General SAP reporting tool used to create customer reports
Individual definition of user groups, InfoSets, and queries
Advantages :Extremely flexible
No programming required
Queries can be provided in the SAP Easy Access menu
Includes numerous options for aggregating data, performing calculations, and displaying graphics
Enables you to display multiline lists
Enables you to define one basic list and several statistics and ranked lists for each query
Limitations :Restricted to data from the R/3 System
Each HR query can process data from just one HR logical database:
PNP: Administration, Time Management, and Payroll
PCH: Generally for all areas, but particularly suitable for reporting on data from Personnel Planning
PAP: Recruitment
Requires much more training than other options
Limitations:Data is extracted from OLTP systems, that is, real-time data is not accessed
Business Information Warehouse
Purpose :Analytical reporting tool used for information and decision-making purposes
Advantages : Extremely flexible
Facilitates complex calculations (calculation of averages, time series comparisons)
Enables you to access non-SAP data
Easy to use
Uses OLAP technology
Includes detailed Business Content (HR extractors, InfoCubes, key figures, and standard queries
i think it is adhoc query not abap query
Maybe you are looking for
-
How do I find what OS x version I have?
I'm new to macs and I want to know more about the computer my mother gave me :-)
-
How do I get my security questions. I cant remember my answers.
How do i reset my security questions, they keep coming up wrong
-
DVDs not showing up correctly on desktop
I have a friend who is having this problem and I tried to help last night: DVDs that are authored in DVD Studio Pro or iDVD will show up on the desktop as DVDs with the round DVD icon w/DVD logo on the icon. DVDs that are recorded on a set top Sony D
-
AirPort Utility can't see either AEBS or AirPort Express using either comp.
I have an AirPort Extreme Base Station (AEBS) and an AirPort Express (APE). The dsl connects to the AEBS via ethernet (in the first slot), and the AEBS connects to the desktop via ethernet (in the second slot; it has no AirPort card). The PowerBook (
-
Hi Gurus, When I tried to start a periodic accrual run (Tcode ACACACT), I gave the key date and executed the program. However, I got an error saying that "No accrual run supported in company code 9010 on 01/01/2010". I get the same error message no