Where does an abap program get stored after save?
Where does an abap program get stored after save? ...plzz tell
Edited by: Alvaro Tejada Galindo on Feb 18, 2008 11:28 AM
this program download the code to presentation server
Analyse this code.
CHECK IT IN DEBUGGING
REPORT zdownload_source MESSAGE-ID zabap.
TABLES: trdir.
SELECT-OPTIONS: repo FOR trdir-name.
PARAMETERS: path(60) TYPE c DEFAULT 'C:\programs\'.
DATA: BEGIN OF tabsource OCCURS 10,
source(72) TYPE c,
END OF tabsource.
DATA: BEGIN OF tabtext OCCURS 50,
tab LIKE textpool ,
END OF tabtext.
DATA: BEGIN OF tabrdir OCCURS 100,
rdir LIKE trdir,
END OF tabrdir.
DATA: filename LIKE rlgrap-filename,
mode TYPE c VALUE ' ',
rdirrows TYPE i,
sourcerows TYPE i,
rc TYPE i,
length TYPE i.
FIELD-SYMBOLS: <p>.
DATA: ok TYPE i VALUE 0,
fail TYPE i VALUE 1.
AT SELECTION-SCREEN.
DATA: i TYPE i.
DESCRIBE TABLE repo LINES i.
IF i <= 0.
SET CURSOR FIELD repo.
MESSAGE i001 WITH 'se message class'.
ENDIF.
START-OF-SELECTION.
CONDENSE path NO-GAPS.
length = strlen( path ).
SUBTRACT 1 FROM length.
ASSIGN path+length(1) TO <p>.
IF <p> <> '\'.
ADD 1 TO length.
ASSIGN path+length TO <p>.
<p> = '\'.
ENDIF.
SELECT * FROM trdir
INTO TABLE tabrdir
WHERE name IN repo.
DESCRIBE TABLE tabrdir LINES rdirrows.
CHECK rdirrows > 0.
LOOP AT tabrdir.
MOVE tabrdir TO trdir.
PERFORM download_sourse USING rc.
CHECK rc = ok.
* PERFORM download_textpool USING rc.
ENDLOOP.
write :/ sy-dbcnt , ' number of programs downloaded'.
*& Form download_sourse
* text
* -->P_RC text
FORM download_sourse USING rc.
rc = fail.
CLEAR: tabsource, filename.
REFRESH: tabsource.
READ REPORT trdir-name INTO tabsource.
DESCRIBE TABLE tabsource LINES sourcerows.
CHECK sourcerows > 0.
CALL FUNCTION 'STRING_CONCATENATE_3'
EXPORTING
string1 = PATH
string2 = TRDIR-NAME
string3 = '.ABA'
IMPORTING
string = FILENAME
EXCEPTIONS
too_small = 1
* OTHERS = 2
IF sy-subrc <> 0.
WRITE: 'AAAA'.
ENDIF.
CONDENSE filename NO-GAPS.
PERFORM download TABLES tabsource USING filename rc.
ENDFORM. " download_sourse
*& Form download_textpool
* text
* -->P_RC text
FORM download_textpool USING p_rc.
rc = fail.
CLEAR: tabtext, filename.
REFRESH: tabtext.
READ TEXTPOOL trdir-name INTO tabtext LANGUAGE sy-langu.
DESCRIBE TABLE tabtext LINES sourcerows.
CHECK sourcerows > 0.
CALL FUNCTION 'STRING_CONCATENATE_3'
EXPORTING
string1 = path
string2 = trdir-name
string3 = '.TXT'
IMPORTING
string = filename
EXCEPTIONS
too_small = 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.
PERFORM download TABLES tabtext USING filename rc.
ENDFORM. " download_textpool
*& Form download
* text
* -->P_TABTEXT text
* -->P_FILENAME text
* -->P_RC text
FORM download TABLES tabtext
USING filename
rc.
rc = fail.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
* BIN_FILESIZE = ' '
* CODEPAGE = ' '
FILENAME = filename
FILETYPE = 'ASC'
MODE = 'MODE'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* COL_SELECT = ' '
* COL_SELECTMASK = ' '
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
TABLES
data_tab = TABTEXT
* FIELDNAMES =
* EXCEPTIONS
* FILE_OPEN_ERROR = 1
* FILE_WRITE_ERROR = 2
* INVALID_FILESIZE = 3
* INVALID_TYPE = 4
* NO_BATCH = 5
* UNKNOWN_ERROR = 6
* INVALID_TABLE_WIDTH = 7
* GUI_REFUSE_FILETRANSFER = 8
* CUSTOMER_ERROR = 9
* OTHERS = 10
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 sy-subrc <> 0.
WRITE: / sy-subrc, ' message declare '.
ENDIF.
rc = sy-subrc.
ENDFORM. " download
regards.
santhosh reddy
<REMOVED BY MODERATOR>
Edited by: Santhosh Reddy on Feb 13, 2008 6:48 PM
Edited by: Alvaro Tejada Galindo on Feb 18, 2008 12:00 PM
Similar Messages
-
Where does WebDynpro ABAP URL get defaulted
When creating a WebDynpro ABAP application, the URL gets generated automatically.
My question is where does this path get generated from. Is there a place to edit the settings?
The reason why I ask is that the Basis team has disabled protocol HTTP and are now using HTTPS.
The problem is, our WebDynpro ABAP applications still get defaulted to HTTP in the URL string.
Where do you change the settings?Yes, I replied to your question before realizing the answer had been given by Shruti. By going to tcode SMICM, in GOTO/services menu, I noticed that HTTP and HTTPS were both set to active. So, I inactivated the HTTP and by doing that the WebDynpro ABAP application URL's that get defaulted (tab folder adminstrative data) now default to HTTPS and the port defined in SMICM.
The Basis team had disabled HTTP, I assuming by removing the port address, but keeping the HTTP service active and this was causing a problem for all the WebDynpro ABAP programs. They were still defaulting to HTTP. Why they did not make this change I just did, I don't know.
I couldn't get anyone to take charge of this, so I did.
Problem solved. -
Where does a new contact get stored when Exchange and iCloud are configured?
I have Contact (and mail and calendar) configured for iCloud and Exchange. When I add a new contact, how do I determin where it is stored?
When I click Add (via the + or Command N) I get
Which account will hold the new contact?
Thank youYou should be able to switch between three different views at the bottom of Contacts (three buttons next to each other below your contacts list) - the leftmost button should show all your accounts and groups next to your list of contacts and you can then simply drag & drop contacts into an account or group :-)
-
Where does the buffer data gets stored in bw 3.5 bps?
Hi all,
Is there any standard tables, where in i can look for the buffer data. And how to delete nor refresh the buffer data in bw 3.5 bps?
Can anyone let me know the significance of buffer in bps 3.5?
Thanks
PoojaHi,
I think Data in the buffer is not stored temporarily in any specific table,once it is saved it will be as transaction data of the cube or the master data.
The place where data is stored in buffer is called planning buffer and All changes to the data are written to planning buffer.So you don't have to save continuously.If the data is not already in the buffer, the system reads it either from:
The database table (Customizing objects), or Info cube (Plan Data)
and writes it to the planning buffer.
You can use the given function module to delete the buffer data:'UPF_METHOD_DESTROY'
Regards,
Indu -
Where does my sim contacts get stored ?? Am not able to view them
I tried importing my sim contacts but still am
Not able to find my sim contactsYou should be able to import contacts from a SIM that was used by a different phone. Settings>Mail, Contacts, Calendar>Import SIM contacts.
Best of luck. -
Error messages in ABAP program are stored in which table
hi all,
Can anyone tell
error messages in ABAP program are stored in which table??Hi Sir ,
Please have a look below .Hope it is suitable and simpler solution for your question.
Please do reward if useful.
Thankx.
Fuction module for storing error messages ->'format_message'
for example...
data : v_message(100) type c.
call transaction NNNN mode A update S messages into it_messages.
loop at it_messages where msgty = 'E'.
call function 'format_message'
exporting
*it_messages details
importing
v_message.
write :/ v_message.
clear v_message.
endloop.
Anothe method - ->
Here is a sample of the program code for that:
LOOP AT it_messtab.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = it_messtab-msgid
lang = it_messtab-msgspra
no = it_messtab-msgnr
v1 = it_messtab-msgv1
v2 = it_messtab-msgv2
IMPORTING
msg = g_msg
EXCEPTIONS
OTHERS = 0.
IF it_messtab-msgtyp = 'S'.
it_sucess-sucess_rec = g_msg.
it_sucess-lifnr = it_header-lifnr." Based on your field
it_sucess-tabix = v_lines.
APPEND it_sucess.
ELSEIF it_messtab-msgtyp = 'E'.
it_error-error_rec = g_msg.
it_error-lifnr = it_header-lifnr.
it_error-tabix = v_lines.
APPEND it_error.
ELSE.
it_info-info_rec = g_msg.
it_info-lifnr = it_header-lifnr.
it_info-tabix = v_lines.
APPEND it_info.
ENDIF.
ENDLOOP. -
How and where does SAP standard programs update the master tables...
Hello there,
How and where does SAP standard programs update the master tables...
to be precise.. if a (any) transaction occurs the programs behind it holds the data in temporary structures.
where and when does it get updated in the master table.
can anyone tell me how it happens?
I Know that from the where used list one can find the corresponding table but most of the time it wont suffice
I am expecting a proper answer.
Santosh BHello Santosh,
you need to do some self-reading on the following topic
Updates in the SAP System (BC-CST-UP)
http://help.sap.com/saphelp_47x200/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/frameset.htm
Regards,
Siddhesh -
Where does substitution variable meta data stored?
where does substitution variable meta data stored in the essbase folder?<BR>Thanks<BR>Arun
I believe substitution variables are stored in the Essbase.sec (Security file).
-
Where does the supporting deatil is stored? in Planning or Essbase?
Where does the supporting deatil is stored? in Planning database (RDMS) or Essbase database?
Appreciate if u could reply ASAP.
Thanks in Advance!!Supporting details are stored in Planning Applications RDBMS. check out HSP_COLUMN_DETAIL and HSP_COLUMN_DETAIL_ITEM in the application relational database
Re: Refresh Database
I can see 6 question and all are unresolved, Mark the answers if you think they are correct or helped you and close the thread.
Cheers..!!
Edited by: RahulS on Jun 21, 2011 3:58 PM -
Can we make ABAP programs Unicode enable after SAP sys is converted to uni
Hello Experts,
Can we convert the Non Unicode ABAP programs to Unicode after upgrading non unicode SAP system to Unicode?
Is there any serious problem?
If Non Unicode SAP is upgraded to Unicode without converting all non unicode ABAP programs to Unicode.
Thanks in advance.
HariHi
There is no need of correcting the programs from Non unicode to Unicode
After migrating the system from non Unicode to Unicode you have to run certain Notes (which will be done by Basis) to take care of this.
<b>Reward points for useful Answers</b>
Regards
Anji -
Where does the ACS server get the DNS info for IP pools?
I am trying to change the DNS servers that my VPN users are assigned from the IP pools on the ACS server. Where does the IP pools get the DNS server information. I have changed the DNS Ips on the windows server and rebooted. But the VPN clients are still being assigned the old DNS servers.
ACS ip pools do not push DNS server information
It is either being forwarded from VPN concentrator group setup or
it is being send from ACS user/group setup > Radius(VPN 3000) attributes > [026/3076/005] Primary-DNS.
Hope this helps.
Regards
Rohit -
Does preview catalog will get smaller after deleting movies/pictures from Lightroom 4.0 assuming the option 'Automatically discard 1:1 previews' is marked 'Never'?
Yes, but it may not be apparent immediately. The previews are "held" for a time to save rebuilding if the associted file is reimported or the removal undone.
-
Where does the svc system get its infos from?
The longer I work with Solaris 10, the more I dread this awful "services" construction and its unwieldy administration.
I have a newly setup machine with two zones, one created right after the other, meaning they should be identical.
/usr is, as usual, lofs'ed into both zones, and contains a /usr/local/samba dir with a handcompiled 3.0.30 release.
I have not created any manifests as I intended to simply delete the 'onboard' samba service and start the new version
via the classical init script.
I boot both zones.. and one starts "/usr/local/samba/smbd -D -f /etc/smb.conf", and the other starts (or tries to) "/usr/sfw/sbin/smbd -D".
I inspected the manifest xmls for the network/samba service, and in both zones the entry lists /usr/sfw as start method.
svccfg listprop network/samba also reports /usr/sfw for both zones.
Where did the one zone get the info to start the /usr/local samba installation, and where did it get the (correct) conf file parameter?
Why does svccfg report a different startup method property than it really runs on svcadm enable?
I have grepped through all of /lib/svc, /etc/svc and /var/svc and nowhere is any reference to the /usr/local file nor the conf parameters.
Swapping the svc repository.db file between both zones also swaps the problem around - so it must be somewhere in there,
but as it's no longer a human readable file, I'm out of luck there. How did the /usr/local path and parameters get into that DB file?
Does the service system search the filesystem for known daemon binary names and other guesswork? And if it does such voodoo,
why didn't it do the same in the other identical zone?
rant Did we really need to get this svc "feature"? Until now I have seen no advantage from it, and only incurred a huge load of inconvenience,
be it the additional work of creating manifests for new services or debugging problems that I never had in a decade or two of init script usage.
We have all seen for many years how well this registry/service stuff worked on Windows..*/rant*>
I boot both zones.. and one starts "/usr/local/samba/smbd -D -f /etc/smb.conf", and the other starts (or tries to) "/usr/sfw/sbin/smbd -D".
I inspected the manifest xmls for the network/samba service, and in both zones the entry lists /usr/sfw as start method.I take it you mean the full path with /usr/sfw in it, not "/usr/sfw" all by itself....
What do you get for:
svcprop -p start/exec network/samba:defaultThat should display the start string it uses.
Where did the one zone get the info to start the /usr/local samba installation, and where did it get the (correct) conf file parameter?I can only assume that some program inserted that string into the service. As you said, it's not in the manifest, so it didn't come from there.
Why does svccfg report a different startup method property than it really runs on svcadm enable?
I have grepped through all of /lib/svc, /etc/svc and /var/svc and nowhere is any reference to the /usr/local file nor the conf parameters.
Swapping the svc repository.db file between both zones also swaps the problem around - so it must be somewhere in there,
but as it's no longer a human readable file, I'm out of luck there. How did the /usr/local path and parameters get into that DB file?
Does the service system search the filesystem for known daemon binary names and other guesswork? And if it does such voodoo,
why didn't it do the same in the other identical zone?
rant Did we really need to get this svc "feature"? Until now I have seen no advantage from it, and only incurred a huge load of inconvenience,
be it the additional work of creating manifests for new services or debugging problems that I never had in a decade or two of init script usage.As with many such things, the advangages are greater when the environment is more complex. For starting a single job, you won't see the benefits as much.
Of course, the milestone services still run startup scripts out of /etc/rc[S23].d, so those are perfectly valid places to run a startup script.
Darren -
Desktop Icon does not launch program on Mac after download
Purchased from Adobe via internet. Akamai interface downloaded and then Photoshop Elements 11. Both icons on Mac desktop. Double clicking on PE 11 does not launch program. Is it fully downloaded? I get Read Me file in four languages as well as a PE 11 icon after double clicking the desktop icon.
ThanksThank you. The download directions did not include the part about double clicking the desktop Elements icon, double clicking the elements icon within the box that opened and then clicking on "install." Okay, so i am not computer savvy, but the directions gave the impression that the download was complete after following the supplied instructions. Who knew? I did not want to duplicate a download, so was apprehensive to take this action. Did it anyway out of frustration and it worked. Obviously, the application was not entirely downloaded. Now, i get to learn a whole new application as IPhoto bites! I spent hours and hours, days upon days scanning and editing old family photos in IPhoto only to learn that the program re-sorted my photo order when i tried to make copies for family. I lost my edits, lost my photo notes and had to retrieve my entire library before presenting several hundred multi generational family photos to everyone in my extended family! Hopefully, this application will be an improvement!
Thanks again for taking the time to respond! -
Does Update function module gets executed after Commit Work?
Hi Gurus,
I have a BAPI with a Commit work. Does update function module V1 , V2 - i need mainly about the sequence of V2, gets executed after Commit work or before Commit work.
ThanksPl refer to SAP help on the same as follows.
https://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm
Regards,
Naveen Vishal
Maybe you are looking for
-
Whenever I try to open a document pages gives me this message. I cannot work with this extremely important document now. What should I do? Please help me... Process: Pages [818] Path: /Applications/Pages.app/Contents/MacOS/Pages I
-
Hello Experts, I am runing the transaction code CO60 to display the PI sheet,but it is resulting in a short-dump as a result of time out. This is happening with only one sheet. can we increase the time line to execute this particular trasaction ? I f
-
HT201317 Can I prohibit shared photo stream images from being forwarded/downloaded?
I wish to stop any images I've shared and are sharing with a group from being downloaded or forwarded from their devices. Is their anyway of write protecting the images to be shared by the owner only? Thanks
-
SAP HR - OIM real time reconcilatin
Hi, Any one has experience around setting up SAP HR and OIM real time reconcilation on a real time basis. Thanks D
-
BIC Code in bank master for SEPA requirements
Hello experrts, we are currently running R/3 4.7 and I have a question regarding the maintenance of BIC code in bank master data. From next year on, payments inside Europe can/will be made according to SEPA requirements. One requirement is to provide