Career Change into SAP
Hai
I am sajesh ,did my diploma in Mechatronics i have a 4 years of experience in the maintenance field(production industry) .Now i would like to change my career in to SAP. I have experience in using SAP in my previous organisations.I got an opening with Westmount Technology Pvt Ltd Singapore for 6Months Training in SAP & Job.
Which module will suite for me,P.P,M.M... Plant Maintenance is a module or is it coming under P.P
Any body undergone TRG in Westmount Technology Pvt Ltd Singapore ???
Edited by: devjannan on Oct 28, 2009 4:38 AM
Edited by: devjannan on Oct 28, 2009 4:40 AM
Dear,
SAP Warehouse Management --- I can say its an extension of Inventory management activities which closely related with MM.
The SAP Warehouse Management (WM) application provides flexible, automated support to assist you in processing
all goods movements and in maintaining current stock inventories in your warehousing complex.
WM supports warehousing processes by making it possible for you to
Define and manage complex warehousing structures
Optimize material flow using advanced putaway and picking techniques
Process goods receipts, goods issues and stock transfers quickly and easily
Although it is possible for you to manage warehouse inventories using the Inventory Management (IM) application component, the primary difference between managing stock in WM and in IM is that in IM, the system can only display the total stock of a material for a storage location. If a warehouse is small and easily manageable, then the use of IM may be sufficient to fulfill your needs.
WM, on the other hand, offers the capability to manage stock quantities in each individual storage bin in highly complex storage facilities. This means that, with WM, you can optimize the use of all storage bins, mix pallets belonging to several owners in randomly slotted warehouses and know exactly where a particular material is located in the warehousing complex at all times.
Coming straight to answer you question : will it suite with my Experience ???
Basing on the first my reply, if you decide to move ahead with MM and Inventory activities / or / you interested in Supply Chain areas - well its definetely helpful and not only helpful more fruitful for a functional consultant with MM to get knowledge in WM activities.
Regards,
Syed Hussain.
Similar Messages
-
Any best practices for getting change-log data similar to that captured in CDHDR/CDPOS tables into SAP BI? What options exist for tracking changes to sales orders or invoices into SAP BI without touching CDHDR/CDPOS tables?
Thanks,
Vinny Ahujahi,
you check weather that data source carried out delta loading or not by using
RSA7 T-Code. In represents to sales or invoices, if that particular data source meant
for delta loading into bw means it will show status green. by seeing this particular
data source carried out delta loading in to bw system.
if helpful provide points
regards
harikrishna N -
How to enroll my career into SAP
heya,
i am new bee into SAP.
i am Mahipal from Gujarat, INDIA.
i did my B.E in Computer Science, then after i completed my MBA(IT) two years.
now i want to pursue my career in SAP implementation.
so, can any one guide me, how to start with it?
and which module i should choose?Hi Mahipal,
Great to hear about your interest in SAP.
Please let me share a few great resources with you.
SAP HANA Academy - this is the best place to start up with the latest offering/ innovation by SAP. Loaded with videos, tutorials, use cases and more
http://www.saphana.com/community/implement/hana-academy
Next you can visit this website www.traning.sap.com where you will be able to see the schedule of trainings in India for 2013. With regards with the module to choose - this is something you must decide depending on your specialization, industry experience and interest.
I will shortly send you an email about StudentCouncil@UA which is a gourp/ community of students in India who are interested in SAP. The purpose of the SAP Student Council is to facilitate mutual exchange between students and SAP, to give students the opportunity to influence and to offer an additional means for SAP to listen to students and find out about their proposals and interests.
Regards
Chiranjeev -
How to get into SAP Career when having 10 year experience in sales?
Dear all,
Please suggest me how to get into SAP career, I have 10 year exp in sales specialized in Channel sales in consumer durable industry in India, Is there any scope for sales professional in SAP? I dont have any experience in SAP, but want to learn and get into SAP career.....how do I begin please suggest
Thanksvapin,
Search for online training institutes on the net. Each of these gives a demo. By attending the demo make a selection of the institute.
On Youtube too, there are lots of SD training videos. Check those.
TW
Added: A good trainer will have the following:
1 - give business examples, to explain functionalities
e.g. intercompany sale process: the process from his experience, what are the key benefits to business etc.
IMP: Functional consultant is first about understanding the business process and second about configuration etc. in SAP
2 - patience
he should not be reluctant to answer your questions properly
he should sense how you are understanding the concepts, and take necessary actions
3 - mentor
what should be your next steps - how to prepare SD, how to prepare your resume, how to prepare for interviews etc. etc.
Message was edited by: TW Typewriter - added in blue -
Address of the user changed updated into sap but still not reflecting at
address of the user changed updated into sap but still srm shopping has the old
address .
what could be the possible reasons of this bug?Hi
Which SRM version are you using ? <b>We encountered the Same Issue long time back -></b>
Are you updating the Addresses in Web Transaction or using SAP GUI (SU01 transaction) ?
<b><u>Please go through the following SAP OSS Notes below, which will definitely help -></u></b>
Note 930371 - SRM 5.0: BBPUM01 Check Data
<u>Related Notes</u>
Note 931556 - SRM 5.0: Hiding the BBPUM01/BBPUM02 button
Note 923461 - SRM 5.0: BBPUM01 description for position
Note 885954 - SRM-UME: User synchronization with wrong address data
Note 884067 - BPartner w/o an private address can't change their settings
<u>Do let me know.</u>
Regards
- Atul -
Want to change carrer into SAP? need help
Hello,
I want to make my carrer into SAP Techno - Functional area, myself having 8 years experience into j2ee based technologies.
Could you please help me out which SAP module I will go for.
Rgards
PyogeshHi Pyogsh,
It would be great if you move to the middle-ware of SAP. Your java knowledge helps you to become an expert in this. SAP PI is used as the middle ware.
Regards
Harisankar -
Career Advice for SAP BI veteran
Hi SAP Community!
I'm Mike. I had been an SAP consultant for about 13 years. The last 3 years, have not been working as SAP consultant.
My experience:
SAP Basis 5 years .
SAP BPS 2 years.
SAP BW / BI / BI-IP 6 years.
I have never been a team leader. Always a consultant. a Doer.
I am now in my late 30's. I would like to progress/ transition into a more suitable position.
I have attained my PMP certification 2 years ago. But, as said, no management experience.
In the last 3 years when I was out of the scene, I was doing all kinds of low wage jobs. It started with the financial crisis.
Back then, not many projects were available. What made worse was SAP BI-IP had a replacement of sorts : BPC, BO and BI Accelerator.
I had given up SAP BI for the last 3 years. Now, I want to be back into SAP line. Outside of SAP line, I feel like a loser.
I am not sure if I should go for SAP BO training that would cost me a bomb as its again all the technical details to learn.
I feel that I am too old to keep repeating learning technical things that keep changing. i have the ability to keep learning. I have proven this in my career. But I like to have a career using my SAP experience and use my PMP.
I would like your kind advice how to make my next career move. What would you recommend me to do?
Thanks for reading. Hope to hear from you.
Best regards
MichaelHello,
I don´t have any special advice, since you´re much older and more experienced and I cannot tell how to put your skills into the best use. But.. if you would like to start with something new, "cutting edge", like BO a blog of mine could help. Check it here: /people/otto.gold/blog/2010/07/20/how-to-play-around-with-sap-and-crystal-reports-trial-versions-only Using the blog you should be able to recreate a training landscape (and it should not take you like weeks since you have "some" basis experience) and you can give it a try for free before you decide to go this way or not. If nothing else, I could spare you some money.
Wish you all the needed luck,
regards Otto -
hi,guruvulu
this is the program...............to insert the data into sap r/3 table
but record is not inserting....any commit i have to write in my program?
Created on Feb 20, 2007
TODO To change the template for this generated file go to
Window - Preferences - Java - Code Style - Code Templates
package comm;
@author sapusr006
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Example2.java
Property of SAP AG, Walldorf
(c) Copyright SAP AG, Walldorf, 2000-2005.
All rights reserved.
//import java.sql.Connection;
//import java.sql.PreparedStatement;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.IRepository;
import com.sap.mw.jco.JCO;
@version 1.0
@author SAP AG, Walldorf
public class Fm {
// The MySAP.com system we gonna be using
static final String SID = "R3";
// static String query="insert into BAPI_COMPANYCODE_GETLIST values(?,?)";
// The repository we will be using
IRepository repository;
//ESTABLISHING A CONNECTION TO SAP
public Fm()
try {
JCO.addClientPool( SID, // Alias for this pool
10, // Max. number of connections
"800", // SAP client
"RFCTEST", // userid
"welcome", // password
"EN", // language
"10.10.88.170", // host name
"01" );
// Create a new repository
// The repository caches the function and structure definitions
// to be used for all calls to the system SID. The creation of
// redundant instances cause performance and memory waste.
repository = JCO.createRepository("MYRepository", SID);
catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// RETRIEVES AND DISPLAY A ZHR INFOTYPE OPERATION
public void salesOrders()
JCO.Client client = null;
try {
// Get a function template from the repository
//System.out.println("goes to sales order");
IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZHR_INFOTYPE_OPERATION");
System.out.println("hai");
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
JCO.ParameterList paralist=function.getImportParameterList();
paralist.setValue("0000000011","PERNR");
paralist.setValue("UPD","ACTIO");
paralist.setValue("A","TCLAS");
System.out.println("hello");
paralist.setValue("20061215","BEGDA");
System.out.println("hello");
paralist.setValue("20061215","ENDDA");
paralist.setValue("1","OBJPS");
paralist.setValue("LTA","SUBTY");
System.out.println("SETTING VALUES");
// Get a client from the pool
client = JCO.getClient(SID);
System.out.println("goes to sales order");
//function.getImportParameterList().setValue("QUERY_TABLE","ZHRJ2EETEST");
//EXECUTING THE FUNCTION
client.execute(function);
System.out.println("after exeucting the function");
// NO OF IMPORT PARAMS IT DISPLAY
//STRUCTURE
JCO.Structure returnStructure =
function.getExportParameterList().getStructure("RETURN");
String structure=returnStructure.toString();
System.out.println(structure);
JCO.Table sales_orders = function.getTableParameterList().getTable("PROPOSED_VALUES");
System.out.println("after function");
System.out.println("proposed111"+sales_orders.getNumRows());
sales_orders.firstRow();
sales_orders.appendRows(3);
sales_orders.setValue("0582","INFTY");
sales_orders.setValue("P0582-AMTEX","FNAME");
sales_orders.setValue("200.00","FVAL");
sales_orders.nextRow();
sales_orders.setValue("0582","INFTY");
sales_orders.setValue("P0582-JBGDT","FNAME");
sales_orders.setValue("20061215","FVAL");
sales_orders.nextRow();
sales_orders.setValue("0582","INFTY");
sales_orders.setValue("P0582-JENDT","FNAME");
sales_orders.setValue("20061215","FVAL");
System.out.println("proposed222"+sales_orders.getNumRows());
/*for (int i = 0; i <sales_orders.getNumRows(); i++) {
sales_orders.setRow(i);
System.out.println(sales_orders.getString("INFTY"));
JCO.Table sales_orders1 = function.getTableParameterList().getTable("MODIFIED_KEYS");
System.out.println("modified"+sales_orders1.getNumRows());
sales_orders1.setRow(1);
sales_orders1.appendRows(1);
sales_orders1.setValue("0000000011","PERNR");
sales_orders1.setValue("0582","INFTY");
sales_orders1.setValue("LTA","SUBTY");
sales_orders1.setValue("1","OBJPS");
sales_orders1.setValue("20061215","BEGDA");
sales_orders1.setValue("20061215","ENDDA");
System.out.println("modified222"+sales_orders1.getNumRows());
System.out.println("execute222"+sales_orders1.getNumRows());
for (int i = 0; i <sales_orders1.getNumRows(); i++) {
sales_orders.setRow(i);
System.out.println("hia"+sales_orders1.getString("SUBTY"));
System.out.println("NO OF ROWS ARE:---"+ sales_orders.getNumRows());
String fieldName[]=new String[sales_orders.getFieldCount()];
System.out.println("THE COLUMNS IN THE TABLE ARE:--"+sales_orders.getFieldCount());
// sales_orders.firstRow();
//COLUMNS NAMES
System.out.println(fieldName.length);
for (int iCtrst = 0;iCtrst < sales_orders1.getFieldCount();iCtrst++) {
fieldName[iCtrst] = sales_orders1.getName(iCtrst);
System.out.println(fieldName[iCtrst]);
if (sales_orders.getNumRows() > 0) {
// Loop over all rows
do {
System.out.println("----
//int r=1;
// Loop over all columns in the current row
for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements();)
JCO.Field field = e.nextField();
String compcode=field.getString();
//pst.setString(r,compcode);
System.out.println(field.getName() + ":\t" + field.getString());
// r++;
}//for
// i=pst.executeUpdate();
} while(sales_orders.nextRow());
else {
System.out.println("No results found");
if (sales_orders1.getNumRows() > 0) {
// Loop over all rows
do {
System.out.println("----
//int r=1;
// Loop over all columns in the current row
for (JCO.FieldIterator e = sales_orders1.fields(); e.hasMoreElements();)
JCO.Field field1 = e.nextField();
//String compcode=field1.getString();
//pst.setString(r,compcode);
System.out.println(field1.getName() + ":\t" + field1.getString());
// r++;
}//for
// i=pst.executeUpdate();
} while(sales_orders1.nextRow());
else {
System.out.println("No results found");
System.out.println("modified"+sales_orders1.getNumRows());
System.out.println("modified"+sales_orders.getNumRows());
//if
/* if(i>=1)
System.out.println("\t\t\tUpdated ORACLE successfully");
else {
System.out.println("FUNCTION MODULE not found in backend system.");
}//if
catch (JCO.AbapException ex) {
System.out.println("Caught an exception: \n" + ex);
}catch(Exception en){en.printStackTrace();}
finally {
JCO.releaseClient(client);
protected void cleanUp() {
JCO.removeClientPool(SID);
public static void main(String[] argv)
Fm e=new Fm();
// e.systemInfo();
e.salesOrders();
e.cleanUp();
output:
TABLE: MODIFIED_KEYS
TABLE: PROPOSED_VALUES
IMPORT ACTIO
IMPORT BEGDA
IMPORT DIALOG_MODE
IMPORT ENDDA
IMPORT LUW_MODE
IMPORT MASSN
IMPORT NO_ENQUEUE
IMPORT NO_EXISTENCE_CHECK
IMPORT OBJPS
IMPORT PERNR
IMPORT PERSG
IMPORT PERSK
IMPORT PLANS
IMPORT SEQNR
IMPORT SPRPS
IMPORT SUBTY
IMPORT TCLAS
IMPORT WERKS
EXPORT HR_RETURN
EXPORT RETURN
EXPORT RETURN1
appending
NO OF ROWS ARE:---3
THE COLUMNS IN THE TABLE ARE:--4
INFTY: 0582
FNAME: P0582-AMTEX
FVAL: 200.00
SEQNR: 00
INFTY: 0582
FNAME: P0582-JBGDT
FVAL: 20061215
SEQNR: 00
INFTY: 0582
FNAME: P0582-JENDT
FVAL: 20061215
SEQNR: 00
PERNR: 00000011
INFTY: 0582
SUBTY: LTA
OBJPS: 1
SPRPS:
ENDDA: 2006-12-15
BEGDA: 2006-12-15
SEQNR: 000hi jagadesh,
ur code is very length to see.
see the following code ,
JCO.Function objFunction =
this
.objIRepository
.getFunctionTemplate("BAPI_MATERIAL_AVAILABILITY")
.getFunction();
objFunction.getImportParameterList().setValue(strPlant, "PLANT");
objFunction.getImportParameterList().setValue(strMaterial, "MATERIAL");
objFunction.getImportParameterList().setValue(strQuantity, "UNIT");
this.objClient.execute(objFunction);
JCO.Structure ret =
objFunction.getExportParameterList().getStructure("RETURN");
String strRetMsg = ret.getString("MESSAGE");
System.out.println(strRetMsg); // it will tell whether record is inserted or not
/*JCO.Function objFunction1 =
this
.objIRepository
.getFunctionTemplate("BAPI_TRANSACTION_COMMIT")
.getFunction();
objFunction1.setValue("",WAIT);
objClient.execute(objFunction1);*/
CHECK THE RETURN MSG .IT WILL TELL THE PROBLEM
give me points if it is useful
regards
Guru
Message was edited by:
Guruvulu Bojja
Message was edited by:
Guruvulu Bojja
Message was edited by:
Guruvulu Bojja -
Fetching of multiple files from Application Server into SAP Program
Hi All,
I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
Actual issue is as below.
In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
<b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
All those 5 file's data should come into SAP at a time.
Can anybody tell me how can we solve above issue.
If any body has come across same issue please provide me with solution.
Thanks in advance.
Thanks & Regards,
Rayeez.If you want to get around the authorization check, you can do something like this.
report zrich_0001 .
parameters: p_path type epsf-epsdirnam
default '/usr/sap/TST/SYS/global'.
parameters: p_file type epsf-epsfilnam default 'CO*'.
start-of-selection.
perform get_file_list.
* FORM get_file_list *
form get_file_list.
types: name_of_dir(1024) type c,
name_of_file(260) type c,
name_of_path(1285) type c.
data: begin of file_list occurs 100,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file_list.
data: begin of file,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file.
call 'C_DIR_READ_FINISH' " just to be sure
id 'ERRNO' field file_list-errno
id 'ERRMSG' field file_list-errmsg.
call 'C_DIR_READ_START' id 'DIR' field p_path
id 'FILE' field p_file
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc <> 0.
sy-subrc = 4.
exit.
endif.
* Read the file list and add to internal table.
do.
clear file.
call 'C_DIR_READ_NEXT'
id 'TYPE' field file-type
id 'NAME' field file-name
id 'LEN' field file-len
id 'OWNER' field file-owner
id 'MTIME' field file-mtime
id 'MODE' field file-mode
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc = 1.
exit.
endif.
append file to file_list.
enddo.
* Write out the file list
loop at file_list.
write:/ file_list-name.
endloop.
endform.
Regards,
Rich Heilman -
How do I upload a network hierarhcy into SAP BW?
I am trying to import a large network hierarchy with "link nodes" into SAP BW.
I'm new to SAP, and BW 7.0 is all I know. However, apparently, you can't use the new 7.0 concepts and methods to import hierarchies. You must use older 3.5 methods, including a 3.5 InfoSource.
I found some instructions at http://help.sap.com/saphelp_nw70/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm
Which documents how do import hierarchies using 3.5 mechanisms in version 7.0.
Unfortunately, I am unable to follow these steps. I create the 3.5 InfoSource, and the docs say:
"Choose InfoSource Tree ® Your Application Component ® Your InfoSource ® Assign Source System."
However, I see no option to "Assign Source System" anywhere. Also, when I create the 3.5 InfoSource, I see the target InfoObject show up in the InfoSources tree, but I don't see a InfoSource object show up in the InfoSources tree. I'm not sure what to do.
Message was edited by: Giesen
Completely revised post.Krzys,
Thank you so much. I was trying to use a DB Connect Source System. I created a new flat file Source System and with that, I make it past step 4.
On step 5, I get asked about three different data sources. I choose "no" to the attributes and text data sources (those are import through BW 7.0 mechanisms) and "yes" to the hierarchy data source.
On Step 6, I am on the InfoSource change screen and I try to activate. I don't know what all the settings on the InfoSource mean. When I click activate, I get this error:
"InfoObj. 0GN_IOBJNM from fld IOBJNM of dataSource CSTOB_CBO_HIER is not active but BCT ex. -> Dtl Message no. RSAOLTP236"
I attempt to follow this help text and do: "RSA1" -> "Goto" -> "BI Content"
From there I see a panel, "InfoProviders by InfoAreas". There is a large tree underneath. I do a "find" for 0GN_OBJNM but nothing comes back. I don't know how to proceed.
I also do a Google for 0GN_OBJNM. I found the Best Practices Article BS1 which mentions activating the 0GN_OBJNM object. I try to follow step 3.3.2, however at step 2.c, I get a running stopwatch cursor that lasts for several hours. I assume it's hung. CPU+Disc on SAP server are idle.
Swapna,
I tried to follow the PDF file that you linked. However, I can't do transaction SE38 since I can't get a developer code. The following steps seem similar to Krzys's suggestion where I'm getting the issues above. -
How to read the data from a PDF document into SAP
Hi Everyone,
I am trying to read a PDF document from my desktop and get the data into SAP but i am not getting successful.
I am using the method cl_gui_frontend_services=>gui_upload and passing the filename and type and importing the file length and the data into an internal table.
I tried the file type as ASC but i couldn't get any records in the internal table and the filelength is displayed as 0.
When i tried the file type as BIN, it is giving the short dump. I guess that is because the file i am trying to read is not with the extension BIN.
Please Advice me on this
PoornimaHi Kiran,
Below is my program..
REPORT zpdf_data_update.
DATA : lt_file_table TYPE filetable.
DATA : lv_rc TYPE i.
DATA : lv_filename TYPE string.
DATA : lv_filelength TYPE i.
TYPES : BEGIN OF hex_record,
data TYPE string,
END OF hex_record.
DATA: lt_rawtab TYPE TABLE OF hex_record.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = lt_file_table
rc = lv_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
READ TABLE lt_file_table
INTO lv_filename
INDEX 1.
cl_gui_frontend_services=>gui_upload(
EXPORTING
filetype = 'BIN'
filename = lv_filename
IMPORTING
filelength = lv_filelength
CHANGING
data_tab = lt_rawtab
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 ).
But it is giving me a short dump saying that the field symbol is not assigned ...
If i give the file type as ASC , then i am getting an empty table... Please advise me on this
Thanks
Poornima -
Hi guys,
How to upload a XML file into sap?
is there any function module?
can anybody give me an example program for converting or uploading XML data into sap.
regards,
vinoth.Hi all,
The XML code and XML file given is running fine for me, but when i am using it, my XML file and code, the tables GV_header and GT_item are filling in the perform but outside perform it's empty. Please find the code and XML file , PLease give the answer its urgent, points will be given for sure.
My function module code is:-
FUNCTION Z_MMI_XML_EXTRACT_COPY.
""Local interface:
*" IMPORTING
*" REFERENCE(DOCTYPE) LIKE DRAW-DOKAR
*" REFERENCE(DOCNUM) LIKE DRAW-DOKNR
*" REFERENCE(DOCVER) LIKE DRAW-DOKVR
*" REFERENCE(DOCPART) LIKE DRAW-DOKTL
*" TABLES
*" T_HEADER STRUCTURE ZFI_HEADER
*" T_ITEMS STRUCTURE ZFI_ITEMS
Load iXML Lib.
type-pools: ixml.
class cl_ixml definition load.
data: G_IXML type ref to if_ixml.
data: STREAMFACTORY type ref to if_ixml_stream_factory.
data: ISTREAM type ref to if_ixml_istream.
data: DOCUMENT type ref to if_ixml_document.
data: PARSER type ref to if_ixml_parser.
You should provide the parameter for file name
*LV_FILE_URL = 'C:input_xml.xml'.
types: begin of XML_LINE,
DATA(256) type x,
end of XML_LINE.
***types: begin of TY_HEADER,
CUST_NAME(20) type c,
CARD_NO(20) type c,
TAX_AMOUNT(10) type c,
TOTAL_AMOUNT(10) type c,
end of TY_HEADER.
***types: begin of TY_ITEM,
ITEM_NO(4) type n,
ITEM_ID(20) type c,
ITEM_TITLE(50) type c,
ITEM_QTY(10) type c,
ITEM_UPRICE(10) type c,
end of TY_ITEM.
*data: GV_HEADER type TY_HEADER.
*data: GV_HEADER like zfi_header occurs 0 with header line.
data : GV_HEADER LIKE ZFI_HEADER.
*data: GT_ITEM type standard table of TY_ITEM with header line.
*data: GT_ITEM type standard table of zfi_items with header line.
data: GT_ITEM type standard table of zfi_items with header line.
data: XML_TABLE type table of XML_LINE,
XML_TABLE_SIZE type i.
data: LV_FILE_URL type rlgrap-filename.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
DATA : BEGIN OF wa_draw OCCURS 0,
dokar LIKE draw-dokar,
doknr LIKE draw-doknr,
dokvr LIKE draw-dokvr,
doktl LIKE draw-doktl,
END OF wa_draw.
DATA : g_documenttype LIKE bapi_doc_aux-doctype,
g_documentnumber LIKE bapi_doc_aux-docnumber,
g_documentpart LIKE bapi_doc_aux-docpart,
g_documentversion LIKE bapi_doc_aux-docversion.
*" Itab required in IMPORTING parameter of BAPI
DATA : t_documentfile LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE.
DATA : t_documentstructure LIKE bapi_doc_structure OCCURS 0 WITH HEADER
LINE,
itab required in TABLES parameters of BAPI
t_documentfiles LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
t_components LIKE bapi_doc_comp OCCURS 0 WITH HEADER LINE,
t_return LIKE bapiret2.
DATA : l_docfile TYPE string.
***FILL THE TYPE OF ATTACHMENT in IMPORTING itab**
t_documentfile-wsapplication = 'XML'.
APPEND t_documentfile.
wa_draw-dokar = DOCTYPE.
wa_draw-doknr = DOCNUM.
wa_draw-doktl = DOCPART.
wa_draw-dokvr = DOCVER.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
documenttype = wa_draw-dokar
documentnumber = wa_draw-doknr
documentpart = wa_draw-doktl
documentversion = wa_draw-dokvr
documentfile = t_documentfile "IMPORTING itab of BAPI
getstructure = '1'
getcomponents = 'X'
ORIGINALPATH = ' '
HOSTNAME = ' '
getheader = 'X'
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
IMPORTING
return = t_return
TABLES
documentstructure = t_documentstructure
documentfiles = t_documentfiles "TABLES itab of BAPI
components = t_components
LOOP AT t_documentfiles .
ENDLOOP.
l_docfile = t_documentfiles-docfile.
The next step is creating the main factory for the iXML library:
G_IXML = cl_ixml=>create( ).
Now Create Stream Factory
STREAMFACTORY = G_IXML->create_stream_factory( ).
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
*filename = 'C:DMS_SPA.XML'
filename = l_docfile
filetype = 'BIN'
IMPORTING
FILELENGTH = XML_TABLE_SIZE
TABLES
data_tab = XML_TABLE.
ISTREAM = STREAMFACTORY->create_istream_itable( table = XML_TABLE
size = XML_TABLE_SIZE )
Create XML Document instance
DOCUMENT = G_IXML->create_document( ).
Create parser Object
PARSER = G_IXML->create_parser( stream_factory = STREAMFACTORY
ISTREAM = istream
DOCUMENT = document ).
Parse an XML document into a DOM tree
*parser->parse( ).
Parsing Error Processing
if PARSER->parse( ) ne 0.
if PARSER->num_errors( ) ne 0.
data: PARSEERROR type ref to if_ixml_parse_error,
STR type STRING,
I type i,
COUNT type I,
INDEX type i.
COUNT = PARSER->num_errors( ).
write: COUNT, ' parse errors have occured:'.
INDEX = 0.
while INDEX < COUNT.
PARSEERROR = PARSER->get_error( INDEX = index ).
I = PARSEERROR->get_line( ).
write: 'line: ', i.
I = PARSEERROR->get_column( ).
write: 'column: ', i.
STR = PARSEERROR->get_reason( ).
write: STR.
INDEX = index + 1.
endwhile.
endif.
endif.
Close the stream since it �s not needed anymore
call method ISTREAM->close( ).
clear ISTREAM.
DATA : GV_NODE type ref to if_ixml_node.
DATA : GV_NODETEXT type STRING.
data: GV_FIRST_TIME.
GV_FIRST_TIME = 'X'.
GV_NODE = DOCUMENT.
*GT_ITEM-item_no = 1.
GT_ITEM-itemno_acc = 1.
perform GET_DATA tables GT_ITEM
using GV_NODE
changing GV_HEADER.
Last item is still not added.
append GT_ITEM.
APPEND GV_HEADER.
*T_HEADER[] = gv_header[].
t_items[] = gt_item[].
**write : GV_HEADER-cust_name,
GV_HEADER-card_no,
GV_HEADER-tax_amount,
GV_HEADER-total_amount.
**loop at GT_ITEM.
write /:.
write : GT_ITEM-item_no,
GT_ITEM-item_id,
GT_ITEM-item_title,
GT_ITEM-item_qty,
GT_ITEM-item_uprice.
**endloop.
ENDFUNCTION.
FORM Get_data *
***form get_data tables YT_ITEM structure gt_ITEM
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type TY_HEADER.
form get_data1 tables YT_ITEM structure zfi_items
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type zfi_header.
***form get_data tables YT_ITEM structure GT_ITEM
using value(x_node) type ref to if_ixml_node
changing Y_HEADER type TY_HEADER.
data: INDENT type i.
data: PTEXT type ref to if_ixml_text.
data: STRING type string.
data: TEMP_STRING(100).
case X_NODE->get_type( ).
when if_ixml_node=>co_node_element.
STRING = X_NODE->get_name( ).
GV_NODETEXT = STRING.
when if_ixml_node=>co_node_text.
PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
if PTEXT->ws_only( ) is initial.
STRING = X_NODE->get_value( ).
case GV_NODETEXT.
when 'Customer'.
when 'HEADER'.
clear GV_HEADER.
when 'Name'.
when 'INVOICE_IND'.
move STRING to GV_HEADER-cust_name.
move STRING to GV_HEADER-INVOICE_IND.
when 'CompanyCode'.
move STRING to GV_HEADER-CompanyCode.
when 'OBJ_TYPE'.
move STRING to GV_HEADER-OBJ_TYPE.
when 'username'.
move STRING to GV_HEADER-username.
when 'PO_reference'.
move STRING to GV_HEADER-PO_reference.
when 'Invoice_Date'.
move STRING to GV_HEADER-Invoice_Date.
when 'Posting_Date'.
move STRING to GV_HEADER-Posting_Date.
when 'Amount'.
move STRING to GV_HEADER-Amount.
when 'Currency'.
move STRING to GV_HEADER-Currency.
*APPEND GV_HEADER.
Iteam details
when 'invoice_doc_item'.
move STRING to GT_ITEM-ITEMNO_ACC.
when 'currency'.
move STRING to TEMP_STRING.
move TEMP_STRING to GT_ITEM-CURRENCY.
when 'Quantity'.
move STRING to GT_ITEM-Quantity.
when 'UoM'.
move STRING to GT_ITEM-UoM.
endcase.
endif.
endcase.
if GV_NODETEXT = 'Header'.
clear GV_HEADER.
elseif GV_NODETEXT = 'Item'.
if GV_FIRST_TIME ne 'X'.
append GT_ITEM.
clear : gt_item.
GT_ITEM-ITEMNO_ACC = gt_item-itemno_acc + 1.
endif.
GV_FIRST_TIME = ' '.
endif.
Get the next child
X_NODE = x_node->get_first_child( ).
Recurse
while not X_NODE is initial.
perform GET_DATA tables GT_ITEM
using X_NODE
changing GV_HEADER.
X_NODE = x_node->get_next( ).
endwhile.
endform.
the XML file is:-
Thanx in advance -
Error : while converting a WD ABAP object into SAP Transaction
Hi,
I am trying to converting a WD ABAP object into SAP Transaction but i am getting the following error while executing the transaction :
Network Access Message: The page cannot be displayed
Technical Information (for Support personnel)
Error Code: 502 Proxy Error. The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
IP Address: 10.114.6.144
Date: 4/7/2011 10:41:
Please help.> ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
This seems to be your specific network configuration. It seems that your corporate network is blocking HTTPS requests which don't use port 443. Your ABAP system is configured to use a port other than 443. Either talk to your basis admins about changing your ABAP system configuration to use port 443 or talk to your network administrators to allow whichever port the ABAP system is running on. -
Reading XML file using BAPI and then uploading that xml file data into SAP
I am getting a xml file from Java server. I need to take
data from this file using BAPI and need to upload into SAP using SAP.
Please tell me how to read XML files using BAPI's.<b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
<b>SDIXML_DOM_TO_XML</b> Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
<b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
<b>SDIXML_DOM_TO_DATA</b>
data: it_table like t001 occurs 0.
data: l_dom TYPE REF TO IF_IXML_ELEMENT,
m_document TYPE REF TO IF_IXML_DOCUMENT,
g_ixml TYPE REF TO IF_IXML,
w_string TYPE XSTRING,
w_size TYPE I,
w_result TYPE I,
w_line TYPE STRING,
it_xml TYPE DCXMLLINES,
s_xml like line of it_xml,
w_rc like sy-subrc.
start-of-selection.
select * from t001 into table it_table.
end-of-selection.
initialize iXML-Framework ****
write: / 'initialiazing iXML:'.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
check not g_ixml is initial.
write: 'ok'.
create DOM from SAP data ****
write: / 'creating iXML doc:'.
m_document = g_ixml->create_document( ).
check not m_document is initial.
write: 'ok'.
write: / 'converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'IT_TABLE'
DATAOBJECT = it_table[]
IMPORTING
DATA_AS_DOM = l_dom
CHANGING
DOCUMENT = m_document
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
check not l_dom is initial.
write: / 'appending DOM to iXML doc:'.
w_rc = m_document->append_child( new_child = l_dom ).
if w_rc is initial. write 'ok'.
else. write: 'Err =', w_rc.
endif.
visualize iXML (DOM) ****
write: / 'displaying DOM:'.
CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
EXPORTING
DOCUMENT = m_document
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
convert DOM to XML doc (table) ****
write: / 'converting DOM TO XML:'.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = m_document
PRETTY_PRINT = ' '
IMPORTING
XML_AS_STRING = w_string
SIZE = w_size
TABLES
XML_AS_TABLE = it_xml
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
write: / 'XML as string of size:', w_size, / w_string.
describe table it_xml lines w_result.
write: / 'XML as table of', w_result, 'lines:'..
loop at it_xml into s_xml.
write s_xml.
endloop.
write: / 'end of processing'.
end of code
Hope this will be useful.
regards
vinod -
Regarding Upload of data into SAP from Application server using DATA SETS
Hi all,
I have a problem when uploading data that is application server [.txt file] into SAP using OPEN DATA SET,READ DATA SET & CLOSE DATA SET it is now going to dump. The file is actually splits the fields by using Tab Delimiter.
During uploading some junk values are coming with '#' so it going to dump and giving follow type of error.
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Unable to interpret "#0#0#0#0#0#0#0#" as a number.
Can any one solve the above issue as i need it urgently.
Thanks in advance.
Thanks & Regards,
Rayeezuddin.Hi Hielman,
Thnaks for that reply and for effort you are putting to solve my issue.
I had done the same thing what u have posted prior to your reply but still i am getting dump.
FORM f_get_legacy_data .
DATA: l_tab type xstring,
l_tab1(1) type c,
s type x.
move '23' to l_tab.
move l_tab to l_tab1.
OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE text-207 TYPE c_e.
ELSE.
DO.
CLEAR wa_input1.
READ DATASET v_pfile INTO wa_input1.
READ DATASET v_pfile INTO wa_read.
IF sy-subrc EQ 0.
move wa_read to i_txt-txt.
append i_txt.
ELSE.
EXIT.
ENDIF.
ENDDO.
s = '09'.
loop at i_txt.
move i_txt-txt+10(1) to l_tab1.
move '#' to l_tab1.
split i_txt-txt at s into wa_input1-vbeln wa_input1-posnr
split i_txt-txt at '#' into wa_input1-vbeln wa_input1-posnr
wa_input1-per0bal wa_input1-per1val
wa_input1-per2val wa_input1-per3val
wa_input1-per4val wa_input1-per5val
wa_input1-per6val wa_input1-per7val
wa_input1-per8val wa_input1-per9val
wa_input1-per10val wa_input1-per11val
wa_input1-per12val.
APPEND wa_input1 TO i_input1.
CLEAR wa_input1.
endloop.
ENDIF.
CLOSE DATASET v_pfile.
IF i_input1[] IS INITIAL.
If there is no data in the legacy file or if the structure of the
legacy data does not match with that of internal table error message
need to be displayed.
MESSAGE text-211 TYPE c_e.
*&--begin of change--
ELSE.
CLEAR: wa_input, wa_input1.
LOOP AT i_input1 INTO wa_input1.
MOVE wa_input1 TO wa_input.
MOVE: wa_input1-vbeln TO wa_input-vbeln,
wa_input1-posnr TO wa_input-posnr,
wa_input1-per0bal TO wa_input-per0bal,
wa_input1-per1val TO wa_input-per1val,
wa_input1-per2val TO wa_input-per2val,
wa_input1-per3val TO wa_input-per3val,
wa_input1-per4val TO wa_input-per4val,
wa_input1-per5val TO wa_input-per5val,
wa_input1-per6val TO wa_input-per6val,
wa_input1-per7val TO wa_input-per7val,
wa_input1-per8val TO wa_input-per8val,
wa_input1-per9val TO wa_input-per9val,
wa_input1-per10val TO wa_input-per10val,
wa_input1-per11val TO wa_input-per11val,
wa_input1-per12val TO wa_input-per12val.
APPEND wa_input TO i_input.
CLEAR: wa_input, wa_input1.
ENDLOOP.
ENDIF.
ENDFORM. " GET_LEGACY_DATA
When i am giving input as
Directory /pw/data/erp/D5S/fi/up
Name: Backlog1616_D1S.txt
BKCOPO1 BKSOI1 1000.00 100.00 -200.00 0 0 0 0 0 0 0
BKSOPO2 BKSOI2 2222.22 0 300 0 0 0 0 0 0 0
BKSOPO3 BKSOI3 -3000 400 0 0 0 0 0 0 0 0
BKSOPO4 4000.55 500 600 0 0 0 0 0 0 0
0040000000 000010 -100 -110 -110 0 0 -600 0 0 0 0
0040000001 000010 -110 -110 0 0 0 -610 0 0 0 0
I am getting i_input internal table populated as follows at the end of that subroutine.
After appending [APPEND wa_input TO i_input].
BKCOPO1#BK|000000| 0.00 | 0.00 | 0.00 |
BKSOPO2#BK|000000| 0.00 | 0.00 | 0.00 |
BKCOPO3#BK|000000| 0.00 | 0.00 | 0.00 |
BKCOPO4##4|000000| 0.00 | 0.00 | 0.00 |
0040000000|000000| 0.00 | 0.00 | 0.00 |
0040000001|000000| 0.00 | 0.00 | 0.00 |
And output is showing erronious records: 6
No entries inserted.
Can you solve this issue.
Maybe you are looking for
-
Hi, Iam using preflight in adobe professional 9 to verify compilance with PDF/A-1a. Iam getting the following errors: 1.In an indirect object keyword "obj" is not accurately followed by an EOL marker. This is explicitly prohibited by some PDF-based
-
CATS Notifications If No Time recording for the day
Hi I wan to trigger the Notification to employee If He is not recorded his work time for particular week. Ex: EE worked on some tasks in particular project as per the target hours, But he forgot to fill the time shee at the end of the week. Now i wan
-
What is the communication technology for 3D Active shutter?
Hello, I purchase Toshiba 3D screen 46tl438, the TV supplied with two active 3D glasses model: FPT-AG02G. I look pretty much everywhere (including the manual and on the glasses themselves) what is the communication technology? IR, RF or BP? I also tr
-
How to create a TAB Delimited file with blank columns
Hi, In my requirement i want to generate a tab delimated file. So i used FCC in Reciever CC and am able to create a tab delimated file. But the file content is not in the format i am expecting. File created as shown below. Eid First Name
-
I get the service handler using the API if (SQLSvcCtxGet(SQL_SINGLE_RCTX, connectionName, connectionNameLen, &osvch) != SQL_SUCCESS) When i'm using OCIHandleFree(osvch, OCI_HTYPE_SVCCTX)!=OCI_SUCCESS) any operation after this.. I get Invalid handle e