Change in Std SAP Program
BW Experts,
At my client I have changed a Std SAP program LRRSVF20. This was transported up all the way to production. Now that we did a Support pack upgrade in dev, This configuration is lost in development. What is the best approach to get it back. Reconfigure it which will give me a new transport request and retransport all the way till production. Or is there a better way.
Hi,
You need to redo the changes and then transport it again.
Anyways as a Best Practice, don't change Std SAP programs. You can copy them to a Z or Y pgm and then modify them. Usually if you need to change them ask SAP for a correction and then insert/delete that in the program either by applying the note or using SNOTE.
Cheers,
Kedar
Similar Messages
-
Transaction associated with std SAP Program
Hi friends,
I have a custom transaction ZR01 and there is and associated abap program to this which is a std SAP program starting with GP3E*. This program although a std program has been stored as a local object. The report program has a few commented lines in the beginning of the report as follows
user
date
time
release
These lines get updated with the name of the last changed author and the date and time at which changes were made.
Now my doubt is under what circumstances does this comment line gets updated ?
I tried to make some changes in the transaction to see if there is any update happening but that did not have any effect.
Hope my query is clear.
All your valuable inputs are appreciated.
Thanks in advance.
Rgds,
Gayathri.o.k. Gayathri
I think, the commented lines about which you are asking are:
this is a development/modification log maintained manually by the last user. I mean, if you make these changes to this report using access key, you should (not necessarily) update this modification tag (may be as part of following some standards in your company) so as to provide this information: who was the last mofifier of this report and when it was last modified.
So, i think, there is no programming logic behind it. Thats also the reason, it didn't change when u modified it
Regards
Ashish -
We are in the process of upgrading our SAP from 4.6c to 6.0 and I am looking for a document or white paper that summarizes changes to Standard SAP Programs, Tables/Fields, Function Modules etc.. from what used to be in SAP 4.6c to what it is in SAP 6.0. I am not sure if such a comprehensive document exists or is posted in the forum.
Any help or information in this regard will be highly appreciated.
Thanks
ramHi Ram,
<< We are in the process of doing our technical upgrade from SAP 4.6c to 6.0. I am looking for a white paper or documentation listing the changes made to the standard SAP Programs, Tables, Fields, Function Modules etc. from Rel. 4.6c to 6.0. >>
Do you want to know what custom changes were done to SAP standard objects in your system or do you want to know what changes SAP did from 4.6c to ECC6.0.
There is no white paper or documentation to find out custom changes made to SAP standard objects. but there were many tools in the market to find out and tell what changes were done to sap standard objects in your system.
Your question seems ambiguous please clear it.
Thanks,
Kiran. -
Changes in standard SAP programs
Hello all,
How could I track the changes made to standard SAP programs by a client? The system is 4.0B and some standard R/3 application's source code has been modified to provide some non-standard functionalities (that was, probably, the worst solution - in many of the cases they could have use user exits or enhancements for achieving the same purpose).
In the table TRDIR (or, if you will, D010SINF) I can find the programs that were created by a set of users such as 'SAP' or 'SAP*' or 'DDIC' and were subsequently modified by client users (developers).
Furthermore, finding the development class of those programs (function module 'RS_PROGRAM_GET_DEVCLASS') gives me a better idea about what applications were really modified by the client.
Still, many of these programs that appear to have been created by 'SAP' or 'SAP*' and modified by other (client) users were <b>generated</b> as a consequence of <i>configuration changes</i> made by those client users, and therefore are not changes made to SAP R/3 standard.
Is there a way to track only those standard programs that were indeed modified by the client, at source code level?
Thank you,
BogdanHi Bogdan,
you can program your own tool-abap:
1) select table <b>E070</b> ( TRFUNCTION = 'R' )
2) -> for all entries select V_<b>E071EU</b>
(TRKORR = e070-TRKORR)
3)-> list all found objects:
-V_E071EU-PGMID
-V_E071EU-OBJECT
-V_E071EU-OBJ_NAME
and create an interactive list (e.g. for SE11 and SE38)
hope this helps
Andreas -
How to change std. sap programs?
Hi,
I am a developer in HR ABAP. Recently I came across a program MP000040, which is a part of an infotype screen.When i tried to change this program, it said " R3TR generated, changes possible" and i was able to modify it..but since this being a std program, how I was able to do that and what is the meaning of this message? can someone pls clarify?
Thanks in advance
MaheshI think infotypes are a bit different. Please see:
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/4f/d526be575e11d189270000e8322f96/frameset.htm">Enhancing an Infotype Included in the SAP Standard System</a>
Rob -
Use of SUBMIT to retrive data from std SAP program
Hi .
We have 1 SAP std program and 1 Z program for asset allocation.We need to combine these report.I need the data of SAP report in Z report. These is one table ITAB_DATA in SAP report which contains all data for display ALV.I want this data in my Z program.
I have written the following code.
submit RAGITT_ALV01 via selection-screen
USING SELECTION-SET 'TEST17247'
exporting list to memory
and return.
if sy-subrc = 0.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = t_listobject
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
I also tried
FM CALL FUNCTION 'SAVE_LIST'
FM CALL FUNCTION 'WRITE_LIST'
But these all FM contains data in different format.
Can anyone suggesthi did nt look back at this thread sorry..
i n case u have want to have idea
just excute the code ..
take a program a.
REPORT zex8 NO STANDARD PAGE HEADING .
TABLES : marc.
PARAMETER : p_matnr LIKE marc-matnr.
DATA : v1_werks LIKE marc-werks,
v2_werks LIKE marc-werks.
DATA : in TYPE i.
data : begin of itab occurs 0,
text(256),
end of itab.
DATA : BEGIN OF it_marc OCCURS 0,
matnr LIKE marc-matnr,
werks LIKE marc-werks,
END OF it_marc.
DATA : BEGIN OF jtab OCCURS 0,
matnr LIKE marc-matnr,
werks LIKE marc-werks,
lgort like mard-lgort,
END OF jtab.
DATA : listobject LIKE abaplist OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
SELECT matnr werks
FROM marc
INTO TABLE it_marc
WHERE matnr EQ p_matnr.
IF NOT it_marc[] IS INITIAL.
SORT it_marc BY werks.
READ TABLE it_marc INDEX 1.
v1_werks = it_marc-werks.
in = sy-dbcnt.
READ TABLE it_marc INDEX in.
v2_werks = it_marc-werks.
SUBMIT zex9
WITH p_matnr EQ p_matnr
WITH s_werks BETWEEN v1_werks AND v2_werks
EXPORTING LIST TO MEMORY
AND RETURN.
IMPORT listobject FROM MEMORY ID '%_LIST'.
IF SY-SUBRC <> 0.
RAISE NOT_FOUND.
ENDIF.
CALL FUNCTION 'LIST_TO_ASCI'
* EXPORTING
* LIST_INDEX = -1
* WITH_LINE_BREAK = ' '
TABLES
listasci = itab
LISTOBJECT = listobject
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA : J TYPE I VALUE 0 ,
K TYPE I.
loop at itab.
J = J + 1.
IF J > 3 AND ITAB-TEXT NA '---------'.
jtab-matnr = itab-text+1(18).
jtab-werks = itab-text+20(4).
jtab-lgort = itab-text+25(4).
append jtab.
clear jtab.
ENDIF.
endloop.
loop at jtab.
write : / jtab-lgort.
endloop. .
* CALL FUNCTION 'WRITE_LIST'
* EXPORTING
* write_only = 'X'
* TABLES
* listobject = listobject
* EXCEPTIONS
* empty_list = 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.
IF NOT LISTOBJECT IS INITIAL.
CLEAR LISTOBJECT.
ENDIF.
now take one more program as b .
REPORT zex9 NO STANDARD PAGE HEADING.
TYPE-POOLS : slis.
TABLES : marc,
mard ,
makt.
PARAMETERS : p_matnr LIKE marc-matnr.
SELECT-OPTIONS :s_werks FOR marc-werks.
DATA : BEGIN OF it_mard OCCURS 0,
matnr LIKE mard-matnr,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
END OF it_mard.
DATA : fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
gd_repid LIKE sy-repid.
SELECT matnr werks lgort
FROM mard
INTO TABLE it_mard
WHERE werks IN s_werks
AND matnr EQ p_matnr.
fieldcatalog-col_pos = 1.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'MATERIAL NUMBER'.
fieldcatalog-outputlen = 18.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-col_pos = 2.
fieldcatalog-fieldname = 'WERKS'.
fieldcatalog-seltext_m = 'WERKS'.
fieldcatalog-outputlen = 4.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-col_pos = 3.
fieldcatalog-fieldname = 'LGORT'.
fieldcatalog-seltext_m = 'STORLOC'.
fieldcatalog-outputlen = 4.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = gd_repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
* IS_LAYOUT =
it_fieldcat = fieldcatalog[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_mard
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.
u can get the data in to ur calling program ..
regards,
VIJay -
Reverting the changes made to SAP program
Hi,
One of our developer has made changes to SAP Table using SPAU and would like to revert back to original settings and also there is an option to reset to original but when we select that it is throwing an error - that changes cannot be reverted back after modifications have been done...
The user has the Transport request No.
Could you pls help what the best that can be done to have the changes reverted back to original..
Regds,
Satyanarayana N.Hello Satya,
Go to SE11 and give the table name.Go tochange mode. Then in next screen choose UtilitiesVersionsVersion Management. Then retrieve the version before the latest set of changes.
Regards.
Ruchit Khushu. -
How to change standard SAP program SAPLFSKB to add custom fields...?
Hi Gurus,
I have to change the standard SAP program SAPLFSKB screen 100 to add custom fields...i looked into OSS notes and there is a note: 174413 that provides steps to add custom fields...but when i try to do this it doesnt let me do it...it says that request cannot be changed....do i have to use modification agent...if that is the case then how shud i proceed with this....so please provide me some inputs....
your help will be appreciated...
Any inputs for me....
cheers:sam
Message was edited by:
Sam williamstry going into edit->enhancement operations->create. this will allow up to add your customized field.
-
Runtime Error (Std SAP Prog): ITAB_ILLEGAL_REG
Hi,
Run-time error occurred in SAP and the error description says 'ITAB_ILLEGAL_REG' (This is std sap program which was called to generate some FORMS in sap <<No custom code added, so pls don't advise to correct the field assignments, loop, field symbols etc >>).
Short dump ITAB_ILLEGAL_REG occurs when the device id is still not generated.
For reference, I have checked the sap note: 938512, but this is for version 700 SAP_BASIS & 700 SAP_ABA.
We are into 731 SAP_BASIS & 731 SAP_ABA.
Could you kindly suggest if there is any SAP Note available to fix this issue for the version that I have mentioned.
I have searched in SDN and other related sites, but couldn't get a fix.
Thanks,
JoshHello Josh,
This exception occurs from the statement LOOP AT itab refer to the SAP help link below.
http://help.sap.com/abapdocu_702/en/abaploop_at_itab.htm
check the place where this exception occurs, it might be in the enhancement in your standard program.
If it is not there in enhancement and in standard, then raise a support message to SAP as Matthew suggested.
Regards,
TP -
How to change the field length in standard sap program.
Hi All,
How to change the field length in standard sap program.
Urgent
Example:
Text1 type c length 75,
To change :
Text1 type c length 150,
Point will be rewarded..
Thank you,
Vikram.CIf the only solution is to change the sap standard program, simply change the program, it will prompt for an access key. This key can be retrieved in the SAP support portal (service.sap.com) at keys and requests, sccr keys, register object.
Sometimes these actions are outsourced to a competence center, so maybe youre not entitled to do this, in any case ask a resident senior developer for support.
regards, Rob -
Find exact package for saving the workbech request for std SAP object
Hello friends I have edited a std SAP prog for printing the import PO(got access key from market place).After editing while creating transport request I am not able to find the package to which it should be saved.now the problem is that How to move that program to our quality server.
the program is
/1BCDWB/LSF00000063TOPHi achal,
are you sure you modified a standard SAP object. /1BCDWB/ prefix is common with all quick view reports - they are local and user-specific. You can convert a quickview to query to report. Using a modification key you may add it to the standard - choose a package as you prefer. But better copy the generated query report to customer name space - because it never was and never will be SAP standard. If it is in customer name space, release changes are no problem at all.
Regards,
Clemens -
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 -
Need help On Triggers/Change pointers in SAP
Hi Experts,
I Need help On Triggers/Change pointers in SAP.
I have a requirement as soon as an entry is created in one of the Standard SAP table it should check against my Ztable and update and create the corresponding entry in another Ztable.
Can some one help me out on this with the syntax and how to do itHi,
Check whether you have any enhancement option (BADI, user exit, Customer enhancement etc) in the program which is used to save the data in the SAP standard table. If so, then try to write your code in that appropriate enhancement. -
Getting run time errors while executing the copied SAP programs
Hi folks,
i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include programs.i am copying them to z programs like
RQ00MF10 copied to z_RQ00MF10
RQALVF14 copied to z_RQALVF14
RQALVF16 copied to z_RQALVF16
RQALVTOP copied to z_RQALVTOP.
now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
<b>runtime error---</b>
The termination occurred in the ABAP program "Z_RQEEAL10" in
"SELECT_FIELDS_MANIP2_F16".
The main program was "Z_RQEEAL10 ".
The termination occurred in line 257 of the source code of the (Include)
program "RQALVF16"
of the source code of program "RQALVF16" (when calling the editor 2570).
--Error in ABAP statement when processing an internal table.
--When changing or deleting one or more lines of the internal table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as
the line index. An index less than or equal to zero is not
allowed.
The error can occur when using the following options:
1. "INDEX idx" for specifying the line number in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"
where you want to change, insert or delete.
2. "FROM idx" for specifying the start index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
3. "TO idx" for specifying the end index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
When the program terminated, the table had 2 lines.
these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
Thanks & regardsHi Madhu,
I will give you one more check point where you have to give your concentration while copying the standard programs....
Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
one more is also here
You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
~~Guduri -
Hi Guys,
Is there any way I can create a watch point for an internal table (eg. T_OUTTAB). I am debugging SAP program and want to stop when a particular T_OUTTAB is populated. Debugger should stop when the internal table is changed or even better if particular field in the internal table is changed.
When I tried to put the internal table in create watchpoint, I get following message.
Variable T_OUTTAB does not exist.
Please help.
miniYou can put a watch point on an internal table, but only after you enter that particular program where the table exists. Try to locate the include/program where the table exists, put a breakpoint on the include and then after entering the program/include put a watchpoint on the itab.
Maybe you are looking for
-
Hello, I am working currently on crosstab and I do have a date object from universe, from that I need to get year ,quarter, but when i create a variable for the year it is working but when drag that into the report showing the multivalue error and da
-
D810 files won't open in Photoshop CS5
Any ideas on how to resolve this issue? Thank you,
-
New paper published on using Groovy in JDeveloper 11g.
If you are looking to use Groovy expressions in ADF Business Components but finding the current developer guides less than helpful, I've pulled together some typical use cases into a new white paper http://www.oracle.com/technology/products/jdev/11/h
-
When I plug my ipod touch into the pc, it tells me:the ipod cannot be used because the apple mobile device service is not started. What does this mean and how do I get rid of that and enable syncing?
-
Error in using applications on Symbian (nokia e7) ...
+ many applications likd tweetian, Dabr, fascinate, twimgo etc have not been working on nokia e7 since 1st january 2014. what shall i do? Have even deleted & dn reinstalled but all in vain