Need to add Header condition
HI All,
Good Morning!!
I have one requirement ,wherein my client is asking to put $50 at header level inspite of how many items are there in order.
This Fine should not be distributed among items of the order.
For ex:-
Item 1- 100
Item 2- 200
Total Value- 300 +50(Fine)
Total value Header = 350
Please do the needful.
Thanks,
Vaibhav
Hi,
Go to SPRO
In condition type setup, tick 'header condit'.
In your SO, the condition type should be appeared on header only.
Hope my solution can help you.
Thanks.
Similar Messages
-
Need to add Header and footer in an alv grid display output.
How can I add header and footer in an alv grid dispay output.
For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".HI,
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
DATA: ls_text TYPE sdydo_text_element,
l_grid TYPE REF TO cl_gui_alv_grid,
f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
ls_text = 'Footer title'.
adds and icon (red triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IL'.
adds test (via variable)
CALL METHOD end->add_text
EXPORTING
text = ls_text
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Bold text'
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Nor'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Yellow '
sap_emphasis = 'str'.
adds and icon (yellow triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IC''.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Mor'.
*set height of this section
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
CALL METHOD l_grid->parent->parent->(f)
EXPORTING
id = 3
height = 14.
ENDFORM. "end_of_list_html.
This will solve it. Post if you need more help in this.
Regards,
Madhu. -
Need to add new condition type using BAPI_SALESORDER_CHANGE
Hi all,
I am using BAPI_SALESORDER_CHANGE to add new condition type for an order item.
I am able to add it, but problem here is, that i want that condition type to be manually changable. Here, in BAPI, after execution, condition type field becomes disable.
My code is as follows:
MOVE 'B' TO wa_logic-pricing.
MOVE 'X' TO wa_logic-cond_handl.
wa_cond-itm_number = wa_vbap-posnr.
* wa_cond-cond_st_no = it_konv1-stunr.
* wa_cond-cond_count = it_konv1-zaehk.
wa_cond-cond_type = it_discount-kschl.
wa_cond-CONDORIGIN = 'C'.
APPEND wa_cond TO i_cond.
CLEAR: wa_cond.
wa_condx-itm_number = wa_vbap-posnr.
* wa_condx-cond_st_no = it_konv1-stunr.
* wa_condx-cond_count = it_konv1-zaehk.
wa_condx-cond_type = it_discount-kschl.
wa_condx-updateflag = 'I'.
wa_condx-COND_VALUE = 'X'.
APPEND wa_condx TO i_condx.
CLEAR: wa_condx.
FORM f_update_order .
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesdocument
order_header_in = wa_headerdata
order_header_inx = wa_headerdatax
logic_switch = wa_logic
TABLES
return = it_return
order_item_in = i_itemdata
order_item_inx = i_itemdatax
conditions_in = i_cond
conditions_inx = i_condx.
IF NOT it_return[] IS INITIAL.
PERFORM f_commit_or_rollback.
ENDIF.
ENDFORM.
Please let me know, if it could be achievable.
Best regards,
Meena
Moderator Message: Corrected the code tags. You need to use flower brackets.
Edited by: kishan P on Aug 25, 2010 6:04 PMHi,
This is the demo code i am writing:
Even Change manual entry field in BAPI did not helped me.
[code]REPORT ZTESTM1.
data: l_knumv type knumv.
DATA: it_return TYPE STANDARD TABLE OF bapiret2, "Internal table for t_txt_ret
wa_return type bapiret2.
data: begin of it_konv occurs 0.
include structure konv.
data: end of it_konv.
data: logic_switch type standard table of BAPISDLS,
wa_logic type BAPISDLS.
data:itemdata type STANDARD TABLE OF BAPISDITM,
wa_item type BAPISDITM.
data : salesorder type BAPIVBELN-VBELN.
data:itemdatax type STANDARD TABLE OF BAPISDITMx,
wa_itemx type BAPISDITMx.
data: wa_header type BAPISDH1,
wa_headerx type BAPISDH1X.
data: i_cond type STANDARD TABLE OF BAPICOND,
wa_cond type BAPICOND.
data: i_condx type STANDARD TABLE OF BAPICONDX,
wa_condx type BAPICONDX.
move '0060008601' to salesorder.
move '000010' TO wa_item-itm_number.
append wa_item to itemdata.
move ' ' to wa_header-BILL_BLOCK.
move 'U' to wa_headerx-UPDATEFLAG.
move 'X' to wa_headerx-BILL_BLOCK.
MOVE: 'U' to wa_itemx-UPDATEFLAG,
'000010' TO wa_itemx-itm_number.
append wa_itemx to itemdatax.
move 'B' to wa_logic-PRICING.
move 'X' to wa_logic-COND_HANDL.
select single knumv from vbak into l_knumv where vbeln = '0060008601' .
select * from konv into table it_konv where knumv = l_knumv and kposn = '000010'.
wa_cond-ITM_NUMBER = it_konv-kposn.
wa_cond-cond_type = 'Z550'.
wa_cond-CONDCHAMAN = 'X'.
append wa_cond to i_cond.
clear: wa_cond.
wa_condx-ITM_NUMBER = it_konv-kposn.
wa_condx-COND_TYPE = 'Z550'.
wa_condx-UPDATEFLAG = 'L'.
append wa_condx to i_condx.
clear: wa_condx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesorder
ORDER_HEADER_IN = wa_header
order_header_inx = wa_headerx
LOGIC_SWITCH = wa_logic
tables
return = it_return
ORDER_ITEM_IN = itemdata
ORDER_ITEM_INX = itemdatax
CONDITIONS_IN = i_cond
CONDITIONS_INX = i_condx
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.[code]
Thank you.
Meena -
Need to add OR condition in cmis query
I am trying to retrieve some documents using the cmis query based on a condition where I need to specify the collection Id.To be more clear I have a folder outer within with which I have three subfolders first , second and third , I have a search condition where I need to query all the three subfolders here and bring me the results , but as soon as I start giving the collection ID of the outer most folder It searches only for that folder and does not recursively search the subfolders , So in my query I am trying to add the collection ids of the subfolder in OR condition but i get the error that OR is not a valid operand , AND , ORDER is expected .
Can any one help me to find if we can write queries with OR condition in UCM?Hi ,
Thanks for the reply. I am pasting the query below along with the error mesg.
SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xCollectionID = '888438448042000024' OR ora:p:xCollectionID = '888438448042000025' OR ora:p:xCollectionID = '888438448042000026' OR ora:p:xCollectionID = '888438448042000027' OR ora:p:xCollectionID = '888438448042000028' OR ora:p:xCollectionID = '888438448042000029' OR ora:p:xCollectionID = '888438448042000217'
Caused by: oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException: oracle.webcenter.content.integration.cmis.query.ParseException: Encountered " "OR" "OR "" at line 1, column 134.
Was expecting one of:
<EOF>
"AND" ...
"ORDER" ...
at oracle.webcenter.doclib.internal.model.presenter.conf.QueryStringDatasource.toSearch(QueryStringDatasource.java:124)
at oracle.webcenter.doclib.internal.model.presenter.conf.PresenterDatasource.validate(PresenterDatasource.java:321)
... 90 more
Caused by: oracle.webcenter.content.integration.cmis.query.ParseException: Encountered " "OR" "OR "" at line 1, column 134.
Was expecting one of:
<EOF>
"AND" ...
"ORDER" ...
at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.generateParseException(CmisQueryParser.java:1288)
at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.jj_consume_token(CmisQueryParser.java:1170)
at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.cmisQuery(CmisQueryParser.java:80)
at oracle.webcenter.content.integration.cmis.query.CmisQueryParser.parseQuery(CmisQueryParser.java:34)
at oracle.webcenter.content.integration.cmis.query.CmisSearch.getInstance(CmisSearch.java:61)
at oracle.webcenter.doclib.internal.model.presenter.conf.QueryStringDatasource.toSearch(QueryStringDatasource.java:116)
... 91 more
<AbstractPresenterBean> <getConfiguration()> Jan 14, 2013 7:53:18 PM oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException asError
ALL: Query expression must be a valid, non-empty expression.
oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException: Jan 14, 2013 7:53:18 PM oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException asError
ALL: Query expression must be a valid, non-empty expression.
I also tried using the 'in clause' like xcollectionId in (<collectionId>,<collectionId>) but still had issues. -
I need to add header in the WAD
Hi All,
I have a requirement of adding header in WAD/Bex,were there are 8 Columns to be displayed in the report as below
Response time Resolution Time
Min
Max
Average
SD
Min
Max
Average
SD
Were in Respone time time and Resolution time are Key figures.
Min,Max,Average,Standard Deviation(SD)are calculated Keyfigures in Bex query designer.
Now I have displayed each of these 8 columns as Min of Respone time | Max of Response time and so which needs to scroll to right a lot users wants the header to be diplayed as above example.
Can please anyone guide me on this,is it possible in WAD or Bex?
Thanks in advance
Preethi.Hi Preethimanj,
We can acheive this through BEx and WAD combination.
1. We need to creat two queries with different set of CKF.. one is for Response time and other is for Resoultion time.
2. In WAD use the web item TABLE with two rows and two columns., on the first row keep the headings Response time and Resolution time then on the second row keep the two queries Response time and Resoultion time respectively. ( I think you are getting my point).
In this we can achieve this .
Hope this helps.
Veerendra. -
JAXB / Needs to add header tag and close the header tag at the bottom
I have successfully generated a XML file based on the XSD. I want to add another tag to my generated XML which is not the part of the XSD. Its like adding my whole xml inside a new tag. Is there a way to achieve it?User_10111723083878.xml
to this xml, I want to add as the parent element "<addRequest targetID="BottomLineTarget" executionMode="asynchronous" xmlns="urn:oasis:names:tc:SPML:2:0">
<data>" and close it at the bottom of the xml.
Is it possible?the easiest way would be to create an xsd which includes this new wrapper element, and wrap the original object with your new wrapper object before serializing.
an alternative would be to serialize the original object into a DOM object, then add the wrapper element manually before serializing that DOM object to your final destination (e.g. the xml file). -
How to add header and fooder in text file
Hi,
i have created simple application for generate report from database into text file.
But i need to add header and fooder in text file. I dont know is there any API for adding these.
Can anyone help me to create header and fooder in text file.
the below text are needs to be print in the header
name of the table :
Recorder type :
file creation time:
the below text are needs to be print in the footer
Recorder Number:
Record Type;
the actual code is
pst = con.prepareStatement("select REQUEST, DOMAIN_NAME, TRUNC(DATE_OF_CONFIGURATION) AS dateofConfig FROM employee where id=300");
rs = pst.executeQuery();
while (rs.next()) {
request = rs.getString("REQUEST");
domain_name = rs.getString("DOMAIN_NAME");
dateofconfig = rs.getString("dateofConfig");
System.out.println(request + " " + domain_name + " " + dateofconfig);
data.add(request + " " + domain_name + " " + dateofconfig);
System.out.println("before calling method");
writeToFile(data, "c:/Employee.txt");
System.out.println("file created successfull");
rs.close();
pst.close();
private static void writeToFile(List list, String path) {
BufferedWriter out = null;
try {
File file = new File(path);
out = new BufferedWriter(new FileWriter(file, true));
for (Object obj : list) {
String s= obj.toString();
out.write(s);
out.newLine();
out.close();
} catch (IOException e) {
}Thanks
Jasmin
Edited by: user13836688 on Mar 21, 2011 4:06 AM
Edited by: user13836688 on Mar 21, 2011 4:07 AM
Edited by: user13836688 on Mar 21, 2011 4:08 AMuser13836688 wrote:
i have created simple application for generate report from database into text file.First off, when posting code, use [code]...[/code]. or '' tags, not '<code>'.
But i need to add header and fooder in text file. I dont know is there any API for adding these.
Can anyone help me to create header and fooder in text file.Well you plainly have the code to write the file contents; and furthermore your report seems to be contained in a List called 'data'. Why not just add the header and footer lines to it? I'd also suggest making 'data' a LinkedList. That way you can add the header afterwards with no performance hit, just in case the information it contains isn't available at the start of your report loop.
Winston -
How to Add Header and Footer in Flat file
HI All,
I am using ODI 11g.
MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
But i need to add Header and Footer in the Flat file.
In the below 3 lines
The 1st line is header ....2nd line is Data ....3rd line is Footer.
Any ideas how to work on this.
HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
T00000000000000000000
Thanks,
LonyHi Drieux,
i am able to add Header and Footer in this.
But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
Any idea why this sysdate part is not showing in Header. -
How to add header line in a file from XI system using file adapters
Hi All,
I need to add header line (Column names) in a file coming from XI system.
I am using file adapters.
Thanks & Regards,
Gaurav MittalThe Receiver File Adapter is configured, using the following settings:
1) Choose File Content Conversion as the Message Protocol.
2) You give the addHeaderLine parameter as 1
3) For the fieldSeparator parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a , (comma) for substructure in a comma separated file.
4) The endSeparator parameter needs to given for substructure only. For eg: it may be a nl (new line)
5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
please visit the blog.
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 -
How to add header to a file in mapping
Hi,
I need to add header to a file , the header information i am getting is dynamic , it is an IP address of the m/c from where i received the file and keeps on changing.
Can we add this information in the header in mapping or there is any other way to acheive this.This IP is used to make a lookup at a latter stage for verification purpose.
Regards,
SRiHi Sri,
Write Java class or an ABAP class
in Java class or ABAP class write logic to find the first word or line
once you find that word in your incoming file, you need to replace with a string which has the static header+firstword what you have searched
for exmple
Incoming file
abcd
<abc>123</abc>
<def>321</def>
Your logic should find "abcd"
String Header = "http://www.sap.sdn.com"
String A = "abcd" (bcoz u kow u r searching for this word)
now concat A+Header and return the string
IF you are writing an ABAP or Java class include this in Interface Mapping
Hope this helps. -
Pricing Header Condition.
Hello everyone,
I want to a add header condition and if I enter any values in there, system should allocate the value to all the line items based on the netprice of each item.
Currently I have the following config in V/06:
Condition Class: A
Condition Category : B (fixed amount )
Group Condition: checked,
Header Condition: Checked.
The sales document is invoice correctoin request.
Currently what happens is, if I enter 300 at header, system allocates the whole $300 to only one item. That is, it adds the amount $300 to a line that have highest net value. I want that amount to be distributed among the line items.
Thanks in advance,The sales document is invoice correctoin request.
As you said Sales documet is invoice correction request , there will be two line items created allways in inovice correction request. first is Credit and other is Debit line item.
Invoice correction request will be created with ref to Invoice. ex : for wrong prices., please look into below SAP link
[Invoice correction request|http://help.sap.com/saphelp_erp60_sp/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm]
Regards,
Ramesh -
Add Header in File Content Conversion
Hi everyone,
I have simple scenario : RFC-->flat file, but I need to add header lines at the start of the file,
Anybody any idea?
ThanksHi ,
To add header fields to the file while File generation -
DATATYPE_NAME.addHeaderLine = 1
· 0 No header line
· 1 Header line with column names from the XML document
Nanda -
RFQ - Header Condition (Not possible to determine a condition type)
Hi,
I have defined my own Condition Schema for RFQ Item Condition are working fine. But when i am trying to add header condition it is giving msg "Not possible to determine a condition type"
RegardsHi,
I have defined my own Condition Schema for RFQ Item Condition are working fine. But when i am trying to add header condition it is giving msg "Not possible to determine a condition type" and now allowing me to enter the condition on header level.
Regards
Edited by: Kashif Ihsan on Jun 14, 2010 3:52 PM -
I am using Iplanet 4.1 SP9 on Solaris 2.7. I need the add-header SAF in obj.conf to add P3P headers for my website.
The documentation says I can use a file (html) to publish additional headers. I have tried:
P3P: CP="NOI DEVa TAIa OUR BUS UNI STA OTC"
in a file called p3pheader.html and I have added the following line in the default object in obj.con:
Service fn="add-header" path="/export/home/enter_4.1/docs/dev/w3c/p3pheader.html" NSIntAbsFilePath="yes"
Iplanet returns the following error:
[23/nbre/2001:16:46:24] config ( 5326): for host 141.126.5.15 trying to GET /SME/frameset.html, pcheck_add_header reports: No header specified
Any help ?The addition of HTTP headers is conspicuously missing from the standard
directives. The add-header function simply adds HTML to the top of a
page. You'll need to use a custom SAF for HTTP headers. For example
you could compile this one:
* NSAPI SAF to add a HTTP header to the server response.
* Returns REQ_NOACTION so request is processed as normal.
* Init fn="load-modules" shlib="/libAddHttpHeader.so" funcs="add-http-header"
* Service fn="add-http-header" name="P3P" value="CP=\"NOI DEVa TAIa OUR BUS
UNI STA OTC\""
#include "nsapi.h"
NSAPI_PUBLIC int add_http_header(pblock pb, Session sn, Request *rq)
char *name = pblock_findval("name",pb);
char *value = pblock_findval("value",pb);
if (name && value){
param_free(pblock_remove(name, rq->srvhdrs));
pblock_nvinsert(name, value, rq->srvhdrs);
return (REQ_NOACTION);
Jose Niguidula wrote:
I am using Iplanet 4.1 SP9 on Solaris 2.7. I need the add-header SAF
in obj.conf to add P3P headers for my website.
The documentation says I can use a file (html) to publish additional
headers. I have tried:
P3P: CP="NOI DEVa TAIa OUR BUS UNI STA OTC"
in a file called p3pheader.html and I have added the following line in
the default object in obj.con:
Service fn="add-header"
path="/export/home/enter_4.1/docs/dev/w3c/p3pheader.html"
NSIntAbsFilePath="yes"
Iplanet returns the following error:
[23/nbre/2001:16:46:24] config ( 5326): for host 141.126.5.15 trying
to GET /SME/frameset.html, pcheck_add_header reports: No header
specified
Any help ? -
Dear All,
I want to add header conditions (Freight, Insurance and landing Charges) in import pricing. The calculation type is percentage for these conditions.
I want to distribute that condition value on the basis value of each line item.
If there are 4 line item in PO
Item Amount Header Amount
10 500 ZFRG 500
20 1000 ZINS 800
30 800 Landing 1500
40 1500
Distribution of FRG,INS and Landing charges should be as per value of line item i.e more amount should post to line item 40
as it is having more value.
Thanks and Regards.
PrakashThx Sandeep
It is distributing the amount on quantity basis, I want that on value basis.
Suppose I am having 2 line item with value 100 and second line item with value 500. Quantity for these items are 10 and 1.
I.e for line item 2 quantity is 1 but value is more here i want to post more amount of FRG to line item 1.
Best Regards.
Prakash
Maybe you are looking for
-
Material Stock Report for tcode MB5B
Hello Expert I have a SAP report for stock posting date with T-Code as MB5B and the report name is RM07MLBD. When I enter Material no, plant code , Movement type (101) and selection dates for a month, The report is displaying but not break by Movemen
-
Restricting values on the drop down list, while creating a PO
Hello SAP Experts, Could you help me with the following. While creating a PO (ME21N), based on the Account Assignment Category(KNTTP) entered , I have to restrict the values in the drop down list for selecting the material group (MAKTL). I have
-
Acrobat Pro - Printing Problems
I've just started having problems printing from Acrobat Pro 9.0. I've heard there might be a patch or something to solve this issue, but can't find anything. I realize that this is an old program, but don't have the funds to upgrade, so have to sti
-
Blank screen rather than error message
I've written some pages using htp which I am using rather than htmldb and calling using the format http://location:port/htmldb/pkg_test.test and this is working well but if there is an error all I get is a white screen rather than anything helpful. A
-
Can't login after botched 10.5.3 update
I used software update to download 10.5.3 (from 10.5.2) and there was a problem with the download. A message came up saying the "source was damaged." After a restart, my login screen appeared and prompted me for my password...however my password keep