Basis Advise Needed - Custom Tables
I am in an urgent need of an R/3 basis advice. Client is creating variant tables via transaction CU61 and are not following the standard Z & Y customer naming conventions. For example they are creating a variant table with the name: BOT_INST_CONUSE. In case of a potential future upgrade would tables of this kind be deleted/replaced if they do not start with a Z or a Y? Since these tables are not maintained via SE11, do they have to follow the Z & Y customer naming convention standard at all?
Thank,
Fasi
Hi Fasi,
I don't think upgrade will delete the table. But since it is in SAP namespace, SAP is free to use this name in future and if that happens it will be replaced with SAP's version of this table. I don't see any reason why somebody wants to use SPA namespace for custom table, it doesn't make any sense at all.
Cheers,
Sanjeev
Message was edited by: Sanjeev Singh
Similar Messages
-
Data from a file need to be read and mapped into a custom table of R/3
Hello all,
This is related to inbound to SAP ECC via SAP PI.
There is a requirement concerning PI part that data from a file need to be read and mapped into a custom table of R/3.
To have this scenario developed , do we have any other option than the Proxy ?
My understanding is as follows : File --> SAP PI --> Proxy
You suggestions are welcome.
Regards,
RachanaHi Ravi,
As suggested by Inaki, you can use proxy communication in recever.
but you can also use the below
FILE -----> PI -------> PROXY
RFC
IDOC
to communicate to ECC system.
Regards
srinivas -
Need Customizing request instead of Workbench for Table Mainetnance
Hello All,
I created a ztable with Table Maintenance.
Whenever I am creating entries using SM30 it is asking workbench request instead of customizing request.
I need customizing request to be created for table entries.
Can anybody help me in this regard.Hi Eric,
Thanks a lot!.
The problem is solved....
Thank you very much for your help.
Regards,
Sunil -
Urgent help needed in inserting data into a custom table in oracle WorkFlow
Hi
I am trying to get data from the WF and insert into a custom table..
I read that workflow procedures WONT allow commits...
Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
Have anyone did this..
Please give me some idea ...It is urgent
I am getting data using getitemattribute..and try to insert it into a custom table
thanks
kpPl do not post duplicate threads - insert dont work in Workflow
Srini -
Need help for record deletion from custom table
Hi friends
I have to write a custom program which will be generic to delete any table record with date field.
This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
Table Name and Number of Days prior to which records are deleted, both mandatory.
Program Flow:
1. From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
2. Custom table have date field, delete records prior to that date.
3. Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
4. Classical Report output with number of records deleted.
My query is how will I know the name of the Date field so that I can write a DELETE query.
If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
with regards
samikhyaHi
I have added field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
Now I am facing problem while writing the DELETE query.
I wrote like
DELETE (fp_tab)
where (fp_fieldname) LE date
It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
when I write like this:
DELETE (fp_tab)
where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
I do not understand where the dynamic Delete is failing??
with reagards
Samikhya -
Need a table which all custom tables used in the program
HI to all experts.
I need a table which contains all the custom table used in the program . Or any other method which can accomplish this.hi max,
thanks for u r reply . if we use the statement tables in the report and write some tables
for example: tables: zf020
zf023
is there any table which stores this . -
Req as follows :
1. i need to create one method in a assistance calss for updating custom table .
2. now i have to pass the multiple entries to that table then inside the method based need to update the Ztable. based on this entries
3. My internal table is having 2 fields ( Customernumber (key field) , Shiftloc ).(Multiple entries ex : 500)
based on customernumber need to update the new shiftloc in my custom table.
Can any one give some inputs please. i have doubt can we pass mupltiple entries (internal) as a importing parameter to the method?
Cheers,
VenuHi rama,
thank you for your promt reply.
i have one more query. Here i need to update the only Shipt to adress for particular customer number.
i have written the code as below. Please clarify this code will work for my requirement.
method UPDATE_SHIPTO.
data : Lt_contract type ty_update_shipto_t.
data : ls_contract like line of Lt_contract .
REFRESH : Lt_contract.
lt_contract[] = LT_DATA[].
loop at lt_contract into ls_contract.
* update Zcustom SET ship_to_adress = ls_contract-new_bp
WHERE cust_no = ls_contract-custnum
CLEAR : ls_contract.
ENDLOOP.
COMMIT WORK.
endmethod. -
Custom table needs to be updated based on changes in Info type P0000
Hi All,
I have a requirement wherein when we make changes to info type P0000 this should be reflected to a custom table.
If i create a new record, delete an existing record or make changes to a record in INFOTYPE P0000 this should also be reflected in my custom table.
My custom table has 5 fields from info type p0000 and some custom fieds.
please can you let me know exactly which user exit to use to acchieve the solution. and where exactly i can put the logic.
Thanks,
MarsHi Venkat,
I tried to code in the method AFTER_INPUT and executed but there are few thing which i have come across.
1. when ever i create a new record in PA40 and each time i save the screens of PA40 this method is called and based on check it tries to update the table taht many times.
2. The logic which i have used in the BADI implementations is as below:
DATA: l_text TYPE string,
l_answer TYPE string,
lw_split TYPE XXXX. (custom table)
IF old_innnn NE new_innnn.
lw_split-mandt = sy-mandt.
lw_split-pernr = new_innnn-pernr.
lw_split-begda = new_innnn-begda.
lw_split-endda = new_innnn-endda.
l_text = 'Does this employee need a split STIP?'.
Display a pop up message to the user.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Choose'
text_question = l_text
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '1'
display_cancel_button = space
IMPORTING
answer = l_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
IF l_answer EQ '1'.
lw_split-stflg = 'Yes'.
ELSE.
lw_split-stflg = 'No'.
ENDIF.
ENDIF.
MODIFY TABLE XXXX FROM lw_split.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
3. when i try to activate this chunk of code it gives me error saying "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
4 I have also tried to use the modify statement in IN_UPDATE instead of updating custom table in same method but its giving me same error "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
can you let me know your view on this. The above chunk of code is in case of creating a new record in P0000 info type.
Thanks,
Mars
Edited by: Mars878 on Oct 13, 2009 9:18 AM -
Need help- need to read a customer table from the payroll schema
Hi gurus,
I need to read an amonunt from a customer table in the payroll schema. Is it possible to input TABLE XXXX in the schema, or is impossible to read from a customer table?Do I need to create a report to upload the amount in an infotype?
Thanks in advanced for for support!You should create your own custom operation (based on operation TABLE) to read your custom table from a Payroll PCR.
If your custom table's name is longer than 5 characters, you may be required to use operations VAOFF and/or VALEN prior to your custom operation in the PCR. -
Need help in inserting line details in custom table in oaf
Dear All,
I have a requirement as below.
I have a page having few LOVS and few text fields and below to that i have a table region that i am populataing from another page means i have a button to open another page from that i am passing selected rows to base page, so my base page structure looks like below:
LOV1 TEXTFIELD1
LOV2 TEXTFIELD2 .......SO ON
LINE DETAILS
LINENUM ITEM ITEM DESC
1 AAAA TEST
SO my requirement is i have a button in my base page after clicking thsi the header information should insert to a table and line information should insert into another table,
Header information i am able to insert into table by EO based VO, but how i can insert the line data from the table region to another custom table, please help me out on ths.
ThanksHello Everyone!
DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("UploadFile");
String fileName = null;
String contentType="";
try {
fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
System.out.println("File Name : "+fileName);
} catch(NullPointerException ex)
throw new OAException("Please Select a File to Upload", OAException.ERROR);
contentType = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
System.out.println("contentType : "+contentType);
System.out.println("Creating object uploadedByteStream for file name : "+fileName);
BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
I was using the above code to load the MS Excel 2010 .xlsx file, but when i checked uploadedByteStream is returning null value.
Could anyone let me know why is this happening because i found in my post on google the same way (Above mentioned) code has been written for loading the .xlsx file?
Thanks & Advanced,
CAK -
HELP NEEDED: Use a new record for a customized table as a workflow trigger
Hi SAP Workflow Gurus,
Good day!
One of our requirements is to have the creation of a new record in a custom database table trigger a workflow. I read and followed the steps as indicated in this link
http://www.****************/Tutorials/Workflow/Table/events.htm
As a summary, here is what I did:
1. Created a subroutine for the custom table ZPA2003 for the create event
2. Defined this event as a trigger for the custom workflow WS90000019
3. Maintained and activated the event linkage via SWETYPV
Basically I tried following the instructions indicated on the link
Note that the entries for the custom table are created via a function module.
Now during testing of the workflow, the system was able to complete the notification message. However, when I triggered the event via creation of the entry in the custom db table nothing happened
1. Is there a way to debug/find out whether the link between the subroutine in the table and event itself are connected?
2. I also tried running the event trace to check the activities executed but found nothing.
Can you guys help me check on what I may have missed out?
Regards,Hi All,
Basically these are the requirements for the work schedule substitution:
1. Employee enters the request via ESS (custom portal transaction)
2. Upon saving of the entry (request) in a custom table, this should trigger the workflow at the backend
3. The Manager should then receive a work item in his Universal Worklist at the MSS side of the portal
4. Upon clicking on the work item, a new screen will pop up showing the work schedule substitution details as well as an interface which will allow him to enter his/her usage decision
5. Depending on the decision, the workflow must execute the necessary notifications as well as changes in the custom and PA2003 tables
Now, we have accomplished step 1 and I am currently in the process for step 2. Now I have some queries:
1. For the Manager to view and approve the substitution details, I used two methods for each process (view and approve) since our ABAPer mentioned that this cannot be done in 1 function module. Is there a way to simplify this step or is it really valid that they need to be executed in 2 different methods?
2. As per our ABAPer, function Modules only import and export variables; they do not have the facility of say having tags on the details being displayed. Hence, if the details are 10001 (Employee Number), 10/20/2011 (Start Date), 10/25/2011 (End Date) the output would be 10001, 10/20/2011, 10/25/2011. Is there a way within the function module (or dynpro interface) to show it like this: Employee Number: 10001
Start Date: 10/20/2011
End Date: 10/25/2011
3. Speaking of dynpro applications, do I need to still develop one to allow the Manager to view and approve/reject the request via the MSS portal upon accessing the work item via the UWL? How would the work item go about calling the dynpro application? or is this even possible?
It would have been easier if the facility would not pass through workflows since it will be just direct web dynpro/ABAP calls. Having to include it as a work item in the UWL puts a certain twist to it
Your inputs are well-appreciated.
Regards, -
Need MIGO BAdi to update custom table
Hi Experts,
I have to update a custom table after the GR is successful against PO in MIGO transaction.
Which BADI will be suitable to this. Or is there any other way to do this?
Thanks and regards,
Venkat.N.Hi,
You can use the badi MB_DOCUMENT_BADI and method MB_DOCUMENT_UPDATE.
Regards,
Nagaraj -
Update real time account general data into a custom table
Hi,
I have created a z table for storing account general data for some business requirement. I have created a program and executing batch job to update this z table on periodic basis. Can anyone suggest some other alternative solution to update this z table whenever an account gets created/modified in CRM system? Instead of running a batch job periodically, I need a real time replication of the account data in this custom table.
Thanks and Regards,
Sneha.Hi,
Thanks for your reply.
But, Can you elaborate the solution, Can we use Business Transaction Events(BTEs) for updating Partner data? Will these be triggered for Account Creation/Modification. If so, Can u suggest any BTE which can be used for my requirement?
Thanks and Regards,
Sneha. -
How to delete the records from custom table???
My requirement is,
I have a custom table, assume as ZABC, I have updated this by my custom program, This data having table can be extracted by BI etract program(Assume ZZZ). Here I am not writing any code for extracting data from table to BI extract program, That they will do by BI extract program. But I want to write the code for
<b>Cleanup of Z tabledelete records 30 days after the BI data extractor has run.</b>
How this is possible suggest me any method having for these???
Thanks SanjuHell Sanjana,
Ask your basis people to do the clean up after 30 days. If you want the clean up only to be done 30 days after BI extract has been done, then u need some sort of indicator to say that BI Extract has been done , like flag and date in a custom table which will be set as soon as extract is done. Then based on that info u need to delete a the records.
Regards -
How to maintain the sequence in the custom table
Hi,
We have custom table where we will store the standard text name based on different flags and it will be fetched the value according to the condition.
Example code
SELECT SINGLE field1
field2
INTO ( vaiable1 variable2 )
FROM custom table
WHERE tdobject = iv_signature
AND bukrs = vbdkr-bukrs
AND vkorg = iv_vkorg
AND vkbur = iv_vkbur
AND lland = vbdkr-land1
AND fkart = vbdkr-fkart
AND kschl = iv_kschl.
CHECK sy-subrc <> 0.
SELECT SINGLE field1
field2
INTO ( vaiable1 variable2 )
FROM custom table
WHERE tdobject = iv_signature
AND vkorg = iv_vkorg
AND vkbur = space
AND fkart = vbdkr-fkart
AND kschl = iv_kschl.
CHECK sy-subrc <> 0.
SELECT SINGLE field1
field2
INTO ( vaiable1 variable2 )
FROM custom table
WHERE tdobject = iv_signature
AND vkorg = iv_vkorg
AND vkbur = space
AND fkart = vbdkr-fkart
AND kschl = space.
The solution I created to avoid the select is, i have created the FM with all parameter. Addition to the FM, I have created a Table as well to maintain the flag.
New table
TDOBJECT TDID BUKRS VKORG VKBUR KUNNR MWSKZ AUART VGBEL_AUART KTGRM LLAND FKART WERKS KSCHL STNAME
FOOTER X X ZNET_DICI_FTR_FI
FOOTER X X ZNET_DICI_FTR_NL
FOOTER X X X
i.e. say example if we maintain the value in the custom table based on the first select query. Then we need to maintain the flag in the table which was created newly.
Note In the both field the key fields are same.
The problem now is we have plenty of select query for different condition, i though of maintain the sequences of the entries. But my worry is how many sequence number will be maintained and in what bases it will be maintained.
Could you please help me to resolve this problem?
Regards,
VijayHi,
I got your requirement as,
whenever a new entry is made in the table, one sequence has to be maintained somethign like serial number and everytime it has to be incremented. If it is so, then you can go for an additional field as serial number. Then get the max serial number from the following select query:
select max(serial) from cust_table
into v_serial.
Now, when you make a new entry, just give (v_serial + 1) to serial number...
Please let me know if i understood wrongly... or what you want...
Maybe you are looking for
-
Why can't I connect to my NETGEAR router all of a sudden?
This one is baffling me. So I have a wireless network set up in my apartment using a Netgear router. I've had it up and running for months without any problems. As of last night, my Macbook Pro has been unable to connect to it. It can recognize it al
-
Windows Server 2012 Failover Cluster (Hyper-V) Event Id 1196
Hi All, I just installed Failover Cluster for Hyper-V on windows server 2012 with 2 nodes. I got following error event id 1196. reCreated / deleted Cluster Host A record on DNS and nothing happened. Any suggestion? There is similar topic but it could
-
MBAM 2.5 Webserver installation error
Upgrading from to 2.5, new webserver. Installing in a ConfigMgr intergration scenario. Installed all the pre-reqs, everything shows passed in the prereq checker, moved on to install and I get this error in the event log: Unexpected Configurator error
-
External keyboard issues? mixing character orders
Hello, I have noticed lately (very often actually) that whenever I start typing with my external keyboard (aluminum and older white plastic -tested both-), the OS doesn't seem to be keeping up with the charecter output. for example if I type the word
-
Lightroom 2.2 says my PC is out of memory?!?
Sometimes LR will display this message: " Your disk "Lokal disk (C:), which contains your Lightroom catalog, is critically low on space. Lightroom has saved the contents of your catalog. You must now remove files or empty the trash to make at least 2