Select vendors in character format
hi ,
I have an internal Table with 53,890 vendors in first column.
the others columns contains vendor descirptions and their address.
for e,g say i have records in my internal table as follows.
LIFNR
1) 0000001109
2) 0000001111
3) 0000005581
4) E-115174
5) E-115175
6) E-115176
7) E-115177
8) MR84
9) MR85
10) MR86
now i want to delete records starting from 1 to 3 as they are number format
but i don't want to delete records from 4 to 10 as they are character format.
i can do that deletion based on number and character formats
using the below code.
*Final Table for Diplsay of Vendors
LOOP AT t_lfa1 INTO wa_lfa1.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
string_in = wa_lfa1-lifnr
IMPORTING
htype = w_type.
IF w_type = 'NUMC'.
DELETE t_lfa1 WHERE lifnr = wa_lfa1-lifnr.
ENDIF.
ENDLOOP.
the above code fulfills my requirement but it takes lot of time when moved for testing since there are
53,890 records and DELETE will always increases the index cost and performance problem comes.
My requirement is there any condition we can put in my SELECT syntax where in i can select only
those records in character format
HI,
Declare another internal table and append the record to that internal table instead of deleting regenerating index. Once your other internal table filled clear the contents of the first internal table. see below the sample code, this might help you.
TYPES : BEGIN OF ty_lfa1,
lifnr TYPE lfa1-lifnr,
END OF ty_lfa1.
DATA : it_lfa1 TYPE TABLE OF ty_lfa1,
it_lfa2 TYPE TABLE OF ty_lfa1,
wa_lfa1 TYPE ty_lfa1.
DATA : w_lifnr TYPE lfa1-lifnr,
w_type TYPE dd01v-datatype.
LOOP AT it_lfa1 INTO wa_lfa1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wa_lfa1-lifnr
IMPORTING
output = wa_lfa1-lifnr.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
string_in = wa_lfa1-lifnr
IMPORTING
htype = w_type.
IF w_type NE 'NUMC'.
APPEND wa_lfa1 TO it_lfa2.
ENDIF.
ENDLOOP.
FREE it_lfa1.
BREAK-POINT.
Regards
Bala Krishna
Similar Messages
-
Select Vendors character format only from LFA1
hi ,
I have an internal Table with 53,890 vendors in first column.
the others columns contains vendor descirptions and their address.
for e,g say i have records in my internal table as follows.
LIFNR
1) 0000001109
2) 0000001111
3) 0000005581
4) E-115174
5) E-115175
6) E-115176
7) E-115177
8) MR84
9) MR85
10) MR86
now i want to delete records starting from 1 to 3 as they are number format
but i don't want to delete records from 4 to 10 as they are character format.
i can do that deletion based on number and character formats
using the below code.
*Final Table for Diplsay of Vendors
LOOP AT t_lfa1 INTO wa_lfa1.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
string_in = wa_lfa1-lifnr
IMPORTING
htype = w_type.
IF w_type = 'NUMC'.
DELETE t_lfa1 WHERE lifnr = wa_lfa1-lifnr.
ENDIF.
ENDLOOP.
the above code fulfills my requirement but it takes lot of time when moved for testing since there are
53,890 records and DELETE will always increases the index cost and performance problem comes.
My requirement is there any condition we can put in my SELECT syntax where in i can select only
those records in character formatHi Murali
I don't think that you can do anything in select query for this, instead enhance your current code.
1. For loop, use a field symbol, This will enhance your loop performance as the overhead to copy values into a work area is reduced.
2. Add another field of type CHAR 1 (let's say NUM_CHECK) to declaration of T_LFA1. If you find the vendor as numeric then set this field to X in loop. Do not delete anything in loop.
3) After loop, use DELETE T_LFA1 WHERE NUM_CHECK = 'X'.
This will take lesser time.
Thanks
Anuraag -
Problem with paragraph style overrides and character formatting
I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
I am typesetting academic articles into a journal. We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
Sometimes when I place the text, the formatting reverts to whatever it was in Word. To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that. I figured this would clear a lot of the problems I've had with fiddly formatting issues.
I was mistaken.
Here is what happens:
When I place the document it comes up in the original Courier New font, with italics and other formatting intact. If I click "article style" which is the main article paragraph style format, normally it changes. but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
But when it gets to endnotes, I'm sort of screwed.
My endnotes style is a bulletted style, so that I can have the endnote numbers consistent. but this seems to screw all the style formatting.
Here is what I do:
With the cursor in endnote text, I click "bulleted endnote style". The character format remains the same, with a + beside the style. The endnote number format is different, however. If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text. This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
Please help me figure out how to make these transitions more smoothly. I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems.
Thanks
DanSorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted. Damn iphone.
I know why there are two numbers. This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem. Here is something interesting, though. If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine. Is it something to do with the character codes of those original note numbers?
Word drops in so many hidden codes that it screws everything up! -
I cannot select a single character
I'm running Pages 5.2.2 on MacOS 10.9.4 on a 2011 MacBook Pro. The problem is I cannot select a single character with my Magic Mouse. If I try to drag over a single letter to select it, the cursor is positioned either before or after the letter. I can select and format groups of two or more characters, but not just one. It works with the trackpad though. I can select single characters with the mouse in other apps such as Word.
While we all have MacBooks in this forum most of us don’t run Mountain Lion. There's a Mountain Lion Support Community where everybody has Mountain Lion. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/mac_os/os_x_mountain_lion
-
Paragraph Format / Character Format for Variable address in SAPSCRIPT
Dear All,
I am trying to print variable address for ship-to-party. But the address is variable address for different vendors.
The contents like
/: ADDRESS PARAGRAPH AS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
/: STREET &LFA1-STRAS&
/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
/: CITY &LFA1-ORT01&, &LFA1-ORT02&
/: POSTCODE &LFA1-PSTLZ&
/: COUNTRY &LFA1-LAND1&
/: REGION &LFA1-REGIO&
/: FROMCOUNTRY &T001-LAND1&
/: ENDADDRESS
My question is, How to assign Paragragh format or character format to the above code?
Your reply will help alot..
Thanks and waiting
Regards
Anukulhi,
in ur code u already gave
/: ADDRESS PARAGRAPH AS goto paragraph formats n define or make the required changes for the paragraph format AS.
click on character formats n define/change the character formats as breakpoint has mentioned. -
Select *from - special character in datetime 'slash'
I have table with DateTime colun :
id dateTime
1 12/08/03 11:23:25,563563456345634563456
2 12/08/03 11:23:25,34333333
I select the rows that were created today , for example 2012-08-03
but when use :
select * from TEST_TABLE where DATETIME like '12/08/03'
i dont have any rows - I need replace '/' - slash
how to do it ?
Edited by: user8855885 on 2012-08-03 03:19
Edited by: user8855885 on 2012-08-03 03:20Hi User,
Welcome to Forum !!!!!!!!
Why you are saving date in character format recommended, not to save date in character formats.
Here it is,
SELECT TO_DATE ('12/08/03 11:23:25', 'YY/MM/DD HH24:MI:SS'),
TRUNC (TO_DATE ('12/08/03 11:23:25', 'YY/MM/DD HH24:MI:SS'))
FROM DUAL;
And,
Query:
SELECT *
FROM your_table
WHERE TRUNC (datetime) = TRUNC (SYSDATE);Here TRUNC(SYDATE) give today's date. TRUNC function removes the time. So you can get the records created today.
Thanks,
Shankar -
Applying a Character Format to a Character
I am trying to apply a character format to a single character.
I have tried :
MyDoc.SetTextVal(myrange,Constants.FO_CharFmt ,"RoundFont")
and
var charFmtId = MyDoc.GetNamedObject(Constants.FO_CharFmt, "RoundFont");
var myprops = MyDoc.GetProps(charFmtId)
MyDoc.SetTextProps(myrange, myprops);
neither work unfortunately - I have been trying for two weeks!
I know the "myrange" is Ok because I can delete characters in the range correctly and add a character instead.I haven't done any conditional formatting yet in either Pages or Numbers, but I do know how to do a fill. Click on a cell to select it then click the tiny circle in the lower right of the cell & drag your cursor down (or right) to fill cells with the content of the first cell.
-
Reg paragraph formant and character format
Hi All,
How to assign particular paragraph formant and character formant for a particular text node that I have created.I know how to create paragraph formats and characters using smartstyles and also I assigned this smartstyle in my smartform to that particular text node,but I am not getting where do I select the paragraph format and character format to assign it to the text node?could you please suggest some body how to do this?
Regards
MaheshSelect the text you have written in the created text element and on top of the text only there is an option for Paragraph and character formats which will give you the dropdown list with all the paragraphs and character formats u have created. choose the desired one and it will reflect..
OR alternately you can go to the editor and wite the code as in SAP SCRIPTS by providing the Paragraph name or Character name urself.
REWARD POINTS IF USEFUL -
Smartforms Character format problem
Hey Guys any idea about this?
2)
When I give a text element a 'B1' bold character format with a P1 paragraph format both of which are already defined in smartstyles. When I click on any other button after setting these values, the character format disappears!!.
Can some one please help me?
Kind Regards
SameerHi,
As u said it should not happen.
Have u specified the style in output options ?
Other wise press the icon for txt editor above syntax check.
Then go to>Change Editor>Select the para format from f4 and write
like <b1> Your Text <b1>
Regards
Sandipan -
Arbitrary Characters in Character Formatting
Is it possible to use character formatting while also being able to insert arbitrary strings?
For example, I'd like to insert dashes in a string but I'd like to avoid the SUBSTR() function because the string has six dashes, which would result in seven SUBSTR() calls, like so:
SELECT SUBSTR('1234567890', 0, 2) || '-' ||
SUBSTR('1234567890', 3, 1) || '-' ||
SUBSTR('1234567890', 4, 2) || '-' ||
SUBSTR('1234567890', 6, 1) || '-' ||
SUBSTR('1234567890', 7, 1) || '.' ||
SUBSTR('1234567890', 8, 2) || '-' ||
SUBSTR('1234567890', 10, 1)
FROM dualIs there a cleaner solution, such as:
SELECT TO_CHAR(1234567890, '99"-"9"-"99"-"9"-"9"-"99"-"9')
FROM dualUntil you have not too much different groups, you can apply regexp_replace
SQL> SELECT SUBSTR('1234567890', 0, 2) || '-' ||
2 SUBSTR('1234567890', 3, 1) || '-' ||
3 SUBSTR('1234567890', 4, 2) || '-' ||
4 SUBSTR('1234567890', 6, 1) || '-' ||
5 SUBSTR('1234567890', 7, 1) || '.' ||
6 SUBSTR('1234567890', 8, 2) || '-' ||
7 SUBSTR('1234567890', 10, 1) substr_format,
8 regexp_replace('1234567890','(\d\d)(\d)(\d\d)(\d)(\d)(\d\d)(\d)','\1-\2-\3-\4-\5.\6-\7') regexp_format
9 FROM dual
10 /
SUBSTR_FORMAT REGEXP_FORMAT
12-3-45-6-7.89-0 12-3-45-6-7.89-0However, i probably would stick with substr for performance reasons (just a guess, seven calls to substr is more efficient than one to regexp_replace, but maybe i am wrong on this), especially, if you operate on big data volumes.
Best regards
Maxim -
How do I get "CO" variable 01 to 67 in character format?
Post Author: Dennis Hernan
CA Forum: Data Connectivity and SQL
I have 2 databases. "DBA"."RMS_A0_SEGMENT" & "DBA"."RMS_G0_SEGMENT". The A0 segment has a CNTY variable. We create table B from A only to create SELYEAR & CO. SELYEAR is numeric because it is "2007 as". CO is numeric because it is "CNTY as". The values in CNTY are 1 to 67 numeric. How do I get "CO" variable 01 to 67 in character format?
Is this standard SQL or would you call it Crysal SQL format? Select "B"."CNTY", "B"."SR", "B"."SEG", "B"."FED_AID", "B"."TBK_CODE", "B"."PAVE_CYC", "B"."SURFACE", "B"."LENGTH", "B".SELYEAR, "C"."KEY_YEAR", "C"."SEG", "C"."SR", "C"."CNTY", "C"."SLDSTATU", "B"."CO" FROM (SELECT "A"."CNTY", "A"."SR", "A"."SEG", "A"."FED_AID", "A"."TBK_CODE", "A"."PAVE_CYC", "A"."SURFACE", "A"."LENGTH", 2007 as SELYEAR, CNTY as CO FROM "DBA"."RMS_A0_SEGMENT" "A") "B" LEFT JOIN "DBA"."RMS_G0_SEGMENT" "C" ON ("B"."SEG" = "C"."SEG") AND ("B"."SR" = "C"."SR") AND ("B"."CNTY" = "C"."CNTY") AND ("B".SELYEAR = "C"."KEY_YEAR")Post Author: Dennis Hernan
CA Forum: Data Connectivity and SQL
Here's a simple example: SELECT "A"."A01_CTY_CDE", "A"."DIST_CODE","A"."CTY_NAME", A01_CTY_CDE AS CO NUMERIC(2) FROM SYSADM.CNTY_DIST_XREF "A" I'm trying to create the CO variable numeric(2) from the A01_CTY_CDE which is character(2). The values in A01_CTY_CDE are 1 to 67 character, I need CO to be numeric to merge with another linked table. "I am using the Add Command In Database Expert". I need 4 variables when this is done in the Command Database, A01_CTY_CDE, DIST_CODE,CTY_NAME all charater from the original database "SYSADM.CNTY_DIST_XREF". Also I'm trying & need your help, to create a variable CO with a numberic format, and the values equal to the A01_CTY_CDE variable. Call If you like, Dennis, 717.787.7293. -
How can I get a list of SAPScipt character formats?
I know that SAPScript use the <> for capturing - i.e. preceed text and fields with <NN> and end with </> to change the format.
For example <B> is for bold.
i want to know where i can get a list of all the possbile values - have looked thru SDN and the Web with no success on this.
I used to know this but it have been many years since used sapscript.
ThanksHi
I am not sure that I have understood your question correctly.
But if you want to see all the character formats available inside the form in SE71, there is a push button named "Character Format". Press that button and you would see all the character formats available for the form.
Raveesh -
using bootcamp, was installing windows xp, at the select ntfs or fat format mistakenly selected "leave the current file system intact." How can that be changed to a correct choice. Mac side opens correctly. Windows shows disk error. and doesn't respond to press any key. When looking in the startup disk section, windows on boot camp can be seen, but not selected. (13"MacBook Pro 10.6.8)
Have a read here http://support.apple.com/kb/TS1722 for solution.
Stefan -
Character Formats showing up in TOC
TOC entries for, say, "Heading4", are nominally controlled by the paragraph format of the generated "Heading4TOC" format.
Sometimes the body narrative will have local mods to the Heading4 text. Depending on what you're doing, you may want those mods to show up in the TOC, or you may not. In my case, I did not, and was surprised to see a TOC entry show up in color.
It turns out that if you apply a Character Format to text used for TOC (and perhaps IX, LOF etc) generation, that ChrFmt is retained when rendering the TOC.
So if you want the local enhancement to appear in the TOC, use Chr Fmt. I verified this by setting a heading word to Character Format "Symbol" (which applies the Symbol font`, all else As-Is). The TOC entry had that word in Symbol glyphs.
if you don't want the local enhancement to appear in the TOC, use local overrides. I verified this by just doing a Format > Font > Symbol on the same word of the heading. The TOC entry had that word in roman.
In my case, I have a table imported (as EPS) from a spreadsheet. I want the table title to appear in TOC, but of course Frame can't "see" that text. So the anchor line is that title in Heading4, which does appear in TOC. This particularly H4 has a local color override that is set invisible via Color Views. I want the TOC entry to be visible, but the Heading4 text in the body to be invisible. This works if the Heading4 has the invisible color applied with the graphics tools. It doesn't work if I use an invisible text Character Format.
Another way to hack this particular problem is to put the Heading4 title in a text frame behind the imported image. Then it requires no character formatting magic. But you can't see it during edit, and you need to hope that the table white fills really are, and aren't just transparent.The TOC will only reproduce the character format of the heading if it has that character format in its catalogue.
Thanks for contributing that. It stands to reason that if TOC gen is honoring and replicationg the ChFmt, the easiest way to implement that is just to drag the format in with the text being cloned.
Building on this, you can control the appearance of the TOC entry by defining the character format – if you wish, differently from how it is defined in the main text. So your Heading 4 override may be coloured white in the main text, but black in the TOC.
Thanks again. I'm going to use this starting now, since the present manual set has need of it.
The key aspects of the implementation:
The ChFmt name needs to be something very self-evident to future document stewards, like "Hide_Except_TOC".
In all .fm files except TOC, its definition is
all As-Is, except for Color,
which is an existing author-use-only color "Invisible Text" already set Invisible by Color Views during render.
In the TOC file, the definition of "Hide_Except_TOC" is
100% As-Is.
(first time I've ever defined a format like that) -
GR to be done against only Inbound delivery for selected vendors
GR to be done against only Inbound delivery for selected vendors. If the user putsthe combination " Goods Receipt+ Purchase Order+ Purchase Order Number " in MIGO , the error should be displayed as "Create MIGO with Ref to ASN"
At the time of MIGO, when user put the combination of Goods Receipt+ Purchase Order and purchase order number, BADI will activate.
BADI will search the vendor code from the entered purchase order in the Z table in which user maintain the vendor codes.
If BADI finds the vendor code in the Z table then, will give error as u201CPlease create inbound delivery firstu201D.
If BADI does not find the vendor code in Z table then it will inactive.
In short we are restricting the selected vendor for MIGO with reference to PO.Hi,
If u had used confirmation control key (0001) - In Item details of PO, as per standard SAP u cannot proceed for GR without inbound delivery. Otherwise use MB_MIGO_BADI. Thanking you
Maybe you are looking for
-
HT1473 How do you get your music from your ipod to your computer?
Trying to figure out how to get my itunes from ipod to computer, my computer crashed and lost everything i mannually uploaded. Store tunes are still there
-
Dragged attachment appears on wrong monitor
I have two monitors attached to my new 2012 Mac Pro running Mountain Lion (10.8.1). For the first time that I can recall in years of using a multiple monitor setup, I have a very odd little problem. When I open Mail or Safari and drag something from
-
Comparing two data records of same IDOC
Hi, In PI, we need to compare two data records of same IDOC to figure out if what type change occurred. For example, BENFIT3 IDOC contains data records tilted "E1BEN04". When there are multiple "E1BEN04" data records, then we need to compare the da
-
Sybase and UDB two phase commit
Hi, I would be grateful if somebody could answer the following questions: 1. Can Sybase v.12 and upwards be used in distributed transactions with WL 6.0 using the jConnect 5.2 driver? 2. Can IBM UDB 7
-
Diffuclty accessing fobs4jmf package from tomkat
Hi, i have included the fobs4jmf into the environment variables and my Jcreator and i can acccess the package to read other video file types when running my application locally. However when i run my application within my tomkat server i can't access