How to change internal number range into external number range
Hi All,
There is a number range in the system which was assigned internally by mistake earlier. Now, I want to change the internally assigned number range to external number range.
Can anyone please let me know, the procedure to change used number range from internal number range to external number range and from external number range to internal number range.
Quick reply will be appreciated & points will be assigned.
Thanks & Regards,
hi Mehak,
you can try to simply change the range from ext to int (and vica versa). If that does not wrok, than you can delete the range and recreate it with proper settings. But you have to take into account that if you have a range as external from 1 to 10 and for example numbers 2 and 5 are taken already than you recreate the range 1..10 as internal, than you could have some problems. Probably best is in this case to recreate with other interval.
hope this helps
ec
Similar Messages
-
how to change read only folders into normal ones...i can't get any filed from my hard drive..it shows read only
Which HDD are you referring to, an external one, or the internal SSD?
If external, which format is it in? -
How to change bucket capacity for a certain date range (duration)?
Hi,
I need to update the bucket capacities of Resource at Vendor location in APO live cache for a particular period using BAPI_RSSRVAPS_CHANGEMULTI.
Here I am executing BAPI by passing -
Import Parameters:
LOGICAL_SYSTEM
COMMIT_CONTROL
PLANNING_VERSION
Tables:
RESOURCE_HEAD
(RESOURCE = Resource " Test123
LOCATION = Vendor Number/Loctaion
CAPACITY_A = 5000.000
NUM_OF_PERIODS = 001
PERIOD = 02 " Day Wise
UTIL_BUCKET = 100.000 )
RESOURCE_HEAD_X
(All corresponding fields X)
RESOURCE_QUANMODEL
(RESOURCE = Resource " Test123
VERSION = 01
ENDDA = 02/25/2011
BEGDA = 02/21/2011
QUANMODEL = 8000 )
RESOURCE_QUANMODEL_X
(All corresponding fields X)
[ I have a capacity variance:
Resource = Test123; Capacity Varient = 01; Valid From = 02/21/2011
Valid To = 02/25/2011; Bucket Util Rate = 100.000; Qty/Rate definition = 8000 ]
Now, while I execute /SAPAPO/RES01 to display Capacity for that resource-Location-PlanningVersion, Its showing that 'Bucket Capacity' and 'SNP Bucket Capacity' get changed into 5000. But this change happend for all the days and not only for the duration I passed into Bapi (From BEGDA to ENDDA).
How to change bucket capacity for a certain date range (duration)? Any help please.
Thanks
RoyI did it myself. Hence closing the thread.
Solution:
1. Get RESUID from /SAPAPO/RESKEY table by passing Resource as NAME.
2. Call Function Module /SAPAPO/CRES_QUANPROF_UPDATE
3. Call Function Module /SAPAPO/CRES_SAVE_FROM_BT
For further help, change manually a single record in the 'capacity profile' in TXN /SAPAPO/RES01 and debug both the FM mentioned above.
BR
Roy -
How to download internal table data into xml file?
Hi,
Experts,
I have downloaded internal table data into XLS format using GUI_DOWNLOAD Function module, But i didn't Know how to download internal table data into XML format please post some ideas/inputs on this issue.
Thank you,
Shabeer ahmed.check this
data : gd_repid type sy-repid.
GD_REPID = SY-REPID.
DATA : L_DOM TYPE REF TO IF_IXML_ELEMENT,
M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
G_IXML TYPE REF TO IF_IXML,
W_STRING TYPE XSTRING,
W_SIZE TYPE I,
W_RESULT TYPE I,
W_LINE TYPE STRING,
IT_XML TYPE DCXMLLINES,
S_XML LIKE LINE OF IT_XML,
W_RC LIKE SY-SUBRC.
DATA: XML TYPE DCXMLLINES.
DATA: RC TYPE SY-SUBRC,
BEGIN OF XML_TAB OCCURS 0,
D LIKE LINE OF XML,
END OF XML_TAB.
data : l_element type ref to if_ixml_element,
xml_ns_prefix_sf type string,
xml_ns_uri_sf type string.
CLASS CL_IXML DEFINITION LOAD.
G_IXML = CL_IXML=>CREATE( ).
CHECK NOT G_IXML IS INITIAL.
M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
CHECK NOT M_DOCUMENT IS INITIAL.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'REPAIRDATA'
DATAOBJECT = IT_FINAL_LAST1[]
IMPORTING
DATA_AS_DOM = L_DOM
CHANGING
DOCUMENT = M_DOCUMENT
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
CHECK NOT L_DOM IS INITIAL.
W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
*Start of code for Header
* namespace
t_mnr = sy-datum+4(2).
CALL FUNCTION 'IDWT_READ_MONTH_TEXT'
EXPORTING
LANGU = 'E'
MONTH = t_mnr
IMPORTING
T247 = wa_t247
concatenate sy-datum+6(2)
wa_t247-ktx
sy-datum(4) into t_var1.
concatenate sy-uzeit(2)
sy-uzeit+2(2)
sy-uzeit+4(2) into t_var2.
clear : xml_ns_prefix_sf,
xml_ns_uri_sf.
l_element = m_document->get_root_element( ).
xml_ns_prefix_sf = 'TIMESTAMP'.
concatenate t_var1 t_var2 into xml_ns_uri_sf separated by space.
clear : t_var1,
t_var2,
t_mnr,
wa_t247.
l_element->set_attribute( name = xml_ns_prefix_sf
namespace = ' '
value = xml_ns_uri_sf ).
clear : xml_ns_prefix_sf,
xml_ns_uri_sf.
xml_ns_prefix_sf = 'FILECREATOR'.
xml_ns_uri_sf = 'SAP'.
l_element->set_attribute( name = xml_ns_prefix_sf
namespace = ' '
value = xml_ns_uri_sf ).
clear : xml_ns_prefix_sf,
xml_ns_uri_sf.
xml_ns_prefix_sf = 'CLAIMGROUP'.
xml_ns_uri_sf = '1'.
l_element->set_attribute( name = xml_ns_prefix_sf
namespace = ' '
value = xml_ns_uri_sf ).
clear : xml_ns_prefix_sf,
xml_ns_uri_sf.
xml_ns_prefix_sf = 'CLAIMTYPES'.
xml_ns_uri_sf = 'W'.
l_element->set_attribute( name = xml_ns_prefix_sf
namespace = ' '
value = xml_ns_uri_sf ).
*End of Code for Header
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = M_DOCUMENT
IMPORTING
XML_AS_STRING = W_STRING
SIZE = W_SIZE
TABLES
XML_AS_TABLE = IT_XML
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
LOOP AT IT_XML INTO XML_TAB-D.
APPEND XML_TAB.
ENDLOOP.
*Start of Code for File name
concatenate p_file
'\R'
'000_119481'
sy-datum+6(2) sy-datum+4(2) sy-datum+2(2)
sy-uzeit(2) sy-uzeit+2(2) sy-uzeit(2) '.xml' into p_file.
*End of Code for File name
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_SIZE
FILENAME = p_file
FILETYPE = 'BIN'
TABLES
DATA_TAB = XML_TAB
EXCEPTIONS
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. -
How to create a Sales Order with external number using BAPI
Hi People,
I am wonderning how to create Sales order using external number range by BAPI (SALESORDER_CREATEFROMDAT202).
I tried search but could not succeed in finding the solution.
Please share if anyone has some info.
Thanks in advance.
Regards,
PraveenAs per my understanding, the BAPI
SALESORDER_CREATEFROMDAT202
mentioned by you, is not BAPI. In fact, that is basic IDoc Type. For processing an Inbound IDoc, we use FM IDOC_INPUT_ORDERS.
If you want to create sales order other than IDoc, refer FM BAPI_SALESORDER_CREATEFROMDAT2. There you can provide external sales order no in SALESDOCUMENTIN. In addition to that check whether your sales doc type is relevant for external number range or not. If yes. then make sure you are providing external number according to the number range maintained.
If you still have any concerns, please revert back.
Thanks, JP -
How to Convert internal table data into text output and send mail in ABAP
Hi All,
Good Morning.
Taking a glance at a code that converts internal table data to an Excel file in ABAP. also checked how to send this excel to mailing list as attachment.
But thought of doing it without excel.
I mean, I have an internal table which contains fields of all types (character,integer,date,time). Since it is only around 4 to 5 rows in it (output),why to convert it to excel. not required!!. Instead I want to send this output to User's mails as Normal mail body with No attachments.
Could anybody please suggest me a way as to how to send internal table data as a mail ( not as an excel or PDF etc).
as of now my findings are, it is quite complex to convert internal table data to email (Text) format. but i believe if there is some way of doing it.
Best Regards
Dileep VThere's something I have used in the past where we send out information about failed precalculation settings (which are stored in internal table gt_fail)
notice we use gt_text as "mail body"
TRY.
* -------- create persistent send request ------------------------
gv_send_request = cl_bcs=>create_persistent( ).
* -------- create and set document -------------------------------
* create text to be sent
wa_line = text-001.
APPEND wa_line TO gt_text.
CLEAR wa_line.
APPEND wa_line TO gt_text.
LOOP AT gt_fail ASSIGNING <fs_fail>.
MOVE <fs_fail>-retry_count TO gv_count.
CONCATENATE text-002
<fs_fail>-setting_id
text-003
gv_count
INTO wa_line SEPARATED BY space.
APPEND wa_line TO gt_text.
CLEAR wa_line.
ENDLOOP.
APPEND wa_line TO gt_text.
wa_line = text-007.
APPEND wa_line TO gt_text.
* create actual document
gv_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = gt_text
i_length = '12'
i_subject = 'Failed Precalculation Settings!' ).
* add document to send request
CALL METHOD gv_send_request->set_document( gv_document ).
* --------- set sender -------------------------------------------
gv_sender = cl_sapuser_bcs=>create( sy-uname ).
CALL METHOD gv_send_request->set_sender
EXPORTING
i_sender = gv_sender.
* --------- add recipient (e-mail address) -----------------------
LOOP AT s_email INTO wa_email.
MOVE wa_email-low TO gv_email.
gv_recipient = cl_cam_address_bcs=>create_internet_address(
gv_email ).
CALL METHOD gv_send_request->add_recipient
EXPORTING
i_recipient = gv_recipient
i_express = 'X'.
ENDLOOP.
* ---------- set to send immediately -----------------------------
CALL METHOD gv_send_request->set_send_immediately( 'X' ).
* ---------- send document ---------------------------------------
CALL METHOD gv_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE text-004.
ENDIF.
COMMIT WORK.
* exception handling
CATCH cx_bcs INTO gv_bcs_exception.
WRITE: text-005.
WRITE: text-006, gv_bcs_exception->error_type.
EXIT.
ENDTRY.
with the following declarations
* TABLES *
TABLES:
adr6,
rsr_prec_sett.
* INTERNAL TABLES & WORK AREAS *
DATA:
gt_fail TYPE SORTED TABLE OF rsr_prec_sett
WITH UNIQUE KEY setting_id run_date,
gt_text TYPE bcsy_text,
wa_fail LIKE LINE OF gt_fail,
wa_line(90) TYPE c.
FIELD-SYMBOLS:
<fs_fail> LIKE LINE OF gt_fail.
* VARIABLES *
DATA:
gv_count(4) TYPE n,
gv_send_request TYPE REF TO cl_bcs,
gv_document TYPE REF TO cl_document_bcs,
gv_sender TYPE REF TO cl_sapuser_bcs,
gv_recipient TYPE REF TO if_recipient_bcs,
gv_email TYPE adr6-smtp_addr,
gv_bcs_exception TYPE REF TO cx_bcs,
gv_sent_to_all TYPE os_boolean.
* SELECTION-SCREEN *
SELECT-OPTIONS:
s_email FOR adr6-smtp_addr NO INTERVALS MODIF ID sel.
DATA:
wa_email LIKE LINE OF s_email. -
How to change elements in ArrayList into String
Greetings,
i like to change elements in arrayList into string.
This is how i declare an ArrayList in a Java file
ArrayList listing = new ArrayList();below is just a simple example of how i insert the string into the arraylist
String concat = "';
concat = concat + "apple";
//Transfer the concat string into arraylist
listing.add(concat);
return listing;
{code}
On my Jsp page, it will receive the ArrayList from the java file. Lets say the Arrayist is pass into my JSP arraylist
This is my JSP arraylist
{code}ArrayList optLists = new ArrayList();{code}
Inside the arraylist element, it holds data eg: *308577;;RS | [CAT 2] Level: Arena, Section: A02* with a pipe between RS and CAT 2.
Now i looping the arraylist
{code}int a = 0;
for ( a=0; a < optLists.size(); a++)
String tempString = "";
String splitTemp = "";
String tempString = (String)optLists.get(a);
splitTemp = tempString.split("|");
System.out.println("Split String Results: "+ splitTemp);
{code}}
Heres the error:
*SeatAvailable_jsp.java:560: incompatible types*
*[javac] found : java.lang.String[]*
*[javac] required: java.lang.String*
*[javac] splitTemp = tempString.split("|");*
*[javac]*
What can i do to solve the problem?
Edited by: leeChaolan on May 2, 2008 4:45 AM
Edited by: leeChaolan on May 2, 2008 4:48 AMpaternostro is right, you are returning an array into a string which is wrong
but try this, i haven't tested it though..
nt a = 0;
for ( a=0; a < optLists.size(); a++)
String tempString = "";
String splitTemp = "";
String tempString = (String)optLists.get(a);
String[] splitTemp = tempString.split("|");
for(String xyz : splitTemp)
System.out.println("Split String Results: "+ xyz);
}Edited by: linker on May 2, 2008 1:17 PM
Edited by: linker on May 2, 2008 1:18 PM -
How to Convert internal table data into xml and xml data into internal tab
Hi Guys,
I have a requirement that i have to convert the internal table data into xml format and viceversa . for my requirement i came to know that i have to use Transformations concept. i done the converting the data from internal table into xml data by using standard Tranformations. My Question is
1) Can i use same Transformation to convert the xml data into abap internal table. if it is possible then how ???
2) Is it possible using the standard Transformation or I have to go for XSLT approach
Please help me out from this guys,
Thanks and Regards
KotiHi Koti,
This is possible. There is a link. With the help of this link you can convert ABAP data to XML and vice versa.
Link: http://www.heidoc.net/joomla/index.php?option=com_content&view=article&id=15:sapxslt&catid=22:sap-xslt&Itemid=31 -
How can I import my DVD into extern Hardisk to save them?
How can I import my Dvd (iM ovie) into extern Harddisk to save them?
Hi
Disk Utility tool should be able to make a DiskImage of Your DVD (only work for non commercial DVDs)
Yours Bengt W -
How to convert a boolean expression into a number in SQL (not PL/SQL)
I have a boolean expression
FIELD IN (SELECT FIELD FROM TABLE)
which I would like to convert into a number, preferably into 0 for true and into 1 for false. The reason being that I want to sum the values in a HAVING clause.
I have tried with DECODE, SIGN, TO_NUMBER, but all fail with an error message to the order of wrong type of argument.
Does anyone have an idea?
/poul-jorgenHi, you can do it with case if you have Oracle 9i
Regards
Laurent
select case when dummy in ('X') then 1 else 0 end from dual; -
How to swap internal storage with the external sto...
Is it possible to swap internal storage with the external storage on Nokia X without any damage to phone as well as external sd card? It has been a very popular issue in recent times. If someone has a really good solution then please reply keeping the criteria provided beforehand in mind. Thanks in advance.
Sent from my Nokia Lumia 530...>
I have a table which is partitioned by Year. Now I want to move the 1 (EX: 1999) year data to another history table.
For this first I want to swap the 1999FY partition out with an external table and then swap them back to HISTORY table.
Please help me by providing a sample script for that.
>
It seems to me that you use the term "external table" in a wrong context. External table means a flat file, accessed as db object with select.
But probably, for you "external table" is a normal table that may hold the same structured data as a partition of another table does.
We have a feature for your requirement called "exchange partition with table".
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2131250
Kind regards
Uwe
http://uhesse.wordpress.com -
How to split a result set into n-number ranges, each range has same max-min
Hi guys,
suppose there's a table T1(fvalue number),
we can easily get the MAX and MIN of fvalue, for example, 19 and 5, I need to split them into, for example, 3 ranges, 5-9, 10-14, 15-19, they have the same max-min. And for each range, I need to know the count of rows that fall into this range.
does anyone have any clues? is there any analytic function i can use to accomplish this?
many thanks.There are the NTILE and WIDTH_BUCKET functions that may be of use. However, I'm not exactly sure what you are after.
It is always helpful to provide the following:
1. Oracle version (SELECT * FROM V$VERSION)
2. Sample data in the form of CREATE / INSERT statements.
3. Expected output
4. Explanation of expected output (A.K.A. "business logic")
5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details. -
How to have internal email scanned by external MTA.
Hi, Guys
For exchange 2013/ exchange online, I know it is easier to have external scanner to scan inbound/outbound email , but i don't know if it is possible to have internal email was scanned by external MTA before deliver to internal
recipients. anyone know how to achieve this and if the MTA can change email content?
please advice urgent from where this can be done , thanks very much!!Hi Tony,
According to your description, I understand that you want to use MTA to scan internal message to ensure security.
If I misunderstand your concern, please do not hesitate to let me know.
What’s the meaning of MTA? Message Transfer Agent or the term "MTA" to mean what Exchange refers to as the "Transport”? Transport service handle message routing, more details about Mail Flow, for your reference:
https://technet.microsoft.com/en-us/library/aa996349(v=exchg.150).aspx#TransportPipeline
The internal message never leave Exchange Organization, so external MTA cannot used for internal mail flow.
However, we can deploy anti-spam agent on Mailbox Server to improve security, for example Sender filter, Sender ID agent and content filter agent.
I find an article about Anti-spam protection, for your convenience:
https://technet.microsoft.com/en-us/library/jj218660(v=exchg.150).aspx#Mailbox
Best Regards,
Allen Wang -
How to display Internal Dairy Notes and External Dairy Notes on output
hi Friends,
any one knows how to fetch External dairynotes as well as internal dairy notes thru FB03 T code
regards,
Anil kumar phi Rob,
we need to retrieve internal n external dairy notes thru Read_Text FM.
we need to pass following param.
client -> sy-mandt...
id ->d000(for external dairy notes) and d001 to d015 (internal dairy notes)
lang -> sy-langu
name -> note1 (Is comb. of bsid-bukrsbsid-belnrbsid-gjahr+bsid-buzei)
object->doc_item
tables
lines -> tbline.
and tbline is the return values for dairy notes. -
How to convert internal table data into excel format?
Hi all,
I want to convert internal table data in excel format and then
send it as email attachment in workflow.
Please tell me how do i perform this.
Regards,
Arpita.Hi Arpita,
Try this sample code::
Send mail
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test Subject'.
loop at htmllines.
mailtxt = htmllines.
append mailtxt.
endloop.
mailrec-receiver = 'your receiver mail id'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'EXL'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Hope it will help you.
Regards,
NIkita
Maybe you are looking for
-
How can I stop getting the error message of firefox not being permitted into a website?
Okay so yesterday while on my school site trying to do work and access my course, this error message popped up saying either my internet connection is not good, which it is working, or that the website is busy but it wasn't so it had to be with my fi
-
Sound card doesn't work properly (HDA intel)
I had a fresh install and now i have this problems: @ Starting volwheel i get "volume: can't open /dev/mixer " @ I can not play two or more media to gather. if i play more than one media to gather the second one and the one after plays in mute. onl
-
Well no one out there. I hate to have to take this 13" Mac Book Pro back , get my money back . Seems I'll have to. This is about the third time I have asked for help from Mac (APPLE) and I never hear back from them..
-
Gneral ledger Report- Remarks Problem
Hi I am placing Some remarks in Incoming / Outgoing Payment, that has to come in general ledger report so it will be very easy to identify what kind of Entry this. This we can do it by placing In Journal remarks , But problem is It is 50 Characters o
-
BPC ODBO 1.0 folder in BPC 7.5 Installation - what is this?
Experts, what are the new executables for called "BPC ODBO 1.0" in the set of files to dowload for BPC 7.5 M? I cannot find any information about these files in the Installation guide - when you install this, it is called "ODBC CLIENT", but I cannot