Help need to post the datas to Tr.code - IW31
Hi Experts,
<b>I have created a Zcust_req_info table and added several fields like
Cust_req_number
cust_req_details
cust_address
and I have added record to the table and now the table is filled with some datas.
I have to upload the datas to IW31 tr code, where I have to create work request automatically. </b>
Could anyone help me,
<b> "FULL POINTS WILL BE AWARDED FOR THE HELPFUL ANSWERS"</b>
Thanks and regards,
Sunil K Shetty
[email protected]
Hi Sunil,
best is to user Batch Input or Call Transaction to bring data to Tcd. IW31.
You can use the Batch Input recorder (Tcd. SHDB) to generate example code needed für this transaction.
Klaus
Similar Messages
-
Need to grab the data from Web Page and send it to SAP using PI
Hello Experts,
I need to grab the exchanges rates from the below link.
http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
Would it be a Async or Sync process ?
I would really appreciate the inputs.
Thanks.
Gaurav.Hi,
Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
Regards -
Help needed in understanding the concept of hierarchical queries
I really need help in this matter. I have a flafile containing about 4000 rows. It is from my supplier, it's structure is as follows:
create table Flatfile
(Pgroup varchar2(30),
Pclass varchar2(30),
Manufacturer varchar2(30),
Article varchar2(30),
Price Number(6,2));
Insert into Flatfile Values
('Application Software','Database Software','Oracle','Oracle 10G',115);
Insert into Flatfile Values
('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
Insert into Flatfile Values
('Application Software','Spreadsheet Software','Microsoft','Excel',100);
Insert into Flatfile Values
('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
Insert into Flatfile Values
('Monitor','15"','Sony','Sony R1500 flat',225);
Insert into Flatfile Values
('Monitor','17"','Philips','Philips Flatscreen',250);
Insert into Flatfile Values
('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
Insert into Flatfile Values
('Processor','AMD','AMD','FX-55',600);
Insert into Flatfile Values
('Processor','Intel','Intel','P4 3 GHZ',399);
My goal is to make a hierarchical query with the start with and connect by clauses. From what I have read is that I need to normalize the data of the flatfile.
How do I achieve a table which I can query so that the query will represent the hierarchy that exists. Namely
Pgroup
++Pclasse
Application Software
++Database Software
++Spreadsheet Software
So a 2-level hierarchy. I'd like to understand this simple concept first. I built on the knowledge that I gain. So the questions are:
1.What do I need to do to make the table so that I can use a hierarchical query on it?
2. How should the query syntax be?
3. Is it also possible to get the data in the hierarchical query sorted asec?
I would only like to use the simple structures of the start with and connect by clauses first. I've read there are some new additions to 10G. The problem with the examples used by the tutorials is that the tables are already made so that they are suitable for hierarchical queries. I hope to understand it by this example. And take it a step further.
Sincerely,
PetePrimarily hierarchy query serves to process tree-like structures which RDBMS simulates using through parent-child relation, often in a single table (see famoust
EMP table where employee can have the manager who is an employee at the same time).
In your case it could look like:
SQL> select pgroup, pclass from flatfile;
PGROUP PCLASS
Application Software Database Software
Application Software Database Software
Application Software Spreadsheet Software
Monitor 15"
Monitor 15"
Monitor 17"
Monitor 19"
Processor AMD
Processor Intel
Application Software
Monitor
Processor
12 rows selected.
SQL> select decode(level,1,pclass,' ' || pclass), Manufacturer from flatfile
2 start with pgroup is null
3 connect by prior pclass = pgroup
4 /
DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
Application Software
Database Software Oracle
Database Software Microsoft
Spreadsheet Software Microsoft
Monitor
15" Acer
15" Sony
17" Philips
19" Viewsonic
Processor
AMD AMD
Intel Intel
12 rows selected.The hierarchy syntax is described completely in the documentation including
LEVEL and PRIOR keywords.
As for the ordering question you can use siblings ordering:
SQL> select decode(level,1,pclass,' ' || pclass), Manufacturer from flatfile
2 start with pgroup is null
3 connect by prior pclass = pgroup
4 order siblings by 1 desc
5 /
DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
Processor
Intel Intel
AMD AMD
Monitor
19" Viewsonic
17" Philips
15" Acer
15" Sony
Application Software
Spreadsheet Software Microsoft
Database Software Oracle
Database Software Microsoft
12 rows selected.Rgds. -
I need to display the date of every month 1st
Hi All,
I need to display the date from 01/01/2007 to 09/01/2008.
example like this
01/01/2007
02/01/2007
03/01/2007
01/01/2008
02/01/2008
09/01/2008
could u pls help me
thanks,
Dharma.This should give you something to work with:
SQL> SELECT ADD_MONTHS(TO_DATE('01/01/2007','MM/DD/YYYY'),LEVEL-1) AS months from dual connect by level <= 21;
MONTHS
01/01/2007 00:00:00
02/01/2007 00:00:00
03/01/2007 00:00:00
04/01/2007 00:00:00
05/01/2007 00:00:00
06/01/2007 00:00:00
07/01/2007 00:00:00
08/01/2007 00:00:00
09/01/2007 00:00:00
10/01/2007 00:00:00
11/01/2007 00:00:00
12/01/2007 00:00:00
01/01/2008 00:00:00
02/01/2008 00:00:00
03/01/2008 00:00:00
04/01/2008 00:00:00
05/01/2008 00:00:00
06/01/2008 00:00:00
07/01/2008 00:00:00
08/01/2008 00:00:00
09/01/2008 00:00:00
21 rows selected.Hope this helps! -
Need to get the date's.
Hi,
I need to get the dates in interval of 7.
My Scenario:
When my user gives the date as 04/01/2013. My output should be like
04/01/2013
04/02/2013
04/03/2013
04/04/2103
add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
Regards,
Prasad k T,wilhelm wundt wrote:
Hi,
I need to get the dates in interval of 7.Your expected output is not talking about th einterval of 7 days..
>
My Scenario:
When my user gives the date as 04/01/2013. My output should be like
04/01/2013
04/02/2013
04/03/2013
04/04/2103Is this date dd/mm or mm/dd
If you need 4 consecutive dates, use
select input_date+level-1
from dual
connect by level <= 4;>
add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
Regards,
Prasad k T, -
Need to save the data in mutiple tables
Dear Experts,
I need to insert the data ,which is accepted from the user at runtime using table control and also generate automatic number when clicked on the save button the data should be in the database as well.
I am new to module pool, your help is reqd. The user will be awarded ample points if answered correctly.
regards,
RachelHi Rachel,
For automatic number generation you need to create number range object using tcode SNRO and then use the foolowing logic.
*& Form GET_NEXT_NUMBER
text
--> p1 text
<-- p2 text
FORM get_next_number .
DATA: w_quant LIKE inri-quantity, "dummy
w_code LIKE inri-returncode. "returncode
To lock the number range object
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = 'ZNUM'
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
To raise the exception to the corresponding exception of
'NUMBER_RANGE_ENQUEUE'
IF sy-subrc NE 0.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc NE 0
To get the next number from the object
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = 'Z2'
object = 'ZNUM'
toyear = '2008'
IMPORTING
number = l_lbc_next
quantity = w_quant
returncode = w_code
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
IF sy-subrc <> 0.
CLEAR ok_code.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc <> 0
To unlock the number range object
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = 'ZNUM'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc NE 0.
CLEAR ok_code.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc NE 0
ENDFORM. " GET_NEXT_NUMBER
And for table control logic
see the below link.
Table control of Module Pool Program
Regards,
Raju -
Outbound function module to post the data in to WMMBID02 IDOC
Hi Experts,
I am using standerd idoc WMMB1D02 to post the goods recipt data.
I am using the outbound idoc , how to post the data in to idoc using FM or BAPI ?.
please help me on this.
Thanks,
Venkat.Hi Hakim ,
Thanks for tour replay , we are using the standerd message type and standerd idoc are WMMBXY,
WMMBID02. I did't notice any standerd FM or BAPI which will create the outbound idoc for the same.
please help me on this.
Thanks,
Venkat. -
Need to check the data flow from R/3 to BW server.
Hi BI experts,
This query is regarding need to check the data flow from R/3 to BW server.
As of now I have some set of reports which I would need to take up in BW. The requirement is to go through the list of transaction codes for reports in R/3 and find out if there are already any existing objects in BW system which I can use for these reports.
So, can u plz help me.Depends what are your Tcode or Reports users run in R/3 and they want the same in BW.Then in BI Content we have Out of the box Delivered reports.You can activate those Load data and use it.
Gimme T-codes you have I can send you Standard reports in BI or Cube you can get these from.
~AK -
Need to Make the DATA Load Faster
Hi
I need to load the data from the source to the target like 90 tables. The source has 36 million rows in some of the tables it is taking a long time altough I have dropped the indexes on the target. I really need to make it as fast as possible. Following is the code for 1 table that I am currently using. Any Help would be really appreciated.
INSERT INTO AAA.CHECKHISTORYITEM@db1 (
OID,
AMOUNT,
BANK_DEPOSIT,
CHECKHISTORYOID,
CODE,
FIELD_NB,
HISTTYPEOID,
STATUTORY_DED,
TAXCODEOID,
VALIDTILL,
ABBREV,
CONVERSION_ID,
DESCRIPTION,
EXTERNAL_ID,
ACTIVE,
CREATEDON,
CREATOROID,
DELTAOID,
MODIFIEDON,
SCREEN_TRANSACTION_NUMBER,
SECURITYOID,
SHARABLE,
SUBCLASS,
TARGETUSEROID,
VERSION,
VERSION_NUMBER,
ACM,
MODIFIEDBYUSEROID,
cidn)
(select
OID,
AMOUNT,
BANK_DEPOSIT,
CHECKHISTORYOID,
CODE,
FIELD_NB,
HISTTYPEOID,
STATUTORY_DED,
TAXCODEOID,
VALIDTILL,
ABBREV,
CONVERSION_ID,
DESCRIPTION,
EXTERNAL_ID,
ACTIVE,
CREATEDON,
CREATOROID,
DELTAOID,
MODIFIEDON,
SCREEN_TRANSACTION_NUMBER,
SECURITYOID,
SHARABLE,
SUBCLASS,
TARGETUSEROID,
VERSION,
VERSION_NUMBER,
ACM,
MODIFIEDBYUSEROID,
'ABCD from ABCD.CHECKHISTORYITEM);
commit;Is there any trigger on the table you're inserting? You could consider disabling constraints (in case any exists) if you're sure enough of the data you're inserting and no one else "touches" the table while you're working on it.
-
Need to Extract the Data From "0BBP_TD_CONTR_2"
Hi,
I need to extract the data from SRM extractor "0BBP_TD_CONTR_2". I do not have much knowledge in SRM. Can any one give me the steps how can i check the extractor its not like R3. All kind of help will be appreciated.
ThanksNever mind guys i figured it out. Thnaks
-
ipad is disabled, connect to itunes. know the passcode but ipad is not synced so i lose data if restore it. can you help me to save the data. thanks
You're going to have to get that info about his iTunes account if it's on iOS 7. Does it at least show the username it needs?
-
Help needed to optimize the query
Help needed to optimize the query:
The requirement is to select the record with max eff_date from HIST_TBL and that max eff_date should be > = '01-Jan-2007'.
This is having high cost and taking around 15mins to execute.
Can anyone help to fine-tune this??
SELECT c.H_SEC,
c.S_PAID,
c.H_PAID,
table_c.EFF_DATE
FROM MTCH_TBL c
LEFT OUTER JOIN
(SELECT b.SEC_ALIAS,
b.EFF_DATE,
b.INSTANCE
FROM HIST_TBL b
WHERE b.EFF_DATE =
(SELECT MAX (b2.EFF_DATE)
FROM HIST_TBL b2
WHERE b.SEC_ALIAS = b2.SEC_ALIAS
AND b.INSTANCE =
b2.INSTANCE
AND b2.EFF_DATE >= '01-Jan-2007')
OR b.EFF_DATE IS NULL) table_c
ON table_c.SEC_ALIAS=c.H_SEC
AND table_c.INSTANCE = 100;To start with, I would avoid scanning HIST_TBL twice.
Try this
select c.h_sec
, c.s_paid
, c.h_paid
, table_c.eff_date
from mtch_tbl c
left
join (
select sec_alias
, eff_date
, instance
from (
select sec_alias
, eff_date
, instance
, max(eff_date) over(partition by sec_alias, instance) max_eff_date
from hist_tbl b
where eff_date >= to_date('01-jan-2007', 'dd-mon-yyyy')
or eff_date is null
where eff_date = max_eff_date
or eff_date is null
) table_c
on table_c.sec_alias = c.h_sec
and table_c.instance = 100; -
Need to change the date of joining of employee
Hi All,
I have gone through some threads similar to this subject an also tried to do changes from PA41 but i am facing some problems during the procedure.
We have transferred some employees to sap system with their original date of joining and payroll was run from some other date for those employees. So i need to change the date of joining of those employees.
For example : Below is the line items of one employee from table infotype 0.
End date Start date Changed on
22.02.2009 19.02.2007 19.02.2009
31.03.2009 23.02.2009 19.02.2009
31.12.2009 01.04.2009 14.10.2009
31.12.9999 01.01.2010 21.01.2010
Payroll was run from Feb-09 onwards and i want put date of joining for this employee as 23.02.2009.
I want to know which date i need to change??...When i am trying to change the first start date i.e. 19.02.2007 to my desired start date, but it is not allowing me to do that as end date is smaller.
Please tell me how would i change the joining date of employee as 23.02.2009 ?.
Thanks.Try this
22.02.2009 19.02.2007
31.03.2009 23.02.2009
31.12.2009 01.04.2009
31.12.9999 01.01.2010 take this record form PA30 IT0000 Over View (Shif + F8) Copy that record and change the Start date
as 2302.2010 so another record will be created
22.02.2010 01.01.2010
31.12.9999 23.02.2010
Just try and let me know -
I need to know the date of the last Monday
I need to know the date of the last Monday
If today is Monday then I need todays date
If today is Tuesday then I need yesterdays date etc....
If today is Sunday then I need to know the date 6 days ago etc....the day() function will tell you what day of now() is as an integer: 1=Sunday 7=Saturaday.
You know that Monday is 2. The difference between today's number and Monday's number (with a little mathmatical juggling to wrap Sunday to the previous week -- I would probably just convert -1 to 6 with a simple if statement after substracting 2 from the day() value.).
Subtracting (adding a negative value) of this difference with the dateAdd() function will give you the date of that previous Monday. -
Are there any standard Idocs or Bapis for posting the data into transaction
Hi,
Are there any standard Idocs or Bapis for posting the data into transactions ME42N and IK11?
Thank You.Thank you.
Any idea of the other one?
Maybe you are looking for
-
In need of a Snow Leopard compatible version of Aperture via AppStore
Hi there!! A few months ago I bought Aperture 3 via AppStore using Snow Leopard. Last week I formatted my iMac and installed everything again. The process was smooth as I imagined, except for the fact that I wasn't able to download Aperture from the
-
hi i recently bought a nokia n85. however, after few months, when i try to charge the battery using wall charger, it displsys " unplug charger from the power supply to save energy". the ironic thing is that it works perfectly when i charge it v
-
Date "dd/MM/yyyy" / Internationalization BC4J
I'm having troubles to use BC4J Data Tags of Date type in my native format, portuguese. I'm trying to use another mask, the default is "yyyy-MM-dd" and I need "dd/MM/yyyy". In JDeveloper, I make an entity called "EntX" with an attribute "data" of Dat
-
Path to RTE Dumpfile / RTEDumpFileName
Hi, can I change the path to the RTE DUMP file? Perhaps via the parameter RTEDumpFileName? Or can I reduce the size or the number of files stored there? Thanks Jan
-
Naming huge amounts of files after "undelete" / photorec / etc?
Hello! Does someone already have a neat little script to automatically name a huge amount of files in multiple fuzzy sorts of ways? Like with id3-tags, exif tags, the first line / header of text documents of various formats... sort by file extension,