Generate alphabets   in Abap

Hi there,
Is there a way in abap to generate alphabets like a,b,c,d...z
without assigning character value to  character type variable e.g. l_char ='A' or l_char = 'B'. (l_char is charavter type )
concatenating them later ...
advance thanks,
Ugesh

Hi,
You can use the constant sy-abcde. the code could be something like this...
write sy-abcde+0(1).
do 25 times.
  write sy-abcde+sy-index(1).
enddo.
Regards,
Anand Mandalika.

Similar Messages

  • Generating alphabets in Message Mapping

    Hi,
    Can someone please suggest how can I generate alphabets in message mapping during runtime.
    Regards
    John

    Hi John - I don't think we have a standard way but you can define UDF.
    Declare an array with alphabets and return them as per your needs.
    something like this
    "Auto increment" alphabet in java? - Stack Overflow
    collections - Generating an alphabetic sequence in Java - Stack Overflow

  • Table maintenance generator in webdypro abap

    Hi Experts,
    Please can you suggest how to implemnt Table maintenance generator in webdypro abap.
    Regards,
    BBC

    Hi,
    Thanks for your inputs,
    Now I have included add, modify, delete and save functionalities to ALV table.
    Here What I did, fist it shows the list of records from data base table with ALV table as ready only mode.
    Then
    If we click on add button then last row will add with editable mode,
    If we select a row and click on modify button then in that row fourth field only editable (because first three are primary key fields).
    If we select row and click on delete then record deleted and updated in database table.
    If click on save button, it captures the modified ones then saved.
    if we test individual functionality, it is working fine.
    If we do fist add functionality then after saving if we click on modify row then it is showing total row as in editable mode.
    Here as per modify fyctionlaity in that row fourth field only have to show editable.
    Please can you suggest how to resolve this issue?
    Regards,
    BBC
    Edited by: BBC Achari on Sep 7, 2011 9:23 AM

  • QUERY_VIEW_DATA generates exception in ABAP code

    Hi,
    I have activated service QUERY_VIEW_DATA in SAP BW environment 7.0 service pack: SAPKW70008
    During testing of the webservice I encounter an exception in source code on the ABAP side:
    CL_SRG_RFC_PROXY_CONTEXT======CM002
    THe following statement generates the exception:
    -7b- deserialize data
            SRT_TRACE_WRITE_PERF_DATA_BEG 'FM_PROXY->DESERIALIZE'. "#EC NOTEXT
            call transformation (template)
                source xml l_xr
                result (st_to_abap).
            SRT_TRACE_WRITE_PERF_DATA_END 'FM_PROXY->DESERIALIZE'. "#EC NOTEXT
    The call transformation dumps immediately.
    Value of TEMPLATE = /1BCDWB/WSS0041112143114038399
    I tried all threads in SDN but to no avail.
    Has anybody encountered the same error?
    kind regards,
    Paul

    Hi Arun,
    I logged in to Web Service Navigator and i get to the screen where it asks me to enter Info provider, Selection variables, Query name and View id. Since my Query does not have any selection parameters i only entered Info provider and Query name and left selection and view id
    when i execute i get two boxes one for Request and other for Response. On top of these box i have InvalidVariableValues error message...Complete response message is as follows
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 600
    accept: text/xml
    sap-srt_id: 20100830/133557/v1.00_final_6.40/4C7B07E332A20095E10080000A754720
    server: SAP NetWeaver Application Server / ABAP 701
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header></soap-env:Header><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">InvalidVariableValues</faultstring><detail><n0:GetQueryViewData.Exception xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"><Name>InvalidVariableValues</Name><Text>Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET ()</Text><Message><ID>BRAIN</ID><Number>369</Number></Message></n0:GetQueryViewData.Exception></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>
    Thanks
    Surya

  • Generated code WebDynpro ABAP

    Hi all,
    I am setting up a tool that counts the number of specific lines written for a SAP project, for KPI purpose. It is already working for reports, includes, functions (group and functions), classes, BSP applications and so on....
    I am now looking for a way to count the lines of codes written in a Webdynpro ABAP application. Does anyone knows where is the code generated? In what format (classes, reports) ?
    Quick and Helpful answers will be highly rewarded.
    Yann

    Hi Yann,
    Code will be generated as class. IF you want the class name of current webdynpro component  that is generated, right click on the webdynpro component -> select check -> extended syntax check. New window will be opened in which program name will be specified. Remove the "" ==CP" suffix and remaining part is the class name of the current webdynpro component.
    Thanks,
    Prashanth

  • Problem with generating WSDL from ABAP

    Hi all
    I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am surprised to see the virtual table has come in the output part .I am unable to make out why this happened.
    i am mentioning below the ABAP code which inserts value on to a transparent table from a virtual table
    Code-Function module-smlg_modify
    <u>virtual table Definition</u>
    "table with items for insertion
      DATA INS_TAB LIKE RZLLITAB OCCURS 0 WITH HEADER LINE.
    DESCRIBE TABLE MODIFICATIONS LINES ITEMS.
    LOOP AT MODIFICATIONS.
        MODIFICATIONS-GROUPTYPE = GROUPTYPE.
        CASE MODIFICATIONS-MODIFICATN.
          WHEN 'I'. "insertion of an item
            INS_TAB = MODIFICATIONS.
            APPEND INS_TAB.
    END LOOP
    DESCRIBE TABLE INS_TAB LINES ITEMS.
      IF ITEMS > 0.
        INSERT RZLLITAB FROM TABLE INS_TAB-->(one i mentioned as virtual.)
      ENDIF.
    In such a case how comes the virtual comes as the output in wsdl
    I am mentioning below the the wsdl
    <----
    >
    <?xml version="1.0" encoding="ASCII"?>
    <wsdl:definitions xmlns:ctc="http://sap.com/ctc" xmlns:ctc-bapi="http://www.sap.com/ctc/abapprovider" xmlns:ctc_ref="urn:example/encoded" xmlns:ctclib="http://sap.com/ctc/schema/lib" xmlns:plnk="http://schema.xmlsoap.org/ws/2003/05/partner-link" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://sap.com/ctc/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SMLG_MODIFYServiceDefinition" targetNamespace="http://sap.com/ctc/services">
      <wsdl:types>
    <xsd:schema xmlns:tns="http://sap.com/ctc/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sap.com/ctc/services">
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="SET_LOCK" type="xsd:string"/>
    <xsd:complexType name="ERFC_MODIFICATIONS">
    <xsd:sequence>
    <xsd:element name="CLASSNUM" type="xsd:int"/>
    <xsd:element name="CLASSNAME" type="xsd:string"/>
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="TIMERERD" type="xsd:int"/>
    <xsd:element name="LOGRERD" type="xsd:int"/>
    <xsd:element name="FAVTYPE" type="xsd:string"/>
    <xsd:element name="MODIFICATN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
    <xsd:element name="CLASSNUM" type="xsd:int"/>
    <xsd:element name="CLASSNAME" type="xsd:string"/>
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="TIMERERD" type="xsd:int"/>
    <xsd:element name="LOGRERD" type="xsd:int"/>
    <xsd:element name="FAVTYPE" type="xsd:string"/>
    <xsd:element name="MODIFICATN" type="xsd:string"/>
    </xsd:schema>
    </wsdl:types>
      <wsdl:message name="SMLG_MODIFYInput">
        <wsdl:part name="GROUPTYPE" type="xsd:string"/>
        <wsdl:part name="SET_LOCK" type="xsd:string"/>
      </wsdl:message>
      <wsdl:message name="SMLG_MODIFYOutput">
        <wsdl:part name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
        <wsdl:part name="CLASSNUM" type="xsd:int"/>
        <wsdl:part name="CLASSNAME" type="xsd:string"/>
        <wsdl:part name="GROUPTYPE" type="xsd:string"/>
        <wsdl:part name="TIMERERD" type="xsd:int"/>
        <wsdl:part name="LOGRERD" type="xsd:int"/>
        <wsdl:part name="FAVTYPE" type="xsd:string"/>
        <wsdl:part name="MODIFICATN" type="xsd:string"/>
      </wsdl:message>
      <wsdl:portType name="SMLG_MODIFYPT">
        <wsdl:operation name="SMLG_MODIFYOperation">
          <wsdl:input message="SMLG_MODIFYInput"/>
          <wsdl:output message="SMLG_MODIFYOutput"/>
          <wsdl:fault message="ctclib:BAPIException" name="BAPIException"/>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="SMLG_MODIFYBinding" type="SMLG_MODIFYPT">
        <ctc:binding transport="com.sap.mw.jco"/>
        <wsdl:operation name="SMLG_MODIFYOperation">
          <ctc-bapi:function name="SMLG_MODIFY"/>
          <wsdl:input>
            <ctc:body encodingStyle="ctc:SCHEMA2ABAP">
              <ctc-bapi:partbinding name="GROUPTYPE">
                <field elementname="GROUPTYPE">
                  <name>GROUPTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="SET_LOCK">
                <field elementname="SET_LOCK">
                  <name>SET_LOCK</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
            </ctc:body>
          </wsdl:input>
          <wsdl:output>
            <ctc:body encodingStyle="ctc:SCHEMA2ABAP">
              <ctc-bapi:partbinding name="ERFC_MODIFICATIONS">
                <table elementname="ERFC_MODIFICATIONS" jcoName="ERFC_MODIFICATIONS">
                  <structure elementname="RZLLIMODGP" jcotype="RZLLIMODGP">
                    <field elementname="CLASSNUM">
                      <name>CLASSNUM</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="CLASSNAME">
                      <name>CLASSNAME</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="GROUPTYPE">
                      <name>GROUPTYPE</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="TIMERERD">
                      <name>TIMERERD</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="LOGRERD">
                      <name>LOGRERD</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="FAVTYPE">
                      <name>FAVTYPE</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="MODIFICATN">
                      <name>MODIFICATN</name>
                      <type>CHAR</type>
                    </field>
                  </structure>
                </table>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="CLASSNUM">
                <field elementname="CLASSNUM">
                  <name>CLASSNUM</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="CLASSNAME">
                <field elementname="CLASSNAME">
                  <name>CLASSNAME</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="GROUPTYPE">
                <field elementname="GROUPTYPE">
                  <name>GROUPTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="TIMERERD">
                <field elementname="TIMERERD">
                  <name>TIMERERD</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="LOGRERD">
                <field elementname="LOGRERD">
                  <name>LOGRERD</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="FAVTYPE">
                <field elementname="FAVTYPE">
                  <name>FAVTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="MODIFICATN">
                <field elementname="MODIFICATN">
                  <name>MODIFICATN</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
            </ctc:body>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="SMLG_MODIFYService">
        <wsdl:port binding="SMLG_MODIFYBinding" name="SMLG_MODIFYServicePort"/>
      </wsdl:service>
    </wsdl:definitions>
    >
    My purpose is to create a .cproc file which will pass values to this wsdl file.I dont know how to pass as the table which the function module accepts as input is output in wsdl.so i am not aware how to pass value.Kindly help me out how to create a .cproc file for it
    Thanks
    Neeta

    Hello Anton,
    where on the abap-server I can find the generated wsdl?
    I have downloaded the wsdl to eclipse 3.3 and can call the webserrvice successfull.
    But when I try o call the webservice with <netweaver-server>/wsnavigator, I can input the data-fields, but the request answer is that the web-service is not found on the given domain.
    So I want manipulate the domain in the wsdl.
    Best regards
    Oliver Prodinger

  • Client Proxy : How to Call Outbound Generated Proxy in ABAP report ?

    Dear SDNrs.
    I have already created a  Scenario for Client/ Outbound Proxy in XI .
    I have already Generated Client/ Outbound Proxy in ECC .
    Now Question is How to call this generated Proxy in report ?
    Please Guide ..... I dont have any idea ...
    1. before calling any proxy in report what information needs to collect from generated Proxy ?
    2. How to call this generated Proxy in report ?
    Regards
    Prabhat Sharma.

    Hi Prabhat
    You have to use your knowledge about ABAP OO for this.
    It's simple. You created your Proxy Object throught SPROXY transaction, right? Now, you have to instance your class (information avaliable in  SPROXY-> Proxy Objetc -> Class Name) and to use the method displayed there.
    Follow an example:
    DATA: wa_backfeed      TYPE zibrsapglbackfeed_sapgl, 
               wa_output            TYPE zibrsapglrequest,        
               lo_clientproxy       TYPE REF TO zibrco_sapgl_out,   
               lo_sys_exception TYPE REF TO cx_ai_system_fault.
      TRY.
          CREATE OBJECT lo_clientproxy.
          CALL METHOD lo_clientproxy->sapgl_out
            EXPORTING
              output = wa_output.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
                   lo_sys_exception->if_message~get_text( ).
      ENDTRY.

  • Generate MDM_GID using ABAP API

    Hi all!
    Does anybody know how to generate unique MDM_ID while loading records to MDM from BI using ABAP API (it is done automatically when using OHD , but when doing manually - no idea).
    I tried to call INVOKE_STRATEGIES but nothing happened.

    Hi,
    You can refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b01e4269-f744-2b10-929b-fa7b49aac540
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06a92de-614e-2b10-4989-d913c2154a64
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00f0d853-936f-2b10-1880-d3deb1fbd858
    Regards
    Nisha

  • Generate VCARD from ABAP?

    Hello experts,
    is there any possibility to generate a VCARD in ABAP? exist any function module or bapi regarding this issue?
    best regards´
    Ilias

    yes, but you will have to generate it manually.
    The format is quite simple:
    BEGIN:VCARD
    VERSION:3.0
    N:Doe;John;;;
    FN:John Doe
    ORG:Example.com Inc.;
    TITLE:Imaginary test person
    EMAIL;type=INTERNET;type=WORK;type=pref:johnDoe(at)example.org
    TEL;type=WORK;type=pref:+1 617 555 1212
    TEL;type=CELL:+1 781 555 1212
    TEL;type=HOME:+1 202 555 1212
    TEL;type=WORK:+1 (617) 555-1234
    item1.ADR;type=WORK:;;2 Example Avenue;Anytown;NY;01111;USA
    item1.X-ABADR:us
    item2.ADR;type=HOME;type=pref:;;3 Acacia Avenue;Newtown;MA;02222;USA
    item2.X-ABADR:us
    NOTE:John Doe has a long and varied history\, being documented on more police files that anyone else. Reports of his death are alas numerous.
    item3.URL;type=pref:http\://www.example/com/doe
    item3.X-ABLabel:_$!<HomePage>!$_
    item4.URL:http\://www.example.com/Joe/foaf.df
    item4.X-ABLabel:FOAF
    item5.X-ABRELATEDNAMES;type=pref:Jane Doe
    item5.X-ABLabel:_$!<Friend>!$_
    CATEGORIES:Work,Test group
    X-ABUID:5AD380FD-B2DE-4261-BA99-DE1D1DB52FBE\:ABPerson
    END:VCARD

  • Generate ADRNR in ABAP code- Getting Error in XD02/XD03

    Hi Friends,
    I am Creating web-service for Create Customer/Address. I have created RFC for that. Now when I create only Customer and not generating ADRNR, then it works fine, but when I generate ADRNR in Web-service with 'NUMBER_GET_NEXT' and object 'ADRNR'. I can insert the data successfully in all the table, but when I try to open it via XD02/xd03, it give me error like "Error occured in calling ADDR_GET function. Any solutions please?
    Thanks in Advance.

    Hi,
    You need to update the language field(LANGU) in ADRC table, if not i will throw the same error. Once check it and update it.

  • SM30 Table Maintenance Generator in Webdynpro ABAP

    Hi Experts,
    I am new to Webdynpro.
    Can someone explain me the steps in having the Table maintenace feature in Webdynpro ABAP ?
    We are having a custom table in ECC for which the entries will be updated from Webdynpro.
    Thanks in Advance,
    Regards,
    Vivek K

    Hi,
    for table maintenance in WD4A I prefer ALV grids. Lazy as I am, I'll just point you to this step-by-step scenario ) :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1?quicklink=index&overridelayout=true
    Alternatively you can also make a transaction for the Maintenance view and include the Transaction in the Web Dynpro, but I wouldn't  reccomend this..
    regards, Lukas

  • Generate transformation in ABAP

    Hi,
    i need to create a transformation with an expert routine dynamicallyy in ABAP ?
    (expert routine contailns always the same coding)
    Any idea?
    regards
    rouzbeh
    Edited by: Roozbehan on May 26, 2010 9:50 AM

    Hi,
    my problem is modifying a standard dso from an internal table which contains  modified entries
    from active table of dso.
    Edit DSO Entries
    I want to modify dso via a request (in order to modify all three tables automaticcaly)
    i need to start a dtp.
    as i have no transformation manually created in bi, my idea is to create dynamiccaly a dtp
    which calls my coding in exper routine.
    thanks

  • Generate key in ABAP

    Hi all,
    I need to generate a random key in order to insert a row in some table (SRGBTBREL).
    A key like that :'DEE01961112730F1BF77001A6431651A'
    Maybe there is already a function for that but have no clue
    How could I do it ?
    Thanks for answer !

    Hi,
    Try function module GUID_CREATE.
    /Christoffer

  • Generate email from ABAP report.

    Hi Folks,
    I would like to know if it is possible to send email from to an external mail id from an ABAP report.
    If it is possible then what are detailed steps that needs to be taken in order to achive it. Also let me know how to attach files to the created email.
    Thanks,
    Imran

    FAQ, please search the forums before posting, do not ask the same question once again.
    Thread locked.
    Thomas

  • Howto access EEWB-generated fields (in ABAP)

    Hi all,
    I have successfully used EEWB to extend the business partner object by some custom fields. I can also read and save values to this fields using the corresponding standard transactions. But: How can I access (read and write) to these new fields in ABAP? I mean, does the EEWB automatically create appropriate function modules, or do I have to access them directly via SQL for myself?
    Thanks in advance for your help!
    Kind regards, Matthias

    I found the solution: BAPI "BUPA_CENTRAL_CI_CHANGE".
    Kind regards, Matthias

Maybe you are looking for

  • BT Openzone and Wifi offload from mobile operators...

    Having recently had confirmation that the BTHH transmits the Openzone SSID, I have just read a post regarding non BT customers using an iPhone to connect to Openzone. I asked a question regarding if BT are planning to use my BTHH as a wireless access

  • Preview: double-click doesn't open files AFTER they have been modified

    Since a few weeks (maybe since I upgraded to OS 10.6.6 ?) Preview doesn't open files any more by double-clicking AFTER I have modified and saved them. They open when I drag them to the dock icon of Preview. For instance, photos downloaded from a came

  • Tree component in Flex 4

    Are there any known issues with the <mx:Tree component in Flex 4? We have upgraded from Flex 3 builder to Flex 4 builder. Everything works except any where we have used a tree component the data is no longer showing. Has there been a change in how to

  • After install of itunes 7, does not recognize ipod

    I recently updated itunes to 7, after the update itunes does not recognize my ipod. I am using windows xp with a 5th generation 30G video ipod, have followed the troubleshooting guide relating to this to no avail. have also gone through the 5 r's, wi

  • GS_CM. How to hide buttons: 'Attachment' and 'URL'

    Hi, Business object 'catalog product' use component GS_CM We want to hide buttons: Attachment and URL We need to use only button Advanced. How I can customize it? Denis.