Header is empty
In my Query Designer, I have Characteristic Cost Center placed in the Row, and KF Amount in the Row.
I have created the Global Restriction Key Figure, call Cost Amount. In the Selection section of this RKF, I have the following:
KF = Amount
Cost Center = 115709
So this Global Restrcited Key Figure will only show the Amount for Cost Center 115709.
When I run the query, I can see the value of this cost center amount. However, the name of this RKF is blank on the column header.
Why?
Hi Linda,
I think while swapping it may happend. once tell me the hw you designed ? is there any drill downs ?is it query or workbok ? can you tell me the details of how you designed that , i mean what you put in rows,columns, free char and filters .and also where exactly it is getting ,while direct execution is it gettting or after drill downs ?
Regards
Pcrao.
Similar Messages
-
Error: SAP license key: header or empty line expected
Hello All,
I wanted to install license for my portal server(EP-6, SP-14). But i am getting some error msg
<b>License file C:\APQ_WEBAS.txt contains an incorrect SAP license key: header or empty line expected. License key(s) not completely installed.</b>
when I clicked on install from file Button.
Any +ve will be aprited.Hi Uttam
Just Put this line at top of ur license file
Begin SAP License -
so the license file should look like this
Begin SAP License -
SAPSYSTEM=XXX
HARDWARE-KEY=XXXXXXXX
INSTNO=XXXXXXXXX
BEGIN=20051224
EXPIRATION=99991231
LKEY=SWPRODUCTNAME=J2EE-Engine_MSS or ORA
SWPRODUCTLIMIT=XXXXXXXX
SYSTEM-NR=000000000XXXXXXXXXX
regards,
kaushal -
How to hide table header for empty table
Hi,
I wanna to hide table header for all tables which doesn't contain any data in my Adobe form. How can I do this? Helpful answers will be rewarded .HI Aliaksandr,
You can use javascript to do this dynamically.
For example, i used Adobe Designer 7.1 to add a table to a subform.
Now, i have the object hierchy as:
Level 1 - form1
Level 2 - form2
Level 3 - Table1
-->HeaderRow
--> Cell1
--> Cell2
-->Row1
--> Cell1
--> Cell2
Now, i sleect the Table1 element, and write the javascript which is executed on Initialization, as
if(this.Row1.Cell1.rawValue == "")
this.HeaderRow.presence = "hidden" ;
This will check that if the first row is empty, it will hide the header from the layout.
You can use something similar for your requirement.
Hope this helps,
Siddhartha Jain -
Is there Method to make Header Text empty for Tcode: COR1?
When we use tcode COR1 to create a process order, there is a long text near by the process order number. Generally, after we create a process order, the long text will be filled by relevant material description in my Production system, My requirement is that when I create a process order, the long text should be Empty or should be filled by specific value automatically.
Please suggest how to do this????
Thanks in Advance
MudassarHi,
There are a lot of Exits for COR1 and otherwise try the (new) possibility of program enhancement.
Exits on COR1:
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determinatio
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
Success,
Rob -
75% of my messages when selected show proper header, but empty main body?
most of the messages arriving in my inbox, look normal in the message list area, but when selected, the correct header shows, but nothing follows - i.e. the body of the message is empty. i import from gmail and hotmail - both are affected. odd;y. as i said, this is only for 3/4 the messages. an apparent 1/4 are fine. thoughts?
fixed itself?
-
Why is the security header empty in the response when mustUnderstand="1"?
Hi
In the response the value of mustUnderstand is equal to "1", but the UsernameToken data is not echoed, the security header is empty.
It seems that either the credentials should be echoed or mustUnderstand should be equal to "0"
An Axis 1.4 client threw an Exception because they interpreted the spec as such, and we've dealt with that but now
I have an external party using some Microsoft stuff and they're having to intercept the response and set it to 0
before processing the response.
How should it be dealt with?
I'm happy to write a handler that does this, and I tested some Oracle sample code but the header is always null.
Source Code: AuthenticateHandler.java
This is my test request...
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:env="http://www.w3.org/2003/05/soap-envelope" soap:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Username>TestUser</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security></soap:Header>
<soap:Body xmlns:ns1="http://webservicehandler/">
<ns1:echoElement>DSF</ns1:echoElement>
</soap:Body>
</soap:Envelope>and my test response
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:env="http://www.w3.org/2003/05/soap-envelope" env:mustUnderstand="1"/>
</env:Header><env:Body><ans1:echoResponseElement xmlns:ans1="http://webservicehandler/">DSF</ans1:echoResponseElement>
</env:Body></env:Envelope>You aren't addressing Apple here; we are all users like you.
Please submit to apple.com/feedback -
Empty CreatorDate field in PDF files generated by Report 6i on Windows 7
When generating a PDF file from Reports 6i on Windows 7, the CreatorDate in the PDF file header is empty.
Even worse: its opening parenthesis "(" is not closed. See example here below.
This generates several problems with Adobe Reader 10 like:
- text searching does not work although you can select text and do a copy paste,
- File/Properties does not work (nothing happens when selecting this menu item),
- File/Save As PDF generates the Adobe Reader error "The document could not be saved. There was a problem reading this document (114)."
We do not have this issue with Windows XP.
Any idea?
%PDF-1.1
1 0 obj
<<
/Creator (Developer 2000)
/CreatorDate ( <---- here is the error: missing value and missing ")"
/Author (Oracle Reports)
/Producer (Oracle PDF driver)
/Title (LETTRE_TEST_PDF_REPORT.pdf)
>>As you probably know, Developer 6i is not supported on Windows 7. Search the Forms and Reports forums for tips like:
Install in XP compatiblity mode.
Run in XP mode with Virtual PC. -
ESB requires "SOAPAction" to be set in HTTP header?
I'm trying to insert an ESB flow between an existing web service and client. The service and client were previously built with Apache Axis.
By generating an appropriate WSDL (doc/wrapped rather than Axis' default RPC style) for the existing service, I'm able to connect the ESB to the service.
The problem is that the existing client (built using Axis) sets the SOAPAction in the HTTP header to empty (SOAPAction: ""), and the ESB appears to require this to be set to the desired operation. If this is a hard requirement, then I can't directly connect the existing client to the ESB flow.
So, the question is whether it's possible to have the ESB relax the requirement for the SOAPAction header. And if so, how?
If I can't get the ESB to accept SOAP requests with an empty SOAPAction, then I'll have to create a custom adapter or insert an additional proxy layer (yuk). Anyone else have any suggestions?This is all done automatically by FB.
Just to try something out I just now made a simple app with a label only and tried to upload to Google... FAILED!!!!
"Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml"
LOL, FB can't even create this. :-/
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/3.1">
<!-- Adobe AIR Application Descriptor File Template.
Specifies parameters for identifying, installing, and launching AIR applications.
xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1
The last segment of the namespace specifies the version
of the AIR runtime required for this application to run.
minimumPatchLevel - The minimum patch level of the AIR runtime required to run
the application. Optional.
-->
Message was edited by: KesherMedia.Com -
Mail Doesn't Warn if Subject: is empty
If both the content of the mail body and the Subject header are empty, Mail opens a warning box to let yo u know. But if just the Subject is empty, mail doesn't warn you. Seems like it used to. Now, BOTH body and Subject need to be empty. I would be nice to have it warn if Subject OR body is empty ...
I've found my error. I was adding the following properties to the session:
props.put("mail.imaps.sasl.enable", "true");
props.put("mail.imaps.sasl.mechanisms", "XOAUTH2");
When actually I needed:
props.put("mail.gimaps.sasl.enable", "true");
props.put("mail.gimaps.sasl.mechanisms", "XOAUTH2");
The method looks like:
public static GmailStore connectToImap(String host, int port, String userEmail, String oauthToken, boolean debug) throws Exception {
Properties props = new Properties();
props.put("mail.store.protocol", "gimaps");
props.put("mail.gimaps.sasl.enable", "true");
props.put("mail.gimaps.sasl.mechanisms", "XOAUTH2");
props.put(OAuth2SaslClientFactory.OAUTH_TOKEN_PROP, oauthToken);
Session session = Session.getDefaultInstance(props, null);
final String emptyPassword = "";
GmailStore store = (GmailStore) session.getStore("gimaps");
store.connect(host, port, userEmail, emptyPassword);
return store;
NOTE: Because Gmail always uses SSL GmailSSLStore is not needed, GmailStore does the same thing -
SAPNW2004s Java incorrect license key:empty line expected
i installed SAPNW2004s Java trial version.but WebAs shutdowns every 30 mins. I searched and found that reason is license problem.
When i try to upload license text (MBS.txt) with visual administrator.I get error say that "incorrect SAP license key :header or empty line expected".
How to get over this issue?
Best Regards...
MBS file like this
# Installation of the license key
# Script for release 4.5A and higher
# saplicense -install [ifile=...]
# Database: MSSQLSRV
# Release: SAP R/3 4.6C
SAPSYSTEM = MBS
CUSTOMER-KEY = XXXXXXXXXXX
INSTNO = DEMOSYSTEM
EXPIRATION = 20081020
LKEY = XXXXXXXXXXXXXXXXXXXXXXXXThat file is for MiniSAP version and not for NSP...NSP license is no longer provided on the licenses page...Must wait for Official SAP News.
Greetings,
Blag. -
I am trying to create a form that searches through a recordset. I am wondering, if several of the fields within the search form are left blank when submitted by the "GET" method, how I can have the query string ignore those empty parameters in the URL. I posted a similar question a little earlier and got no responses. I'm a newbie so let me now if I'm not phrasing my question correctly or something.
I've attempted to use the longer version of the code to make my select statement work. This is the code that I've got now:
$query_rs_results = "SELECT dogid, b_email, b_fname, b_lname, b_phone, b_url, dob, dod, reg_name, reg_no, o_email, o_fname, o_lname, o_phone, o_url, registry, semen_l, semen_f, semen_fc, semen_fr, photo FROM dog_main";
// Set a flag to indicate whether the query has a WHERE clause
// Set a variable to indicate if the select statement has a color value selected
$where = false;
$color = 0;
if (isset($_GET['arm']) && !empty($_GET['arm'])) {
$query_rs_results .= ' WHERE arm = '. GetSQLValueString($_GET['arm'], 'text');
$where = true;
if (isset($_GET['bite']) && !empty($_GET['bite'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'bite = ' . GetSQLValueString($_GET['bite'], 'text');
if (isset($_GET['body']) && !empty($_GET['body'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'body1 = ' . GetSQLValueString($_GET['body'], 'text');
if (isset($_GET['breadth']) && !empty($_GET['breadth'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'breadth = ' . GetSQLValueString($_GET['breadth'], 'text');
if (isset($_GET['brisket']) && !empty($_GET['brisket'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'brisket = ' . GetSQLValueString($_GET['brisket'], 'text');
if (isset($_GET['dentition']) && !empty($_GET['dentition'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'dentition = ' . GetSQLValueString($_GET['dentition'], 'text');
if (isset($_GET['color_b']) && !empty($_GET['color_b'])) {
$color = $color + 1;
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= '(color = ' . GetSQLValueString($_GET['color_b'], 'text');
if (isset($_GET['color_bl']) && !empty($_GET['color_bl'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_bl'], 'text');
if (isset($_GET['color_br']) && !empty($_GET['color_br'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_br'], 'text');
if (isset($_GET['color_f']) && !empty($_GET['color_f'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_f'], 'text');
if (isset($_GET['color_h']) && !empty($_GET['color_h'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_h'], 'text');
if (isset($_GET['color_m']) && !empty($_GET['color_m'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_m'], 'text');
if (isset($_GET['color_o']) && !empty($_GET['color_o'])) {
$color = $color + 1;
If ($color > 1) {
$query_rs_results .= ' OR ';
} else {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_o'], 'text');
if ($color > 0) {
$query_rs_results .= ') ';
if (isset($_GET['ears']) && !empty($_GET['ears'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'ears = ' . GetSQLValueString($_GET['ears'], 'text');
if (isset($_GET['eye_color']) && !empty($_GET['eye_color'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'eye_color = ' . GetSQLValueString($_GET['eye_color'], 'text');
if (isset($_GET['eye_shape']) && !empty($_GET['eye_shape'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'eye_shape = ' . GetSQLValueString($_GET['eye_shape'], 'text');
if (isset($_GET['eye_tight']) && !empty($_GET['eye_tight'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'eye_tight = ' . GetSQLValueString($_GET['eye_tight'], 'text');
if (isset($_GET['f_feet']) && !empty($_GET['f_feet'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'f_feet = ' . GetSQLValueString($_GET['f_feet'], 'text');
if (isset($_GET['head']) && !empty($_GET['head'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'head = ' . GetSQLValueString($_GET['head'], 'text');
if (isset($_GET['hocks']) && !empty($_GET['hocks'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'hocks = ' . GetSQLValueString($_GET['hocks'], 'text');
if (isset($_GET['lip']) && !empty($_GET['lip'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'lip = ' . GetSQLValueString($_GET['lip'], 'text');
if (isset($_GET['longevity']) && !empty($_GET['longevity'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'longevity = ' . GetSQLValueString($_GET['longevity'], 'text');
if (isset($_GET['neck_length']) && !empty($_GET['neck_length'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'neck_length = ' . GetSQLValueString($_GET['neck_length'], 'text');
if (isset($_GET['neck_set']) && !empty($_GET['neck_set'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'neck_set = ' . GetSQLValueString($_GET['neck_set'], 'text');
if (isset($_GET['r_angulation']) && !empty($_GET['r_angulation'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'r_angulation = ' . GetSQLValueString($_GET['r_angulation'], 'text');
if (isset($_GET['r_feet']) && !empty($_GET['r_feet'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'r_feet = ' . GetSQLValueString($_GET['r_feet'], 'text');
if (isset($_GET['semen_f']) && !empty($_GET['semen_f'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'semen_f = ' . GetSQLValueString($_GET['semen_f'], 'text');
if (isset($_GET['semen_fc']) && !empty($_GET['semen_fc'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'semen_fc = ' . GetSQLValueString($_GET['semen_fc'], 'text');
if (isset($_GET['semen_fr']) && !empty($_GET['semen_fr'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'semen_fr = ' . GetSQLValueString($_GET['semen_fr'], 'text');
if (isset($_GET['semen_l']) && !empty($_GET['semen_l'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'semen_l = ' . GetSQLValueString($_GET['semen_l'], 'text');
if (isset($_GET['shoulders']) && !empty($_GET['shoulders'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'shoulders = ' . GetSQLValueString($_GET['shoulders'], 'text');
if (isset($_GET['tail_length']) && !empty($_GET['tail_length'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'tail_length = ' . GetSQLValueString($_GET['tail_length'], 'text');
if (isset($_GET['tail_set']) && !empty($_GET['tail_set'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'tail_set = ' . GetSQLValueString($_GET['tail_set'], 'text');
if (isset($_GET['temperament']) && !empty($_GET['temperament'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'temperament = ' . GetSQLValueString($_GET['temperament'], 'text');
if (isset($_GET['topline']) && !empty($_GET['topline'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'topline = ' . GetSQLValueString($_GET['topline'], 'text');
if (isset($_GET['withers']) && !empty($_GET['withers'])) {
if ($where) {
$query_rs_results .= ' AND ';
} else {
$query_rs_results .= ' WHERE ';
$where = true;
$query_rs_results .= 'withers = ' . GetSQLValueString($_GET['withers'], 'text');
echo "Query search = ".$query_rs_results;
$query_limit_rs_results = sprintf("%s LIMIT %d, %d", $query_rs_results, $startRow_rs_results, $maxRows_rs_results);
$rs_results = mysql_query($query_limit_rs_results, $dqdb) or die(mysql_error());
$row_rs_results = mysql_fetch_assoc($rs_results);
if (isset($_POST['totalRows_rs_results'])) {
$totalRows_rs_results = $_POST['totalRows_rs_results'];
} else {
$all_rs_results = mysql_query($query_rs_results);
$totalRows_rs_results = mysql_num_rows($all_rs_results);
$totalPages_rs_results = ceil($totalRows_rs_results/$maxRows_rs_results)-1;
I'm echoing $query_rs_results to verify that it is building the select statement correctly, but it is not. The select statement being echoed is:
SELECT dogid, b_email, b_fname, b_lname, b_phone, b_url, dob, dod, reg_name, reg_no, o_email, o_fname, o_lname, o_phone, o_url, registry, semen_l, semen_f, semen_fc, semen_fr, photo FROM dog_main
The results page is displaying every dog in the database.
What am I missing here?
TIA,
Laura -
How to access Security header in message flow
Hi all
i have an osb proxy secured with wss usertoken service policy, i need the header with tokens in message flow,but after the authentication the header becomes empty
is there any way to retrieve the header in message flow,i need both username and password(cleartext)Please refer -
OSB process WS-security header problem! Pls help
Regards,
Anuj -
Problem in using BAPI_MATERIAL_SAVEDATA
I want to extend a Material from Plant A to Plant B. I am getting the following error.
E MM 360 Key fields for user data PLANTDATA and checkbox structure PLANTDATAX are different
Please correct in the following code
data: la_headdata type BAPIMATHEAD,
la_clientdata type BAPI_MARA,
la_CLIENTDATAX type BAPI_MARAX,
la_PLANTDATA type BAPI_marc, "Plant View
la_PLANTDATAX type bapi_marcx, "Plant View
la_mbew type bapi_mbew, "Accounting View
la_mbewx type bapi_mbewx.
*la_return type BAPIRET2.
*to return messages
DATA:BEGIN OF la_RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA:END OF la_RETURN.
data: i_materialdescription type table of BAPI_MAKT,
wa_mat_desc like line of i_materialdescription.
Header
la_headdata-MATERIAL = '000001000000004000'.
la_headdata-IND_SECTOR = 'M'.
la_headdata-MATL_TYPE = 'ZALB'.
la_headdata-basic_view = 'X'.
la_headdata-purchase_view = 'X'.
la_headdata-account_view = 'X'.
la_headdata-MRP_VIEW = 'X'.
la_headdata-STORAGE_VIEW = 'X'.
la_headdata-COST_VIEW = 'X'.
Client Data - Basic
la_clientdata-BASE_UOM = 'EA'.
la_CLIENTDATAX-BASE_UOM = 'X'.
la_clientdata-MATL_GROUP = '21001000'.
la_CLIENTDATAX-MATL_GROUP = 'X'.
la_clientdata-unit_of_wt = 'KG'.
la_clientdatax-unit_of_wt = 'X'.
la_clientdata-division = '10'.
la_clientdatax-division = 'X'.
Material Description
wa_mat_desc-langu = 'E'.
wa_mat_desc-MATL_DESC = '+TLA,FILTER KIT,BUNDLE B'.
append wa_mat_desc to i_materialdescription.
clear: wa_mat_desc.
Plant - Purchasing
la_PLANTDATA-plant = '5530'.
la_PLANTDATAX-plant = 'X'.
la_PLANTDATA-pur_group = '006'.
la_PLANTDATAX-pur_group = 'X'.
Accounting
la_mbew-val_area = '5530'.
la_mbewx-val_area = 'X'.
la_mbew-price_ctrl = 'S'.
la_mbewx-price_ctrl = 'X'.
la_mbew-std_price = '0.01'.
la_mbewx-std_price = 'X'.
*la_mbew-price_unit = '1.000'.
*la_mbewx-price_unit = 'X'.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = la_headdata
CLIENTDATA = la_clientdata
CLIENTDATAX = la_CLIENTDATAX
PLANTDATA = la_PLANTDATA
PLANTDATAX = la_PLANTDATAX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA = la_mbew
VALUATIONDATAX = la_mbewx
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
FLAG_ONLINE = ' '
FLAG_CAD_CALL = ' '
IMPORTING
RETURN = la_return
TABLES
MATERIALDESCRIPTION = i_materialdescription
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
read table la_return with key TYPE = 'S'.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
endif.
WRITE:/ la_RETURN-TYPE,
2 la_RETURN-ID,
22 la_RETURN-NUMBER,
25 la_RETURN-MESSAGE.Hi,
hope this code gives you an idea
*& Report ZKAR_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 ZKAR_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
Regards,
V.Balaji
Reward if Usefull... -
LSMW me51n, how to create one PR document for all the records in the file
HI all,
I need to create LSMW for t-code me51n -Create Purchase Requisition. I`m using Bapi BUS2105, method CREATEFROMDATA, idoc message type PREQCR, basic type PREQCR03. The problem is that the LSMW is creating different idoc and different PR document for every record in the source file. My requirement is to create one PR document for one source file (Every source file is different Purchase Requisition) . I`m trying to do this with writing some code(global functions ) in the 'Mapping and conversion rules' events - BEGINOF_TRANSACTION_, ENDOF_TRANSACTION__..., but i`m not very sure what exactly i`m doing .
Please help me resolve this problem, any help will be appreciated .
Best regards, Emil Milchev.Thank you for you answer.
But I have found faster way of doing it - two source structures, one HEADER and ONE ITEM.
HEADER: one empty text field and identificator for it.
ITEM: everything else.
Then everything was just fine, i`ve mapped the different IDOC segments by PREQ_ITEM fields (equal values in the source file : 10-10-10..., 20-20-20,.... etc.) and put all required fields for my LSMW
SOURCE FIELDS:
Z_ME51N_V2 - MASS_UPLOAD - CREATE create
Source Fields
UPFILE upload file
IDENT C(010) ident
Identifing Field Content: header
TEXT C(001)
UPFILE2 123
IDENT C(010) ident
Identifing Field Content: item
BSART C(004) Document type
BANFN C(010) Purchase requisition number
BNFPO_FOR_MAP N(005) Item number of purchase req. for MAPPING acc.
BNFPO N(005) Item number of purchase requisition
KNTTP C(001) Account assignment category
PSTYP C(001) Item category in purchasing document
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
MENGE N(013) Purchase requisition quantity
EKGRP C(003) Purchasing group
KONNR C(010) Number of principal purchase agreement
KTPNR N(005) Item number of principal purchase agreement
LIFNR C(010) Desired Vendor
FLIEF C(010) Fixed Vendor
AFNAM C(012) Name of requisitioner/requester
PREIS AMT4(011) Price in purchase requisition
ABLAD C(025) Unloading Point
WEMPF C(012) Goods Recipient
PS_POSID C(024) Work Breakdown Structure Element (WBS Element)
KOSTL C(011) COST_CTR v bapito ?
NAME1 C(040) Name1 - Name of an address
NAME2 C(040) Name2 - Name of an address 2
STREET C(060) Street
DELIVERY_DATE C(008) Date on which the goods are to be delivered
TEXT C(132) item text
STRUCTURE RELATIONS :
Structure Relations
E1PREQCR Header segment <<<< UPFILE upload file
E1BPEBANC Transfer Structure: Create Requisition Item <<<< UPFILE2 123
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt <<<< UPFILE2 123
E1BPEBANTX BAPI Purchase Requisition: Item Text <<<< UPFILE2 123
E1BPESUHC Communication Structure: Limits <<<< UPFILE2 123
E1BPESUCC Communication Structure: Contract Limits <<<< UPFILE2 123
E1BPESLLC Communication Structure: Create Service Line <<<< UPFILE2 123
E1BPESKLC Create Comm. Structure: Acct Assgt Distr. for Service Line <<<< UPFILE2 123
E1BPESLLTX BAPI Services Long Text <<<< UPFILE upload file
E1BPMERQADDRDELIVERY PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPMERQADDRDELIVERY1 PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< UPFILE2 123
MAINTAIN FIELD MAPPING AND... :
the MAPPING between two IDOC`s segments:
In first segment:
E1BPEBANC Transfer Structure: Create Requisition Item
Fields
PREQ_NO Purchase requisition number
Source: UPFILE2-BANFN (Purchase requisition number)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_NO = UPFILE2-BANFN.
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO (Item number of purchase requisition)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_ITEM = UPFILE2-BNFPO.
In second segment :
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt
Fields
PREQ_NO Purchase requisition number
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO_FOR_MAP (Item number of purchase req. for MAPPING
Rule : Transfer (MOVE)
Code: E1BPEBKN-PREQ_ITEM = UPFILE2-BNFPO_FOR_MAP.
After that everything was OK . -
How to Print multiple times in BI Publisher
Hi All,
we have a business requirement where we have to print a label report ..
i have generated the XML CODE..
<XXLABEL>
<P_ITEM_CODE>11000046</P_ITEM_CODE>
<P_RECEIPT_NUM>62119</P_RECEIPT_NUM>
<P_NO_COPY>2</P_NO_COPY>
<LIST_G_DETAIL>
<G_DETAIL>
<ITEM_NUM>11000046</ITEM_NUM>
<PO_NUMBER />
<MSDS_NUMBER>2356989</MSDS_NUMBER>
<DESCRIPTION>1RING,WEAR-CASE,F/BOOSTER-PUMP</DESCRIPTION>
<STOREROOM>D01-JAOSB</STOREROOM>
<BIN_NUM>EC.20.103</BIN_NUM>
</G_DETAIL>
</LIST_G_DETAIL>
</XXLABEL>
Now using RTF i want to print the xml the number of copies which is passed dynamically ..
Can any one help me out..Hi,
I am having a similar requirement.
I need to print the AR customer statement twice for the XML Data.
I am currently using the for-each@section command, however when I use the <?for-each:xdoxslt:foreach_number($_XDOCTX,1,2,1)?> command to print the report twice, the XML data at the header is empty.
Could you please let me know how you resolved your issue?
Thanks!
Maybe you are looking for
-
I do not have permission to write in my external Hard Drive
Hello everybody. I have recently bought a MacBook Pro (15, 2.16 Ghz with OS X 10.4.9) and I have a Beyond Micro 300Gb external Hard drive that I have been using with my PC. This drive has a Windows NT File System. When I first plugged it to the Mac,
-
I have 2 MacBooks (1 Air and 1 Pro) at home that back-up to a Time Capsule. I'd like to buy an external Thunderbolt drive at work to have as an additional back-up (so that were there to be a fire/water damage/etc) I would not lose both the computer
-
Why is Bridge displaying thumbnails in different sizes in same folder?
Please see screenshot below: I'm working with large image files, about 10k pixels square, 300Mb or so. They start out as tifs, but when I adjust in Photoshop, then save, sometimes the thumbnails get miniaturized (not always). File size is slightly la
-
Need to start process without SAP_BPM_SuperAdmin
We would like to give a class of users the ability to launch BPM processes without giving them SAP_BPM_SuperAdmin. The problem with doing that, is that they could access NWA and change the process repository, if they found there way there. Is there a
-
Using Presenation Variables in the Report fields
Hi, I have a report and the report format is column a (01/01/2012-01/31/2012), Column B (02/01/2012-02/29/2012), Column c (amount),Column d (amount),Column e (dimnesion) these are my report columns.column a and column b are dateranges.one is lastmont