Facing problem to Upload epub to smashwords
Hi, I am trying to upload my epub to smashwords but got a message that "Please supply an EPUB with at least two working items in the NCX (your EPUB's built-in Table of Contents); otherwise, some vendors will reject your book." I made my epub on indesign CC, IDPF Epub validator didn't find any error and ADE shows TOC perfectly. Can anyone help me regarding this issue? Thank you
That is not something InDesign can do. I requires an editing application for text, or an EPUB editor, and some knowledge of how to open EPUB files and editing them.
There may be some people here who can tell you what to do. I case they don't, here is a reference which may help. It's a little out of date, but I believe it covers what you need:
EPUB Straight to the Point: Creating ebooks for the Apple iPad and other ereaders
You can also learn more about creating EPUBs from InDesign by going to www.Lynda.com and watching videos on creating EPUB from InDesign by Anne-Marie Concepcion. You can watch videos for a week before paying for a monthly subscription.
Similar Messages
-
Facing problem during uploadation of Routing data using CA01-BDC - URGENT
Dear All,
When I am trying to upload Routing data using CA01 in the Table Control scenario, then I am facing problem as my last 2 records are not getting uploaded from my Test file.
For example, I am having 47 records in my Test File and after setting Default size parameters (to avoid screen resolution problem)
I have 15 table control line items data per page. The Page down logic ('=P+') is working fine, but my below BDC code failed to take
the remainder last 2 records from the Test File.
Analysis: When I am running my Call Transaction bdc in foreground, then the 1st page down occurs after 15th record, 2nd page down occurs after 29th record( as in Table Control 1st pages 15th record is coming on the Top of 2nd page). 3rd page down occurs after 43rd record
(as 2nd pages 29th record is coming on the top of 3rd page). In the 4th Table Control Page 43rd record of previous page is coming on top, and then its taking 44th & 45th records from the Test File and then it is triggering SAVE (=BU). Thus, our last 2 records
(i.e. 46th, 47th record) are not getting uploaded in the routing screen from our Test File.
If anybody has encountered this scenario previously, please help me URGENTLY in fixing the bugs here. Its VERY, VERY URGENT
FYI. For others 45 successful records already uploaded, all the screen fields values are coming properly in the routing screen, and here there is no issue.
Thanks very much
Thanks & Regards
Sudipta Project Lead
Volvo Client Location
I am pasting my BDC source code below:
REPORT ZRT1_UPLOAD_CA01_F
NO STANDARD PAGE HEADING
LINE-SIZE 255.
I N C L U D E S *
Include for Data Declarations
INCLUDE zrout_top.
Include for Forms
INCLUDE zrout_form.
INCLUDE zrout_include_f_ca01.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
Attaching F4 help with filename
PERFORM F1001_GET_F4.
S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Perform to read the input file
PERFORM f_read_file.
Perform to fill the BDC data
PERFORM f_fill_bdctab.
E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
FREE: i_bdcdata,
i_messtab,
i_record.
x----
*& Include ZROUT_TOP *
D A T A B A S E T A B L E S *
TABLES: t100. "Messages
D A T A D E C L A R A T I O N S *
T A B L E T Y P E S *****************************
For input data
TYPES: BEGIN OF ty_record,
matnr(18), "Material Number
werks(4), "Plant
verwe(3), "Usage
statu(3), "Status
arbpl(8), "Work Center
steus(4), "Control Key
ltxa1(40), "Description of Operation
bmsch(13), "Base Quantity
meinh(3), "Unit of Measure
vgw01(11), "Machine
vge01(3), "Unit of measure of activity
END OF ty_record.
I N T E R N A L T A B L E S ***********************
Internal Table for input file name
DATA: i_file_tab TYPE STANDARD TABLE OF sdokpath INITIAL SIZE 0.
Internal Table for BDC Data
DATA: i_bdcdata TYPE STANDARD TABLE OF bdcdata INITIAL SIZE 0.
Internal Table for BDC Messages
DATA: i_messtab TYPE STANDARD TABLE OF bdcmsgcoll INITIAL SIZE 0.
Internal Table for Input file
DATA: i_record TYPE STANDARD TABLE OF ty_record INITIAL SIZE 0.
W O R K A R E A S *************************
Work Area for input file name
DATA: wa_file_tab LIKE sdokpath.
Work Area for BDC Data
DATA: wa_bdcdata LIKE bdcdata.
Work Area for BDC Messages
DATA: wa_messtab LIKE bdcmsgcoll.
Work Area for Input file
DATA: wa_record TYPE ty_record.
V A R I A B L E S ****************************
DATA: v_filename TYPE string,
v_fnam(40) TYPE c.
DATA: wa_opt TYPE ctu_params.
C O N S T A N T S ***************************
CONSTANTS: c_werks TYPE rc27m-werks VALUE 'tp',
c_steus TYPE plpod-steus VALUE 'PP01'.
*Selection Screen.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS:
Input file name
P_FILE TYPE rlgrap-filename OBLIGATORY. " DEFAULT 'C:\'.
SELECTION-SCREEN END OF BLOCK B1.
x----
*& Include ZROUT_FORM *
*& Form f_fill_bdctab
Form to fill the BDC Data
FORM f_fill_bdctab.
TABLES mapl. "Assignment of Task Lists to Materials
DATA: l_cnt_item(3) TYPE n VALUE 1. "Line item counter
DATA: first(3) TYPE n VALUE 16. "Line item counter
DATA: next(3) TYPE n . "Line item counter
DATA: lin(3) TYPE n . "Line item counter
DATA: l_v_bmsch(13), "Base qty
l_v_meinh(3), "Unit of Measure
l_v_vgw01(11), "Machine
l_v_vgw02(11), "Labour
l_v_vge01(3). "Unit of measure of activity
DATA l_v_nextline TYPE sy-tabix.
DATA wa_temp TYPE ty_record.
Initialize Counter
l_cnt_item = 1.
SORT i_record BY matnr.
LOOP AT i_record INTO wa_record.
AT NEW matnr.
REFRESH: i_bdcdata,
i_messtab.
SET PARAMETER ID 'PLN' FIELD space.
SET PARAMETER ID 'PAL' FIELD space.
PERFORM f_bdc_dynpro USING 'SAPLCPDI' '1010'.
PERFORM f_bdc_field USING 'BDC_OKCODE'
'/00'.
Material Number
PERFORM f_bdc_field USING 'RC27M-MATNR'
wa_record-matnr.
Plant
PERFORM f_bdc_field USING 'RC27M-WERKS'
c_werks.
PERFORM f_bdc_field USING 'RC271-PLNNR'
Check if routing already exits for the material
SELECT * FROM mapl
INTO mapl
WHERE matnr EQ wa_record-matnr
AND werks EQ c_werks
AND plnty EQ 'N'.
IF sy-subrc EQ 0.
PERFORM f_bdc_dynpro USING 'SAPLCPDI' '1200'.
PERFORM f_bdc_field USING 'BDC_OKCODE'
'=ANLG '.
ENDIF.
ENDSELECT.
perform f_bdc_dynpro USING 'SAPLCPDA' '1200'.
perform f_bdc_field USING 'BDC_OKCODE'
'=VOUE'.
Group Counter
perform f_bdc_field USING 'PLKOD-PLNAL'
Usage
PERFORM f_bdc_field USING 'PLKOD-VERWE'
'1'.
Status
PERFORM f_bdc_field USING 'PLKOD-STATU'
'4'.
ENDAT.
PERFORM f_bdc_dynpro USING 'SAPLCPDI' '1400'.
Check if page is full
IF l_cnt_item EQ '16'.
Page down
PERFORM f_bdc_field USING 'BDC_OKCODE'
'=P+'.
l_cnt_item = 1.
ELSE.
PERFORM f_bdc_field USING 'BDC_OKCODE'
'/00'.
ENDIF.
CLEAR v_fnam.
Populate item level details
Work Center
CONCATENATE 'PLPOD-ARBPL(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-arbpl.
Control Key
CONCATENATE 'PLPOD-STEUS(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
c_steus.
Description of Operation
CONCATENATE 'PLPOD-LTXA1(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-ltxa1.
Base Quantity
CONCATENATE 'PLPOD-BMSCH(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-bmsch.
Unit of Measure
CONCATENATE 'PLPOD-MEINH(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-meinh.
Machine
CONCATENATE 'PLPOD-VGW01(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-vgw01.
Labour
CONCATENATE 'PLPOD-VGW02(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-vgw02.
Unit of measure of activity
CONCATENATE 'PLPOD-VGE01(' l_cnt_item ')' INTO v_fnam.
PERFORM f_bdc_field USING v_fnam
wa_record-vge01.
l_cnt_item = l_cnt_item + 1.
CLEAR wa_record.
AT END OF matnr.
PERFORM f_bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM f_bdc_field USING 'BDC_OKCODE'
'=BU'.
wa_opt-DISMODE = 'A'.
wa_opt-DEFSIZE = 'X'.
wa_opt-UPDMODE = 'S'.
PERFORM f_bdc_transaction USING 'CA01'.
Initialize Counter
l_cnt_item = 1.
ENDAT.
ENDLOOP.
ENDFORM. " f_fill_bdctab
x----
*& Include ZROUT_INCLUDE_F_CA01 *
*& Form f_read_file
Form to read the file from presentation server
FORM f_read_file .
To get the file name
DATA l_v_file TYPE string.
l_v_file = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_v_file
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = i_record
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.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. " f_read_file
*& Form f_bdc_dynpro
Form to populate BDC Tab for new screen
-->fp_program Screen program name
-->fp_dynpro Screen Number
Start new screen *
FORM f_bdc_dynpro USING fp_program fp_dynpro.
CLEAR wa_bdcdata.
wa_bdcdata-program = fp_program.
wa_bdcdata-dynpro = fp_dynpro.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
ENDFORM. "f_bdc_dynpro
*& Form f_bdc_field
Insert field *
FORM f_bdc_field USING fp_fnam fp_fval.
IF NOT fp_fval IS INITIAL.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = fp_fnam.
wa_bdcdata-fval = fp_fval.
APPEND wa_bdcdata TO i_bdcdata.
ENDIF.
ENDFORM. "f_bdc_field
*& Form f_bdc_transaction
Call transaction and error handling
-->fp_tcode Transaction code
FORM f_bdc_transaction USING fp_tcode.
DATA: l_mstring(480),
l_color TYPE i,
l_mode TYPE c.
REFRESH i_messtab.
CALL TRANSACTION fp_tcode USING i_bdcdata
OPTIONS FROM wa_opt
MESSAGES INTO i_messtab.
Messages during upload
LOOP AT i_messtab INTO wa_messtab.
CASE wa_messtab-msgtyp.
WHEN 'S'.
l_color = 5.
WHEN 'E'.
l_color = 6.
WHEN 'W'.
l_color = 3.
ENDCASE.
FORMAT COLOR = l_color.
SELECT SINGLE * FROM t100 WHERE sprsl = wa_messtab-msgspra
AND arbgb = wa_messtab-msgid
AND msgnr = wa_messtab-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
WRITE: / wa_messtab-msgtyp, l_mstring(250).
ELSE.
WRITE: / wa_messtab.
ENDIF.
FORMAT COLOR OFF.
ENDLOOP.
SKIP.
ENDFORM. " f_bdc_transaction
FORM F1001_GET_F4.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SY-REPID
DYNPRO_NUMBER = SY-DYNNR
FIELD_NAME = P_FILE
CHANGING
FILE_NAME = P_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
File is not selected
MESSAGE I000 WITH TEXT-M01.
ENDIF.
ENDFORM. " F1001_GET_F4Sudipta,
Would request you to post this to ABAP-Forum for Immediate response.
I had this problem, but the ABAP guy did something to correct this...it was more of screen resoultion difference between the recorded system and uploading system. Please try to use the same system which was used to record and try.
Regards,
Prasobh -
Facing problem to upload MRP output PO from more than one user
We have 11 users in our company. but we can upload MRP output PO from only one user. we need to upload from more users... please help
Hi Hitul,
Query is not clear.
MRP output will be planned order or purchase requsition. Purchase requsition further converted to purchase order. Are you using any Z developed program for uploading the Purchase Orders (PO) in system ? If so there might be some restriction coded in the program for upload by authorized user id which colud be maintained in any Ztable. Please check and come back. If my understanding is wrong please eleborate your requirement.
Thanks & Regards,
Ramagiri -
Problem in Uploading a File by Applet
Hi Members,
* I have faced problem while uploading a file from client to server by ftp protocol using APPLET(No JSP) only
* I am getting exception while running....
* My source code is as follows,
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class UploadAndDownload extends Applet implements ActionListener {
Button upload;
Button browse;
TextField filename;
File source = null;
Label name;
StringBuffer sb;
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
public void init() {
setLayout(new FlowLayout());
upload = new Button("Upload");
browse = new Button("Browse");
name = new Label("Filename");
filename = new TextField("", 45);
add(name);
add(filename);
add(upload);
add(browse);
upload.addActionListener(this);
browse.addActionListener(this);
public void actionPerformed(ActionEvent evt) {
// Code for browsing a file
String input_file_name = "";
if (evt.getSource() == browse)
Frame parent = new Frame();
FileDialog fd = new FileDialog(parent, "Select a file", FileDialog.LOAD);
fd.setVisible(true);
input_file_name = fd.getFile();
filename.setText(input_file_name);
// Gets the file from the file dialog and assign it to the source
source = new File(input_file_name);
repaint();
// Code for Uploading a file to the server
if (evt.getSource() == upload) {
// Appending the server pathname in string buffer
sb = new StringBuffer("ftp://");
sb.append("2847");
sb.append(':');
sb.append("Websphere25");
sb.append("@");
sb.append("172.16.1.111");
sb.append('/');
sb.append(input_file_name);
sb.append(";type=i");
try {
URL url = new URL(sb.toString());
URLConnection urlc = url.openConnection();
bos = new BufferedOutputStream(urlc.getOutputStream());
bis = new BufferedInputStream(new FileInputStream(source));
int i;
// Read from the inputstream and write it to the outputstream
while ((i = bis.read()) != -1) {
bos.write(i);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (bis != null)
try {
bis.close();
} catch (IOException ioe) {
ioe.printStackTrace();
if (bos != null)
try {
bos.close();
} catch (IOException ioe) {
ioe.printStackTrace();
MY EXCEPTION IS,
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.net.SocketPermission 172.16.1.111:80 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
at UploadAndDownload.actionPerformed(UploadAndDownload.java:68)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)* Please let me know what problem in my code....
* Thanks in advance....* Thanks for your reply....
* I have signed my policy file by giving AllPermission and mentioned in java.security file in bin folder....
* My question is , by giving AllPermission , can we access and do all permissions like ( SecurityPermission, AWTPermission, SocketPermission, NetPermission, FilePermission, SecurityPermission etc )...
* My policy file is looks like follow,
/* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/
/* DO NOT EDIT */
grant {
permission java.security.AllPermission;
};* If i signed the policy like above, and when i run the applet file in InternetExplorer now , it thorws the following exception on my console,
java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
at UploadAndDownload.actionPerformed(UploadAndDownload.java:68)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)* Please let me know , how to solve this and give me your suggestion on the above process...
* Thanks in advance...
Regards,
JavaImran -
Problem of uploading data in Data Warehouse
I am using Oracle9i Warehouse Builder on Windows 2000 and i just started working in it. I am facing problem in uploading data from source schema to Target schema
I) Created Source Moulde -- Link to One schema from where i have get data
2) Created Warehouse Target Module -- I have created dimesnions , facts , Mapping and i deployed dimensions , fact and mapping. As a result of it i got dimension table , dimension , fact table , facts ,mapping package and TCL script for mapping. I deployed all of them and register TCL script with OEM .
But my job created in OEM is not running. If run then does not upload any data and If I try to run job from the backend manually then it gives me message that No active job exist..
Thanks in advance
SurinderI was getting the same error. I don't know if a step failed somewhere in the install or if I missed performing a manual step but I just fired up TOAD and manually inserted a record into the WB_RT_JOB table. I set the RTJ_JOBNAME = DEFAULT_JOB and RTJ_STATUS = BEGIN. The rest of the columns I just entered best guesses. I commited and then my job would run. I guess it just needs a seed record.
Lewis -
Problem in Uploading sales order text data using LSMW
Hi All,
I am facing Problem in uploading open sales order data from legacy to SAP using LSMW.
We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but have no problem in uploading remaining data.
the details we are passing to BTEXHKOM structure are......
BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXHKOM-LAISO = 'EN'.
BTEXHKOM-TDID = 'Z009'.
and the for structure BTEXLKOM
BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXLKOM-TXPARGRAPH = '/'.
CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
we have three input source structures.
IHEADER Header structure
LITEM Line item structure ( Material data )
IPARTN Partners structure
The structure relationships are
BTEXHKOM <<< IHEADER.
BTEXLKOM <<< IHEADER.
Please let me know if I am doing some thing wrong or some thing else need to be done.
Thanks,
Chindam.you can pass below values also
OLDNR : order number and item nuber
TXPARGRAPH : VBBK
TXLINE : your text..... -
Problem while uploading data with GUI UPLOAD Function
Hi,
I am facing problem while uploading data with FM GUI UPLOAD in out text file there are 7 row but after the FM GUI UPLOAD there are 14 entries are coming in Internal table and each alternate row is coming as blank with 0000 in some column in internal table first row is proper and second line is blank so on.
what can be the problem .
The program in which we are using this we are using it from last 2 year but we are facing problem today only.
regards,
zafarHi,
The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change in the file formate.
So waht can be the problem to check any inconsistancy in system i have develop a samll program fro uploading a text file with same function module , but it is working fine.
regards,
zafar -
Long text problem while uploading Inspection plan through BDC.
Hi,
I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.
I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.
Waiting for quick solution.
Thanks in advance.
FahiéHi a®s,
Thanks a lot for your kind reply.
My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).
When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.
I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).
Waiting for quick solution.
Thanks in advance.
Fahié -
How to avoid the split problem when uploading the data from csv file
Dear Friends,
I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
i am using the code as below , please suggest me what i have to do in this regard
SPLIT wa_raw_csv AT ',' INTO
wa_empdata_csv-status
wa_empdata_csv-userid
wa_empdata_csv-username
wa_empdata_csv-Title
wa_empdata_csv-department.
APPEND wa_empdata_csv TO itab.
in the flat file i can see for one of the record for the field Title as
Director, Finance - NAR............there by through my code the wa_empdata_csv-Title is getting splited data as "Director, and Department field is getting Finance - NAR" , i can see that even though " Director, Finance - NAR" is one word it is getting split .
.......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
"Director,Finance - NAR" wil not be split into two words.
Thanks & Records
MadhuriHi Madhuri,
Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
If you are generating the file, use tab instead of comma.
If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
Regards,
Mohaiyuddin -
Scheduling Problem for uploading Data from Flat file to SAP
Hi guys,
I am facing a weared problem in uploading some leave records in z table. The code is working fine if we run it through se38 after selecting the file from a shared location from production server which has all the access rights.
This folder lies in the \usr folder of SAP Production.
I have kept all the Flat files in the shared path "
Tis-mum-iz-s1\migration\SAP-INT\leave\" ...
To give u exact directory structure..
Tis-mum-iz-s1 is the Server Name
usr is the SAP System folder used for uploads and downloads
usr |
...-> Migration |
-> SAP-INT |
-> leave -> (Flat Files)
Migration folder is shared with all rights.
Obviously, we cannot give shared drive as the variant in the scheduler.
So i use the system path i.e. \usr\sap\tmp\migration\sap-int\leave\ as the variant.
All my other download programs are working fine with this path as a variant...
But my this particular upload program does not work with this path....
I am giving u my code...
TATA INTERACTIVE SYSTEMS (A Division of TATA INDUSTRIES LIMITED)
REPORT : ZMIGRATE_ZLEAVE
DESCRIPTION : To Upload the Leave data. (ZLEAVE)
CREATED BY : Abhishek Bachhawat
CREATED ON : 01.09.2005
CONSULTANT : ANAND
REPORT ZMIGRATE_ZLEAVE.
TABLES: ZLEAVE.
data: begin of wtab,
MANDT(3),
ZLVID(8),
PERNR(8),
ZSTDT(8),
ZENDT(8),
ZDAYS(4),
AEDAT(8),
ERDAT(8),
end of wtab,
itab like WTAB occurs 0 WITH HEADER LINE.
data: temp like zleave occurs 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK file
WITH FRAME TITLE text-005.
parameters: file like rlgrap-filename Obligatory.
Concatenate File SY-DATUM '_Leave.txt' into File.
SELECTION-SCREEN END OF BLOCK file.
at SELECTION-SCREEN ON VALUE-REQUEST FOR file .
CALL FUNCTION 'WS_FILENAME_GET'
IMPORTING
FILENAME = file.
IF SY-SUBRC <> 0.
ENDIF.
start-of-selection.
if file ne space.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = ITAB.
else.
message e000(zps) with 'Specify a file'.
endif.
SORT ITAB BY ZLVID.
LOOP AT ITAB.
REFRESH TEMP.
CLEAR TEMP.
TEMP-MANDT = sy-mandt.
TEMP-ERDAT = SY-DATUM.
TEMP-ZLVID = ITAB-ZLVID.
TEMP-PERNR = ITAB-PERNR.
TEMP-ZSTDT = ITAB-ZSTDT.
TEMP-ZENDT = ITAB-ZENDT.
TEMP-ZDAYS = ITAB-ZDAYS.
TEMP-AEDAT = ITAB-AEDAT.
TEMP-ERDAT = ITAB-ERDAT.
APPEND TEMP.
SELECT SINGLE *
FROM ZLEAVE
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
IF SY-SUBRC = 0.
UPDATE ZLEAVE SET ZSTDT = TEMP-ZSTDT
ZENDT = TEMP-ZENDT
ZDAYS = TEMP-ZDAYS
AEDAT = TEMP-AEDAT
ERDAT = TEMP-ERDAT
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
ELSE.
INSERT ZLEAVE FROM TABLE TEMP.
COMMIT WORK.
ENDIF.
ENDLOOP.Hi,
open dataset file for input in text mode.
check sy-subrc = 0.
while sy-subrc = 0.
read dataset file into wa.
if sy-subrc = 0.
append wa to itab.
else.
exit.
endif.
endwhile.
close dataset file.
regards
Siggi
PS: check also the F1-help for open, read and close statements! -
Problem when uploading a large file in PI - weird SQL I/O errors
Hi guys,
I'm facing a very difficult problem when uploading a 35 MB with an FTPs adapter. I see in the logs that, after the translation to XML, it's going to 170 MB.
I receive the following error in the CC Monitoring:
Error: com.sap.aii.af.ra.ms.api.DeliveryException: Problem inserting 41827ca7-6b8c-4a87-198d-ad8a81fcb12b(OUTBOUND) into the database: com.sap.engine.services.dbpool.exceptions.BaseSQLException: Connection is invalid.
When I look in the NWA Monitoring, I see the following details:
SQL error occurred on connection affhb201:X11:SAPSR3DB: code=17,002, state="null", message="Io exception: Socket closed";
SQL statement is "INSERT INTO "XI_AF_MSG" ("MSG_ID","DIRECTION","MSG_BYTES","TIMES_FAILED","SENT_RECV_TIME","STATUS","CONN_NAME","MSG_TYPE","REF_TO_MSG_ID","ADDRESS","TRANSPORT","CREDENTIAL","TRAN_HEADER","MSG_PROFILE","CONVERSATION_ID","SCHEDULE_TIME","PERSIST_UNTIL","FROM_P........
I cannot check the Visual Admin Logs 'cause I don't have access to them yet.
I'm pretty convinced that some swap memory, message size or whatever setting on the adapter engine or on the Java stack is preventing this. I do not get any message in CC Monitoring when uploading a smaller, 6 MB version of the same file.
Can you please help me solve this or give me some interesting pointers?
Never before did we experience something like this in the PI system. In addition, I didn't find any useful resource on the SDN and throughout the SAP notes for this.
Let me know if you need more info about this.
Best regards,
GeorgeHi George
I am facing the same issue, where did you configure the message split in the Communication Channel?
If I do the message split as you said, is it going to create several files or how does it work?
Thanks in advanced
Emmanuel -
Facing problems while mapping fields in LSMW.
Hi Friends,
i got a requirement to upload the address. Address is in
flat file.requirement is to use LSMW with object 0602 and the
standard report program is RSADRLSM02.This standard report
program uses the structures for uploading are ADR_LSM0 to
ADR_LSM6.But i have some fields in the source structure are
not at all related to the fields in destination structure(i.e ADR_LSM0 to ADR_LSM6)therefore i am facing problem while
mapping the source and destination fields.is there any other
way to map the fields.Please help me it's very urgent.
Thanks in advance.
Regards,
Sumiti Gupta.Thanks for the reply santosh.
GIS FIELD SAP LOCATION
ADDR_GID(10char) EXADR-KUNNR
STR_NO(10) ADR_LSM0-STRT_CODE
STR_NAME (42) ADR_LSM0-STREET
ADDRESS_UNIT(7) ADR_LSM0-HOUSENUM_H
and
ADR_LSM0-HOUSENUM_L
ADDRESS_UNIT_TYPE(5) EVBSD-VBSART
POST_CODE (10) ADR_LSM0-POST_CODE
MUNI_NAME (40) EXADR-APPLDATA
MAILING_CITY(60) ADR_LSM0-CITY_NAME
MAP_PAGE(4) EADRSTRTGRID_GRID_ID
EVAC_ZONE(1) EVBSD-ZEVAC
PIN_NUM (18) EHAUD-PLTXT
in the above fields the structure with ADR_LSM0 are found with the other fields i m not able to find the similar fields in the destination structure.Please help me.
Regards,
Sumiti Gupta. -
Facing problem in JavaStoredProc being called from plsql pass JPublisher
I'm facing problems in calling java stored procedure from a plsql procedure.
1) I have a plsql types
create or replace type wwpro_api_portlet_instance
as object
portlet_inst_guid varchar2(60),
provider_id number(38),
portlet_id number(38),
ref_path varchar2(100)
create or replace type wwpro_api_portlet_instances
as table of wwpro_api_portlet_instance
2)I create java classes from JPublisher for these types as attached with this mail.
3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
and then pass it to another procedure which is a CallSPec for the java class.
Call Spec
procedure export_data_internal
p_http_url in varchar2,
p_timeout in number,
p_service_id in varchar2,
p_proxy_host in varchar2,
p_proxy_port in number,
p_proxy_username in varchar2,
p_proxy_password in varchar2,
p_portal_version in varchar2,
p_encryption_key in varchar2,
p_message_lang in varchar2,
p_export_id in varchar2,
p_provider_id in varchar2,
p_debug_level in number,
p_portlet_instances in wwpro_api_portlet_instances
)as language java
name 'oracle.webdb.provider.web.ExportImportClient.exportData(
java.lang.String,
int,
java.lang.String,
java.lang.String,
int,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.Integer,
oracle.webdb.provider.web.PortletInstanceArray
Procedure calling Call Spec
procedure export_data
p_export_id in varchar2,
p_provider_id in number,
p_portlet_instances in wwpro_api_provider.portlet_instance_table
) is
begin
--calling Call Spec
export_data_internal
p_http_url => l_provider.http_url,
p_timeout => l_provider.timeout,
p_service_id => l_provider.service_id,
p_proxy_host => l_provider.dbtier_proxy_hostname,
p_proxy_port => l_provider.dbtier_proxy_portnumber,
p_proxy_username => l_proxy_info.username,
p_proxy_password => l_proxy_info.password,
p_portal_version => wwctx_api.get_product_version(),
p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
p_message_lang => l_provider.language,
p_export_id => p_export_id,
p_provider_id => p_provider_id,
p_debug_level => wwpro_util.get_debug_level,
p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
//this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
eption: Closed Connection'
end export_data;
4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
public static void exportData
String url,
int timeout,
String serviceId,
String proxyHost,
int proxyPort,
String proxyUser,
String proxyPass,
String portalVersion,
String sharedKey,
String messageLocale,
String exportId,
String providerId,
Integer portalDebugLevel,
PortletInstanceArray instances
)throws Exception
oracle.webdb.provider.v2.adapter.soapV1.SOAPException
try
conn = DriverManager.getConnection("jdbc:default:connection:");
stmt = conn.createStatement();
stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
// Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
//This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
//This has worked once but did not work after that, I tried this in the 10g as well as 901
conn.commit();
}catch(SQLException sqe){
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
conn.commit();
throw sqe;
catch(Exception e)
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
conn.commit();
throw e;
Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
What Shold I try to over come this ?
Also
thanks
rahulI'm facing problems in calling java stored procedure from a plsql procedure.
1) I have a plsql types
create or replace type wwpro_api_portlet_instance
as object
portlet_inst_guid varchar2(60),
provider_id number(38),
portlet_id number(38),
ref_path varchar2(100)
create or replace type wwpro_api_portlet_instances
as table of wwpro_api_portlet_instance
2)I create java classes from JPublisher for these types as attached with this mail.
3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
and then pass it to another procedure which is a CallSPec for the java class.
Call Spec
procedure export_data_internal
p_http_url in varchar2,
p_timeout in number,
p_service_id in varchar2,
p_proxy_host in varchar2,
p_proxy_port in number,
p_proxy_username in varchar2,
p_proxy_password in varchar2,
p_portal_version in varchar2,
p_encryption_key in varchar2,
p_message_lang in varchar2,
p_export_id in varchar2,
p_provider_id in varchar2,
p_debug_level in number,
p_portlet_instances in wwpro_api_portlet_instances
)as language java
name 'oracle.webdb.provider.web.ExportImportClient.exportData(
java.lang.String,
int,
java.lang.String,
java.lang.String,
int,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.Integer,
oracle.webdb.provider.web.PortletInstanceArray
Procedure calling Call Spec
procedure export_data
p_export_id in varchar2,
p_provider_id in number,
p_portlet_instances in wwpro_api_provider.portlet_instance_table
) is
begin
--calling Call Spec
export_data_internal
p_http_url => l_provider.http_url,
p_timeout => l_provider.timeout,
p_service_id => l_provider.service_id,
p_proxy_host => l_provider.dbtier_proxy_hostname,
p_proxy_port => l_provider.dbtier_proxy_portnumber,
p_proxy_username => l_proxy_info.username,
p_proxy_password => l_proxy_info.password,
p_portal_version => wwctx_api.get_product_version(),
p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
p_message_lang => l_provider.language,
p_export_id => p_export_id,
p_provider_id => p_provider_id,
p_debug_level => wwpro_util.get_debug_level,
p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
//this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
eption: Closed Connection'
end export_data;
4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
public static void exportData
String url,
int timeout,
String serviceId,
String proxyHost,
int proxyPort,
String proxyUser,
String proxyPass,
String portalVersion,
String sharedKey,
String messageLocale,
String exportId,
String providerId,
Integer portalDebugLevel,
PortletInstanceArray instances
)throws Exception
oracle.webdb.provider.v2.adapter.soapV1.SOAPException
try
conn = DriverManager.getConnection("jdbc:default:connection:");
stmt = conn.createStatement();
stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
// Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
//This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
//This has worked once but did not work after that, I tried this in the 10g as well as 901
conn.commit();
}catch(SQLException sqe){
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
conn.commit();
throw sqe;
catch(Exception e)
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
conn.commit();
throw e;
Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
What Shold I try to over come this ?
Also
thanks
rahul -
Problem in uploading document in KM content in portal
Hello All,
I am functional consultant and new to portal.Please help me in resolving below issue .
I am facing a problem while uploading document in KM content in portal
When i browse the file from Desktop and click on upload .file does not get uploaded and also it does not throw any error or info message .
Please help.
Thanks
ArchanaDear Archana,
Please refer the SAP Note 898637. Hope it is helpful.
Regards,
Samir -
Problem when upload legacy data
Hi all,
I've faced a problem when uploading asset legacy data (AS91) for customer. My customer have started depreciation on May 21, 2009, and I set transfer date is November 30, 2010. So SAP doesn't calculate right planned value for December, 2010. I think that problem related to the first month depreciation. It calculated full month for depreciation (instead of from May 21) and change the planned value for December 2010. So I want SAP just calculate 11 days depreciation for May 2009. How can I config to do this?
Thanks in advance!Hi,
Check in the asset master Opening Start Date for depreciation.. If it is under open mode change that date and see asset explorer for depreciation values.
Thanks,
Padmaja
Maybe you are looking for
-
Cannot receive calls when using Edge network for data?
Hi, This afternoon someone was trying to reach me urgently and all her calls to my iPhone went straight into my voicemail. My phone never rang and never showed missed calls. I spoke to Aaron at Apple, thinking there might be a problem with my phone,
-
Can I use Apple TV to play iTunes from my iMac on my home stereo?
How does Itunes from my Imac connect to my home stereo using Apple TV?
-
I misspelled my password when I changed it and now I don't know what it is
I was going to change my password and I ended up mispelling it - not just once but twice (when you verify it). So it is now successfully changed but changed to what? I don't know - Is there any fail safe for a master password? I need it so I can down
-
FormCalc/Javascript validations
Hello Experts I am looking for a suitable event in Adobe Interactive forms which can cancel the processing of the form if any field value is not accoding to the validation while the form is getting submitted? Ideally it should cancel the submit of th
-
With Firefox 4, pdf files don't display anylonger
when I click on link to a pdf files (I tried in several sites, inlcuded Mozilla) a new tab opens but the pdf content doesn't dispaly; sometimes clickin on the reload button the content is displayed but deafult beahvior is not dispalying any content.