Additional rows in InfoSet extract (SQ02)

I am trying to build an InfoSet with custom code to read the classification values for materials, using MARA as a base table.
For each record from MARA, I am reading the classification for the material using function module CLAF_CLASSIFICATION_OF_OBJECTS, so for each material selected, I have to produce multiple records in the infoset.
To do this, I have defined extra fields in the InfoSet, which I am filling with custom code in the "Record Processing" code section.
However (and here is the problem), I cannot add records for the classification records using EXTRACT (like the generated program is doing), because the field group %fg01 is not known at the time I am trying to generate the InfoSet.
How else can I add records to the data produced by the InfoSet?

Hi,
Table RESG and BKPF are linked BKPF-AWKEY.
Now first of all if you create an additional field, that field will not appear in the join.
One way will be to create an infoset with direct read to table RSEG, and then inside add additional fields for each BKPF field.
Then in the code
CONCATENATE RSEG-BELNR RSEG-GJAHR into MIROYEAR
select single ....
into (ADDFIELD1, ADDFIELD2, ADDFIELD3,.....)
from BKPF
where awkey = miroyear.
Regards,
Khusro Habib

Similar Messages

  • How to extract data from a Infoset in SQ02?

    Hi,
       I wish to extract data from a infoset in SQ02, how do i link a infosource with this infoset?
       Any advise is welcomed.
    Thanks,
    CK

    Hi,
      I got my answer, goto RS02 to create a datasource to link to this Infoset.

  • Error while creating - Infoset in SQ02

    This is the error, i am getting when i am trying to create - Infoset in SQ02. Can any one help to resolve, check and generate
    the infoset
    Error in parameter PYSORT
    Statement concluding with "...TYPE" ended unexpectedly.

    You could try applying OSS note 1117474. You may want to review this note to see whether it fts your case..
    Hope this helps.

  • Formula that creates additional rows

    Greetings everyone. I am fairly new to Apple numbers. I have a spreadsheet that calculates an investment return for clients year by year based on their age. I need the spreadsheet to go out to the clients age 100. There is an input page that I put in the clients age as well as additional information that it uses to calculate the investment return. It then takes the clients age and starts off the first column (client age) with that value. Each row has about 5 columns with different information being displayed. I am looking for a way for numbers to take the clients age column and automatically continue to create additional rows until it gets to the clients age 100. I would want each additional row to have the same formatting, formulas, and color scheme as the row before it. Is their a formula that would do this or do I need to create some sort of script?
    Thank you,
    Matt S.

    You can put the last row (the totals) in a footer and it will always be there or it can be a regular row that is TRUE so it is not hidden.
    If you make the table 125 years in length and automatically hide the unnecessary rows as I have outlined, you won't have to add rows, subtract rows, or tailor it in any other way for each client. It will tailor itself to the correct length based on the age you specify on the client's input page. And next year, when they are a year older, you can change their age in the client input page and the table will change accordingly.
    Depending on how you handle the formulas within the spreadsheet, you can sum things up the normal way with the SUM function or you can sum them up with SUMIF where the "if" is "if the row is TRUE". In other words, if every row that is FALSE has zeros, you can use SUM; if the rows that are FALSE have nonsensical numbers, you could use SUMIF. Formulas for things like rate of return might take some finessing but they too can be done. Any charts you might have can be made to not show hidden data (it's a checkbox), so they too are not a problem.
    I guess I'm from the school of "if it can be done within Numbers, then do it within Numbers" versus throwing scripts into the mix. It will be more versatile and portable if it does not require a script because a script is a separate entity, not part of the spreadsheet. Also, if you make changes to the spreadsheet, you may have to make corresponding changes to the script. That's just my opinion. It's your call. I'm sure Yvan can set you up with a terrific script.

  • Webdynpro ALV - Adding an additional row

    Hi Friends,
    I want to develop an ALV report in Webdynpro ABAP as per the format mentioned in the below link. I want to have an additional row after the subtotal in ALV to show some calculation.As per the format below in the output after subtotaling the total operating revenue and total other income i would like to have an additional row to show the Total revenue(total operating revenue + total other income). Similarly after subtotaling the cost of sales, I would like to show the gross profit(total operating revenue - cost of sales) in an additional row. Please let me know whether this is possible in ALV. If so please advice me how to achieve it.
    http://www.imagebanana.com/view/gpl4ynnk/report_layout.jpg
    Regards
    SAPTechies

    Hi,
    I'm not sure but have you tried implementing the code you want after the total inside  end of page.
    There is another event called 'AFTER_LINE_OUTPUT' , try using them.
    Refer the below links for understanding how to use them.
    END-OF-PAGE
    http://help.sap.com/saphelp_470/helpdata/en/9f/dba04f35c111d1829f0000e829fbfe/content.htm
    Thanks.

  • ALV - Adding an additional row after subtotal

    Hi Friends,
      I want to develop an ALV report wherein I want to have an additional row after the subtotal in ALV to show some calculation.
    Please refer the below link for the report layout. In the ALV output after subtotaling the total operating revenue and total other income i would like to have an additional row to show the Total revenue(total operating revenue + total other income). Similarly after subtotaling the cost of sales, I would like to show the gross profit(total operating revenue - cost of sales) in an additional row. Please let me know whether this is possible in ALV Grid or List.
    http://www.imagebanana.com/view/gpl4ynnk/report_layout.jpg
    Regards
    SAPient

    Hi ,
    Please go through the below link it may help you .
    LInk : [Sub total text |http://wiki.sdn.sap.com/wiki/display/Snippets/DisplaysubtotaltextinALV+grid]
    Regards,
    Maruthi

  • Conditions in infoset query (SQ02)

    Hi, I´m working with BW 3.5 And I´m using infoset query(SQ02) for link two tables.
    The second table is linked with left other join, and I need more one condition in this table, I just want the data with max(date) in table two.
    For Example:
    Table 1:
    FIELD1  | FIELD2 | NET_PRICE
    800001  | 0010   | 100.00
    800002  | 0010   | 1520.30
    800003  | 0010   | 48.54
    Table 2:
    FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    900000 | 800001 | 20080101 |10
    900001 | 800001 | 20080210 |15
    900002 | 800003 | 20080101 |10
    Result of InfoSet query (Table1-FIELD1 link Table2-FIELD1 with left other join) :
    FIELD1  | FIELD2 | NET_PRICE | FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    800001  | 0010   | 100.00    | 900000 | 800001 | 20080101 |10
    800001  | 0010   | 100.00    | 900001 | 800001 | 20080210 |15
    800002  | 0010   | 152.30    | 000000 | 000000 | 00000000 |0 
    800003  | 0010   | 148.54    | 900002 | 800003 | 20080101 |10
    But the result should be:
    FIELD1  | FIELD2 | NET_PRICE | FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    800001  | 0010   | 100.00    | 900001 | 800001 | 20080210 |15
    800002  | 0010   | 152.30    | 000000 | 000000 | 00000000 |0 
    800003  | 0010   | 148.54    | 900002 | 800003 | 20080101 |10
    Is possible appear only the max(field4) for de left table 2 using infoset query (SQ02)?
    Thank´s!!

    Please check out this link and let me know if it is helpful..
    http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb449c455611d189710000e8322d00/frameset.htm
    When outputting using the SAP List Viewer, the code at TOP-OF-PAGE has no significance

  • Adding one additional row to table control of VA01

    HI all,
    I am working on free goods N:N senario which is not supported by sap standard.
    so we have decided to club all the material on the basis of material group and PSTYV = 'tann' in the table control of va01 and at the end of tann we have to display the free goods .The user exit is USEREXIT_MOVE_FIELD_TO_KOMP.
    Please help in in adding the additional row in table control of va01 (TCTRL_U_ERF_AUFTRAG).
    Even i have gone through all the thread in sdn and tried all the solution but none of the solution is working .
    plz quote solutions....
    thanks..
    Kundal.

    The user exit is USEREXIT_MOVE_FIELD_TO_KOMP
    Are you adding condition records, or adding free materials to VBAP?  If free materials to VBAP, you're in the wrong exit, I think....look for routines that allow you to add to internal table XVBAP in includes named like MV45AFZ*, and remember to set you UPDKZ to 'I'-insert if you're adding new rows.
    Not sure what you mean by not supported by SAP standard;  SAP does support free goods, via config!
    Edited by: BreakPoint on Mar 14, 2011 4:11 PM

  • ADDITIONAL ROW INSTANCES PROBLEM

    I am creating a form and I have the following issue:
    I have a dropdown list and a user can select one of two options. When the user selects one of the options, it populates the values for other dropdown lists that are within a row. I have created a button to add intances of the row and the issue is that the values are only populating on the dropdown list located in the first row and not on the additional rows created when the "Add Row" button is clicked. The PDF form is attached.
    I appreciate any help!!
    Thank you in advance!
    Monti

    Jono,
    Thank you for your suggenstion regarding the submit button. I tried your suggestion but what you suggested requires that the person submitting the form have a desktop mail application (eg. outlook) or save it and then emailing it. I am not sure if it is possible to do this using javascript, but I am looking for a way to have the form submitted without requiring the user to have an email address. I was able to accomplish this in an excel form using visual basic. below is the code I used in visual basic:
    Sub CDO_Mail_Workbook()
        Dim wb As Workbook
        Dim TempFilePath As String
        Dim TempFileName As String
        Dim FileExtStr As String
        Dim iMsg As Object
        Dim iConf As Object
            Dim Flds As Variant
        Set wb = ActiveWorkbook
        If Val(Application.Version) >= 12 Then
            If wb.FileFormat = 51 And wb.HasVBProject = True Then
                MsgBox "There is VBA code in this xlsx file, there will be no VBA code in the file you send." & vbNewLine & _
                       "Save the file first as xlsm and then try the macro again.", vbInformation
                Exit Sub
            End If
        End If
        With Application
            .ScreenUpdating = False
            .EnableEvents = False
        End With
        TempFilePath = Environ$("temp") & "\"
        TempFileName = "Copy of " & wb.Name & " " & Format(Now, "dd-mmm-yy h-mm-ss")
        FileExtStr = "." & LCase(Right(wb.Name, Len(wb.Name) - InStrRev(wb.Name, ".", , 1)))
        wb.SaveCopyAs TempFilePath & TempFileName & FileExtStr
        Set iMsg = CreateObject("CDO.Message")
        Set iConf = CreateObject("CDO.Configuration")
            iConf.Load -1    ' CDO Source Defaults
            Set Flds = iConf.Fields
            With Flds
                .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
                .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.att.yahoo.com"
                .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
                .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "[email protected]"
                .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
                .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
                .Update
            End With
        With iMsg
            Set .Configuration = iConf
            .to = "[email protected]"
            .CC = ""
            .BCC = ""
            .From = """Customer""[email protected]"
            .Subject = "Customer Service Request"
            .TextBody = ""
            .AddAttachment TempFilePath & TempFileName & FileExtStr
            .Send
        End With
        Kill TempFilePath & TempFileName & FileExtStr
        With Application
            .ScreenUpdating = True
            .EnableEvents = True
        End With
    End Sub
    THank you!!
    Monticino

  • BW - additional field in infoset

    Hi all ,
    I used data source with infoset and I added additional field into infoset . But additional fields did not come to the data source selection screen ( Field list screen ).  Is there a way to do this ?
    Can anyone help me ?
    Thnks a lot ..

    Thnks for answers ,
    I have just do that but there is no hided field . I haven't see the additional field  there already.
    I think it 'll more clear if  I tell about what am I doing step by step ;
    First , I created infoset in SQ01 with joinig tables LIKP -  LIPS .Then I added some additional field ; I collect different value from another table . Then I create field group called " ADD" in infoset and assigned additional fields that I created to "ADD " . Finally generate and saved infoset .
    Second , in RSO2 I create data source and joined with infoset . Then comes to selection filed screen .  Here was my problem ; there were no field that I added to infoset ,additional fields didn't appear
    Can I  explain it ?
    Thnks for help ..

  • Save the additional row

    hi,
    I have a form.it was designed by adobe livecycle. but when it is opened by reader and add new row in the trable and insert data in the row of the table I am only able to save the form with data only 3 default raw. but the additional raw is not saved. if I save it and open it again it willshow only the 3 rows and additional rows are vanished. how can I save the additional raw with inserted data?

    Make sure you activated "Automatically" to preserve the changes to your form when it's saved.

  • Creation of additional fields in Infoset SQ02

    Hi Experts,
    I'm a FICO consultant trying to create a query.
    Requirement : Link RSEG Table to BKPF Table in the join condition
    Link: RSEG-BELNR concatenated with RSEG-GJAHR = BKPF-XBLNR
    Now I'm trying to create an additional field in SQ02 named MiroYear and in the field code part i gave the below piece of code
    "CONCATENATE RSEG-BELNR RSEG-GJAHR INTO MIROYEAR."
    It shows no syntax errors. I added the same to the field group as well.
    Issue: The additional field (MIROYEAR) is not appearing in the join condition in SQ02.
    Is this the right way to create an additonal field? Have i made any mistake? Or any of you have any better ideas to join RSEG and BKPF in SQ02?
    Your quick response will be appreciated
    Best Regards
    Vimal

    Hi,
    Table RESG and BKPF are linked BKPF-AWKEY.
    Now first of all if you create an additional field, that field will not appear in the join.
    One way will be to create an infoset with direct read to table RSEG, and then inside add additional fields for each BKPF field.
    Then in the code
    CONCATENATE RSEG-BELNR RSEG-GJAHR into MIROYEAR
    select single ....
    into (ADDFIELD1, ADDFIELD2, ADDFIELD3,.....)
    from BKPF
    where awkey = miroyear.
    Regards,
    Khusro Habib

  • Populating Additional Field in InfoSet Query

    Hello,
    My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables.  We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
    The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table.  The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table.  If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
    The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables.  However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
    The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
    I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
    Thanks

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • Additional fields in infoset query can not be used as datasource fields

    I create one infoset query with additional fields (using ABAP code) in R/3. When I create datasource RSO2 using this infoset query, system only show all fields without additional fields that I enhanced in infoset query. Does that mean we can not get additional fields information in generic datasource creation that we enhanced in infoset query?

    dear Awa,
       you are enhanced some fields in r/3.right that fields are  shown in
    rsa6 select your data source click on display your datasource then select
    extract structure its shows how many fields are haveing particular
    datasource .or otherwise goto rso2 select your data source display
    double click on  your extractstructure  its show how many fields haveing
    the particular datasource. check the Rsa6 what ever fields you newly added that field default hide mode
    you remove the hide tickmark.

  • Additional field for Infoset in BI 7.0

    Hi
    I have created an Infoset with a cube and a masterdata object. Now my requirement is to have an additional field which i can not extend to cube or masterdata.
    Is it possible by any chance to add an additionla field to Infoset and write an abap code ?

    Any suggestions ?

Maybe you are looking for

  • Patch problem with adobe 9.3 download

    I am trying to download adobe 9.3 and keep getting the warning that I have to verify a patch with Adobe.  I've tried their online suggestions- a different browser and saving it to desktop to download.  Neither worked.  I'm looking for suggestions on

  • Why can't I use adobe flash player to open attachments

    Why can't I use adobe to open attachments - have downloaded latest version but still get a black page

  • Event for the List Box in ALV Grid Control

    Hello, I have the below urgent requirment. I have an ALV Grid Control built using ABAP Objects. In the grid, I have few fields and one of these fields is a List Box. Depending on the values selected, I need to enable or disable some fields. So, is th

  • Creative Suite CS6 Production Premium Language

    Sorry if this is the wrong place to post, I couldn't find a CS6 related one... Anyways... I recently bought the Creative Suite CS6 Production Premium as a student version. Now, in order to get the serial number, I have to verify online. There, I am a

  • Problems with line items

    Hi guys, I've some problems with the implementation of the solution described in HowTo guide "HowTo line items in IP..." . When I've activated the char. relationship as desribed like in the HowTo paper I get an error message, when I'm deactivating th