ABAP Code to Read Characteristic from Another DSO

Gurus and Experts,
Plain and simple, I need a piece of ABAP code that reads a characteristic value from a different DSO.
Here is the story. I have a data flow from DSO Delivery1 to DSO Delivery2. I need to write a code in the start routine of the transformation to read Sales_Doc_Type from DSO Sales1. The condition is, if Delivery1-Ref_Doc_Nr = Sales1-Sales_Nr then Delivery1-Sales_Doc_Type = Sales1_Sales_Doc_Type.
I am a beginner in SAP BI and know nothing about ABAP. But I do have experience in SQL and Java.
Any help or links or direction will be appriciated. Thanks in advance.
Herru

Hello,
I think there is a correction in your Ques. That there are two DSO Delivery1 and Sales1...... I Hope this is Ok.
Tables Required:----  Go To SE11 and *<DSO_NAME>00 You will get active table for your DSO. EG. /bic/Delivary100 and /bic/sales100
Logic In start Riutine:----
1. Define structure in Global Def. for Sales1 DSO.
2. Also Define Internal table in Global Def. (I hope you know the syntax)
3. now you will find that start writing code from below.
        Inclue:------ Select Statement from Slaes1 DSO into itab for all entries in source package.
4. Loop source_package assigning <result_fields>.
read itab into wa where Sales1-Sales_Nr = <result_fields>-Ref_Doc_Nr.
<result_fields>-Sales_Doc_Type = wa-Sales1_Sales_Doc_Type.
endloop.
This logic will work..........
If still you are find it difficult then take some abaper help.
Regards,
Ankit.

Similar Messages

  • Syntax error in reading data from another DSO

    Hi all,
    I have written a end routine to read business area from another dso the code is as follows.
    DATA:lw_c_wa type tys_TG_1-BUS_AREA.
        LOOP AT RESULT_PACKAGE ASSIGNING -BUS_AREA  = lw_c_wa-bus_area.
          refresh lw_c_wa.
               ENDIF.
        endloop.
    but i am getting the following error:
    E:"FROM ...", "CONNECTION ...", "BYPASSING BUFFER", "PACKAGE SIZE ...",
    or "UP TO ... ROWS" expected after "LW_C_WA".
    i am not able to debug this.
    Pls any input on this.
    Regards,
    suyash

    Try to debug using DTP. (Goto DTP ---> Execute Tab ---> Choose processing mode as "Serially in Dialog Process (For Debugging).
    Or goto transformation -
    > Extras --> Display generated code ---> put a break point here and execute the DTP. Then you can debug the code.

  • WebDynpro Abap code to read IView Name

    Hi Friends,
    Could you please give me Webdynpro abap code to read the name of the Iview.
    Regards,
    Lakshmi Prasad.

    Hello Lakshmi,
    I dont think this is possible. If you want to differentiate from which iView your web dynpro application is launched, then you can pass some constant as Application Parameter in the iView. and in the web dynpro application you can read this parameter and perform your required logic.
    For example suppose say your web dynpro application is hosted in iView1 and iView2. In both the iview properties, pass a parameter (say IVIEWNAMe) with values 'iView1' and iView2 respectively.
    then in the Webdynpro -> Window Controllers' -> default event handler method, you read the parameter IVIEWNAME and based on the value you can peform your logic.
    BR, Saravanan

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • To read string from another file

    Dear friends
    I am working on a project where i need to read log files which are there on my C drive.
    I got a folder and from that i need to read string from another folder and name them as URL,TS etc..so any body have any idea about this...

    I have no idea what you're even trying to do. Can you try explaining your problem more clearly and in more detail?

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • To write ABAP code to retrieve data from RSTMANPART table

    hello everyone...
    Actually, i need help to write a ABAP code....
    i need to record the number of data records which is transferred and added to 3 cubes... i need to read the latest request number from the RSSTATMANPART table, for the 3 datatargets,  and gather the transferred records, added records , start time n end time from that specific req num....
    And i have to store it in an internal table....
    Please help me with the same.....
    Thanks....
    Edited by: neethacj on Dec 2, 2010 10:27 AM

    Dear Neetha,
    The table name is RSSTATMANPART.
    Now the relevant fields are
    DTA(Data Target)
    DTA_TYPE(Data Target Type = Cube)
    RNR (Request ID)
    STATUS(Data Load Status )
    TSTATUS(Technical Status)
    DATUM_ANF(Request date)
    DATUM_VERB(Loaded Date)
    ZEIT_ANF(Start Time)
    ZEIT_VERB(Finishing Time)-->just do one load and compare the entries with Process monitor
    OLTPSOURCE(Datasource).
    ANZ_RECS(Transferred Records)
    INSERT_RECS(Inserted Records)
    *Create an Internal Table :
    DATA: IT_MANPART1 TYPE TABLE OF RSSTATMANPART,
               IT_MANPART2 TYPE TABLE OF RSSTATMANPART,
              IT_MANPART3 TYPE TABLE OF RSSTATMANPART,
               WA_MANPART LIKE LINE OF IT_MANPART1.
    *Fill the internal table
    SELECT * FROM RSSTATMANPART INTO TABLE IT_MANPART1  WHERE 
    DTA = 'CUBE1'.
    SELECT * FROM RSSTATMANPART INTO TABLE IT_MANPART2  WHERE 
    DTA = 'CUBE1'.
    SELECT * FROM RSSTATMANPART INTO TABLE IT_MANPART3  WHERE 
    DTA = 'CUBE1'.
    SORT IT_RSSTATMANPART1 BY  RNR  DESCENDING.
    SORT IT_RSSTATMANPART1 BY  RNR  DESCENDING.
    SORT IT_RSSTATMANPART1 BY  RNR  DESCENDING.
    It will fill up your Internal table with all the requests of the RSSTATMANPART for the three Infocubes.The requests have been sorted in descending order ,the most latest will be at the top.
    You can do whatever you want to do with these three internal tables..you can have them in one talbe also..depends on ur exact requirement.
    Regards,
    RK

  • Reading data from another cube

    Hi All,
    I have a cube, lets say with 6 fields. I am getting the data for the 1st 3 fields directly from R/3. I have the data for the remaining fields in some other cube. Now, I have to get the data for the remaining 3 fields from 2nd cube based on the 1st 3 fields.
    I know that this is possible but I am not sure how to do this. Can someone let me know the steps to do this.
    Best Regards,
    James.

    James
    u can follow the method suggested by dinesh with the help of ABAPer.
    There is also few another way. Let me tell you how.
    First way :
    declare source cube as a export datasource.
    create update rule for target cube from source cube and update only required fields.
    cons: this method will unnecessarily consume more database.
    remedy: u can use multiprovider for reporting which will pull data from all possible required cubes.
    Second way:
    u can use one infosource to fed several cubes at the same time. With this u can update only required fields into another/target cube.
      This procedure will increase loading time as infosource is feeding to several data targets.

  • Error while activating DSO after loading from another DSO..Production issue

    Hello Gurus,
    I got an error while activating DSO2 after loading from another DSO1.
    DSO1 load and activation was sucessful but while loading from DSO1 to DSO2 load was fine but got error while activating...
      >Error when assigning SID: Action VAL_SID_CONVERT table ZWEEK_NUM
      >Value u201809u2019 of characteristic ZWEEK_NUM is not a number with 000004 spaces
    this theard was posted after searching for related post in SDN.
    and i tried Function Module RSODS_CHECK_RSODSACTUPDTYPE but it is not available .. but I used this in BW 3.10u2026..
    is their any similar Function Module in BI 7.0 please advice.
    We are using SAP NetWeaver BI 7.0
    Release- 700    Service level- 017
    Thanks in advance
    Sandy

    sloved the issue......
    it was due to wrong data for the related field...
    it  must be "0009 "
    Thanks for ur support. closing the ticket
    Regards
    Sandy

  • Reading data from another database

    Hi Folks!
    I need to read some data from another non-sap system database to validate something in R/3. Does this is possible. If it is possible how could this be achieved?
    Thanks in advance for your help.
    Regards,
    Gilberto Li

    There are a couple of ways to do this. One, you can create an executable on the other non-sap system that you can call from SAP as a system command. So let us say you write a unix script that takes a value as input and returns a flag as output. Within the script you will check that value against this non-sap database. In SAP, you will create a system command in SM69 and then execute it in your program via function module SXPG_COMMAND_EXECUTE.
    Alternatively, you can use the RFC route but you need to setup RFC connection between the two systems.
    You can also bring this validation table into SAP as a one time or periodically updated table and then do the validations within SAP.

  • Reading data from another clients network connection

    I would like anyone who know to direct me to some resources for how one could write code that can read data from a port without "binding" to it. In other words, I have an application running on windows talking to a server. I want to monitor that conversation with a separate java application. This is a simple sort of a firewall.
    Is there a java api available, or a part of a package that can do this? So far, I have only seen information on binding to a port, which prevents the client from running at the same time as my java application.
    Thanks very much in advance.

    The simplest way to implement this is to create a proxy. The client connects to your proxy and your proxy connects and forward all data. Montioring this is then trivial.
    You could snoop the network, but I don't know and easy way to this in Java. Perhaps google has something.

  • ABAP code for Hierarchy Loading from Flat File

    Hi,
    Can anyone give me some idea / ABAP code for generating parent - child relationships (NODEIDS) from a flat file and load into BW.
    Best regards
    Any insight into this development is highly appreciated

    Hi,
    also have a look at this how to to get informations about the file structure:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb
    /manfred

  • ABAP Objects : calling one method from another class

    Hi,
    Can you please tell me how to call method from one class or interfce to another class.The scenario is
    I have one class CL_WORKFLOW_TASK, this class have interface IF_WORKFLOW_TASK & this interface have method IF_WORKFLOW_TASK~CLOSE. Now my requirement is ,
    There is another class CL_WORKFLOW_CHAIN ,this class have interface IF_WORKFLOW_CHAIN & this interface have method IF_WORKFLOW_CHAINCLOSE_ALL_PREDECESSORS. Now i have to write my code in this method but i have to use IF_WORKFLOW_TASKCLOSE method for closing the task.
    Can you please give me the code for the above .
    Please waiting for reply.

    Hi,
    You can use the concept of INHERITANCE  in this scenario.By using this concept, you can call all the public and protected  methods of class CL_WORKFLOW_TASK  in the required calss CL_WORKFLOW_CHAIN as per your requirement.
    Go through the  Introdctory(INHERITANCE) programming from this SAPHELP link.
    http://help.sap.com/saphelp_nw70/helpdata/en/1d/df5f57127111d3b9390000e8353423/content.htm
    I hope, it will help in you inresolving your problem.
    by
    Prasad GVK.

  • Virtual provider cube ABAP Code to read the Characteristics

    Hello Friends.  We have a virtual provider cube that is connected to the basic real cube for the GL. We want to populate three Characteristics in the virtual provider which are Material Codes, Code1 Code2 Code3 which change very frequently, every alternate day in ECC.
    I want to write the Code in Func Module of Virtual Prov Infocube
    that read the Mapping DSO for the Values of Material Codes, Code1 Code2 Code3 and Populate it in the Virtual Cube at RUNTIME of the execution of the Query built on the virtual provider.
    If you have implemented this functionality can you pls. provide the step by step details.
    Thanks
    Soniya

    Hi,
    I have used ABAP for hierarchy but it is in BPS. I have used some of the CLASS given by SAP.
    For your requirement, you can use the CLASS CL_RSR_HIERARCHY
    Rgds,
    Shailesh

  • ABAP Code Changes During Upgrade from 4.7C to ECC6

    Hi all,
    I'm in process of collecting information for our next upgrade.
    We are on 4.7C and are planning to upgrade to ECC6. We wanted to know what changes shall be required on ABAP side during this upgrade. e.g. certain ABAP commands which are obselete, few tables , few fucntional modules being obselete.
    Any specific functional areas/transcation codes being obselete which in turn would make Uer Exit redudant etc.....
    Could somebody please help me out with some info regarding this upgrade? Some links or any hint you can give would help me a lot. (Whether technical or functional..all very welcome!).
    Thanks in advance
    Moderator message: topic too broad to be answered in a forum thread, many people had to go through this, please search for available information/documentation.
    Edited by: Thomas Zloch on Jun 14, 2011 9:31 AM

    Hi ,
    I too got an error of this type .
    The resolution is as follows :
    login as user SAP<SID> in the oracle database .
    SQL> drop tabel <tablename>;
    Restart the upgrade from PARMVNT_SHD phase.
    Regards
    Ratnajit

Maybe you are looking for

  • Dynamic sql reurns no data when multiple values are passed.

    (Dynamic sql returns no data when multiple values are passed.) Hi, While executing the below dynamic sql in the procedure no data is returned when it has multiple input values. When the input is EMPID := '1'; the procedure works fine and returns data

  • Batch classification class and MBC3

    Hi, I am a bit confused with the batch determination (i.e. how the R/3 searches the correct batch). Kindly please correct me on the following steps. 1 u2013 Base on OMCG setup, R/3 pulls the batch search procedure base on the movement type in IM. 2 u

  • Preventing user logging in twice to OID

    I have an ASF application that I am using SSO to protect and authenticate against the OID (Identity Management 10.1.4) How can I prevent the same user id logging on more than once simultaneously ? Cheers, Brent

  • All my i photo pictures are on my desktop, now my computer is extremely slow

    ll my i photo pictures are on my desktop, now my computer is extremely slow

  • Recovery process

    I am trying to understand the oracle recovery process. Let's say User.dbf file got lost.. I made a back up copy last night.. ( currently DB is in the archived log mode) Here is the steps that I am going to follow to recover the DB 1) shutdown the DB