How to find out material code using web services?
Hi,
Is there a WSDL to find out material code of a componet if only inventory ID is known?
Regards
Kari
Thanks
Similar Messages
-
How to find out the Transactions used per month & the USER who used that
Hi,
1)How to find out the Transactions used per month & the USER who used that?
2)and can i get the above same for minimum 20 month?
System : SAP- Enterprise Core Component.You can use my program...
*& Report Z_ABAP_TCODE_MONITOR
*****& Program Type : Report *
*****& Title : Z_ABAP_TCODE_MONITOR *
*****& Transaction code : ZTCODE_USAGE *
*****& Developer name : Shailendra Kolakaluri *
*****& Deveopment start date : 26 th Dec 2011 *
*****& Development Package : ZDEV *
*****& Transport No : DEVK906086 *
*****& Program Description : This program is to display
*List all tcodes executed during previous day.
*& Show the number of users executing tcodes
*& Modification history
REPORT Z_ABAP_TCODE_MONITOR.
*& List all tcodes executed during previous day.
*& Show the number of users executing tcodes
TYPE-POOLS : slis.
DATA: ind TYPE i,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
layout TYPE slis_layout_alv,
variant TYPE disvariant,
events TYPE slis_t_event WITH HEADER LINE,
heading TYPE slis_t_listheader WITH HEADER LINE.
*REPORT z_report_usage.
TYPES: BEGIN OF zusertcode,
date TYPE swncdatum,
user TYPE swncuname,
mandt TYPE swncmandt,
tcode TYPE swnctcode,
report TYPE swncreportname,
count TYPE swncshcnt,
END OF zusertcode.
*data : date type n.
DATA: t_usertcode TYPE swnc_t_aggusertcode,
wa_usertcode TYPE swncaggusertcode,
wa TYPE zusertcode,
t_ut TYPE STANDARD TABLE OF zusertcode,
wa_result TYPE zusertcode,
t_result TYPE STANDARD TABLE OF zusertcode.
PARAMETER: month TYPE dats DEFAULT sy-datum.
*PARAMETER: date TYPE dats.
*select-options : username for wa_usertcode-account.
START-OF-SELECTION.
PERFORM get_data.
PERFORM get_fieldcatalog.
PERFORM set_layout.
PERFORM get_event.
PERFORM get_comment.
PERFORM display_data.
FORM get_data .
*date = sy-datum - 2 .
After start-of-selection add this line (parameter Month required 01 as day).
concatenate month+0(6) '01' into month.
CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
EXPORTING
component = 'TOTAL'
ASSIGNDSYS = 'DEV'
periodtype = 'M'
periodstrt = month
TABLES
usertcode = t_usertcode
EXCEPTIONS
no_data_found = 1
OTHERS = 2.
wa-date = month.
*wa-date = date.
wa-mandt = sy-mandt.
wa_usertcode-account = username.
LOOP AT t_usertcode INTO wa_usertcode.
wa-user = wa_usertcode-account.
IF wa_usertcode-entry_id+72 = 'T'.
wa-tcode = wa_usertcode-entry_id.
wa-report = space.
ELSE.
wa-tcode = space.
wa-report = wa_usertcode-entry_id.
ENDIF.
COLLECT wa INTO t_ut.
ENDLOOP.
SORT t_ut BY report ASCENDING.
CLEAR: wa, wa_result.
endform.
FORM get_fieldcatalog .
fcat-tabname = 't_ut'.
fcat-fieldname = 'DATE'.
fcat-seltext_l = 'Date'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'MANDT'.
fcat-seltext_l = 'Client'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'USER'.
fcat-seltext_l = 'User Name'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'TCODE'.
fcat-seltext_l = 'Transaction Code'.
fcat-key = 'X'.
APPEND fcat.
ENDFORM.
*& Form SET_LAYOUT
text
--> p1 text
<-- p2 text
FORM set_layout .
layout-colwidth_optimize = 'X'.
ENDFORM. " SET_LAYOUT
*& Form GET_EVENT
text
--> p1 text
<-- p2 text
*FORM get_event .
events-name = slis_ev_top_of_page.
events-form = 'TOP_OF_PAGE'.
APPEND events.
*ENDFORM. " GET_EVENT
**& Form GET_COMMENT
text
--> p1 text
<-- p2 text
*FORM get_comment .
DATA: text(30).
text = 'Billing Report'.
heading-typ = 'H'.
heading-info = text.
APPEND heading.
*ENDFORM. " GET_COMMENT
**& Form top_of_page
text
--> p1 text
<-- p2 text
*FORM top_of_page .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = heading[]
I_LOGO =
I_END_OF_LIST_GRID =
*ENDFORM. " top_of_page
*& Form DISPLAY_DATA
text
--> p1 text
<-- p2 text
FORM display_data .
sort t_ut[].
DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
is_layout = layout
it_fieldcat = fcat[]
i_save = 'A'
is_variant = variant
it_events = events[]
TABLES
t_outtab = t_ut
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " DISPLAY_DATA -
How to find out company code from a plant ?
Hello friends,
I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD". For that, we have to export company code ID. Currently it is hard coded with one company code. Now we want to make this program usable by all company codes. So instead of hard coding, I would like to dynamically find out company code based on the plant. So I want to know - how to find out company code from a plant ? Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
Thanks,
- Chetanhi
u can find this from table T001K
or just goto EC01
here click on STRUCTURE>NAVIGATION
double click on co code u will get the list
u can slo try this in EC02
regards
kunal -
How to find out query name using Elements of the query builder.
Hi SDNers,
how to find out query name using Elements of the query .
thanks,
satyaaHi,
For having a look at the relation between BEx tables,check the link below:
http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
-Vikram -
How to integrate Microsoft and SAP using Web Services?
Hi All
How to integrate Microsoft and SAP using Web Services? If any one has document please send it to me. My id is [email protected]... Please
Help me
Best Regards
Ravi ShankarHi Ravi,
This is for Customizing Email and Other Web Services.
Create addresses
The address maintenance of R/3 users is carried out either via the R/3 User Maintenance (Transaction SU01) or the Private office settings (Transaction SO12):
Address --> Other communication...
Selection of the required communication service.
Enter address.
Copy or save.
b) Configuration of SAPconnect (Transaction SCOT)
Set communication method
4.0 + 4.5: Goto --> Customizing --> Communication methods
as of 4.6: Settings --> Communication methods
Set the method of the required communication service to the value 'SAPCONNECT' and save the setting.
Customized the same for Internet mailing.
C) If you want to Transfer Table Structure Values from SAP R/3 to Web Services then
1. Create BAPI and Transfer whichever things you want.(Note: The Structure
of BAPI should be similar to Web Structure (Datatypes).
2. Create a BDC and Schedule it in the Background.
Hope it helps you, Awaiting for the Reward Points.
Thanks
Subrato Chowdhury -
How to find out Query last used by whom
Dear All,
Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
RSZELTDIR - Directory of the reporting component elements
RSZELTTXT - Texts of reporting component elements
RSZELTXREF - Directory of query element references
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
RSZRANGE - Selection specification for an element
RSZSELECT - Selection properties of an element
RSZELTDIR - Directory of the reporting component elements
RSZCOMPIC - Assignment reuseable component <-> InfoCube
RSZELTPRIO - Priorities with element collisions
RSZELTPROP - Element properties (settings)
RSZELTATTR - Attribute selection per dimension element
RSZCALC - Definition of a formula element
RSZCEL - Query Designer: Directory of Cells
RSZGLOBV - Global Variables in Reporting
RSZCHANGES Change history of reporting components
I am able to find out the Date and time but not the user name. So could you please help on this.
Regards
Sankari think u have missed it.
RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
RSZCOMPDIR-TSTPDAT gives you date on which change was made .
RSZCOMPDIR-TSTPTIM gives you timestamp on which change was made .
all users details can be obtained from TCODE SU01 where you need to enter sap user id.
You can also get user name( description) by using tcode SE09 and entering above sap user id. -
How to do Bulk data transfer using Web Service
In my application I have to write various web services but majority of the web service has to
query database and return back bulk data(rows>10K) through web service.
So I would like to ask what is the efficient way of transferring bulk data using web service as presently
Iam returning the dataset as xml String (using StringBuilder) from web service and consuming the same at client end.
Is there a better way to this in web service?
My env:
Front end can be in any other technology ,UI like C#
Back end : Tomcat 6 on Java 6 with Axis2
Thanks in advanceInnova wrote:
But then also I have to mention a return type although its xml that is getting transferred.
Can you provide me a with a small sample code.Like if I have Emp obect with properties
Empname,EmpID,DOJ,DOB,Dpt . In this case what will be the return type.
My major concern is that my resultset is going to be huge in terms of >10,000 rows so
that much time for formation of xml and then the transfer so how can I reduce the transfer
time ,I meant a faster optimised approach for transferring large data as part of web service.
Simply putting , how can I transfer bulk data in minimum time so that I can reduce the
waiting time at client side for the response.
Thanks in advanceI've done this with thousands before now, and not had a performance problem...at least nothing worth writing home about.
Your return type will be an array of Emp objects. You can use a SOAP array for that (you'll need to look that up for the syntax, since I can't remember it off the top of my head), which gets restricted to being an array of Emp.
Should the normal technique prove to be too slow then you should look at alternatives, but I would expect this to work well enough. And you have no faffing about with devising a new transfer system that then has to be explained to your client system...it'll all be standard. -
How to consuming reports from OBIEE using web services?
I need know if there are a forum for post about consuming reports from Oracle Business Intelligence Enterprise Edition using web services for deploy on ASP.Net web application.
Kind Regards.
deniscubaI would start with the BI forums http://forums.oracle.com/forums/category.jspa?categoryID=145
If no answer in a reasonable time, I would post an update in the question indicating that I would cross-post in the http://forums.oracle.com/forums/category.jspa?categoryID=44 (.Net related) or the http://forums.oracle.com/forums/category.jspa?categoryID=10 (Technology > Web Services) forums. -
How to find out which application uses how many Web containers?
Hi everybody,
we are monitoring several JAVA engines via sapccmsr and often get a threshold overflow for SID\Server\...\Web Container\AllRequestsCount
The SAP online documentation tells me how to set a threshold for any web application. But befor that I should know, which application uses up all the Web Containers. How can I find out?
btw: Does the Threshold (1.000.000) make any sense, or is this just a number that may be changed without the fear for any consequences? Is there a serious performance impact?
Thank you in advance
RalfRalf,
I have an opinion, that you can take a trace messages from Web Container service, which might give you some more details.
I am not completely sure if that serves your purpose. Still you can have a look in the below document, if it looks helpful.
http://wiki.sdn.sap.com/wiki/display/JSTSG/%28JSTSG%29%28Web%29Trace+locations
Regards,
Sujit. -
How to find out what is using the native heap of a process running a JVM?
Hello,
I am not sure where to post this question so I am starting here.
I am troubleshooting a Java application using some native calls (32 bits Java running on Solaris 10). The size of the process (as reported by prstat) is slowly increasing day after day.
The size of the 'Java heap' is fixed at the start (-Xms and -Xmx are set to the same value on the command line when launching the Java app) and the GC is workling fine. No memory complaints from the Java side of the application.
It is the size of the 'native' heap (as reported by 'pmap') that is increasing:
root@mas01 # pmap 5382
5382:/apps/java/bin/java -server -Xms207M -Xmx207M -XX:MaxNewSize=24M -XX:N
00010000 64K r-x-- /apps/jdk1.5.0_19/bin/java
0002E000 16K rwx-- /apps/jdk1.5.0_19/bin/java
00032000 3896K rwx-- [ heap ]
00400000 389120K rwx-- [ heap ]
18000000 2784K rwx-- [ heap ]
DCAF4000 48K rw--R [ stack tid=169 ]
DCBF6000 40K rw--R [ stack tid=161 ]
DCCF8000 32K rw--R [ stack tid=160 ]
My first reaction was to search for a memory leak. Found a minor leak in the JVM with the ::findleak function (called within the mdb debugger). Upgraded to a later release of Java 5 (Java 1.5.0_19) where the leak is fixed but the heap is still increasing.
Many parts of the process allocate memory in the native heap. The JVM itself, the native calls made to a C++ library part of our Java application and maybe also some 3rd party software.
I would like to know what is the best way to find out what is consuming more and more memory in the native heap. I started looking a DTraces but I am new to this. I also thought maybe the Solaris Perftools might be of use but I never used them. Before plunging into a tool more or less blindly, I am asking for advices on how to tackle this issue. Can someone recommend a tool/method to see what is allocated in the heap?
Regards,
Stéphan
Edited by: StephanDupont on Sep 22, 2009 8:47 AMAfter googling a lot I managed to run my application with libumem, generated a core file and succeeded to find some leak with mdb even if ::findleak reported nothing.
Does anyone knows if the ::findleak (you need libumem and mdb) is supposed to find leak in the native part of the memory and a Java application using the JNI interface?
Regards,
Stéphan -
How to find out the code behind a button
Hi,
What technique should I use to find out what java code is invoked when I click on a button in the portal?
More concrete: I want to know the code behind the button I'm talking about <a href="https://forums.sdn.sap.com/thread.jspa?threadID=188251">here</a>.
T h a n k s !
JeroenI would suggest you use HTTPWatch in your browser to see what is happening behind you button click.
You can get it here
<a href="http://www.simtec.ltd.uk/">http://www.simtec.ltd.uk/</a> -
How to find out source code of portal
Hi all,
I'm working ECC6.0.
In the portal there is a field managers substitute , when ever manager enteres . managers substitute name will populate. the portal is constructed long back . it uses jsp. I found out that portal applicarion calls from the jsp link of another server. i can view only the application but i want to know where the souce code is available . potal calls the function module or table to get managers substite .i need to find out FM or filed name.
thanks
NaveenHi all,
I'm working ECC6.0.
In the portal there is a field managers substitute , when ever manager enteres . managers substitute name will populate. the portal is constructed long back . it uses jsp. I found out that portal applicarion calls from the jsp link of another server. i can view only the application but i want to know where the souce code is available . potal calls the function module or table to get managers substite .i need to find out FM or filed name.
thanks
Naveen -
How to find out T code wise BADI and userexits
Hi,
Is there any standard way of finding out the BADIs and User exits Tcode wise.
regards,
Kannan.Hi,
Use the following program to get the T code wise BADI and user exits.
*& Report ZSD_FINDEXIT_BADI *
REPORT ZUSEREXIT .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
Hope this will help u.
regards,
Naidu
Edited by: KANNAN on Apr 13, 2009 1:44 PM -
How to find out FLV duration using PHP?
Is there any way I can use PHP to find out the duration of a
FLV file on its web server?
Thanks.> Is there any way I can use PHP to find out the duration
of a FLV file
> on its web server?
AFAIK, no. But since some people have found a way to extract
similar
information from SWF files, maybe there is a chance to pull
something
like that off with FLVs.
Alternatively you could create a flash movie that has the
single purpose
of loading an FLV and sending the duration to a PHP script
using the
LoadVars class and its sendAndLoad() method.
Christian Scholz-Flöter -
How to find out the variable using in the system.
Hi Friends,
When I am trying to create a new variable for a infoobject. It is giving me a warning that Change the tecnical name 'New Variable.....' Before save
This is not allowing me to create any new variable.
In the system I find out one variable is there with the name 'New Variable.....'
And It is being used some where. When I am trying to delete this variable it is giving me a msg that it is being used in ZSCEMESTS.
But I am not able to find out where this ZSCEMESTS is exists.
Is there any TCODE for find out this object.
I want to delete this New Varable..... So can any body pls provide me the solution?
Regards,
SridharHi Sridhar.
Can you please tell me, is the variable entry mandatory? If yes please make the variable entry is optional.
Hi Sridhar,
Can you please tell me which type of variable it is? On which object this variable built?
Variable is available global level, so you can view this variable on the same object right click restrict --- variable --- select --- delete.
If it though it is already used in another query then use where used list then go to respective query and delete the same.
Regards,
Lokanatha.
Maybe you are looking for
-
Using a mac book pro ! Can you use apple tv to play a movie on your tv (say for kids to watch) and use your mac book at the same time to browse the internet ???
-
How can I get Firefox to automatically rename images when clicking "Save image as" on the menu, when an image with the same file name already exists in the folder??
-
FrameMaker 8.0 -- Change bars are showing up for adds but not for deletes. How do I get the bars to show up for both?
-
* In order one activity price is showing Zero what it is the proble?
Dear All, I have give cost center out planing all the activities its appear in Cost estimation and When Going intio the routing its showing as we given in , But not appearing when i confirmed and display order wise also its not apper please give me s
-
How to distinguish separate files from files in iPhoto Library file
Hi, In my iPhoto library I have a mix of pictures which were copied into the library and ones where I retained the original picture file and made a library entry to it. I want to export those pictures which were contained in the library. I don't need