Is ALV possible for this report layout?

Hi,
I'd like to know if I can create this layout in ALV (layout as seen below):
......................|..........Column Header1............|.......Column Header2..........|  ...
......................|.Col Header3..|..Col Header4.....|..Col Header5.|.Col Header6.| ...
Row header1...|.....data..........|......data............|.......data........|......data.......| ...
Row header2...|.....data..........|......data............|.......data........|......data.......| ...
Row header3...|.....data..........|......data............|.......data........|......data.......| ...
If this is possible, can you give me an idea how can this be done?
Thank you so much for taking time to read my post.
Best regards,
Jen
Message was edited by:
        Jen Abap

i will suggest you to go for classical report because it will be more easier ... but in alv list display you can achieve this kind of thing... just check this prog whether it suits you or not....
type-pools : slis.
tables : mara,marc,mard,makt.
data : begin of imara occurs 0,
       matnr like mara-matnr,
       mtart like mara-mtart,
       end of imara.
data : begin of imarc occurs 0,
       matnr like mara-matnr,
       werks like marc-werks,
       end of imarc.
data : begin of imard occurs 0,
        matnr like mara-matnr,
        lgort like mard-lgort,
       end of imard.
data : begin of imakt occurs 0,
       matnr like mara-matnr,
       maktx like makt-maktx,
       end of imakt.
data : begin of itab  occurs 0,
       rowheading(16),
       matnr like mara-matnr,
       mtart like mara-mtart,
       werks like marc-werks,
       lgort like mard-lgort,
       maktx like makt-maktx,
       end of itab.
data : ifieldcat type slis_t_fieldcat_alv,
       wfieldcat type slis_fieldcat_alv,
       ilayout type slis_layout_alv,
       IEVENT    TYPE SLIS_T_EVENT,
       WEVENT    TYPE SLIS_ALV_EVENT.
data : tabix(3).
select-options : s_matnr for mara-matnr obligatory.
start-of-selection.
perform get_data.
perform build_finaltab.
perform build_fieldcat.
perform build_layout.
perform build_eventtab.
perform displaydata.
*&      Form  get_data
*       text
*  -->  p1        text
*  <--  p2        text
FORM get_data .
select matnr mtart into table imara from mara where matnr in s_matnr.
if not imara[] is initial.
select matnr werks from marc into table imarc for all entries in imara
                                   where matnr = imara-matnr.
select matnr lgort from mard into table imard for all entries in imara
                                   where matnr = imara-matnr.
select matnr maktx from makt into table imakt for all entries in imara
                                   where matnr = imara-matnr.
endif.
ENDFORM.                    " get_data
*&      Form  build_finaltab
*       text
*  -->  p1        text
*  <--  p2        text
FORM build_finaltab .
loop at imara.
tabix = sy-tabix.
move-corresponding imara to itab.
read table imarc with key matnr = imara-matnr.
itab-werks = imarc-werks.
read table imard with key matnr = imara-matnr.
itab-lgort = imard-lgort.
read table imakt with key matnr = imara-matnr.
itab-maktx = imakt-maktx.
concatenate 'Row no' tabix into itab-rowheading separated by space.
append itab.
endloop.
ENDFORM.                    " build_finaltab
*&      Form  build_fieldcat
*       text
*  -->  p1        text
*  <--  p2        text
FORM build_fieldcat .
wfieldcat-fieldname = 'ROWHEADING'.
wfieldcat-col_pos = 1.
wfieldcat-outputlen = 15.
wfieldcat-seltext_l = ''.
append wfieldcat to ifieldcat.
clear wfieldcat.
wfieldcat-fieldname = 'MATNR'.
wfieldcat-col_pos = 2.
wfieldcat-outputlen = 18.
wfieldcat-seltext_l = 'Material no'.
append wfieldcat to ifieldcat.
clear wfieldcat.
wfieldcat-fieldname = 'MTART'.
wfieldcat-col_pos = 3.
wfieldcat-outputlen = 10.
wfieldcat-seltext_l = 'Mat gr'.
append wfieldcat to ifieldcat.
clear wfieldcat.
wfieldcat-fieldname = 'WERKS'.
wfieldcat-col_pos = 4.
wfieldcat-outputlen = 10.
wfieldcat-seltext_l = 'Plant'.
append wfieldcat to ifieldcat.
clear wfieldcat.
wfieldcat-fieldname = 'LGORT'.
wfieldcat-col_pos = 5.
wfieldcat-outputlen = 10.
wfieldcat-seltext_l = 'Stor loc'.
append wfieldcat to ifieldcat.
clear wfieldcat.
wfieldcat-fieldname = 'MAKTX'.
wfieldcat-col_pos = 6.
wfieldcat-outputlen = 30.
wfieldcat-seltext_l = 'Material desc'.
append wfieldcat to ifieldcat.
clear wfieldcat.
ENDFORM.                    " build_fieldcat
*&      Form  build_layout
*       text
*  -->  p1        text
*  <--  p2        text
FORM build_layout .
ilayout-no_colhead = 'X'.
ENDFORM.                    " build_layout
*&      Form  build_eventtab
*       text
*  -->  p1        text
*  <--  p2        text
FORM build_eventtab .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
   EXPORTING
     I_LIST_TYPE           = 0
   IMPORTING
     ET_EVENTS             = IEVENT
*   EXCEPTIONS
*     LIST_TYPE_WRONG       = 1
*     OTHERS                = 2
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  READ TABLE IEVENT INTO WEVENT WITH KEY NAME = 'TOP_OF_PAGE'.
  IF SY-SUBRC = 0.
    WEVENT-FORM = 'TOPOFPAGE'.
    MODIFY IEVENT FROM WEVENT INDEX SY-TABIX.
  ENDIF.
ENDFORM.                    " build_eventtab
*&      Form  displaydata
*       text
*  -->  p1        text
*  <--  p2        text
FORM displaydata .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
*   I_INTERFACE_CHECK              = ' '
*   I_BYPASSING_BUFFER             =
*   I_BUFFER_ACTIVE                = ' '
   I_CALLBACK_PROGRAM             = sy-repid
*   I_CALLBACK_PF_STATUS_SET       = ' '
*   I_CALLBACK_USER_COMMAND        = ' '
*   I_STRUCTURE_NAME               =
   IS_LAYOUT                      = ilayout
   IT_FIELDCAT                    = ifieldcat
*   IT_EXCLUDING                   =
*   IT_SPECIAL_GROUPS              =
*   IT_SORT                        =
*   IT_FILTER                      =
*   IS_SEL_HIDE                    =
*   I_DEFAULT                      = 'X'
*   I_SAVE                         = ' '
*   IS_VARIANT                     =
   IT_EVENTS                      = ievent
*   IT_EVENT_EXIT                  =
*   IS_PRINT                       =
*   IS_REPREP_ID                   =
*   I_SCREEN_START_COLUMN          = 0
*   I_SCREEN_START_LINE            = 0
*   I_SCREEN_END_COLUMN            = 0
*   I_SCREEN_END_LINE              = 0
* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER        =
*   ES_EXIT_CAUSED_BY_USER         =
  TABLES
    T_OUTTAB                       = itab
* EXCEPTIONS
*   PROGRAM_ERROR                  = 1
*   OTHERS                         = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " displaydata
form topofpage.
write : / sy-uline.
write : /17 sy-vline,28 'Contents from MARA',47 sy-vline,
         50 'plant & strg loc',69 sy-vline, 78 'Matrl desc'.
write : / sy-uline.
write : /17 sy-vline,22 'Material no',36 sy-vline, 39 'Mat gr',47 sy-vline, 48 'Plant',58 sy-vline,
        60 'strg loc',69 sy-vline.
endform.
this is a test prog just change as per your requirement.
regards
shiba dutta

Similar Messages

  • Default ALV format for MB5T Report

    Dear Experts ,
    I want to have a defalut selection of ALV format for MB5T report .
    How can I do this .
    Regards
    Anis

    Hi Chakrapani ,
    Please suggest if there is any other way to tackle it without the intervention of ABAPer .
    Regards
    Anis

  • Report date 2007.10.31 is invalid for this report(S_ALR_87011963)

    Hi,
       We checked 2007/10 Asset balance via report(S_ALR_87011963). We get the following error. Could you pls let me know why we can't run 2007/10 Asset balance?Thanks.
    =======================
    Report date 2007.10.31 is invalid for this report
    Message no. AU 116
    Diagnosis
    You can only run reports for closed or future fiscal years using a report date on the last day of a fiscal year.
    Procedure
    Correct the report date as necessary.
    The last day of the fiscal year in company code 0360, in which the report date lies, is 2007.12.31.
    ========================
    best regards
    Park Han

    Hi Park
    Assets reports can be run as at month-end date (not any date). Therefore check whether 31.10.07 is the month-end date for Oct.
    Regards
    NW

  • What are all the tables used for this report:

    hi
    what are all the tables used for this report:
    report:
    •     <b>Stock Report, which will give opening balance, receipt, issue, and closing balance for any given Duration for any material.</b>
    thanks in advance

    Tables: MSEG, MKPF, MARD.
    FOR REFERENCE SEE TRANSACTION : MB5B.
    Message was edited by: Sharath kumar R

  • How to get total,maximum,mimumum no. of cases for this report

    Description:     Reason For Contact For Customer - This report will provide the total number of cases created for a particular Reason For Contact for a particular Customer with a valid Business Code. This report will also provide the Maximum, Minimum and Average number of cases created for a particular Reason For Contact for that particular type of Customer. This report will take From Date, To Date, Agent Group and Business Code as inputs and generates the report on the screen. All the input criteria will be mandatory.
    See the attachment for the Report.
    NOTE :1) FOR TOTAL,WE HAVE COUNT NUMBER OF CASES CREATED for a particular Reason For Contact for a particular Customer with a valid Business Code
      2) FOR Maximum, Minimum and Average CONSIDER number of cases created for a particular Reason For Contact for that particular type of Customer.
       For this report,I am using 5 tables. In the table ScaseParty  i have C_Bus_Code,C_cust_type coulumns are there.
      I am taking Input Criteria For Business code(ie c_bus_code).suppose business code is 'F0106',I have to get how many cases(means records) are there for a particular Reason For Contact for that Business Code.I AM GETTING THE TOTAL BUT
    for getting maximum,minimum,average , i have to check the C_cust_type For that Business code ,after that I have to take all the business codes for that C_Cust_Type and with in the business codes ,i have to take the maximum number of cases which business code have for that particular Reason for contact For that particular customer type.
    Eg: Reason for contact  Businesscode   customer type   
         Delivery Timing     0306            1        
         Delivery Timing     0306            1
         Delivery Timing     0310            1
         Delivery Timing     0310            1
         Delivery Timing     0310            1  
         Delivery Timing     0310            1  
       In this way i want the result
        Maximum =4 since, for reason for contact(delivery timing) for that customer type(customer type =1),the maximum no. of cases are 4 bcz, business code = 0310 comes 4 times.
    Minimum =2 bcz, business code = 0306 comes 2 times.
       The Problems i am facing
    1)  Since i have taken the input criteria Business code = 'f0106' ,the data filters in the where condition and the getting the number of cases exist for that business code(f0106) for that Contact of Reason data only.But i have to take all the business code exists for that Particular type of customer for that Particular reason for contact for getting the max,min,avg.
      I can't handle max,min,avg in one report since it checks total cases for that Business code only.
      SO,I THINK I HAVE TO INVOKE A SUBREPORT PASSING THE C_CUST_TYPE,iSN'T IT????
    2) iF I TAKE THESE THINGS IN SUB REPORT,HOW CAN I find out the maximum number of case with in the business codes for reason for contact for that particular customer type.
      CONSIDER THE ABOVE EXAMPLES, I AM GETTING 3 CASES FOR CODE = 0306 N 2 RECORDS FOR CODE= 0310 ,hOW CAN I GET mAXIMUM cASES ie 3  BY COMPARING THESE TWO CODES FOR THE DELIVERY TIMING  .  IS THERE ANY FUNCTION??????
    In which way i have to handle this report.
      Regards,
      Vijay
      mail : [email protected]

    Hi Vijay,
    The most efficient way to acheive what you want will be to create a stored procedure or command object in which you have a subquery that calculate your maximum, minimum and average values.
    If you are looking at a solution within Crystal Reports without having to write a SQL Query, then as you said, you can use a subreport that will returns the cases created for a particular Reason For Contact for that particular type of Customer.
    ( You will need to link the subreport to filter the data down )
    Then you can calculate the minimum values in the subreport by using the Minimum function and manually counting the values in a variable, the formula will look like:
    WhilePrintingRecords;
    Shared NumberVar MyMinimum;
    If Minimum({Business Code}) = {Business Code} Then
       MyMinimum := MyMinimum + 1;
    Insert the formula in the details section of the subreport.
    This will count the number of time the minimum Business Code appears in the subreport.
    You can create a similar formula for the maximum values by using the Maximum function.
    As for the average, you can create a summary that counts the number of of Business Code, divided by the distinct count of Business Code, so it will give you the average. The formula will look like:
    WhilePrintingRecords;
    Shared NumberVar MyAverage;
    MyAverage :=
    ( If DistinctCount({Business Code}) <> 0 Then
         Count({Business Code}) / DistinctCount({Business Code}))
    Then you can display the above shared variables on your main report.
    Hope this help!
    Regards,
    Patrick

  • The database logon information for this report is either incomplete or inco

    getting below error while opening a report from infoview
    The database logon information for this report is either incomplete or incorrect.
    Unable to retrieve Object.
    The database logon information for this report is either incomplete or incorrect.
    They can open the same report from crystal designer.We have checked the database and it is pointing to correct one in process->database of CMC.
    They have created the report with windows NT credentials.
    Can any one help in this regard.
    Thanks,
    Gokul.

    How did you set up NT auth on the report? With CR Designer I'd assume you are using a trusted connection? Which option did you choose in the CMC for DB credentials? Prompt, same login, or SSO (I don't have the CMC screen in front of me right now so I'm abbreviating the options)?
    Regards,
    Tim

  • Pricing at time of goods receipt not possible for this item

    We're receiving error Message no. 06634 Pricing at time of goods receipt not possible for this item when trying to change the PO Pricing Date Category from No Control to 5 GR Date.
    The error message is clear and reads:
    Pricing at time of goods receipt not possible for this item
    Message no. 06634
    Diagnosis
    For this purchasing document item, you wish to specify that a new price determination process is to be carried out at the time of goods receipt.
    System Response
    Pricing cannot be carried out for the item at the time of goods receipt because the price was either entered manually or copied from the last purchasing document.
    The scenario is that we have a contract reference on a PO and the contract condition records are to be maintained as a new price is valid each day.  The problem without this is that the new pricing will not be reflected in the GR.
    What is the solution to overcome this issue?
    NOTE:  the Info Record conditions are not being read during GR as the PO references a contract.

    For further clarification the PO is referencing a contract and as such not pulling the pricing information from the info record and instead pulling the price from the conditions on the contract. 
    I want to change the pricing date category from " No Control" to "5 GR Date" however I'm receiving the error message stated and unsure of how to make this change.
    The intent is not to create a new PO each day the condition record is created and instead we are utilizing one PO referencing one contract with multiple date delimited condition records containing the daily pricing.

  • The database logon information for this report is either incomplete

    Hello All
    I have installed a full licensed version of crystal reports server 2008 onto a windows server 2003 virtual server.
    I am getting the following error message when trying to run some reports when i am logged in as the adminstrator
    'The database logon information for this report is either incomplete or incorrect.'
    Some reports work and some dont, I use the same login information for all reports, same username and same password, same machine datasource and all the reports  run fine in crystal designer 2008
    The only difference i can see is that the error mainly occurs with reports that use stored procedures, the ones that dont work fine.
    I not sure how to resolve this problem as i have tested the login and the datasoure and it works fine, just not through crystal reports server

    Further to this i've realized that this only happens with reports which have been updated to use a stored procedure from a query file. And the reports dont use any repository objects

  • The database logon information for this report is either incomplete or incorrect

    Post Author: mchishty
    CA Forum: Authentication
    We have published a crystal report (XI) to InfoView (XI R2 SP2) and we are getting the following error for the database login.
    "The database logon information for this report is either incomplete or incorrect."
    The report is working fine in Crystal Reports XI.
    The report is using the OLE DB connection to ORACLE.
    The same server is running WebI reports against the same ORACLE DB. Thanks

    Hi,
    We configure DSN with windows authentication and report in CMC has the configuration information like this
    Server Name: Populated
    Database: populated
    User: Empty
    Password: Empty
    For the report to run, do we have 6400 to 6490 ports open?
    we have port 1433 open between database and CR server but not the 6400 - 6490 ports open?
    Thanks in advance

  • What are the tables used for this Report

    hi all..
    i am a fresher for ABAP. i need the help.
    what r the tables used for this report.
    Reports provide pending order details according to Material wise and customer wise for particular month.
    thanks in advance
    RK.Ashokkumar.
    9994262112.

    hi
    good
    try with these tables,
    MARA
    KNA1
    thanks
    mrutyun^

  • Adobe Offline Form - Parse method is not possible for this type

    Hi All,
    I have developed an application for the offline scenario of interactive adobe form. I tried to load the adobe form from my desktop. After pressing the button "Display form" it throws an error "Parse method is not possible for this type".
    If I include wdContext.getNodeInfo().getAttribute("pdfObject").getModifiableSimpleType() in the doInit() method of the view I receive this error -
    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(UploadView.pdfObject): must not modify the datatype of a mapped attribute
    When I comment it out and upload I receive the error enclosed -
    Parse method is not possible for this type
    Can someone please help me with a step by step solution to this problem?
    Any help is highly appreciated.
    Many thanks,
    Divya

    Hi Divya,
    Please try to do it as stated below:
         IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("pdfObject");
         ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)type;
    Try putting the code in wdInit() or wdDoModifyView().
    Let me know if you still face the issue.
    Regards,
    Arafat

  • Parse method is not possible for this type

    I have a file upload component and one button in a view.
    I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.
    help me out.
    Thanks In advance

    Hi,
    Thanks for your response. I have written the following code in wddoinit():     
    IWDAttributeInfo attributeinfo = wdContext.getNodeInfo().getAttribute(IPrivateSubstanceDocView.IFileUpload02Element.DATA);
        attributeinfo.getModifiableSimpleType();
    fileUpload02 is my context.
    but I am getting a null pointer exception over here.
    can ypu please help it.
    Actually the case is this is a window, which is opening on click of a hyperlink on another View.
    With the action method I am calling this View.
    Thus on click of a hyperlink just I am opening a new  View then here I am a browse button etc...
    PLease help if you can

  • Parse method is not possible for this type Exception in web dynpro

    I have a file upload component and one button in a view.
    I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.
    help me out.

    Hi sridhar,
    Use this code for Upload
    context u create one attribute(up),u assign the data type as "Resource"(which is dictionary type)
    InputStream text = null;
        int temp = 0;
        try
             File file = new File(wdContext.currentContextElement().getUp().getResourceName());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getUp()!=null)
                  text = wdContext.currentContextElement().getUp().read(false);
                   while((temp=text.read())!=-1)
                                                                       op.write(temp);
             op.flush();
             op.close();
        catch(Exception e)
         e.printStackTrace();   

  • What r all the tables used for this report. please reply

    hai,
    what r all the tables used for this report.
    report :
    <b>
    •     Report to display all finished goods that go out-of-stock. Developed a drill down report for materials details (totals and subtotals for material stock values by material group and material type).</b>
    thanks in advance

    hi Ashok,
    Check this out
    http://www.allsaplinks.com/tables.html
    http://www.sapgenie.com/abap/tables.htm
    Regards,
    Santosh

  • What r the tables used for this report.

    hi all..
    i am a fresher for ABAP. i need the help.
    what r the tables used for this report.
    Reports provide pending order details according to Material wise and customer wise for particular month.
    thanks in advance
    RK.Ashokkumar.

    Hi Ashok,
    this is easy to do.
    Open Two SAP Screen with same user ID.
    Run SQL trace using ST05 transaction.Open ST05 transaction in One and make
    Trace on ,Run the report in another screen.
    Once report run is over.End the trace process and click on display trace in same ST05 transaction.There is a click button on ST05 Transaction screen to start trace
    process,End trace process and Display track process.
    The SQL trace will  give you all the table details which is used in that particular report.
    You have not mentioned about the report name so I have suggested this way.
    regards,nishant
    Please reward if this helps

Maybe you are looking for

  • MRP Run For Credit Blocked Sales Orders

    Hi Does any one know how to prevent the generation of planned orders for Sales orders which have been credit blocked. At the moment the reservation is still visible on MD04 and is therefore planned during the MRP run. As a result manufacturing contin

  • Opening +Receipts-isseue =Closing Stock Query

    Dear Experts, I need a query with condition from to date for stock movement. Following Column I required in Query Item code, Item description, Opening +Receipts-issue =Closing Stock Query Thanks in Advance. Regards MANGESH PAGDAHRE. Edited by: MANGES

  • How run stored procedure in Crystal report?

    I have table from query in report, but first I need to run stored procedure in report. How I need to do it?

  • IPad 2 Memory Space Types???

    Helo folks Ipad 2 .. Is it will be the same memory types like 16 32 64 GB ? Or some new things will pop? Thanks in advance

  • HT201263 How to Unlock a disabled iPhone 4

    I put in a new password to lock my phone and it wouldn't work now my phone is disabled How do I fix this?