Convert logic in ABAP.

Hello,
I want to convert following logic in ABAP.
if i_out-belnr is between 90000000 and 99999999.
endif.

You can do this...
data: r_belnr type range of belnr,
      wa_belnr like line of r_belnr.
data: belnr type belnr.
wa_belnr-low = '90000000'.
wa_belnr-high = '99999999'.
wa_belnr-sign = 'I'.
wa_belnr-option = 'BT'.
append wa_belnr to r_belnr.
if i_out-belnr  in r_belnr.
endif.

Similar Messages

  • Error : while converting a WD ABAP object into SAP Transaction

    Hi,
    I am trying to converting a WD ABAP object into SAP Transaction but i am getting the following error while executing the transaction :
    Network Access Message: The page cannot be displayed
    Technical Information (for Support personnel)
    Error Code: 502 Proxy Error. The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
    IP Address: 10.114.6.144
    Date: 4/7/2011 10:41:
    Please help.

    > ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
    This seems to be your specific network configuration.  It seems that your corporate network is blocking HTTPS requests which don't use port 443. Your ABAP system is configured to use a port other than 443. Either talk to your basis admins about changing your ABAP system configuration to use port 443 or talk to your network administrators to allow whichever port the ABAP system is running on.

  • Is that possible to convert logical standby to physical standby ?

    Hi guys,
    My steps for testing as below:
    1.create a primary database
    2.duplicate a physical standby database;
    3.turn on flashback on both databases.
    4.record SCN xxx on physical standby database.
    5.convert physical standby to logical standby (using keep identity statement)
    6.flashback to logical standby to xxx
    7.convert logical standby to physical standby
    8.using real time apply
    I got errors:
    Fast Parallel Media Recovery enabled
    Managed Standby Recovery starting Real Time Apply
    MRP0: Background Media Recovery waiting for new incarnation during transient logical upgrade procedure
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Managed Standby Recovery not using Real Time Apply
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Errors appears every 10 seconds. Seems MPR0 is waiting for new incarnation for a long time. So am I.
    Standby database incarnation:
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 ORA11GR1 3853851354 CURRENT 1 08/09/2013 01:02:18
    2 2 ORA11GR1 3853851354 ORPHAN 2127877 08/28/2013 19:22:01     BGV

    Hello;
    Because of limitations for specific data types and objects with a logical database I going to say no.
    Best Regards
    mseberg

  • How to convert logical standby database to Physical Standby Database

    Hi,
    Does anyone know how to convert logical standby database(10.2.0.3) to Physical Standby Database(10.2.0.3)? Is this possible? If so,please give me steps for it.
    Thanks.
    Regards,
    RJ.

    I don't believe this to be possible. One of the steps invloved in the creation of a logical standby is the following:
    ALTER DATABASE OPEN RESETLOGS;
    This makes the logical standby a different incarnation of the db from the primary.
    A physical standby is a binary copy of a primary db, a logical standby is a completely seperate db that just happens to get sql statements applied to it that are generated from a primary db, but is open read/write.
    One avenue, though would be if you had flashback database enabled and you flashed back all the way to when the db was a physical standby and then rolled forward with the archived redo logs.
    It's somewhat unlikely you are in that situation, but that is a possibility.
    Indeed the 11g snapshot standby does this sort of thing:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#sthref740
    jason.
    http://jarneil.wordpress.com

  • MD5sum Checksum Logic in ABAP interface

    Hi All..
    I am Pavan, ABAP Consultant from Bangalore, India....
    How to incorporate MD5sum checksum logic in ABAP interface...???
    FYI, MD5sum is a checksum tool available in the web. This tool will generate a unique No' for each flatfile downloaded from SAP via extracts..
    When i send the same flat file to my client, they will validate the checksum again.. Once it is validated, then it will be confirmed that data is not tampered... Otherwise, client will reject the file..
    This is a mandatory process for my client, since they are working as per SOXa standards... (Sarbanes - Oxley Controls & Process)
    Please help me, if any one of you have the information regarding this ..
    Thanks in Advance......
    Regards
    Pavan Sanganal
    Bangalore, India
    Email : [email protected]

    Hi,
    assuming you have the content in the well known table
    sdokcntbins, the following snippet may became useful:
      DATA:
        input_length        TYPE i,
        hash                TYPE hash160,
        data                TYPE xstring.
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = input_length
        IMPORTING
          buffer       = data
        TABLES
          binary_tab   = p_file_content_binary.
      CALL FUNCTION 'CALCULATE_HASH_FOR_RAW'
        EXPORTING
          alg  = 'MD5'
          data = data
        IMPORTING
          hash = hash.
    Best regards,
    Stefan

  • Converting Logic time count (i.e. 1 1 1 1) to PT time count

    A friend who works in Pro Tools sent me a couple of tracks to work with. He gave me his tempo and told me what time the files should be placed. His time format is bars, beats, ticks.
    Example:
    4/4 time
    58 bpm
    drop file at (Pro Tools time measurement): 2 | 3 | 950
    In Logic, I'm accustomed to seeing time shown in four divisions. With my current (default) settings, he largest measure I can get in bar 2, beat 3 before ticking over to bar 2 beat four would be:
    Logic time measurement: 2 | 3 | 2 | 240
    How can I accurately convert between Pro Tools bar/beat/tick (2 | 3 | 950) and Logic's time (2 | 3 | x | x )? Does the Pro Tools tick turn over after 999 (or 1000)?
    Thanks a million for any help. - Jeff

    I had thought that Logic had user-configurable preferences to choose the way time that was counted, but apparently it doesn't.
    You define the time signature in the transport: 4/4, 6/8, etc.
    Below that, you define how many times each beat is divided in the Arrange window.
    i.e., if you choose "/16", a quarter note in 4/4 time will have four divisions (i.e. 1-e-and-ah, 2-e-and-ah,...)
    i.e., if you choose "/16", an eighth note in 6/8 time will have two divisions (i.e. 1-and, 2-and,...)
    Each division goes from 1 to 240.
    So,
    1 | 4 | 000 in PT (unless the division starts at 001, which I don't know)
    equals
    1 | 4 | 1 | 1 in Logic
    And
    1 | 4 | 999 in PT (unless the divisions run to 1000, which I don't know)
    equals
    1 | 4 | 4 | 240 in Logic
    So, if there isn't a way to convert Logic's count to the way Pro Tools works, I just need to know the range of beat divisions in Pro Tools:
    1-960?
    0-1000?
    1-999?

  • Converting an involved ABAP Report to BW

    I have been asked to convert a report currently produced by a lot of ABAP code into BW.
    I am having a hard time deciding just how to go about implementing this report.
    The report consists of summarized rows which are calculated with a different formula and criteria for each row.
    Criteria A
    KF1A / KF2A   .....
    KF3A - KF4A   .....
    KF5A + KF6A  .....
    Criteria B
    KF1A / KF2B   .....
    KF3A - KF4B   .....
    KF5A + KF6B  .....
    Criteria C
    KF1D / KF2C   .....
    KF3D - KF4C   .....
    KF5D + KF6C  .....
    I'm inclined to write an ABAP program, to be put into a process chain, that calculates each row as it does now, and then get that into a BEx-enabled ODS Object which simply carries the results for each column. 
    Will that work?  Do you have a better idea?  Points will be awarded for your help!

    OK, I think I'm starting to get it now.
    The data for the report (mostly) comes from two tables in the R/3 database. One is an R/3 transaction structure that carries sales summarized by month, while another is a master file containing salesperson sales goals expressed in different ways: $ volume, quantity, margin, etc.
    The salesperson's goals are an infrequently updated master file, so that should be loaded as Master Data with direct update, right?  The table carries the goals for Jan, Feb, Mar ... Dec in separate columns thus named, and I plan to generate 12 records for each of those, expressing the month/year as 0CALMONTH.
    The structure from R/3 with monthly sales data probably should go into an ODS Object that is updated by Init and Delta.
    From there, all I have to do is to device a way for the information to flow in the right order for the report, and conditionally do the necessary calculations in the update routines for a BEx-enabled ODS Object that represents the report output line by line.
    Any ABAP logic, no matter how involved, can be coded into routines. The repetitive stuff should be generalized and put into functions.
    Am I getting closer?

  • Converting logical SQL to physical

    I have a bunch of logical queries stored in my usage tracking table. What's the easiest way that I can convert these to physical SQL? I want to avoid re-running the reports and looking at the NQQuery.log.
    Let me know if there's an easy way to run my logical sql and getting the physical query from it.

    Hi,
    i) Dashboard -> Click Settings > Administration to open the Oracle BI Presentation Services Administration Window
    ii) Click the Manage Sessions link to open the Session Management window.
    iii)In the Session Management window, under Cursor Cache, click the View Log link for the last entry.
    The log displays the last query.
    iv)Locate :
    the SQL Request section. This section contains the logical SQL issued from Answers.
    the General Query Info section, just below the SQL Request section. This section identifies the repository, subject area, and presentation catalog from which the query was run.
    the Sending query to database named SH section, just below the General Query Info section. This section identifies the physical data source to which Oracle BI Server is connecting and the physical sql that was generated.
    Cheers,
    Aravind

  • Logic in ABAP HR

    Hi folks,
             Actually my requirement is, i have some data in an internal table. I have to check the particular record in in that itab is there in infotype 9003 by checking some condtions. if the record is not found in the 9003 i need to display a error message. I am new to ABAP HR. Please help me regarding the logic of comparing ITAB and an infotype in my requirement here.
                    Thanks,
                    Ram.

    Create a program
    In program attributes
    Put PNP for the Logical Database field
    Save it
    You will have PNP's standard selection screen
    If you dont want selection screen from PNP,
    In program attributes Choose HR REPORT CATEGORY
    Create one with no fields for selection
    tables: pernr
    infotypes: 0000, 0001, 0002, 0006, 9003
    start-of-selection.
    get pernr.
    loop at table p9003.
    endloop.
    all values of 9003 will be in internal table p9003
    If you have Personnel number in your internal table itab then the easier code without PNP Logical database is
    loop at itab.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
    *     TCLAS                 = 'A'
          pernr                 = itab-pernr
          infty                 = 9003
         BEGDA                 = '18000101'
         ENDDA                 = '99991231'
       IMPORTING
         SUBRC                 = subrc
        tables
          infty_tab             = it9003
       EXCEPTIONS
         INFTY_NOT_FOUND       = 1
         OTHERS                = 2
      IF sy-subrc = 0.
    ** Do the processing you want to do
      ENDIF.
    endloop.
    Reward points if helpful

  • Logical difference   ABAP  InputScript

    Hi,
    What is the logical difference between a "Call transaction using..." in ABAP and an InputScript?
    Thanks,
    Govindappa.

    Hi,
    There are 2 main differences between ABAP call transaction and InputScript:
    - The InputScript remains active while you process the transaction.
    In particular, you can read all screen values and make decisions based on these values.
    When you implement a Call Transaction in ABAP, you have to deliver all input data in advance.
    - GuiXT offers a number of built-in features. For example, GuiXT will automatically display those popup screens that you do not handle in your InputScript, so that the user can continue, even in a situation that you did not anticipate.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Can i convert logical standby database to physical standby database

    Dear All,
    Can i convert a logical standby database to physical standby database?
    If yes, what are the steps to follow?
    Thanks
    Mahipal

    I never needed or tested something like this, but below maybe usefull -
    Transient Logical Standby
    Users can convert a physical standby to a transient logical standby database to effect a rolling database upgrade, and then revert the standby to its original state as a physical standby database once the upgrade is complete - using the KEEP IDENTITY clause. This benefits physical standby users who wish to execute a rolling database upgrade without investing in redundant storage otherwise needed to create a logical standby database.
    http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html
    But opposite is documented - http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#BEIGJCAC
    best regards.

  • Small logic in ABAP

    Hi,
         am very new to abap , i have the logic of Prime number in c language , i want to do it in ABAP ,
    so kindly help me .
    thanks,
    Sudhakar

    REPORT ztest1 .
    PARAMETERS: p_from TYPE i,
                p_to   TYPE i.
    DATA: v_from      TYPE i,
          v_to        TYPE i,
          v_remainder TYPE i,
          v_is_prime  TYPE c,
          v_divisor   TYPE i.
    START-OF-SELECTION.
      v_from = p_from.
      v_to   = p_to.
      DO.
        IF v_from = v_to.
          EXIT.
        ENDIF.
        CLEAR v_is_prime.
        DO v_from TIMES.
          v_divisor = sy-index.
          v_remainder = v_from MOD v_divisor.
          IF v_divisor <> 1      AND
             v_divisor <> v_from AND
             v_remainder = 0.
    *-- not a prime
            v_is_prime = 'N'.
            EXIT.
          ENDIF.
        ENDDO.
        IF v_is_prime IS INITIAL.
    *-- the number is prime
          WRITE:/ v_from, 'is a prime number'.
        ENDIF.
        v_from = v_from + 1.
      ENDDO.

  • Help in writing logic to abaper for printing contact details from partnr fn

    Hi friends,
    I have to give the logic to the abaper to print the contact details of one partner which is manually entered in the quotation at header level.
    i have a partner z1 with partner type PE which is manually entered in the partner fn field at the header level.  this z1 partner fn is an employee.  The name and contact details of this employee needs to be printed in the header of the output.
    What is the logic i need to give to abaper for this.
    Regards,
    Anand

    Hi Anand,
    In case you do not find an ADRNR for the respective partner funtion in VBPA table, then, it means that the employee number derived from customer master is correct. Then, I think you can take KUNNR number for the employee partner function thro' VBPA and put the same in KNA1 table to get the right ADRNR. (As explained by me in the first post).
    My question now is, are you maintaining the employee in XD01 (customer) or in VPE1 (Sales Rep)?
    You can try with tables PA0002 Personal Data and PA0006 Addresses only if you maintain employees thro' VPE1 Tcode.  PA0006 has PERNR field. But, what you have to make sure is that the table is getting updated. Else, you may not find the data here as well.
    Hope this helps...
    Thanks
    Mukund S

  • How to convert xml to ABAP data?

    Hi Expert,
    I need to write a transformation and convert an XML file into ABAP data.
    The XML looks like following:
    <?xml version="1.0" ?>
    - <ServiceProtocol version="2.1">
    - <CmdTest CheckId="123456789">
    - <ExceptionMessage>
      <id>003</id>
      <text>Test</text>
    - <arguments>
      <argument>2.2</argument>
      <argument>2.1</argument>
      </arguments>
      <creator>Hello</creator>
      </ExceptionMessage>
      </CmdTest>
      </ServiceProtocol>
    I have no knowledge in transformation. Can some one help me on this or provide deatail guideline on the conversion of XML to ABAP data.
    Thanks in advance,
    Best Regards, Johnney.

    Hi Johnney,
    It's actually not that difficult. For that little XML of yours, I would suggest a Simple Transformation, because it's ... simple. And fast.
    You should do some reading in the online documentation, and then it's trial-and-error. To accelerate your trialling, I've prepared a little example for you. Which you can use as follows.
    Call SE80, and go Workbench > Edit object... , and create a "Transformation" (you give it a suitable name, and click on the "Create" button; in the pop-up, you specify Transformation type = "Simple transformation").
    In the source code, you replace everything between "<tt:transform>" and "</tt:transform>" with the following bit of code:
      <tt:root name="PROTOCOL_VERSION"/>
      <tt:root name="CHECK_ID"/>
      <tt:root name="MESSAGE_ID"/>
      <tt:root name="MESSAGE_TEXT"/>
      <tt:root name="CREATOR"/>
      <tt:root name="T_ARGUMENTS"/>
      <tt:template>
        <ServiceProtocol>
          <tt:attribute name="version" value-ref="PROTOCOL_VERSION"/>
          <CmdTest>
            <tt:attribute name="CheckId" value-ref="CHECK_ID"/>
            <ExceptionMessage>
              <id>
                <tt:value ref="MESSAGE_ID"/>
              </id>
              <text>
                <tt:value ref="MESSAGE_TEXT"/>
              </text>
              <arguments>
                <tt:loop name="Arguments" ref="T_ARGUMENTS">
                  <argument>
                    <tt:value ref="$Arguments.ARGUMENT"/>
                  </argument>
                </tt:loop>
              </arguments>
              <creator>
                <tt:value ref="CREATOR"/>
              </creator>
            </ExceptionMessage>
          </CmdTest>
        </ServiceProtocol>
      </tt:template>
    Your simple transformation is ready; all you have to do is call it from a little program, more or less as follows:
      DATA:
        l_prot_version TYPE string,
        l_check_id     TYPE string,
        l_msg_id       TYPE string,
        l_msg_text     TYPE string,
        l_creator      TYPE string,
        BEGIN OF ls_arguments,
          argument TYPE string,
        END OF ls_arguments,
        lt_arguments LIKE STANDARD TABLE OF ls_arguments.
      TRY.
          CALL TRANSFORMATION your_transformation_name
          SOURCE XML l_xml_string
          RESULT     protocol_version = l_prot_version
                     check_id         = l_check_id
                     message_id       = l_msg_id
                     message_text     = l_msg_text
                     t_arguments      = lt_arguments
                     creator          = l_creator.
        CATCH cx_st_error.
    *     Your error handling comes here...
      ENDTRY.
    The variables starting with "l_" should be character fields of appropriate length, or character strings, while "lt_arguments" should be a standard table with a single field called "ARGUMENT" (otherwise you'd have to change the name in the transformation, in the line that says "<tt:value ref="$Arguments.ARGUMENT"/>").
    There's more pitfalls for you, like the encoding of the XML string, but you'll find examples of how to handle that if you look for class CL_ABAP_CONV_IN_CE, either here in the forum or in your system (or in the online help, of course).
    Oh, and you should definitely catch and handle CX_ST_ERROR - transformations dump easily if something is wrong with the data.
    Hope this helps - sure took longer than planned...
    Rainer

  • How do I convert Logic 4.8.1 songs to Logic 8.02?

    I have about 30 or more Logic 4.8.1 songs on a DVD backup that I want to open on my iMac running 10.5.4 & Logic 8.02. When I try to open a song it says I need to open it in 7.2 first to translate it, then open that song in 8 to translate it again. Is there another way that I can convert straight from onr to another? I no longer have any OS 9 machines or Logic 7.
    Thanks!

    I notice you're based in Dudley. We have a studio near Coven and we have 2 macs both running Logic 7 & 8. If you needed to do transfers we could help you out. Check out our website www.madhat.co.uk.

Maybe you are looking for

  • Date object doesn't work in query filters

    I'm trying to create a universe object called Next Biweekly Pay End Date.  Some background: there is an end date for our biweekly payrolls every 14 days, and the logic behind the object is basically that if there was a biweekly pay end date 7 days ag

  • "Mac Help" no longer works.  It just spins and spins and spins.

    Today my Mac Help stopped working. I open Mac Help, type in a query, and it just spins and spins an dspins an never returns a result or fails. For the life of me I can't figure out what is wrong. Any ideas?

  • IPod photo cache file - how do I locate it?

    Hi all, On my iPod nano I keep getting the "some of your photos were not copied because they cannot be displayed on your iPod" message, but the photo albums I am syncing do not contain the photo mentioned in the warning. I have had a look around and

  • Cancel Payment - Invoice vs Down Payment Request

    Hi, When I cancel the payment for a AP invoice, it voids the check, reverses payment document and resets clearing of invoice.   But when I cancel the payment for a down payment request (noted item), it voids the check, reverses payment document but i

  • Intraoffice instant messaging software for Windows and Mac

    Can anyone recommend instant messaging software between Mac and Windows platforms? My employer doesn't want to use the traditional IM clients - AIM, MSN, etc., - for security reasons. He'd like something that would only connect members of the same LA