Can anybody explain this S_OUT-MAKTX+0(20)?
can anybody explain this S_OUT-MAKTX+0(20)? what 0(20) implies?
Here .. u r going to use onli <b>the first 20 characters from the beginning of the string S_OUT-MAKTX</b>..
seee...
suppose w_char is a variable of type C of 30 characters length and having the content as 'SAP-ABAP FORUMS'.
i.e w_char = 'SAP-ABAP FORUMS'.
now
w_char+0(4) = 'SAP-'.
W_CHAR+1(4) = 'AP-A'.
W_CHAR+3(5) = '-ABAP'.
i.e <b>Starting from the Third character and upto 5 characters... AND here the counting of the characters starts from 0.</b>
Hope u understood...
regards,
sai ramesh
Similar Messages
-
Can anybody explain this code ?
try {
InetAddress addr = InetAddress.getByName("java.sun.com");
byte[] ipAddr = addr.getAddress();
String ipAddrStr = "";
for (int i=0; i<ipAddr.length; i++) {
if (i > 0) {
ipAddrStr += ".";
ipAddrStr += ipAddr&0xFF;
} catch (UnknownHostException e) {Man, that's a hideous piece of code. Judging from
this line (I'm assuming the array index)...
ipAddrStr += ipAddr&0xFF;
...the code was cribbed from some other code that
applied a bitmask by someone who didn't know the API
very well, but was somewhat familiar with C.
Actually, if the method to retrieve the IP as a string didn't exist, that's exactly what I'd do. The array returned by InetAddress.getAddress() is a byte[] and, since Java uses only signed data types, you wouldn't want to inadvertently get a string containing "-64.-88.0.1" instead of "192.168.0.1".
You'll note that "& 0xFF" is a mask to an integer constant. That means that the byte (ex., -127 or 0x81) gets upcasted to an integer first (0xFFFFFF81) and then everything but the lowest order byte is cleared (0x00000081) which, indeed, gives us the "unsigned" version of that byte.
It's not at all pretty, of course. But it is pretty much the best way I know to get a value from 0-255 out of a byte in Java.
EDIT:
Oh, btw... you won't get any disagreement from me on the topic of the person not knowing the API very well. :) -
Can anybody explain me creating Generic Datasource using Function module?
Hi,
can anybody explain me creating Generic Datasource using Function module?
Thax in advance,
Ravi.Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " E_T_DATA " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
<b>is an example</b>
1.Create a function group .
2. Structure ZTEST123
ZMATNR MATNR CHAR 18 0 Material Number
ZMTART MTART CHAR 4 0 Material type
ZMBRSH MBRSH CHAR 1 0 Industry sector
ZMATKL MATKL CHAR 9 0 Material group
ZBISMT BISMT CHAR 18 0 Old material number
ZMAKTX MAKTX CHAR 40 0 Material description
3. Create function module (i.e. ZTEST .) .
FM - YMARA_DATA_TRNS
FUNCTION YMARA_DATA_TRNS.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
data : ZTEST123 type ZTEST123 occurs 0 with header line.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
S_COUNTER_DATAPAKID LIKE SY-TABIX.
DATA: begin of t_mara occurs 0,
ZMATNR type MATNR,
ZMTART type MTART,
ZMBRSH type MBRSH,
ZMATKL type MATKL,
ZBISMT type BISMT,
end of t_mara.
DATA: begin of t_makt occurs 0,
ZMATNR type MATNR,
ZMAKTX type MAKTX,
end of t_makt.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZZMARA_DATA'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
select MATNR
MTART
MBRSH
MATKL
BISMT
from mara up to 10 rows
into table t_mara.
if not t_mara[] is initial.
select MATNR
maktx
from makt
into table t_makt
for all entries in t_mara
where matnr = t_mara-zmatnr.
endif.
loop at t_mara.
read table t_makt with key zmatnr = t_mara-zmatnr.
ZTEST123-zmatnr = t_mara-zmatnr.
ZTEST123-ZMTART = t_mara-ZMTART.
ZTEST123-ZBISMT = t_mara-ZBISMT.
ZTEST123-ZMBRSH = t_mara-ZMBRSH.
ZTEST123-ZMATKL = t_mara-ZMATKL.
ZTEST123-zmaktx = t_makt-zmaktx.
append ZTEST123.
clear ZTEST123.
endloop.
clear E_T_DATA.
refresh E_T_DATA.
E_T_DATA[] = ZTEST123[].
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extractio
ENDFUNCTION.
3. Create the data source using transaction (RSO2).
4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter E_T_DATA.
5. Test the datasource in R/3 using transaction RSA3.
6. Transfer the data source to BW System and replicate it in the BW-System. -
Can anybody explain me how to sample and play audio files with logic's EXS2
can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
i cant find a way to upload and manage my own audio content on this sampler...i uderstand , thanx...
i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
Thanx -
Can anybody explain about MM data extraction with steps.
Hai everybody!
Right now i got an opportunity to work with MM datasource extraction by using LO cockpit in BI7.0. But I never worked in this
module.Pls can anybody explain how can i deal this datasource
and how can i migrate data into SAP BI. Pls give steps and explanation.
Warm Regards
Ravi.Hi,
Pls search SDN BI forum, you will get a lot of info about this.
http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
/community [original link is broken]
/people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
LOGISTIC COCKPIT DELTA MECHANISM - Episode two: V3 Update, when some problems can occur...
LOGISTIC COCKPIT DELTA MECHANISM - Episode three: the new update methods
LOGISTIC COCKPIT - WHEN YOU NEED MORE - First option: enhance it !
LOGISTIC COCKPIT: a new deal overshadowed by the old-fashioned LIS ?
Regards
CSM Reddy -
Can Anybody explain me the role of xi in IS-Retail integration and POS cons
Can Anybody explain me the role of xi in IS-Retail integration and POS cons
Hi AnilKumar,
Find the list is below:
Q: Role of xi in IS-Retail integration
Ans: **Business Content Scenario Retail
Why using XI in this scenario
�� A push of message type data to BW is required
�� XI supports quality of service Exactly once in order in push scenarios
�� Stores deliver the data according to ARTS/IX-Retail
�� XI supports ARTS/IX-Retail
�� In case the stores deliver the data as flat files they can be easily transfered to XML format via XI
Business Content Scenario Retail
Store Connectivity Scenario
�� Increase profitability by utilizing POS1 data for
controlling of retail processes and by understanding
customer behavior in a better way.
�� SAP XI as single point to collect POS sales information
as mass data from (3thd party) store systems via an open
industry specific interface (ARTS/IX-Retail2 compliant).
�� Using SAP XI as additional source for SAP BW
�� improved by Retail POS Data Management to
ensure better data quality
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0ccae190-0201-0010-1593-c90ef3c1d159
Pls rewrds if found helpful.
BR,
Alok Sharma -
Can anybody explain all the details about idoc like configuration settings etc..
Hi all can anybody explain the idoc configuration settings, communication channels sender and receiver settings
Hi,
Common steps in both Sender and Receiver:
Create logical system and assign to client
Create RFC Destinations in SM59
Create RFC Ports in WE21
Steps in Sender
Create table in SE11 and insert data
Create Segments in Tcode WE31.Define the table fields in segment
Create basic IDOC type in WE30.Specify the above created segment name,save and release the IDOC
Create message type in WE81
Assign message type to IDOC type in WE82 and release
Create partner profile in BD64,add the message type ,specify sender,receiver,message type and generate partner profile and execute.Distribute the model view
Check the partner profile in WE20
Develop a report in SE38 with code that transfers the data from source to destination
Execute the report and specify the fields to be transferred
Check the control records in WE02
Steps in Receiver:
Create an update function module in SE37
Assign the function module to logical message
Define input method in Tcode BD51
Create process code in WE42
Generate partner profile in BD64
After executing the report in sender system check in the destination system table wheather the fields are transferred
In this case a custom table has been created in sender and receiver with same structure.We can even transfer the standard table fields by using idocs
Thanks & Regards,
Sravanthi Polu -
Can anybody explain the difference REDOLG vs ARCHIVE log files
can anybody explain the difference REDOLG vs ARCHIVE log files?
and the relation between redolog files and redolog buffers?
thanx in advanceChanges made to the database are recorded in the Redo log buffer. This Buffer contains Redo records or entries, which are a description of changes made to the database.
The Redo Logs are critical in order to recover the database or to reconstruct data files and undo segments after a system crash or hardware failure.
Each Oracle instance has only one log writer process (LGWR). The log writer operates in the background and writes all records from the Redo log buffer to the Redo log files. When the database operates in Archivelog mode, the redo logs are are archived before overwritten. -
Can anyone explain this error and how to solve it?
When I create a text table and activate it at last, the system gives me a warning as this:
Exactly one field LANGUAGE of LANG type: Select as text language
Message no. DT199
I don't know what it means. Can anybody explain it?
Thank you very muchHello ZLMARK,
I think the documentation in this link will help you see the point. If not, please revert back with your exact question.
http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ea9e446011d189700000e8322d00/content.htm
Regards,
Anand Mandalika. -
CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.
CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.
Hi Santosh,
Seems u r new to SAP.
SD, MM, PP, FI ,CO,CRM ,etc... are the functional areas dealing in the SAP R/3 ERP.
They all have their own transaction code and tables. But all are integrated and related to each other.
For more info check these links.
http://www.sap-img.com/sap-mm.htm
http://www.sap-img.com/sap-sd.htm
http://www.sap-img.com/sap-pp.htm
Hope this will resolve ur query.
Reward if helpful.
Regards. -
can anybody explain me
FORM availability_check USING fp_i_orderdata TYPE ty_t_orderdata
CHANGING fp_v_selfield TYPE slis_selfield .
Local data declarations
FIELD-SYMBOLS <l_fs_orderdata> TYPE ty_orderdata.
Loop at the order data
LOOP AT fp_i_orderdata ASSIGNING <l_fs_orderdata>
WHERE selected = c_x.
Perform availability check on selected order
IF <l_fs_orderdata> IS ASSIGNED.
PERFORM avt_chk_onorder USING <l_fs_orderdata>-aufnr.
ENDIF.
ENDLOOP.
If no orders were selected
IF sy-subrc <> 0.
Please select at least 1 order
MESSAGE e095.
ENDIF.
Get the data for orders on which mass availability
check may be done, for the selection criteria.
REFRESH i_orderdata.
PERFORM get_orderdata CHANGING i_orderdata. " Order data
Update refresh indicator
fp_v_selfield-refresh = c_x.what explaination do you want .
This form is form availability check which is getting an input of table of order data looping though that doing a check for order for availibilty .
Then on delcompletion flag the fp_v_selfield .
If the earlier loop at no orders selecled then throw an erro message .
Please reward if useful. -
Can anybody explain about use of 57F4 document
can anybody explain about use of 57F4 document.
In Indian subcontracting process when you issue materials to a subcontractor, you need to keep track of what materials you have issued and when they have to be returned by subcontractor. The reason for this close monitoring has to do with Indian tax law. Under excise law 57AC, when you send materials to a subcontractor for processing, you are not required to pay any excise duty, even though the materials have left your premises. However, if the materials have not been returned to you within 180 days specified by the law, you will have to reverse any excise credit that you posted when you have purchased the materials. When you send material out of your factory premises you need to send with 57F4 Challan. In this process you are going to do the same.
The Process Flow would be
u2022 Creating Subcontracting Purchase order
u2022 Message Output for Purchase Order
u2022 Transferring of Components to Subcontractor
u2022 Creating of subcontracting Challan
u2022 Goods Receipt for Purchase Order
u2022 Reconciling Subcontracting Challan
u2022 Completing/Reversal/Re-Credit Subcontracting Challan
u2022 Logistics Invoice Verification
thanks
G. Lakshmipathi -
Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print
is this a windows in bootcamp question ?
-
Can anybody explain "Lifecasting (with Maps 3.0T S...
Hello techies....
Can anybody explain to me what is meant by
1. Lifecasting (with Maps 3.0T SR3.0)
2. Rihanna Service Launcher Added.
I have updated my phone to V50. I couldnt find anything related to the above ones.
----RakeshLifecasting: http://betalabs.nokia.com/apps/ovi-lifecasting . Sharing your location with online services like Facebook. This is integrated into the Maps program itself, look for it in there.
Rihanna Service Launcher: This will probably be in your Internet folder. It lets you see what Rihanna (the popular musician) is doing. This is Nokia's way of seeming hip & popular, much the same as how an 80 year old man might lower his pants from armpit-level to bellybutton-level to seem hip and popular.
Ravi -
Can Anybody explain me the difference between a Bapi and a webservice?
Can Anybody explain me the difference between a Bapi and a webservice?
Hi Anil,
<b>BAPI</b>
BAPI is a library of functions that are released to the public
as an interface into an existing SAP system from an external
system.A BAPI function is a function module that
can be called remotely using the RFC technology
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
In this case you only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. It is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access.
<b>Webservice</b>
In simpler terms, WebService is an application on the Web/Internet. Wheneever Service is requested by the user, it provides the service (i.e Request/Response)
A web service is a collection of protocols and standards used for exchanging data between applications or systems
In SAP world, we can expose an application into the Webservice. For e.g We can expose ABAP programs into Webservice.
XI uses SOAP adapter to communicate with webservices see below...why only soap adpater???
-> Some remote clients or Web services providers are only able to communicate by means of SOAP messages
->SOAP adapter enables you to exchange SOAP message between remote clients and Web Service Servers and the Integration Server.
-> The SOAP Adapter provides a runtime environment that includes various SOAP components for the processing of SOAP message.
-> You use the SOAP adapter to connect such systems to the Integration Server directly
-> The SOAP adapter uses a helper class to instantiate and control these SOAP components
->The SOAP adapter receives a msg from the remote client or Web service provider, converts the SOAP protocol into XI msg protocol and then sends the msg to the Integration Server to be processed further.
Basically RFCs BAPI are all SAP oriented, Webservices are language / environement independent. So, all one has to do is publish a Webservice and any external system by providing the data in the correct format, can get the approopriate response back.
see these links to know more abt webservices..
http://www.webservices.org/
http://www.w3.org/2002/ws/
regards
biplab
Maybe you are looking for
-
I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?
-
Apple id with multiple users of Macs and device with ML
If a house has three Macs, (John' and, Jan's MacBook Pros and. A MacBook Air (to share)) An iPhone and ipad each. If we have use same Apple ID for music, apps etc. will all notifications of each others mail etc get sent to all macs and devices? Whil
-
Printing from my MacBook Pro to HP printer
Hoping someone can assist as I am in Italy and truly need help with this! I have connected my Macbook pro to the printer and all looks connected, except when I print error message reads not connected? Any ideas? Thank you in advance Angie
-
Hi Team, Do you know if it´s possible to pay payment order through transaction F-28? This transaction have 3 options o Document Number o Reference o Payment order I did a payment order by TRM module, the customer needs to use F-28 instead F111 , I
-
Unable to run OUI to uninstall Oracle windows 10.2.0 database
Hi, i installed oracle database on my windows xp system and i want to now uninstall the database so i tried running the Oracle Universal Installer but i am unable to run Oracle Universal Installer on my windows laptop. when i run the setup.exe file f