How to use macro to pull data from custom infotype?

Hi all,
Is rp_provide_from_last p9004 space pn-begda pn-endda. works?
i am getting all zeros .
is using macros possible pull data from custom infotype? or only select?
Regards
sas
For LDB PNPCE
get peras:

Hi,
Try the following Macro it will solve out your problem,
DEFINE rp_provide_from_last.
  rp_found = '0'.
  clear: rp_tabix.
  loop at &1.
    if &2 ne space.
      check &1-subty eq &2.
    endif.
    if &1-begda le &4 and &1-endda ge &4.
      rp_found = '1'.
      exit.
    endif.
    if &1-begda le &4 and &1-endda ge &3.
      rp_tabix = sy-tabix.
    endif.
  endloop.
  if rp_found eq '0'.
    if rp_tabix ne 0 .
      rp_found = '1'.
      read table &1 index rp_tabix.
    else.
      clear: &1.
    endif.
  endif.
END-OF-DEFINITION.
rp_provide_from_last <p????> space <begda> <endda>.
Best Regards,
Faisal

Similar Messages

  • How To Use OATS To Pull Data From DB And Insert Data Back To DB

    Hi All,
    My requirement is little different.
    I'll explain the scenario,
    I am working on OTM application, as far as I have read OAST supports OTM and already test scripts are ready.
    My situation is as follows bellow,
    I need to pull data of a field for 18,000 shipments.
    I have an excel sheet in the format as bellow
    Shipment_Number
    Stop_Number
    Planed_Arrival_Date
    Planed_Departure_Date
    1
    1
    1
    2
    1
    3
    2
    1
    2
    2
    I was able to write script in OATS so that it logins to OTM and searches for the specified shipment number and capture the Planed_Arrival_Date and Planed_Departure_Date for the specific stop.
    But the problem is I am not able to save the date back to the excel.
    Solution Expecting:
    Some way to save the captured data back to excel.
    Some way to save the captured data back to a column in a table. if this is possible then some way to make OATS reade the shipment number from a column in database.
    Thanks,
    Vishwamber Shetty

    Hi Vishwamber,
    Try using Datatable in OATS. Using datatable you can read and write to Excel.
    Regards,
    Deepu Muraleedharan

  • How to use sda6810 to receive data from a rs485 channel?

    I want to use sda6810 to anlyze data from a rs485 bus. So I use Labview to progame the sda6810 with the drivers.Firstly,I intilite the card,then I cofigued an channel to send data from a buffer,and configued another channel to receive data from the first chanel . But unfortunatly the data I received was not equal to the data I sended.And there are not any error messages indicated in Labview
    And when I try to use the GP channel,I found it worked properly.please tell me how I can solve the problem?

    I really apreciate your help.You told me that
    I should use the exameples which shipped with sda driver firstly. I do used them,and it worked correctly.So I think the connections was being setup properly.And I
    used labview to progame the rs485 channel
    . It do received something .But it was incorrect.
    I would be grateful if you could send me an
    example writted by labview,or you could tell
    me you e-mail address.
    Here is my code .
    Attachments:
    youyou2.zip ‏110 KB

  • IDOC :: how to send data from Custom Infotype in SAP HR to third party

    Hi,
    I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
    Please help me in doing it.
    I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
                                                                                    ZTALENT                        Talent Management                                                                               
    5  E1PLOGI                        Header for an HR Object (Master Data or Organizational Data)                                                                               
    5  E1PITYP                        HR: Transported Infotypes and Subtypes for an Object                                                                               
    ZPUSER                         User base Data File                                          
                    ZPERSON                        Personal Information File Segment                            
                    ZPOST                          Position File                                                
                    ZOPE                           Overall Performance                                          
                    ZPWORK                         Outside Work Experience                                      
                    ZPEDUC                         Education Details of Employee                                
                    E1P0000                        HR: HR Master Record Infotype 0000 (Actions)                 
                    E1P0001                        HR: HR Master Record Infotype 0001 (Org. Assignment)         
                    E1P0002                        HR: HR Master Record Infotype 0002 (Personal Data)           
                    E1P0016                        HR Master Record: Infotype 0016 (Contract Elements)          
                    E1P0022                        HR Master Record: Infotype 0022 (Education)                  
                    E1P0023                        HR Master Record: Infotype 0023 (Other/Previous Employers)   
                    E1P0041                        HR Master Record: Infotype 0041 (Date Specifications)        
                    E1P0105                        HR: HR Master Record Infotype 0105 (Communications)       
                   ZE1P9020
                    ZPLANG                         Language Details                                             
                    ZACTION                        Actions Changes            
    Regards,
    Krishna

    Hello Shankar,
             Technically TEMSE files are read by calling the following 3 function modules in sequence,
                  1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
                  2) RSTS_READ : read the object
                  3) RSTS_CLOSE: close the object
    Regards,
    Rajesh

  • How to use RFC to get data from BW?

    Hi all, we need to get data from BW using RFC, I am not  familiar with BW and RFC, would you please give me some advice? Many thanks in advance!

    would you please bring your solution  to light here?
    thank you
    God's blessing
    Andreas

  • How to use session to passing data from one JSP to another JSP

    Dear All, I had create 2 jsp web page and want to do this:
    1. input some data into the text box and click the submit button, the jsp page
    will open another jsp page and send the text box data to the new open jsp page.
    can any one tell me how to open a new jsp web page and reciev data from another jsp page?
    thanks yu very much!
    the question.jsp got some code like:
    <html>
    <input type= 'text' name = 'txtName' size = 10 >
    <input type= 'submit' name = 'submit'>
    <% some jsp code %>
    </html>
    answer.jsp
    <html>
    <%
    some jsp code here
    %>
    </html>

    Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
    String textValue=request.getParameter("txtName");Regards

  • HOW to use xml to transfer data from database?

    Hi,
    Would you please give me some suggestion on how to use xml connect with a table in oracle/MS_access database?
    Thanks a lot
    Zhao

    Have you already had a look at our online documentation here on OTN, or at a book like Building Oracle XML Applications? There are lots of examples in those.
    If you have a specific question about using the API's that's not working for you, we can help out here.

  • Using ODI to pull data from IBM DB2

    Has anybody used IBM DB2 as a data source for essbase using ODI ? If so, do you have any tips, pointers specific to this DB2 specific situation, or better yet reading resources aside from the DBAG ?

    If you want to understand about the various knowledge modules and how to set up DB2 technology in ODI then have a read of :- http://download.oracle.com/docs/cd/E14571_01/integrate.1111/e12644/db2.htm#CHDBJIBH
    Once you have extracted the source db2 data then you would just use the IKM SQL to essbase data with a load rule to load data into essbase, I have covered loading data to essbase in my blogs.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using AppleScript To Pull Data From Number & Create Calendar Events

    Today I tried running an AppleScript that I created a few years back that works with Number ’09 [version 2.3 (554)].  The script collects information from the active numbers table and creats an event in my calendar for each row of data in the table.  For some reason its not working with the current version of number.
    Here is the script:
    on run
      set cr to ASCII character 13
      set newline to return
      local dName, sName, tName, rowCount, workingCalendar, maintenanceType
      -- get general document information like document name, active sheet name, active table name & the number of rows in the active sheet
      set {dName, sName, tName, rowCount} to my get_document_information()
      -- get information needed to update a calendar in the calendar application like the calendar that needs to be updated and the type of maintenance that will be completed
      set {workingCalendar, maintenanceType} to my get_calendar_update_information()
      -- update calendar maintenance type so the computer can say it
      if maintenanceType = "add" then
      set maintenanceTypeChanged to maintenanceType & "ed"
      set lastpartofsentence to "to calendar"
      else if maintenanceType = "update" then
      set maintenanceTypeChanged to maintenanceType & "d"
      set lastpartofsentence to "in calendar"
      else if maintenanceType = "delete" then
      set maintenanceTypeChanged to maintenanceType & "d"
      set lastpartofsentence to "from calendar"
      end if
      say "Events will be" & maintenanceTypeChanged & lastpartofsentence & workingCalendar
      --determine if calendar already exists.  If it does not create it
      tell application "Calendar"
      set allCalendarTitles to the title of every calendar
      if allCalendarTitles contains workingCalendar then
      --do nothing
      else
      create calendar with name workingCalendar
      end if
      end tell
      set timedifferance to 4
      -- get event information for each row in active table
      say "table name is " & tName
      repeat with rownumber from 1 to rowCount
    tell application "Numbers" to tell row rownumber of tName to set {cell04, cell05, cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell 5, value of cell 6, value of cell 7, value of cell 8, value of cell 9, value of cell 10}
      set cell07 to SearchReplace(cell07, "|", newline)
      tell application "Calendar"
      activate
      if maintenanceType = "Delete" then
      tell calendar workingCalendar to delete (first event whose summary contains cell04 and start date is equal to (cell05 + (timedifferance * hours)))
      end if
      if maintenanceType = "Update" then
      tell calendar workingCalendar to delete (first event whose summary contains cell04 and start date is equal to (cell05 + (timedifferance * hours)))
      tell calendar workingCalendar to set test to make new event at the beginning of events with properties {start date:cell05 + (timedifferance * hours), end date:cell06 + (timedifferance * hours), description:cell07, summary:cell04, location:cell10}
      end if
      if maintenanceType = "Add" then
      tell calendar workingCalendar to set test to make new event at the beginning of events with properties {start date:cell05 + (timedifferance * hours), end date:cell06 + (timedifferance * hours), description:cell07, summary:cell04, location:cell10}
      end if
      end tell
      end repeat
      say "Events have been " & maintenanceTypeChanged
    end run
    on get_document_information()
      -- Get general document information for later use
      local d_name, s_name, selectedTable, t_name, row_count
      tell application "Numbers" to tell document 1
      -- get document name
      set d_name to name
      -- get sheet name
      set s_name to name of active sheet
      -- get table name
      tell active sheet
      set the selectedTable to (the first table whose class of selection range is range)
      end tell
      tell selectedTable
      set t_name to name
      set row_count to row count
      end tell
      return {d_name, s_name, t_name, row_count}
      end tell
    end get_document_information
    on get_calendar_update_information()
      local strCalendarToWorkWith, strMaintenanceType
      tell application "Numbers"
      activate
      tell document 1 to tell sheet "General Information" to tell table "Table 1"
      copy value of cell "C9" to strCalenderToWorkWith
      copy value of cell "C12" to strMaintenanceType
      end tell
      return {strCalenderToWorkWith, strMaintenanceType}
      end tell
    end get_calendar_update_information
    on SearchReplace(sourceStr, searchString, replaceString)
      -- replace <searchString> with <replaceString> in <sourceStr>
      -- return SearchReplace(theString, ".", "<PERIOD>")
      set searchStr to (searchString as text)
      set replaceStr to (replaceString as text)
      set sourceStr to (sourceStr as text)
      set saveDelims to AppleScript's text item delimiters
      set AppleScript's text item delimiters to (searchString)
      set theList to (every text item of sourceStr)
      set AppleScript's text item delimiters to (replaceString)
      set theString to theList as string
      set AppleScript's text item delimiters to saveDelims
      return theString
    end SearchReplace
    When running the script in the current version of Numbers [version 3.2 (1861)] I receive the following error message:
    Here is what the table looks like:
    Can anyone help me correct this error/issue?
    Thank you,
    Brian

    The error ocurs right after it speaks the table name?  The error is highlighting the suspect line in the first screenshot.
    I think the "T" in the error is coming from the Table name, so try  replacing the line in question with this mess
              tell application "Numbers"
                        tell document 1
                                  tell active sheet
                                            tell table tName
                             set {cell04, cell05, cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell 5, value of cell 6, value of cell 7, value of cell 8, value of cell 9, value of cell 10}
                                            end tell
                                  end tell
                        end tell
              end tell
    NB original was
    tell application "Numbers" to tell row rownumber of tName to set {cell04, cell05,cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell5, value of cell 6, value of cell 7, value of cell 8, value of cell 9,value of cell 10}
    I don't know Numbers & Applescripting so you'll probably need to work on it some more, I gleaned the 'tell document & tell active sheet, tell table' from the script near the bottom.
    http://www.macosxautomation.com/applescript/iwork/numbers/table-populate.html
    It's a little unclear to me where the 'get document' info comes from, since you are not telling Numbers within that part.

  • How to use a variable value set from custom dll in dataset

    Hi,
    I've inherited a SSRS report that I need to add some functionality to.  I'm setting a variable, ADAuthorizations, from a custom dll 
    ADAuthorizations is a string of all AD groups a user is a member of and I need to use this as a filter in a dataset.  I've tried using this variable as shown in the query below but I'm getting an error "The expression used for the parameter 'Unit_Permissions"
    in the dataset "Unit_Permissions" includes a variable reference.  Variable values cannot be used in query parameter expressions."  Is there another way I should go about doing this?   
    = "SELECT UnitCode, UnitName " &
      "FROM dbo.VW_Unit_Permissions " &
      "WHERE UserId in (" & Variables!ADAuthorizations.Value & ")" &
      "ORDER BY UnitName "
    Thanks,
    Robert

    Please follow below steps,
    1. Create a custom code to get all the users in an array,
    Public Function getUserName() As String()
       dim Users(1) as string
       Users(0) = "user1"
       Users(1) = "user2"
    return Users
    End Function
    2. Create dataset using the below query,
    SELECT UnitCode, UnitName FROM dbo.VW_Unit_Permissions ORDER BY UnitName
    3. Add a parameter @User and set properties : (Datatype as text, Allow multiple values, Visible)
    Under "Available Values" select specify values and set the label and values as expression.
    =Code.getUserName()
    4. Similarly for "Default values" as
    =Code.getUserName()
    5. Go to tablix properties and select the filter tab and set the properties as below,
    - Select Expression "UserId" i.e =Fields!UserId.Value
    - Operator as "IN"
    - Value as =Parameters!User.Value
    6. Preview the report.
    Regards, RSingh

  • How to pull data from sql server ( Seperate server) & upload it into sap

    Hi All,
    I have a SQL Server database in System1,
    data base name          DB1
    Table name                 TB1
    I want pull data from TB1 & upload the same into ztable in SAP.
    How I can I achive this in ABAP.
    Thanks in Advance
    Appropriate points will be rewarded.
    Arun kumar

    Hi Arun,
    You have to do the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    Regards,
    Raj
    For eg:
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME                                  Raj                Logical name for connection
    DBMS                                           MSS              Microsoft SQL Server
    USER_NAME                                <User name>     For SQL Serve
    PASSWORD                                 <password>            "    "
    CON_ENV                  MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO                 Availability type for an open database connect  
    FUNCTION z_houston_connect.
    ""Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.

  • How to pull data from oracle GL to planning

    Hi all
    Can one suggest me how to pull data from oracle GL in to hyperion planning(we are using hyperion planning 9.3 with limited licence for analytic services). i guess we can use HAL ..any thing else
    any help is appreciable
    regards
    M.V

    Hi
    I appreciate for your response. Yep you are exactly right it is data only, but I do have a problem these people have their licence of limited version of Essbase.
    Let me give you the information of their licence agreement.
    The licence for the hyperion planning- sytem9 programs includes a limited use license for both the hyperion Essbase- system 9 and hyperion Financial reporting - system 9 programs. Such limited use license means that the hyperion Essbase- system 9 and Hyperion financial reporting -system 9 programs may only be used to access data from the Hyperion planning -system 9 program.
    Specifically, the hyperion essbase- system 9 program cannot be used to create Essbase cubes that do not contain data used by the Hyperion planning- system 9 program and the Aggregate storage option component of the Hyperion Essbase - system 9 program may not be used.
    1) what it(licence agreement) really means - can you install Essbase, if not how can you create dimensions dynamically using planning.
    2) Is it possible without Essbase as far as I know its not possible
    3) are we going to face any issues with this licence.
    4) Is it possibe to pull data with planning
    I appreciate if any one resolve this issue
    regards
    M.V

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How to read a tab seperated data from a text file using utl_file

    Hi,
    How to read a tab seperated data from a text file using utl_file...
    I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....
    Thanks in advance...
    Naveen

    Naveen Nishad wrote:
    How to read a tab seperated data from a text file using utl_file...
    I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....If it's a text file then UTL_FILE will only allow you to read it a line at a time. It is then up to you to split that string up (search for split string on this forum for methods) into it's individual components.
    If the text file contains a standard structure on each line, i.e. it is a fixed delimited structure, then you could use external tables to read the data instead.

  • ICloud storage space used up by old data from 1st gen iPad I traded in nearly 2 yrs ago for an iPad Mini. Can't backup any info for mini or new 6 plus. How can I access this old data to clear it out?

    My iCoud storage space is being used up by old data from a 1st  generation iPad I traded in nearly 2 yrs ago for an iPad Mini. The people at the sprint store where I made my trade were supposed to transfer everything over from my old iPad to the new Mini once they backed up the old device to iCloud. Well, long story short, none of the data ever got transferred to the new iPad, but it all got backed to iCloud, eating up all my storage space. Here I am almost 2 years later, and I've never been able to back-up my iPad mini. What's worse, My iPhone 4 wasn't backed up that whole time, and now I can't back-up my data from my new iPhone 6 Plus to iCloud either. Trying to find creative ways to store and save my information and data between all my devices is getting to be ridiculous. I don't want to upgrade my storage space though...just want to clear out a great deal of what is already being stored. How can I access this old data to clear it out?

    The only way to access data from an iCloud backup is to restore it to your device.  You could, for example, back up your iPad mini to your computer using iTunes (by connecting it, opening iTunes, then going to File>Devices>Back Up and choosing to back up apps and transfer purchases when prompted), then erase it and restore the old iPad backup (as explained here: iCloud: Restore or set up your iOS device from iCloud), save any recovered data you want to keep, then restore your iTunes backup back to your iPad mini (by connecting it to your computer, opening iTunes, then going to File>Devices>Restore from Backup).
    Once you're done with the old backup, delete it from your account to free up the space.

Maybe you are looking for

  • Each import generates a newline when converted to html

    Hello, I'm running tomcat 6.0.32. Each @ page import is being converted to a newline when compiled by server. For example: <code> <%@ page import="sun.misc.*" %> <% out.println("SUCCESS: 3434340f"); %> <code> Becomes a two line response, the first li

  • Converting from xsd:string into soapenc:string

    Hi. I was successfull in invoking an axis web service with complex type definitions. However, when building and deploying the process flow, I get a warning message as follows: " [bpelc] [Warning]: Trying to assign incompatible types [bpelc] [Descript

  • Messed up address book

    I keep trying to clean up my address book by deleting duplicate entries, combining cards, and eliminating obsolete entries. Once I do this I make a backup of the corrected file. When I reload this file it brings back all the stuff I deleted and corre

  • How to change Hostname from Physical to Logical in R1213

    Hi, We installed and upgraded applications to R1213, installed R1211 using normal installation method, now we want to change Physical name to Logical Name for Database+CM(both reside in same server). Please suggest how we can achive this. Regards, Ch

  • Regarding button in Selection

    Hi All , I have a requirement where in i need to assign an input field to download data after clicking a button on the selection screen. Regards, Shafiq