Idoc publication failed

Hi,
Do you guys know the possible reasons that could occurs the following error?
"Receiver exists , No filters , No conversion , Version conversion"
Thanks in advance.

Hi,
At we02 it have the following status:
status = 30
status text:
IDoc: 0000000000199593 Status: IDoc ready for dispatch (ALE service)
T100 text:
Receiver exists , No filters , No conversion , Version conversion
Thanks,
Luí

Similar Messages

  • Publications fail intermittently on XI 3.1

    Hello,
    We have publications that fail intermittently with the error:
    An exception was caught while scheduling the publication. (FBE60203) or
    Unable to find the infostore service.  Is your CMS running and configured properly? (FBE60002)
    com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to reconnect to the CMS xxx.ny2.xxx.net:6400. The session has been logged off or has expired. (FWM 01002)
    cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$LogonFailover: Unable to reconnect to the CMS xxx.ny2.xxx.net:6400. The session has been logged off or has expired. (FWM 01002)
    The publication log also invarably contains Unable to reconnect to the CMS xxx.ny2.xxx.net:6400. The session has been logged off or has expired. (FWM 01002).
    The publications are scheduled as follows:
    1. A program object is scheduled to kick off the publication. This program object passes values to the prompts in the publication at run time.
    2. The publications are scheduled as MHTML files to an FTP server.
    3. The publications are based on different tabs in Webi report
    Our environment consists of a full stack on a single server.
    Environment details:
    BO XI 3.1 Premium CPU on RHEL 4 (64 bit) (2.6.9-67.0.15.ELsmp)
    Oracle 64 bit
    Tomcat 5.5
    We schedule a lot of reports using a similar process flow. It is only the publications that fail.
    We have a case open too. I was hoping someone had seen something like this before.
    The entire publication log from the last time one of the publications failed is below:
    2009-01-26 18:45:27,761 INFO  [pool-4-thread-7] BusinessObjects_PublicationAdminLog_Instance_126761 - [Publication ID # 126761] - Running publication instance.
    2009-01-26 18:45:27,805 INFO  [pool-4-thread-7] BusinessObjects_PublicationAdminLog_Instance_126761 - [Publication ID # 126761] - The global delivery rule for this publication was met; publication processing will now begin.
    2009-01-26 18:45:28,015 ERROR [PublishingService:HandlerPool-39] BusinessObjects_PublicationAdminLog_Instance_126761 - [Publication ID # 126761] - An exception was caught while scheduling the publication. (FBE60203)
    com.crystaldecisions.enterprise.ocaframework.IManagedService$ManagedLogoffException: Unable to reconnect to the CMS xxx.ny2.xxx.net:6400. The session has been logged off or has expired. (FWM 01002)
         at com.crystaldecisions.enterprise.ocaframework.ManagedService.invoke(ManagedService.java:604)
         at com.crystaldecisions.sdk.occa.infostore.internal._InfoStoreEx4Proxy.queryEx3(_InfoStoreEx4Proxy.java:364)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(InternalInfoStore.java:708)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(InternalInfoStore.java:566)
         at com.crystaldecisions.sdk.occa.infostore.internal.QuerySettings.executeQuery(QuerySettings.java:94)
         at com.crystaldecisions.sdk.occa.infostore.internal.InfoObject.getParent(InfoObject.java:1377)
         at com.crystaldecisions.sdk.occa.infostore.internal.InfoObject.getParent(InfoObject.java:1363)
         at com.businessobjects.publisher.processing.AuditDetailHelper.buildPublicationPath(AuditDetailHelper.java:108)
         at com.businessobjects.publisher.processing.AuditDetailHelper.setupAuditDetails(AuditDetailHelper.java:72)
         at com.businessobjects.publisher.scheduling.SchedulingHelper.scheduleScopeBatch(SchedulingHelper.java:304)
         at com.businessobjects.publisher.processing.ScopeBatchHandler.run(ScopeBatchHandler.java:101)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    2009-01-26 18:45:28,028 INFO  [pool-4-thread-7] BusinessObjects_PublicationAdminLog_Instance_126761 - [Publication ID # 126761] - Publication scheduling complete.
    Once a publication fails, the only method to ensure success is to:
    1. Restart the CMS, Publication Job Server and Webi Processing Server
    2. Recreate the publication (remove the source, add it again)
    As an aside, I've had cases open twice before for the same issue. I closed them both because I can't replicate on demand (we were on XI3.0 RTM at that point).
    I'd appreciate any help.
    Thanks.
    Srinivas

    Mike,
    I still have the case open with support on this. While I am (still) unsure as to which session has logged off, support suggested that I do the following:
    Add
    -requesttimeout 3600000 on following servers.
    1.CMS
    2.Webi Processing Server.
    3.Adaptive job Server.
    4.Publication Job server.
    5.Input Server.
    This seems to have done the job, at least for now. I am still testing though.
    If your publication does fail with such an error, restarting the SIA could be a temporary solution.
    Let me know if you need anything else.
    Best,
    Srinivas

  • Crystal Reports Publication fails when using dynamic recipients

    Hi experts,
    We are facing a problem related with the BOE 3.1 Dynamic recipients Publication.
    We have created a Publication with just one Crystal Report based on a MDX Query.  We send the report in PDF format to email destinations
    Dynamic recipients are defined in a WebI report pulling data from a BW query universe. We can display the email, user ID, Use Name and other fields we would like to use as dynamic parameters.
    Server side trust seems to be configured (is there any way to test it is properly configured?).
    The Publication is working fine with enterprise recipients (which have SAP BW account), and each recipient receive its PDF by email.
    When we execute same report with dynamic recipients without selecting dynamic personalization parameters it is working fine. But when we select one dynamic parameter (which is coming from the WebI report we use for dynamic recipients) eg: Profit Centre, the Publication fails and we get a Database Connector error:
    2011-02-14 08:53:25,275 ERROR [PublishingService:HandlerPool-13] BusinessObjects_PublicationAdminErrorLog_Instance_31036 - [Publication ID # 31036] - Scheduling document job "P&L" (ID: 31,051) failed: Error in File ~tmp191067bfa343ff0.rpt: Database Connector Error (FBE60502) [1 recipients processed.]
    How can a dynamic parameter affect on the Database Connection?
    Does anyone have an idea about what could be wrong?
    Thanks!

    Ino, what do you mean for "technical name or the member unique name"? Are you talking about the SAP User name? So in the dynamic recipients we can find  these parameters:
    - Recipient Identifier (required):      
    - Full Name:      
    - Email:      
    In the Recipient Identifier I should refer to a SAP user?
    Dynamic recipients option is working for same recipients. The problem appears when I assign one parameter to a field coming from the dynamic webi report.It fails with the previously detailed error. This parameter assignment seems to be causing the Database Connector error.
    Message in CMC:
    2011-02-14 17:00:25,590 ERROR [PublishingService:HandlerPool-24] BusinessObjects_PublicationAdminErrorLog_Instance_31594 - [Publication ID # 31594] - Scheduling document job "B1 - P&L" (ID: 31,603) failed: Document for recipients {BD1~500/EVER} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients {EVER, JOHNDOE} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error (FBE60502) [4 recipients processed.]
    Error in the Adaptive jobserver trace does'nt give more details:
    |1c2fd2be-3ba1-f414-f8fa-e4f7b004f1ee|2011 02 14 17:00:18:974|+0000|==| | |jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0| 2560|4856|| |6187|1|11|2|CMC.WebApp|vwd2520:1624:39.23486:1|CMS.runJobs|localhost:8392:11648.936338:1|jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0.run|localhost:2560:4856.5:1|CntazqXlSEO7hcDJVIv11545bbb|||||||||||(.\src\reportdllerrors.cpp:140) ras21-cr: procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [707] with extended error string [Database Connector Error: ''
    Failed to retrieve data from the database.
    Failed to export the report.
    Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]. Localized error string is [Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]
    I would like to discard thats a SNC misconfiguration error. Can I consider that SNC server side trust is properly configured if I can run Publication for many SAP users mapped in Enterprise?
    Thanks!

  • Publication Failed - EDIT_QUERY feature is not supported

    Hello --
    We have configured server-side trust and are able to successfully create publications for users with "Developer" access, but when any other "standard" users are added to the Enterprise Recipients list, the publication fails for that user with the following message:
    ERROR [PublishingService:HandlerPool-80] BusinessObjects_PublicationAdminErrorLog_Instance_496257 - [Publication ID # 496257] - Scheduling document job "TestReport" (ID: 496,285) failed: EDIT_QUERY feature is not supported. (Error: RWI 00850) Scheduling document 'TestReport' (ID: 496,285) failed for the following users: BIP~015/TESTUSER (ID: 80667) . These users had the following profile values: [No profile values] (FBE60502) [1 recipients processed.]
    When I add the test user to the "Developers" group, it works.  However, if the user is not in that group, but I have given it developer access to the Folder/Report, Webi (Application), and InfoView, and the publication fails.  It seems like the user needs additional access in some other place, but I can't seem to find it.  Anyone have any idea?
    (XI 3.1 fp1.8)
    Thanks
    Casey

    Hi Ingo --
    I was really just referring to the level of access that the users had (through our custom Access Levels).  I had gone so far as to give the test user full control to Webi, Infoview, and the Folder the report/publication was in, but the publication still failed.  I figured out late yesterday that the problem was with Universe security.  The user did not have the "Create and Edit Query based on the universe" right.
    Thanks!
    Casey

  • Have to send mail if IDOC processing Fails

    Hi all,
    I am facing a problem here .. i have an idoc which updates 4 ' Z  ' tables ..if by chance any 1 of the 4 tables are not updated. exception occurs ... now i have to send a mail regarding the  IDOC which failed to updated to an authorized person..
    my Question is ... Can we do this using any Function Module or we have to handle this senario using Workflow... as far as i have an idea i can use workflow.. but before  that i would like to know if there is any FM that can serve my purpose.
    please Suggest...
    Usefull Answers will surely be rewarded.
    Thanks in ADvance
    regards
    Srinivas

    Hi ,
    For updating yourfour Z tables you probably use custom function module from the process code?
    If yes why don't you use SO_OBJECT_SEND.
    I think you don't need a workflow for this.
    aRs

  • BLAREL IDOC is failing to post in SRM

    Folks,
    We are trying to update the Release Orders from backend PO into the SRM GOA.
    From the sourcing in SRM we create a GOA and distribute the GOA to backend system.
    After distribution a contract is created in the backend system. In the backend from contract we create a purchase order. When this happens the IDOC BLAREL is triggered from R/3 to SRM . From the R/3 end there is no error, however in the SRM end the IDOC goes into error with the message "Object Linkage for Global Outline Agreement does not exist".
    After some analysis we found that
    1.The table SRRELROLES does not contain an entry with the correct OBJTYPE. Its checking for object type BUS2014 but in the table there is an entry for BUS2000113.
    2.The status of the contract is u201CIn Distributionu201D, even after Backend contract is created successfully in the R/3 system
    3.We have manually executed the BBP_GET_STATUS_2  and CLEAN_REQREQ_UP but they were of no help either.
    4.IDOC configurations seem to be correct because not all the BLAREL Idocs are failing.
    5.We have also found that in few Idocs Plant in the contract is different from the plant in the PO created in R/3
    Now we are not sure whether the problem is because of point 2 or point 5.
    Please let me know if anyone has experienced similar problems and resolved them.
    Thanks, Amith

    Hi Amit your analysis pefectly correct.
    Your first point is very valid point.
    in the goa , you might have deleted any one of the item
    so you have two entries in bbp_pd one is new another one is deleted.
    and when PO created and release orders trying to update wrong.
    sap has to offer a notes.
    Muthu

  • What SWO1 object uses by std. SAP to send email if OB IDOC get fails?

    Hello,
    We have SWO1 object IDOCAPPL in SWETYPECOU and we can use it to send an emaill to user's inbox, if IDOC get fails at all.
    But, this object is ONLY for inbound IDOCs.
    Am looking for similar object(SWO1) but my IDOCs are outbound, pls. let me know what object i can use from SWETYPECOU table to trigger email if my IDOC get fails? Here IDOC and FM are custom ones.
    or pls. let me know What SWO1 object uses by standard SAP to trigger email if outbound IDOC get fails (sales orders)?
    Thank you

    Changed requirements

  • Publication fails

    Hi All,
    I created a publication to burst the report to a file system ( Dynamic recipient is used ) . It was failing after generating few pdf , I am not sure what the problem is ?/
    Please share your inputs.
    Below are the information I used :
    - Source document  report
    - Dynamic Recipient report
    - Format : pdf
    - Destination : file system ( directory ) 
    below is the error message:
    2014-07-01 09:46:33,148 ERROR [PublishingService:HandlerPool-9] BusinessObjects_PublicationAdminErrorLog_Instance_11869357 - [Publication ID # 11869357] - Distribution to destination CrystalEnterprise.DiskUnmanaged (/rfs/boreports/dev/INT/ENT/Statements/Payee/20130730AB5ENTPAYEE.PDF) failed. Recipient: GB5 , Document Scope: ENT Payee Statement Report : 11870503 (Pdf) : (OR (AND (EQUAL Code "GB5 " )(EQUAL Bd "ENT" ))). destination file error. [[File System] ([1]/[100])]: [Stale file handle] (FBE60013)
    Please help me out.

    Any inputs please ???
    Below is the error message after trying multiple times.
    In the directory I can see only 1896 pdfs out of 2096 pdfs
    2014-07-01 15:37:58,936 ERROR [PublishingService:HandlerPool-35] BusinessObjects_PublicationAdminErrorLog_Instance_11880261 - [Publication ID # 11880261] - Scheduling document job "PGS Statement Report" (ID: 11,880,906) failed: publication failed: com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: An internal error occurred while calling 'getPages' API. (Error: ERR_WIS_30270) (FBE60502) 
    2014-07-01 15:42:26,818 ERROR [PublishingService:HandlerPool-41] BusinessObjects_PublicationAdminErrorLog_Instance_11880261 - [Publication ID # 11880261] - Scheduling document job "PGS Statement Report" (ID: 11,881,849) failed: publication failed: com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: An internal error occurred while calling 'getPages' API. (Error: ERR_WIS_30270) (FBE60502)
    [2096 recipients processed.]

  • Send mail to a specific user group when an Inbound Idoc processing fails

    I am using standard Message type DEBMAS, but the process code is customed (say ZDEBM as the function module is customed). Can you tell me what configurations are required to activate the error notification message to a user when the inbound idoc fails?

    hi,
    i think u need to check tcode swu3 for automatic workflow customizing and check in we40 (error AND STATUS PROCESSING) whether the processing code is assigned to the workflow task.
    if it is assigned,the workflow will be automatically triggered and the mail will be sent to the user by itself.
    ALE error handling uses workflow. A standard task is provided for each message type. Task TS20000051 is used for all BAPIs.
    Workflow functions as follows:
    A task (work item) is generated for the error handling and stored as a message in the inboxes of the employees responsible.
    If one of these employees processes the work item, the standard task method for error handling is started. The user can, for example, restart IDoc processing.
    If the IDoc is processed successfully, the work item is deleted from the inboxes of all the employees involved.
    For this procedure to function, the employees responsible for a particular message type and partner (sender or receiver) must be defined as follows:
    1. A hierarchy of organizational units (for example, "sales office") and positions (for example, "customer officer for customer X") is created and employees are assigned to it.
    2. The standard tasks for error handling (for example, an error related to an inbound sales order) are assigned to the relevant organizational units or positions (for example, "sales office").
    3. The organizational unit, position or employee responsible for dealing with the error are specified for each partner and message type in the partner profiles.
    If an error occurs, the system determines:
    1. The employees responsible using the staffing schedule of the organizational unit or position linked to the standard task.
    2. The employees defined in the partner profiles (using position, user ID, or organizational unit).
    3. The employees appearing in both groups represent those who will receive a work item in their inboxes.
    regards,
    pankaj singh

  • IDoc import failed (RemoteUploadException - no_transaction)

    Hi all!
    I'm trying to import an idoc to the XI integration repository, but the import fails with the following message:
    **Ready for import**
    Import started...
    ZXIJ3AMAT./AFS/MATMAS04.ZXIMAT:
    com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: Commit of the transaction not possible because the status is: no_transaction
    Import failed with 1 error
    Please note the following:
    - iDoc import (of ALL iDocs) was always OK, up to now...
    - from now on, iDoc import is NOT successul for all sort of iDocs
    - in SWCV, no recent changes in "Connection Data for Import from SAP System"
    After this message,
    trying to open the iDoc interface definition => then browsing into, a message/popup appears like that:
    Schema for type ZXIMAT.E1MARCM (category Data Type) not found
    (furthermore, red-highlighted the corresponding row)
    Please help...
    Thanks all in advance!
    Gianluca

    Hallo Gabriel,
    problem is solved.
    It was caused by an Oracle tablespace to be extended:
    > com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: ORA-01691:
    > unable to extend lob segment SAPXIDDB.SYS_LOB0000039485C00004$$ by 128
    > in tablespace PSAPXIDDB
    I could notice this in following days, trying to import again...
    thanks & best regards,
    Gianluca

  • Publication failing in BO XI 3.1

    Hi,
    I have a publication containing a crystal report based on BW query.  I personalised the Crystal report with Profile values.  Every one has full access to run that crystal report and full access to profile values.  I am able to run that crystal report manually without any issue.
    Its giving me the following error message in 3.1, but running fine in 3.0.
    2010-02-25 02:08:06,608 INFO  [pool-4-thread-15] BusinessObjects_PublicationAdminLog_Instance_7817 - [Publication ID # 7817] - Running publication instance.
    2010-02-25 02:08:06,829 INFO  [pool-4-thread-15] BusinessObjects_PublicationAdminLog_Instance_7817 - [Publication ID # 7817] - The global delivery rule for this publication was met; publication processing will now begin.
    2010-02-25 02:08:26,465 ERROR [PublishingService:HandlerPool-16] BusinessObjects_PublicationAdminLog_Instance_7817 - [Publication ID # 7817] - Scheduling document job "Order Counts by Size & Division_Latest.rpt" (ID: 7,823) failed: User specific security is in use.  One database fetch per recipient must be used.
    Scheduling document 'Order Counts by Size & Division_Latest.rpt' (ID: 7,823) failed for the following users:
         SanthanamS (ID: 5452)
    . These users had the following profile values:
         {?[ZOWN_DIV]} values:
              [30..30]
         {?[ZSELL_S]} values:
              [30..30]
    Scheduling document 'Order Counts by Size & Division_Latest.rpt' (ID: 7,823) failed for the following users:
         VasuV (ID: 5650)
    . These users had the following profile values:
         {?[ZOWN_DIV]} values:
              [30..50]
         {?[ZSELL_S]} values:
              [30..50]
    (FBE60502)
    2010-02-25 02:08:26,946 INFO  [pool-4-thread-15] BusinessObjects_PublicationAdminLog_Instance_7817 - [Publication ID # 7817] - Publication scheduling complete.
    What could be the reason?  Its not giving any explicit error message.
    Thanks and Regards,
    Subbu S

    Hi
    have you setup server-side SNC on your XI 3.0 system? DId you do the same on the XI 3.1 system?
    Regards,
    Stratos

  • Publication Failing on XI 3.1

    I created a simple Profile in the CMC and a Publication in Infoview based on a Webi report.
        Enterprise Recipients selected: Myself (administrator) and one other user.
        Source Document: Webi report
        Personalization: Global Profile (Profile created in CMC)
        Format: Webintelligence
        Destination: Default Enterprise Location
    I would appreciate any help or suggestions with this.
    Mike
    The Publication is failing everytime with the following error:
    2009-03-10 14:07:03,306 ERROR [PublishingService:HandlerPool-22] BusinessObjects_PublicationAdminErrorLog_Instance_159745 - [Publication ID # 159745] - Unable to find the infostore service. Is your CMS running and configured properly? (FBE60002) 2009-03-10 14:07:03,306 ERROR [PublishingService:HandlerPool-22] BusinessObjects_PublicationAdminErrorLog_Instance_159745 - [Publication ID # 159745] - An exception was caught while scheduling the publication. (FBE60203) [2 recipients processed.]
    Edited by: Michael Isaac on Mar 11, 2009 2:23 PM

    This has been resolved. I opened an incident with SAP and was instructed from a note to Disable all services in CCM, Re-enable all services and Re-boot the system.
    Mike

  • Idocs are failing

    Hi,
    We have a Z program which creates Inbound idocs by processing the files at the application layer. Once the idoc is procesed, based on our business requirement we split the parent idoc into more than one idoc with different message type and process them once again. Now we are seeing a new problem, the child idocs are not getting processed at all and simply moving into the status 51 with with a special message "Application log is already open and cannot be reopened." or "Period indicator T is not defined". These messages are not maintained by us as we maintain some messages to update the application log.  There is no instance where we have failed to close the application log.  Strange things is idocs gets posted when I manually process it by using program RBDPROCESS. They either get posted or will remain in status 51 - with valid message. 
    I have checked all the settings for ALE and Idocs. Everything is working fine. Actually we have three testing sytems, the same setup works fine on one system but is failing on the other two boxes.
    Please help me to resolve this.
    Thank you,
    Ganesh Prasanna.T

    hi ganesh,
    i believe u split ur idocs based on some conditions. plz chk if u r meeting all the conditions.
    also ask basis team if they have any option 2 clear the buffer like if any.
    am not very much sure.
    just try n chk out if helpful.
    reward if helpful
    kiran

  • Requirement for Alert when outbound idocs are failing

    SAP A -
    IDOCS -
    >  SAP B
    We currently have a SAP A system sending outbound idocs to SAP B system via ALE. The current issue is when SAP B system is down. The outbound idocs being sent from SAP A system fail.
    We want to get a alert when the System B is down.
    What are the options available in SAP to achieve this requirement.
    Thanks in advance for any inputs that will be provided.
    Regards,
    Chandra Kumar

    Dear Chandra,
    The logical solution to the problem is as below,
    You need to have a Function module which checks the RFC connections between two systems before sending idoc. If the connection is found OK then the idoc should be send else a Alert message should be raised u201CSystem B is down, idoc can not be processedu201D
    Please let me know if this solution helped in resolving your query.
    Regards
    Dinesh

  • Sending an email notification when an IDOC get failed

    Hi Experts,
    Can anybody tell how i can send an email notification when my Idoc fails.
    Regards,
    Ratheesh

    report zalv10.
    type-pools: slis.
    data: g_repid like sy-repid,
    gs_print type slis_print_alv,
    gt_list_top_of_page type slis_t_listheader,
    gt_events type slis_t_event,
    gt_sort type slis_t_sortinfo_alv,
    gs_layout type slis_layout_alv,
    gt_fieldcat type slis_t_fieldcat_alv,
    fieldcat_ln like line of gt_fieldcat,
    col_pos type i.
    data: begin of itab,
    field1(5) type c,
    field2(5) type c,
    field3(5) type p decimals 2,
    end of itab.
    data: begin of itab1 occurs 0.
    include structure itab.
    data: end of itab1.
    data: begin of itab_fieldcat occurs 0.
    include structure itab.
    data: end of itab_fieldcat.
    Print Parameters
    parameters:
    p_print as checkbox default ' ', "PRINT IMMEDIATE
    p_nosinf as checkbox default 'X', "NO SELECTION INFO
    p_nocove as checkbox default ' ', "NO COVER PAGE
    p_nonewp as checkbox default ' ', "NO NEW PAGE
    p_nolinf as checkbox default 'X', "NO PRINT LIST INFO
    p_reserv type i. "NO OF FOOTER LINE
    initialization.
    g_repid = sy-repid.
    perform print_build using gs_print. "Print PARAMETERS
    start-of-selection.
    TEST DATA
    move 'TEST1' to itab1-field1.
    move 'TEST1' to itab1-field2.
    move '10.00' to itab1-field3.
    append itab1.
    move 'TEST2' to itab1-field1.
    move 'TEST2' to itab1-field2.
    move '20.00' to itab1-field3.
    append itab1.
    do 50 times.
    append itab1.
    enddo.
    end-of-selection.
    perform build.
    perform eventtab_build changing gt_events.
    perform comment_build changing gt_list_top_of_page.
    perform call_alv.
    form build.
    DATA FIELD CATALOG
    Explain Field Description to ALV
    data: fieldcat_in type slis_fieldcat_alv.
    clear fieldcat_in.
    fieldcat_ln-fieldname = 'FIELD1'.
    fieldcat_ln-tabname = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT = 'X'. "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
    fieldcat_ln-key = ' '. "SUBTOTAL KEY
    fieldcat_ln-no_out = ' '.
    fieldcat_ln-seltext_l = 'HEAD1'.
    append fieldcat_ln to gt_fieldcat.
    clear fieldcat_in.
    fieldcat_ln-fieldname = 'FIELD2'.
    fieldcat_ln-tabname = 'ITAB1'.
    fieldcat_ln-no_out = 'X'.
    fieldcat_ln-seltext_l = 'HEAD2'.
    append fieldcat_ln to gt_fieldcat.
    clear fieldcat_in.
    fieldcat_ln-fieldname = 'FIELD3'.
    fieldcat_ln-tabname = 'ITAB1'.
    fieldcat_ln-ref_fieldname = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
    fieldcat_ln-ref_tabname = 'MSEG'. "<- REF TABLE IN THE DICTIONNARY
    fieldcat_ln-no_out = ' '.
    fieldcat_ln-do_sum = 'X'. "SUM UPON DISPLAY
    append fieldcat_ln to gt_fieldcat.
    DATA SORTING AND SUBTOTAL
    data: gs_sort type slis_sortinfo_alv.
    clear gs_sort.
    gs_sort-fieldname = 'FIELD1'.
    gs_sort-spos = 1.
    gs_sort-up = 'X'.
    gs_sort-subtot = 'X'. ***CRUCIAL STATEMENT****
    append gs_sort to gt_sort.
    clear gs_sort.
    gs_sort-fieldname = 'FIELD2'.
    gs_sort-spos = 2.
    gs_sort-up = 'X'.
    *GS_SORT-SUBTOT = 'X'. **THIS SHOULD NOT BE UNCOMENTED*
    append gs_sort to gt_sort.
    endform.
    form call_alv.
    ABAP List Viewer
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    i_callback_program = g_repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    i_structure_name = 'ITAB1'
    is_layout = gs_layout
    it_fieldcat = gt_fieldcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    it_sort = gt_sort[]
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    it_events = gt_events[]
    IT_EVENT_EXIT =
    is_print = gs_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 = itab1
    exceptions
    program_error = 1
    others = 2.
    endform.
    HEADER FORM
    form eventtab_build changing lt_events type slis_t_event.
    constants:
    gc_formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    *GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
    data: ls_event type slis_alv_event.
    call function 'REUSE_ALV_EVENTS_GET'
    exporting
    i_list_type = 0
    importing
    et_events = lt_events.
    read table lt_events with key name = slis_ev_top_of_page
    into ls_event.
    if sy-subrc = 0.
    move gc_formname_top_of_page to ls_event-form.
    append ls_event to lt_events.
    endif.
    define END_OF_PAGE event
    READ TABLE LT_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
    INTO LS_EVENT.
    IF SY-SUBRC = 0.
    MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
    APPEND LS_EVENT TO LT_EVENTS.
    ENDIF.
    endform.
    form comment_build changing gt_top_of_page type slis_t_listheader.
    data: gs_line type slis_listheader.
    clear gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'HEADER 1'.
    append gs_line to gt_top_of_page.
    clear gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'INFO 1'.
    append gs_line to gt_top_of_page.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'INFO 2'.
    append gs_line to gt_top_of_page.
    CLEAR GS_LINE.
    GS_LINE-TYP = 'A'.
    GS_LINE-INFO = 'ACTION'.
    APPEND GS_LINE TO GT_TOP_OF_PAGE.
    endform.
    form top_of_page.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = gt_list_top_of_page.
    write: sy-datum, 'Page No', sy-pagno left-justified.
    endform.
    form end_of_page.
    write at (sy-linsz) sy-pagno centered.
    endform.
    PRINT SETTINGS
    form print_build using ls_print type slis_print_alv.
    ls_print-print = p_print. "PRINT IMMEDIATE
    ls_print-no_print_selinfos = p_nosinf. "NO SELECTION INFO
    ls_print-no_coverpage = p_nocove. "NO COVER PAGE
    ls_print-no_new_page = p_nonewp.
    ls_print-no_print_listinfos = p_nolinf. "NO PRINT LIST INFO
    ls_print-reserve_lines = p_reserv.
    endform.deepakb
    Posts: 3
    Joined: Mon Nov 17, 2003 8:18 am
    Location: Mumbai

Maybe you are looking for