Substring(,,) in PLD

Hi,
    In PLD there is one formula Substring(, , )  with 3 parameters and another one with 2 parameters.what is the difference between these two substring's.And i want what are all the parameters have to be given.Give me some examples.
                                      Thankyou.

As you would understand that a Substring function is for use with String fields
Let us say out string field (Field_200) contains
<Font Color="Maroon" size=3 face="verdana">  abcdef   </font>
Substring(Field_200,0) = <Font Color="Maroon" size=3 face="verdana">  abcdef  
</font>
Substring(Field_200,1) = <Font Color="Maroon" size=3 face="verdana">  bcdef  
</font>
Substring(Field_200,2) = <Font Color="Maroon" size=3 face="verdana">  cdef  
</font>
What this Substring function with 2 parameter does is it takes the position as the second parameter and return all the charecters from that position till the end.
Substring(Field_200,1.2) = <Font Color="Maroon" size=3 face="verdana">  b 
</font>
Substring(Field_200,2.5) = <Font Color="Maroon" size=3 face="verdana">  cde 
</font>
The 3 parameter Substring function really works strange.  It does not in any way function like the regular substring fuction in SQL
If you notice the first example Substring(Field_200,1.2) it takes the first parameter 1 where it counts the position from a=0, b=1, ...
But on the second parameter instead of taking 2 charecters starting from 1, it fetches till the charecter in the 2nd position and that to counts the position as a=2, b=2, c=3,..
It really strange
Suda

Similar Messages

  • PLD Nota Fiscal Mista - Servicos e Materiais

    Prezados,
    Estamos tentando fazer uma nota fiscal mista, conseguimos dividir os itens da nota em duas áreas de repetição diferentes, a primeira área de repetição está filtrando os itens do tipo material e a segunda área de repetição os itens do tipo de serviço. Para mim conseguir ajustar a posição das duas áreas de repetição no formulário preciso colocar a primeira área de repetição com tamanho fixo para que a segunda área de repetião comece no local correto. Para a primeira área de repetição ficar fixa utilizo a seguinte formula colocada no rodapé da primeira área de repetição:
    substring("
    ",0,15-(quantidade de itens tipo
    material))
    essa formula mantém a primeira área de repetição com 15 espaços.
    O problema está para conseguir a quantidade de itens tipo material. Nas linhas da nota fiscal vão ter materiais e serviços, para que a formula do tamanho fixo funcione eu preciso saber quantos itens do tipo material possui nas linhas da nota fiscal.
    Juliana Sanna
    Zethos Consulting

    Conseguimos inserir uma fórmula e contar as variáveis - criamos uma coluna para buscar o tipo de item - se serviço ou material.
    Pesquisei no site repetitive area e localizamos o documento SYS CW4 PLD que deu as dicas.

  • PLD: Line items trauncate in repetitive area

    Hi All,
    I'm having issue with the line items truncate in the repetitive area.
    Is there a way to fix the number of items in repetitive area?
    Thanks in advanced.
    Regards,

    HI Tripti Shrestha
    >> Open your PLD and Create new Formula Field and put this formula,
    =>> Create new Formula Field in Repetetive Area Footer and put Formula.
    =>> Create the Seperate FORMULA Field in Repetetive Area Footer,
    for ex. Line No. Item Code, Discription, Qty, Unit Price, Total
    you should put the FORMULA in all FORMULA FIELDS in Repetetive Area Footer.
    Substring('\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',0,2*(16-LineNum()))
    AND
    *IF Repetitive Area Footer fields is blank means that
    field should not display in Print AND Repetitive Area Footer decrease in Print*
    Do this,
    ->> Link to all Fields in Repetitive Area Footer.
    for example, DocTotal Field.
    ->> Choose DocTotal Field in Repetitive Area Footer than
    ->> Goto Properties Window and Link to DocTotal fieldID at General Tab.
    ->> put the Tick Mark in Area Height Adjustment at Format Tab.
    Save and Run the Print Preview.
    Thanks
    Khan Imran

  • How to use charindex function in PLD...

    Hi all,
    Anyone can help me in how can I using charindex function in PLD. I want to get a character position in the PLD, but didn't know how.
    Thanks in advance.
    Nghia

    f you run the next query you will understand what I want to do:
    SELECT 'one-two' AS 'together',SUBSTRING('one-two',0,charindex('-', 'one-two')1)AS 'first', SUBSTRING('one-two',charindex('-', 'one-two')1,LEN('one-two')) AS 'second'
    SUBSTRING(Fieldname, CHARINDEX(0,7),
    SUBSTRING(FieldName, CHARINDEX('-', FIELDNAME) + 1,3),
    SUBSTRING(FieldName, CHARINDEX('-', FIELDNAME) + 4,3)
    Example below will return "4018795"
    Based On Purchase Orders 4018795.
    SUBSTRING(T0.Comments, CHARINDEX('Based On Purchase Orders', T0.Comments) + 25, 7)

  • How to use stored Procedure in PLD

    Hi All,
    I have create a procedure for converting number to words in SQL. I want to call this procedure in PLD. Is this possible?
    Thanks & Regards,
    Sheetal

    Hi,Sheetal Sarode
    First Create 2 funtions in SQL server: and apply trigger for system filed you can get data automatically amount in words when ever user is adding Outgoing payment.
    1.set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    select dbo.AmountToWords (4980)
    ALTER function dbo.AmountToWords
    @InNumber Numeric(18,2)
    --Returns the number as words.
    returns VARCHAR(2000)
    as
    BEGIN
    --SEt NoCount ON
    Declare @Num Varchar(20)
    Declare @Dec Varchar(3)
    Declare @Return Varchar(2000)
    Set @Dec = SubString(Convert(Varchar(20),@Innumber),Len(Convert(Varchar(20),@Innumber))-2,3)
    Set @Num = SubString(Convert(Varchar(20),@Innumber),1, Len(Convert(Varchar(20),@Innumber))-3)
    Declare @Hundred Char(8)
    Declare @HundredAnd Char(12)
    Declare @Thousand Char(9)
    Declare @Lakh Char(5)
    Declare @Lakhs Char(6)
    Declare @Crore Char(6)
    Declare @Crores Char(7)
    Set @Hundred = 'Hundred '
    Set @Thousand = 'Thousand '
    Set @Lakh = 'Lakh '
    Set @Lakhs = 'Lakhs '
    Set @Crore = 'Crore '
    Set @Crores = 'Crores '
    Set @HundredAnd = 'Hundred '
    if Len(@Num) = 1 -- One
    Begin
    Set @Return = dbo.GetTextValue(@Num)
    End
    Else if Len(@Num) = 2 -- Ten
    Begin
    Set @Return = dbo.GetTextValue(@Num)
    End
    Else if Len(@Num) = 3 -- Hundred
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,1)) + @Hundred
    IF SubString(@num,2,2) '00'
    Set @Return = @Return + ' '
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,2,2))
    End
    Else if Len(@Num) = 4 -- thousand
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,1)) + @Thousand
    If SubString(@Num,2,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,2,1)) + @Hundred
    IF SubString(@num,3,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,3,2))
    End
    Else if Len(@Num) = 5 -- Ten Thousand
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,2)) + @Thousand
    If SubString(@Num,3,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,3,1)) + @Hundred
    IF SubString(@num,4,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,4,2))
    End
    Else if Len(@Num) = 6 -- Lakh
    Begin
    If SubString(@Num,1,1) = '1'
    Set @Return = dbo.GetTextValue(SubString(@Num,1,1)) + @Lakh
    Else
    Set @Return = dbo.GetTextValue(SubString(@Num,1,1)) + @Lakhs
    If SubString(@Num,2,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,2,2)) + @Thousand
    If SubString(@Num,4,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,4,1)) + @Hundred
    IF SubString(@num,5,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,5,2))
    End
    Else if Len(@Num) = 7 -- Ten Lakhs
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,2)) + @Lakhs
    If SubString(@Num,3,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,3,2)) + @Thousand
    If SubString(@Num,6,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,5,1)) + @Hundred
    IF SubString(@num,6,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,6,2))
    End
    Else if Len(@Num) = 8 -- Crore
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,1)) + @Crore
    If SubString(@Num,2,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,2,2)) + @Lakhs
    If SubString(@Num,4,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,4,2)) + @Thousand
    If SubString(@Num,6,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,6,1)) + @Hundred
    IF SubString(@num,7,2) '00'
    Set @Return = @Return + ' '
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,7,2))
    End
    Else if Len(@Num) = 9 -- Ten Crore
    Begin
    Set @Return = dbo.GetTextValue(SubString(@Num,1,2)) + @Crores
    If SubString(@Num,3,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,3,2)) + @Lakhs
    If SubString(@Num,5,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,5,2)) + @Thousand
    If SubString(@Num,7,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,7,1)) + @Hundred
    IF SubString(@num,8,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,8,2))
    End
    Else if Len(@Num) = 10 -- Hundred Crore
    Begin
    Set @Return = dbo.GetTextValue(Substring(@Num,1,1)) + @Hundred
    IF Substring(@Num,2,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,2,2))
    Set @Return = @Return + @Crores
    If SubString(@Num,4,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,4,2)) + @Lakhs
    If SubString(@Num,6,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,6,2)) + @Thousand
    If SubString(@Num,8,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,8,1)) + @Hundred
    IF SubString(@num,9,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,9,2))
    End
    Else if Len(@Num) = 11 -- Thousand Crore
    Begin
    Set @Return = dbo.GetTextValue(Substring(@Num,1,1)) + @Thousand
    IF SubString(@Num,2,1) '0'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,2,1)) + @Hundred
    IF Substring(@Num,3,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,3,2))
    Set @Return = @Return + @Crores
    If SubString(@Num,5,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,5,2)) + @Lakhs
    If SubString(@Num,7,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,7,2)) + @Thousand
    If SubString(@Num,9,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,9,1)) + @Hundred
    IF SubString(@num,10,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,10,2))
    End
    Else if Len(@Num) = 12 -- Ten thousand Crore
    Begin
    Set @Return = dbo.GetTextValue(Substring(@Num,1,2)) + @Thousand
    IF SubString(@Num,3,1) '0'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,3,1)) + @Hundred
    IF Substring(@Num,4,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,4,2))
    Set @Return = @Return + @Crores
    If SubString(@Num,6,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,6,2)) + @Lakhs
    If SubString(@Num,8,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,8,2)) + @Thousand
    If SubString(@Num,10,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,10,1)) + @Hundred
    IF SubString(@num,11,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,11,2))
    End
    Else if Len(@Num) = 13 -- Lakh Crore
    Begin
    Set @Return = dbo.GetTextValue(Substring(@Num,1,1)) + @Lakh
    If Substring(@Num,2,2) '00'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,2,2)) + @Thousand
    IF SubString(@Num,4,1) '0'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,4,1)) + @Hundred
    IF Substring(@Num,5,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,5,2))
    Set @Return = @Return + @Crores
    If SubString(@Num,7,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,7,2)) + @Lakhs
    If SubString(@Num,9,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,9,2)) + @Thousand
    If SubString(@Num,11,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,11,1)) + @Hundred
    IF SubString(@num,12,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,12,2))
    End
    Else if Len(@Num) = 14 -- Ten Lakh Crore
    Begin
    Set @Return = dbo.GetTextValue(Substring(@Num,1,2)) + @Lakhs
    If Substring(@Num,3,2) '00'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,3,2)) + @Thousand
    IF SubString(@Num,5,1) '0'
    Set @Return = @Return + dbo.GetTextValue(Substring(@Num,5,1)) + @Hundred
    IF Substring(@Num,6,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,6,2))
    Set @Return = @Return + @Crores
    If SubString(@Num,8,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,8,2)) + @Lakhs
    If SubString(@Num,10,2) '00'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,10,2)) + @Thousand
    If SubString(@Num,12,1) '0'
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,12,1)) + @Hundred
    IF SubString(@num,13,2) '00'
    Set @Return = @Return + ''
    Set @Return = @Return + dbo.GetTextValue(SubString(@Num,13,2))
    End
    If @Dec '.00'
    Set @Return = @Return + ' And ' + dbo.GetTextValue(SubString(@Dec,2,2)) + 'Paise'
    Return @return
    END
    2.This is for Get texl vavlue funtion:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER function dbo.GetTextValue
    @num varchar(20)
    returns VARCHAR(2000)
    as
    BEGIN
    Declare @Return varchar(2000)
    Declare @temp char(1)
    Declare @tempZero char(1)
    Declare @Zero char(1)
    Declare @One char(4)
    Declare @Two char(4)
    Declare @Three char(6)
    Declare @Four char(5)
    Declare @Five char(5)
    Declare @Six char(4)
    Declare @Seven char(6)
    Declare @Eight char(6)
    Declare @Nine char(5)
    Declare @Eleven char(7)
    Declare @Twelve char(7)
    Declare @Thirteen char(9)
    Declare @Fourteen char(9)
    Declare @Fifteen char(8)
    Declare @Sixteen char(8)
    Declare @Seventeen char(10)
    Declare @Eighteen char(9)
    Declare @Nineteen char(9)
    Declare @Ten char(4)
    Declare @Twenty char(6)
    Declare @Thirty char(7)
    Declare @Forty char(6)
    Declare @Fifty char(6)
    Declare @Sixty char(6)
    Declare @Seventy char(8)
    Declare @Eighty char(7)
    Declare @Ninety char(7)
    set @tempZero = '0'
    set @Zero = ''
    set @One = 'One '
    set @Two = 'Two '
    set @Three = 'Three '
    set @Four = 'Four '
    set @Five = 'Five '
    set @Six = 'Six '
    set @Seven = 'Seven '
    set @Eight = 'Eight '
    set @Nine = 'Nine '
    set @Eleven = 'Eleven '
    set @Twelve = 'Twelve '
    set @Thirteen = 'Thirteen '
    set @Fourteen = 'Fourteen '
    set @Fifteen = 'Fifteen '
    set @Sixteen = 'Sixteen '
    set @Seventeen = 'Seventeen '
    set @Eighteen = 'Eighteen '
    set @Nineteen = 'Nineteen '
    set @Ten = 'Ten '
    set @Twenty = 'Twenty '
    set @Thirty = 'Thirty '
    set @Forty = 'Forty '
    set @Fifty = 'Fifty '
    set @Sixty = 'Sixty '
    set @Seventy = 'Seventy '
    set @Eighty = 'Eighty '
    set @Ninety = 'Ninety '
    IF Len(@num) = 2
    Begin
    If SubString(@num,2,1) '0'
    Begin
    Set @temp = SubString(@num,1,1)
    Set @Return = dbo.GetTextValue(@temp+@tempZero)
    Set @Return = @Return + dbo.GetTextValue(SubString(@num,2,1))
    End
    END
    If @num = 0
    Begin
    set @Return = @Zero
    End
    Else if @num = 1
    Begin
    set @Return = @One
    End
    Else if @num = 2
    Begin
    set @Return = @Two
    End
    Else if @num = 3
    Begin
    set @Return = @Three
    End
    Else if @num = 4
    Begin
    set @Return = @Four
    End
    Else if @num = 5
    Begin
    set @Return = @Five
    End
    Else if @num = 6
    Begin
    set @Return = @Six
    End
    Else if @num = 7
    Begin
    set @Return = @Seven
    End
    Else if @num = 8
    Begin
    set @Return = @Eight
    End
    Else if @num = 9
    Begin
    set @Return = @Nine
    End
    Else if @num = 10
    Begin
    set @Return = @Ten
    End
    Else if @num = 11
    Begin
    set @Return = @Eleven
    End
    Else if @num = 12
    Begin
    set @Return = @Twelve
    End
    Else if @num = 13
    Begin
    set @Return = @Thirteen
    End
    Else if @num = 14
    Begin
    set @Return = @Fourteen
    End
    Else if @num = 15
    Begin
    set @Return = @Fifteen
    End
    Else if @num = 16
    Begin
    set @Return = @Sixteen
    End
    Else if @num = 17
    Begin
    set @Return = @Seventeen
    End
    Else if @num = 18
    Begin
    set @Return = @Eighteen
    End
    Else if @num = 19
    Begin
    set @Return = @Nineteen
    End
    Else if @num = 20
    Begin
    set @Return = @Twenty
    End
    Else if @num = 30
    Begin
    set @Return = @Thirty
    End
    Else if @num = 40
    Begin
    set @Return = @Forty
    End
    Else if @num = 50
    Begin
    set @Return = @Fifty
    End
    Else if @num = 60
    Begin
    set @Return = @Sixty
    End
    Else if @num = 70
    Begin
    set @Return = @Seventy
    End
    Else if @num = 80
    Begin
    set @Return = @Eighty
    End
    Else if @num = 90
    Begin
    set @Return = @Ninety
    End
    Return @Return
    END
    3. Create trigger for OCHO table:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    =============================================
    Author: <Author,,Name>
    Create date: <Create Date,,>
    Description: <Description,,>
    =============================================
    ALTER TRIGGER AmountToWordsTrigger
    ON dbo.OCHO
    AFTER INSERT,UPDATE
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    UPDATE dbo.OCHO
    SET TotalWords = dbo.AmountToWords (LinesSum)+'Only'
    WHERE CheckKey IN ( SELECT CheckKey From Inserted)
    END
    it will update exisitng filed i.e.,Amount in words. call this field in your PLD.it will help you to get Amount in words through PLD
    Regds,
    sampath kumar devunuri..

  • Default Ageing Business Partner Report PLD by Busines Partner Type

    Hi Experts!
    I am hoping you can help me with a PLD query I have.
    I have two PLDs setup for the Business Partner Ageing Reports. 
    One PLD is for Debtors and contains a text field showing 'Debtor' and the other PLD is for the Creditors and contains a text field showing 'Creditor'.
    When the Customer Receivables Ageing report is required, the PLD containing 'Debtor' has to be selected, and when the Supplier Liabilities Ageing report is required, the PLD containing 'Creditor' has to be is selected.
    My idea was to set the 'Creditor' PLD to all the Supplier Business Partners and the 'Debtors' PLD to the Customer Business Partners, thus eliminating the need to select a PLD each time. 
    But when I go to the PLD and select set as default, I don't have the option to set by Business Partner, the only option I have is to set the PLD by User.
    Can you help me on this one please?
    Many thanks!
    Caroline

    Hi,
    It is not possible for USER Default Print method for Aging Report.
    it is possible only for Marketing and Banking Document.
    It is possible on PLD but it is not possible in Page Header on Aging Report PLD.
    Try this,
    ->> Open the Aging Report PLD.
    for example,
    BP Code Field ID in Repetitive Area -> F_110
    ->> Create 1 formula Field in Repetitive Area Header and put the below formula in that field.
    ex. Field ID -> F_160
    Substring(F_110,0,1)=='C'
    ex. Field ID -> F_161
    ->> Create 1 formula Field in Repetitive Area Header and put the below formula in that field.
    Substring(F_110,0,1)=='V'
    ->> Create 1 TEXT Field in Repetitive Area Header and type the below text(for Title).
    ->> Assign Link to Option in General Tab on Properties Window.
    Customer Aging Report
    Link to - F_160
    ->> Create 1 TEXT Field in Repetitive Area Header and type the below text(for Title).
    Vendor Aging Report
    Link to - F_161
    Save and Run the Print Preview.
    Regards,
    Madhan.

  • Remove Zeroes in Sales Quotation PLD

    Hi Members,
    I have designed the sales quotation PLD in which i have configured for two decimal places.
    If i use suppress zeroes option in PLD, The decimal places zeroes are also not getting displayed.
    example if the amount is 256.00,if i use suppress zeroes option,its displaying only 256,which i don't need.
    I need to display 256.00
    Please kindly suggest an solution.
    Regards,
    Venkatesh.R

    Hi
    U can try with substring formula also.... Round(F_XXX,0)...
    Check this link;
    Re: Remove Zeros in PLD
    Re: Purchase Order Number Zeros
    Giri

  • Can I use split function in PLD?

    Dear Experts,
    Can anyone show me if I have this value in a variable F_001 in PLD.
    012345-FAB
    How can I get the below output?  (Taking off the -FAB, by either using a split() function or equivalent)
    012345
    Much Thanks!
    Chinho

    Hi Chinho,
    ok, for example, IF you use add the last 4 Character only in CardCode(-FAB)
    F_001 -> CardCode = 012345-FAB
    or
    F_001 -> CardCode = 1000123456-FAB
    or
    F_001 -> CardCode = 987456814-ADM
    but you need to print the Value of CardCode is before last 4 Character Value .
    Output: 012345 or 1000123456 or 987456814
    Try this formula in PLD.
    Substring(F_001,0,(Length(F_001)-4))
    Regards,
    Madhan.

  • How to remove currency symbol in PLD

    Hi All,
    I would not like the currency symbol to be printed in PLD. Can anyone plz help me.
    Regards,
    NN

    Hi Rich,
    Try this,
    for example: Document Total - Field ID -> F_123
    ->> Open your PLD.
    ->> Create 1 Formula Field in Page Footer and put the below formula in Formula Field.
    Amount(F_123)
    OR
    Substring(F_123,3)
    IF you add currency symbol in Doc.Total field.
    Formula Field=Amount(F_123)-> Uncheck Tick Mark in Visible at General Tab on Properties Window.
    and
    Doc.Total = F_123 -> put the Tick Mark in Visible at General Tab on Properties Window.
    Regards,
    Madhan.

  • Truncate last 2 character formula in PLD

    Hi,
    Just want to know does anyone know how to truncate last 2 characters formula in PLD? I know the substring formula in PLD is to truncate characters from left, how about from right?
    I need to truncate 2 characters from the right for field like Batch No, this field may contain characters and numbers at not fix length. Hope anyone can help soon, thanks.

    Hi,
    Try this one create a formula and insert the following
    Substring(F_791,Length(F_791)-2,Length(F_791))
    Thanks.
    regards,
    Clint

  • PO PLD

    Hi All,
    I have one issue.
    In my purchase order i have only one line item. While taking print out it's coming half page.
    But i need full page how come it is possible.
    By
    Firos C

    Hi Firos,
    It is possible on PLD.
    Do this,
    ->> Open your PO PLD and Create new Formula Field and put this formula,
    =>> Create new Formula Field in Repetetive Area Footer and put Formula.
    =>> Create the Seperate FORMULA Field in Repetetive Area Footer,
    for ex. Line No. Item Code, Discription, Qty, Unit Price, Total
    you should put the FORMULA in all FORMULA FIELDS in Repetetive Area Footer.
    Substring('\n\n\n\n\n\n\n\n\n\n',0,2*(10-LineNum()))
    Regards,
    Madhan.

  • Time in words in PLD

    Can any body tell me how to convert time in words ????

    hi kasinath,
    It can acheived in PLD itself.
    Steps to be done:-
    1. Suppose there is a database field(Field_014) - (table - ORDR/any table, Column - generation time).
    2. Create a formula field(Field_100) add formula - ToNumber(Substring(Field_014,0,2)) -
    Tick Mark Sum in words
    3. Create another formula field(Field_101) add formula Field_101 - ToNumber(Substring(Field_014,3))
    Tick Mark Sum in words
    4.Create a text field add text 'Hours' Field_102
    5. Create another text field add  text 'Minutes' Field_103
    6.Create another forumula field -Field_104 add formula
    Concat(Field_100,' ',Field_102,' ',Field_101,' ',Field_103)
    7. Detick visible for all fields in steps 1 to 6.
    Save PLD in new name.
    Click print preview.It will show time.
    Jeyakanthan

  • Variavel de sistema em PLD

    Prezados,
    Estou desenvolvendo um layout em PLD, infelizmente não posso fazer esse relatório em Crystal, pois a venda do projeto foi feita com PLD.
    Ao configurar o documento de pedido de venda, estou inserindo a variável de sistema para o a alíquota do ICMS e IPI, porém quando imprimo o relatório estas não são exibidas.
    Área utilizada no PLD é a Repetição 1.
    Variável do ICMS: 1358
    Variável do IPI : 1359
    Variável Valor do IPI: 1360
    Quando peço, na mesma empresa, a impressão através de um relatório padrão do SAP, não ocorre o problema.
    Estou com a impressão de que temos que colocar algum campo para que essas variáveis fiquem visíveis.
    Atenciosamente,
    Bruno Cassaro
    Skuld Business Partner

    tente Mudar o tipo do campo ao invéz de variavel para Banco de dados e busque as informações pelos mesmos, caso não consiga me informe ou entre em contato comigo pelo telefone: 14 9753-4703, talves possa tentar ajudar.
    Ailton Douglas
    UNION TECNOLOGIA DA INFORMAÇÃO.
    SAP BUSINESS ONE.
    Atendemos na Região de Bauru,
    São José do Rio Preto e Presidente Prudente

  • If Statement in PLD

    I'm trying to set up a formula similiar to an If then statement with the PLD, and not having any luck.   I need to create a formula on a sales order that says if  there is no frieght on the order display "0.00". 
    Thanks.
    Eric

    Hi,
    Create a field with empty value (Say field ID is 100).
    Create a formula field which equals fields 100 and 186 (Say field ID is 101).
    Create a formula field which has "not equals" as relation, within fields 100 and 186 (Say field ID is 102).
    Create a field with the text 0. Link it with the field 101. Put it in the same place as the 186.
    Link the 186 field with the 102.
    Result: 0 will be shown when 186 is empty, value of 186 when is not empty.
    Hope is clear,
    Ibai Peñ

  • Variável ISS - PLD Nota Fiscal

    Boa Tarde,
    Meu nome é Juliana Sanna e sou da Zethos Consulting. Preciso da ajuda de vocês no seguinte item:
    Estou gerando o PLD de uma nota fiscal de serviços e nao consegui localizar a variável para o valor do ISS - não o retido mas o que é calculado pelo código do imposto ISS.
    Já pesquisei no documento How to Modify Nota Fiscal Report e  também no SAP Notes nao consegui localizar.
    Obrigado
    Juliana Sanna
    Edited by: Rui Pereira on Dec 10, 2008 10:28 AM

    Boa Tarde Juliana
    As variáveis que se encontram no documento que referiu são às únicas disponíveis atualmente para a localização Brasil.
    Sugiro que criei no forum como referido na nota SAP 1028874 uma solicitação para o efeito.
    Paulo Calado
    SAP Business One Forums Team

Maybe you are looking for