ABAP objects, drilling down into methods/parameter/method/parameter...

Hello all,
When creating or changing purchase orders using the enjoy transactions ME21N and ME22N, I want to force the users to have the same delivery address on every line item. I have found and activated the BADI ME_PROCESS_PO_CUST. I have added some code in method CHECK and put a breakpoint on that code. The transaction is stopping on my breakpoint. So far so good.
Parameter IM_HEADER is of type IF_PURCHASE_ORDER_MM,
that has method GET_ITEMS,
that has parameter RE_ITEMS that is a table of  of type PURCHASE_ORDER_ITEMS,
method GET_DATA
with parameter RE_DATA
with fields ADRNR &  ADRN2
From inside of the method CHECK of BADI, what syntax do I need to create an internal table of the line item fields that are in parameter RE_DATA of method GET_DATA?  I am just starting to work with ABAP objects.  Any help would be greatly appreciated.
Thanks
Bruce

Uwe,  thanks for the quick response.
Your solution,
DATA: lt_items      TYPE purchase_order_items,
           ls_item       TYPE purchase_order_item.
CALL METHOD im_header->get_items
   receiving
     re_items = lt_items.
Short version:
  lt_items = im_header->get_items( ).
  LOOP AT lt_items INTO ls_item.
  do something
  ENDLOOP.
got me very close to the solution.  The table lt_items contain the number of entries corresponding to the actual line items.  But the data element ls_item does not contain the fields I'm expecting from:
method GET_DATA ,
parameter RE_DATA,
type MEPOITEM.
How do I populate ls_item with the 197 fields from structure MEPOITEM?
If I knew more about ABAP objects, I'm sure I could easily change the code myself.  But today, I need the generosity of others to help me solve this.
Thanks
Bruce

Similar Messages

  • JDeveloper 2.0: Drilling down into a class

    I can't drill down into a class by double-clicking on an object
    node in the Structure pane. The Content pane should display the
    source code for the ancestor class of that particular object.
    Thanks in advance!
    null

    Hi
    The doc for 'oracle.jdeveloper.servlet' can be found in the
    JDeveloper Help System.
    Launch the help system
    and in the contents tab double click on 'JDeveloper 2.0 Reference
    Documentation' book icon.
    In the right hand frame select 'Oracle JBO Reference' link and
    you can drill down further.
    best regards
    raghu
    John Ritz (guest) wrote:
    : Were can I find more detailed documentation for the classes in
    : the 'oracle.*' packages? I'm specifically interested in how to
    : use the classes in 'oracle.jdeveloper.servlet.*'
    : and 'oracle.jdeveloper.html.*' packages. Some classes have a
    : JavaDoc file but with little content, others have no
    : documentation at all. Also Is the source code available for the
    : classes in the oracle packages? Thanks for your help.
    null

  • Drill down into va22

    It's a drill down into va22, I've done it the standard way, but
    it fails:
    set parameter id 'AUN' field t_tab-vbeln.
    call transaction 'VA22' and skip first screen.
    The set parameter executes okay, and if you F1, F9 on the
    quotation field in va22 it says the parameter id is AUN.
    However, it doesnt appear that it is AUN. If you set that
    parameter id to '123' and then go to va22, it's still got the
    last quote you used. If you then go to VA03, it's got '123' in
    the order field.
    I can only assume that sap's incorrectly reporting that AUN is
    the parameter ID for VA22, would anyone know what it actually
    is?

    Hi,
    AUN is displayed because this is specified in the data dictionary for
    the used data element.
    When defininte a dynpro field, based on this data element, the parameter
    id AUN is proposed.
    However, in the PBO of the dynpro, the actual Parameter id AGN is used.
    Cheers,
    Chaitanya.

  • Drill down into a report

    Hi!
    I've been working on a report to be able to drill down into another "detailed" one, and I was able to do it but not exactly the way i needed.
    I created an action link for the column values, but my problem is that for EVERY value, i always drill into the same exact report, and my idea is to drill into the same report for all of them, but with different parameters for each one
    Example:
    Sales representative revenue
    John 230K
    Mark 100K
    Martin 500K
    I've set a drill down for the revenue column, but all 3 values are obviously drilling into the same exact report, and I want to set it in a way I can tell the sub report "give me the detail report but only for the corresponding sales representative"
    If i click on 230K, I want to see the "detailed report" only for John's oppties. If i click on 500K, I want to see the "detailed report" only for Martin's oppties. And so on...
    That's the whole deal. I don't know how to do that.
    Thanks for your help,
    Martin

    Hi, thanks for your answer
    I'm navigating from a master to a detailed report, and i have already set the attribute as "is prompted" but Its not enough. Let me try to explain why
    Lets say I have this example report:
    Prompts: Primary position
    Table:
    Primary position | forecast
    John | 768687
    Paul | 200000
    George | 923882
    then I drill down on "Paul" to the next position level, so the report changes to something like this:
    Primary position | secondary position | forecast
    Paul | Jane | 100000
    Paul | Martin | 100000
    So, now... I want to drill into Martin's 100.000 forecast (drill into a detailed report) and despite I have the primary position set as "is prompted", I have no prompts for second, third, or n-position... So If I drill down from martin's 100000 forecast, I will only be able to pass the primary to the detailed report, and It will only be able to show Paul's 200000 forecast details
    I want the detailed report to pull Paul for primary, Martin for secondary, and show only the detailed report for that 100000 forecast value
    That's the issue
    I hope I was clear enough
    Thanks,
    Martin

  • Drill-down into AWR reports

    Hi experts,
    any can help me in this topic Drill-down into AWR reports.

    A typical AWR report - produced in html format- includes its main categories(for example Top 5 timed events) hyperlinked. By clicking on each one , you can navigate to a thorough analysis of all db parameters regarding it......
    Anyway....Can you more specific of what exactly do you want...?????
    Greetings...
    Sim

  • How to drill down into specfic row?

    I am new to this website and to APEX, I have a question about having a report and when clicking on a row, it drill down to a page which only shows the row data about the clicked row.
    Would be grateful if you tell me how to do that? I really need to know that..

    Hi,
    first i would create a master table and afterwords a detail table incl. foreign key (i.e. dept, emp). And then create a master detail form as i mentioned before. Further i recommend the documentation '2 Day + Developer's Guide' - see http://www.oracle.com/technetwork/developer-tools/apex/documentation/index.html
    Regards,
    Martin

  • Drill down into another query

    hi,
    Right now using report to report interface  I am able to drill into other queries .but I need to do a right click and go to the subsequent query.
    My customer wants to go to the subsequent query with one click on the data.
    Is there any possibility to achieve this?
    Edited by: venkat s on Dec 26, 2007 1:07 PM

    LOL...i cant stop laughing.
    Venkat,
    Going from one query to another is really a simple 2 step process. I think you need to convince the user that he/she has to give burden to his fingers and click twice.
    This exercise is not possible with single click.

  • Drill down in crosstab report

    I'm working with a crosstab report displaying summary accounts on each row & current and prior year on each column. I'd like to create a drill down function for each of the summary accounts rows so that when I click on a summary account, the dept# that made up this summary total will be displayed either on a separate report or below the summary account that I click.
    Any help would be greatly appreciated.  Thank you.
    This is what I want to create:
    SUMMARY ACCOUNT               FY2014     FY2013
    600001 - SALARIES               500        380    (i.e. able to drill down to dept below when 600001 is clicked)
        701000 - ER DEPT            200        175
        757000 - CATH LAB           150        210
        848000 - INFO SYSTEM        100         65
        851000 - ACCOUNTING          50         50
    710002 - BENEFITS               150        140
        881000 - HUMAN RES          135        130
        900000 - OTHERS              15         10
    711003 - SUPPLIES               XXX        XXX

    Thank you for the referenced thread.  I've copied your answer on the thread to this reply below.
    However, I do have a few question in following thru your instructions:
    1.  How do you procede with the 1st 3 bullets below?
    2.  What or where is the Business Object Platform?
    3.  What or where is the "Repository"
    Please advice.  Thank you.
    Here are a few ways you can drill-down into a cross-tab (all of them are workarounds by the way).
    The first method is using Report Parts or ‘Another Report Object’ and the second method is using an ‘OpenDoc’ URL
    Both the methods need the target report (report that is opened when drilled into) to have the same groups as the Crosstab
    The ‘Another Report Object’ can be setup in the following way:
    The target report needs to saved to the BusinessObjects Platform first
    Open the target report in the Crystal Report designer from the ‘Repository’
    Assuming the groups have been setup properly, click on any field in the details section and ‘Copy’ (Ctrl+C)
    Open the Report with the Crosstab
    Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Then Check ‘Another Report Object’ and click on ‘Paste’
    All the required information should be populated automatically
    This is how the Data Context should look like:
    “/”+GridRowColumnValue(“Customer.Country”)+”/”+ GridRowColumnValue(“Customer.Region”)+”/”+ GridRowColumnValue(“Customer.Customer Name”)
    Where “Country” and “Region” are rows in the Crosstab, “Customer Name” is a column in the crosstab.
    Similarly, “Country”, “Region” and “Customer Name” are groups on the target report
    So, the above formula would make sure the report drills-down to the last group
    The next method using ‘OpenDoc’ makes use of the opendocument URL and passes values from the Crosstab to the target report’s parameters
    Here’s how we can set this up:
    The basic design of the Main report and the target report would be the same as in above, however we would need to create parameters that correspond to the groups on the target report
    In this case, we would create three parameters – Country, Region and Customer Name
    We would use these parameters as filters on the target report and our record selection formula would look like this:
    {Country} = {?Country} and {Region} = {?Region} and {Customer Name} = {?Customer Name}
    We would then link the Main reports ‘Country’, ‘Region’ and ‘Customer Name’ with these parameters
    Now on the Main report Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Check the option ‘A Website on the Internet’ and click on the formula button in ‘Hyperlink information:”; the formula should be as follows:
    “/OpenDocument/opendoc/openDocument.jsp?iDocID=6472&lsSCountry=”&GridRowColumnValue(“Customer.Country”)&” &lsSRegion=”&GridRowColumnValue(“Customer.Region”)&” &lsSCustomer+Name=”&GridRowColumnValue(“Customer.Customer Name”)
    When any summary value is clicked in the Cross-tab, the corresponding Country, Region and Customer Name are passed as values to the parameters of the target report
    Hope this helps!
    -Abhilash

  • Export current view or drill down report

    Post Author: Rainer
    CA Forum: Exporting
    My Enviroment: CR XI, Delphi,  ActiveXReportViewer Hello together,how can I export the current view or a drilled down report with the COM object.I didn't find a way to get the current view object (IReport) I think  there must be a solution, because the default export method can export the current view.Thanks Rainer 

    Post Author: jarrodnewman
    CA Forum: Exporting
    My setup isn't exactly the same but this might help you:  I had this problem with Crystal.Net in Visual Studio 2005.  This link helped me resolve it.  http://diamond.businessobjects.com/node/1956
    My export routine used to just export the ReportDocument object.  But this object does not contain any information on the currently displayed group level.  So when I built a report modeled very closely after the sample 'World Sales Report.rpt' my export routine would only export the main view even if I was drilled down into other group levels of the report.  I learned that the CrystalReportsViewer object is what contains the drill-down level in the ViewInfo.ViewContext object.  So the link above solved this for me. 
    As a side note, I also had to manipulate suppressing and unsuppressing sections on export which can't be done via the CrystalReportsViewer object.  So I had to save a copy of the current ViewInfo object to local variable.  Then I modified the ReportDocument object to unsuppress and suppress certain sections.  Then I set this modified ReportDocument object as the RecordSource of the CrystalReportsViewer object and passed as parameters the new NonHTTPCachedReportSource object and the saved ViewInfo object to my new export routine.  This allowed me to preserve the drill-down view properties but apply it to a different ReportSource.  I can supply (c#) code if needed.  ( I don't usually show the ReportHeader or PageFooter sections in my online view of reports but I need to show them when I export a report)...
    - Jarrod ([email protected])

  • Bubble Chart drill down issues

    I have a filter and a bubble chat with 7 series. The chart is showing up bubbles with different size and colors as per the settings when I chnage the filter
    The problem is with drill down
    I want to drill down to a Bar chart when I click on bubbles. Each bubble click will drill down data into that bar charchart as a pop up. I know how to do it as I have done it in the past with other components.
    But when I use drill down with bubble chart, I have to assign separate destination area for each series which makes it difficult to drill down into a chart. What i want is the bubbles to drill down data into a single row so that I can map the Y-axis of chart component to that row and X axis as fixed labels. But I am not able to do that. Moreover once inserted there is no way to clear the destination cells.
    However if I use data in range options in bubble chart then I can use drill down as I get only one series in that case. But that method also has limitations.
    1. I am not able to display series name on the bubbles. It doesn't make any sense to show bubbles without any labels.
    2. All bubbles are of same color.
    Is it possible to overcome above two limitations when using data in range option?
    Thanks

    Hi Tarun,
    as a workaround you could define a special area as mapping area for the X-Y-chart.
    This area is filled via excel formulas from the bubble chart drill down destinations. You can concatenate the values from the drill down target areas, like "=A4&A5" etc. Make sure to clear all cells except the actual drill down target cells.
    Hope this helps,
    best regards
    Heiko

  • Rank function breaks drill down 11g

    I have a simple drill down report standard hierarchy and am having a weird issue with the rank function.
    This report works on 10g but the upgraded 11g version does not.
    When I drill down past the 2nd level it adds an is null filter to the revenue column.  This is also the column we are using to base our rank function.
    If I move the rank column to the first or last position in the table the drills work perfectly.  If I move it to the second column it breaks on the first drill instead of the 2nd.
    It works perfectly if drilling on the headings instead of the values.  That seems to point to some sort of null coming through when being passed.  I've tried using an ifnull and a case statement and neither method works, it just applies the is null filter to the entire column formula.
    The client doesn't want to change the position of the rank column so that work around will not do.  Any ideas?

    A similar thread was recently talked about here:
    In OBIEE charts, how do you make drill downs work on custom formulas?
    With a calculated column, you need to make sure the source query and destination query have the EXACT same formula and the same name for the field. If it is not 100% identical, it may not work correctly. (I typically use the NAVIGATE function to get to the second query rather than the Drill function.)
    Now in some cases, if you try to create a second drill down query with more details in it, the original formula doesn't work the way you want it to. The calculated formulas have to make sense in both source query and destination query in order to work properly. If you have a ranking of the Top 5 Products in the source query, the destination query also has to have the same ranking of Top 5 products in order to work. If you add more fields into the destination query (e.g., adding on product attributes, or # of records associated with that product name etc.), then sometimes the ranking / aggregation in the destination doesn't add up the same way. This causes the system to think that the formulas are different and prevents the drill down.
    I managed to get around this by having a 3rd query in between the original summary view and the detailed data view. So the sequence would be (for example):
    - Dashboard based summary query (including the calculated ranked product names formula)
    - drill down into virtually identical query (add on one slight bit of difference here, for example adding on a second Product Name field ... not a calculated version, but the actual name). Create a drill down this time by clicking on the regular Product Name field (don't drill down on the custom formula)
    - final detailed drill-down query
    You can format this intermediary drill down query to explain to users that they need to click a second time.
    It's not ideal, but it should work. Hope this helps.
    Ted

  • Drill down in Cross tabs

    Is there any possibility to drill down in Crosstabs

    Hi,
    Yes you can! You'll however need to create a separate report that will act as the dril-down report.
    There are two ways: The first method is using the u2018Another Report Objectu2019 and the second method is using an u2018OpenDocu2019 URL
    Report A would act as the Main report and Report B would be the report that would be drilled-down into. The target report needs to have the same groups as the Crosstab Report(Main report).
    -Abhilash

  • Xcelsius Bubble Chart - Drill Down Issues

    Hi ,
    Product : Xcelsius SP 3
    I have a bubble chat with 7 series. The chart is showing up bubbles with different size and colors as per the settings.
    The problem is with drill down
    I want to drill down to a X-Y chart when I click on bubbles. Each bubble click will drill down data into that X-Y chart as a pop up. I know how to do it as I have done it in the past with other components.
    But when I use drill down with bubble chart, I have to assign separate destination area for each series which makes it difficult to drill down into a chart. What i want is the bubbles to drill down data into a single row so that I can map the Y-axis of chart component to that row and X axis as fixed labels. But I am not able to do that. Moreover once inserted there is no way to clear the destination cells.
    However if I use data in range options in bubble chart then I can use drill down as I get only one series in that case. But that method also has limitations.
    1. I am not able to display series name on the bubbles. It doesn't make any sense to show bubbles without any labels.
    2. All bubbles are of same color.
    Is it possible to overcome above two limitations when using data in range option?
    Please help if someone has encountered this issue. There has to be some solution for this.
    Thanks,
    Tarun

    Hi Tarun,
    as a workaround you could define a special area as mapping area for the X-Y-chart.
    This area is filled via excel formulas from the bubble chart drill down destinations. You can concatenate the values from the drill down target areas, like "=A4&A5" etc. Make sure to clear all cells except the actual drill down target cells.
    Hope this helps,
    best regards
    Heiko

  • ABAP reports to ABAP Objects

    Hi all,
    What are the steps to be taken while converting a normal ABAP report program to ABAP objects? Also, How do we write a module(of a module pool program) in ABAP objects?
    Thanks in Advance,
    Aswin

    Use methods of a class instead of subrouties wherever possible.
    Declare the global variables in the attributes section of a class.
    Make sure that your design itself is more data centric than process centric.
    Regards,
    Ravi

  • How to setup the drill down on union report

    Hi,
    I'm setting the union report.
    I want to set the drill down to another report.
    But I can't setup it.
    Would you please tell me how to setup.
    Thank you.

    Hi Hemlatha
    In Crystal Reports, to prevent the ability to drill down into a subreport when published on the Web, add a text object that is filled with blank spaces, created by pressing the 'Space Bar' and 'Enter' for line returns, to eclipse the subreport.
    This workaround is applicable only to subreports that does not grow in size. For example, subreports that display only a chart or graph.
    Steps to Add a Text Object over a Subreport
    1. In the Crystal Reports Designer of the main report, insert a text object over the subreport.
    2. Resize the text object to be the same size or a little larger than the subreport object on the main report.
    3. Fill the text object with blank spaces created by pressing the 'Space Bar' and 'Enter'. This is necessary because resizing a text object without
    the blank spaces will not maintain its size when it has been published on the Web.
    ====================
    NOTE:
    You can format the text object with a hyperlink to another report, another file or a URL.
    ====================
    Now, when the Crystal report is previewed on the Web, the text object that fully eclipses the subreport will prevent the ability to drill down into it.
    Regards
    Girish

Maybe you are looking for

  • How do you remove a web site from popular list?

    How do you remove a web site from popular list?

  • BPM CACHE REFRESH -

    Hi Guys:   I would like to capture the Customer Credit Memo to create alert message with it when there is already exists in R/3. I am using BPM, in the BPM i created container element P_SETTNO to capture the customer credit memo number from XPATH exp

  • I bought a new ipod touch to replace my old one that did not have icloud.  How do I erase my old ipod?

    I just purchased a new ipod touch to replace my old ipod touch.  The reason I bought a new one is I wanted one that had the icloud that I could sync to my ipad and iphone.  I am going to give my old one to my husband.  I plugged my new ipod touch int

  • OfficeJet 8600, offline wireless connection lost;

    i have an officejet 8600  that ive been having about a year its connected to my pc wirelessly, i am running windows 7 on pc, every so often my pc will say that my printer is offline but the printer says it is still connected to the network i have pri

  • Migration of drools to oracle business rules

    hi, im trying to migrate JBOSS drools to oracle java business rules and im new to both of these , by googling i got info of how these drools work and bt when it comes to java business rules im nt able to find any info of how it works and how to write