BDC help req??

Hi
Can any one tell me to use 2 BDC simultaneously at a time in 1 single report.
I had an req like to make a BDC for  MIGO & same time after its done the BDC for Tcode J1IEX has to be called,so can any one tell me some info for it.
As its a reprot programing,I need to disply the  final data like GRN No. after MIGO had been done & Exc Invoice No after J1IEX had been done on a single page in an ALV form .
Please help me in this,I had made a reprot for it,but I am  not able to make 2 BDC working at the same time.
So plz tell me how to do ??
Regds

Hi,
  I had done in my previous project, that was production order creation, conformation and one more. You can check is there any BAPI's exist for you to update the data.
Rgds,
Bujji

Similar Messages

  • BDC help req for MM02??

    hi
    I made a BDC pgm for MM02,to update the Purchasing Group filed for a matnr,based on Plant.
    But i am facing an prob that,when in a Matnr views,my curcur is coming to  Purchsaing View ,it update the EKGRP filed,but  when it directly comes to MRP 1,its given an error,that MARC-EKGRP not exits.
    Moreover I had done only recording for Purchaing View,not for MRP 1 view,but not able to understand why its going there in MRP 1 view,some time for some materials.
    Can any one tell me,how to rectify this prob?
    Regds.

    Hi,
    This problem occurs because,
    Different materials have different types,
    so this view will not be same for all,
    so if you have done recording for 4th tab ,than for next material at 4th tab some other thing will be there,
    to rectify this problem,
    do the recording for basic data 1 (it will be present for very material ) and then goto the required tab,
    i hope  it fits to your requirement,
    Regards,
    Talwinder

  • BDC Help

    hi all,
    I am making a BDC program, for tcode MM01
    I have done the recording, and generated the program.
    I have a txt file on my desktop, and i am filling the internal table declared in the program from that txt file.
    Its working fine uptill now. Can any one help me how to proceed from here.
    I want to execute the program through call transasction method.
    <b>Points will be rewarded.</b>

    hi,
    i am giving u code of report with Call Transaction method.
    Hope it will b useful.
    REPORT zbdc_call
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA: BEGIN OF record OCCURS 0,
    data element: MATNR
            matnr_001(018),
    data element: BRGEW
            brgew_008(017),
          END OF record.
    End generated data section ***
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETER:file LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK blk1.
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = file.
    START-OF-SELECTION.
      PERFORM data_upload.
      PERFORM bdcdata.
    CALL TRANSACTION 'MM02' USING BDCDATA MODE 'A' UPDATE 'A'.
    *&      Form  data_upload
          text
    FORM data_upload.
      DATA:loc_file TYPE string.
      loc_file = file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = loc_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      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.                    "data_upload
    *&      Form  bdc_dynpro
          text
         -->PROGRAM    text
         -->DYNPRO     text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "bdc_dynpro
    *&      Form  bdc_field
          text
         -->FNAM       text
         -->FVAL       text
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    "bdc_field
    *&      Form  bdcdata
          text
    FORM bdcdata.
      LOOP AT record.
        PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RMMG1-MATNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=AUSW'.
        PERFORM bdc_field       USING 'RMMG1-MATNR'
                                      record-matnr_001.
        PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'MSICHTAUSW-DYTXT(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM bdc_dynpro      USING 'SAPLMGMM' '4004'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BU'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'MARA-BRGEW'.
        PERFORM bdc_field       USING 'MARA-BRGEW'
                                      record-brgew_008.
      ENDLOOP.
    ENDFORM.                    "bdcdata

  • Updating BDC: Help required...

    Hi All,
        I have a requirement to update a Transaction 'FD32' using BDC. But in my case the user doesnt have authorization to this Transaction.
    My question is...
    Can the BDC update the transaction for an unauthorized user.
    If NO...What is the way to update the Transaction for this unauthorized user...
    Thanks in Advance
    Nanda

    Hi Nanda,
    Have you looked standard program RFBIDE00?
    Please check program documentation perhaps it may help.
    Regards,
    Ferry Lianto

  • Urgent help req : work item id not getting passed in the method

    Hi ,
    I have created a subtype zcats of business object CATS and delegated it .
    I have created a new method Approve1 ( with attributes  SYNCRONUS & DIALOG )  in zcats which is similar in coding  to Approve method of CATS ( DIALOG) .
    I have include the method Approve1 of business object zcats in a standard task .
    The problem is that when the eorkflow gets triggered ,  the workitem id is not getting passed in the method APProve1 of zcats.
    Can someone please help me with this .
    Points would surely be awarded .

    BEGIN_METHOD APPROVE1 CHANGING CONTAINER.                 
      DATA: WORKITEMID_IMP LIKE OBJECT-KEY-ITEMID.              
      DATA: WI_CHCKWI LIKE SWWWIHEAD-WI_ID.                     
      DATA: WORKITEM TYPE SWC_OBJECT.                           
       <u> WORKITEMID_IMP = OBJECT-KEY-ITEMID</u>.                     
        SWC_GET_ELEMENT CONTAINER '_WORKITEM' WORKITEM.         
        SWC_GET_PROPERTY WORKITEM 'WorkitemReference' WI_CHCKWI.
        IF SY-SUBRC EQ 0 AND NOT WI_CHCKWI IS INITIAL.          
          WORKITEMID_IMP = WI_CHCKWI.                           
        ENDIF.                                                  
        CALL FUNCTION 'CATS_WF_APPROVAL'                        
          EXPORTING                                             
            WORKITEMID_IMP = WORKITEMID_IMP                     
          TABLES                                                
            CONT_IMP = CONTAINER.                               
      END_METHOD.                                               
    hi ,
    the above is the code in the method .
    At the first step of execution underlined above , the work item id is appearing blank .
    I think that the value is not passed to the container , but i am not sure og how to pass data to this conatiner

  • Issue in WAD Dropdown box functionality. Help req.

    Hello,
    Issue in WAD and Bex.
    I have two dropdown boxes in the web templates, for ex cost center and controlling area.
    DDBox1: Controlling Area.
    DDBox2: Cost center.
    Step1: I am selecting Controlling area 4002
    Step2: I am selecting cost center 691
    Step3: Now I want to change the cost center to 4001.
    When I change the cost center to 4001 in Dropdown box1
    the filter(Selected value 691) set in the Dropdown 2(for cost center) is not removed or reset,
    so that it shows no applicable data found even though there is data for the controlling Area 4001(DDBox2)
    Some one please guide me to solve this
    Thanks in advance!
    Kind regards
    RaM

    Hello,
    Some one please help me on this topic.
    If any further informations required i can give .
    Thanks
    RaM

  • Urgent Help Req.: Exception=ORABPEL-11162 Error while reading native data

    Hi All,
    I am getting below error: Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7|http://forums.oracle.com/forums/] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    Let me also give you the brief scenario of what I am trying to achieve.
    INTERFACE FUNCTIONING:_
    I have an interface which reads the records in a file in a chunk through ChunkRead adapter and and after one successful reading if chunk it calls the DB adapter to insert the records in the table.
    Now these records are committed and next chunk is read and the process goes on till all the records are read.
    After this the API is called which does the processing of these records.
    Inserting records in the DB is a XA transaction which means if anything goes wrong while inserting the data, the records which are added earlier are rolled back.
    ISSUE:_
    Now the issue comes when I do the negative testing. Since my file is based on fixed length schema., I change the length of last record from 15 to 13. (say total are 10 records)
    Now what happens is when chunkread tries to read the record of 15 length it gets only 13 characters and hence ignores the records.
    But the chunkread reads all other 9 records correctly and sends this to DB adapter which now inserts them correctly in the DB.
    But being a global transaction I want that if any record is missing from DB in comparison to those in file then whole transaction should roll back.
    So I am unable to make this whole process as global transaction. This is because the ChunkRead adapter inspite of detecting the error doesn&rsquo;t throw it back.
    Moreover if this problem occurs in say next chunk then also I am unable to find out how to rollback the whole transaction. Because the first chunk was correct.
    So basically two concerns are there:+
    How to detect that chunkread adapter has missed one record?+
    Secondly, If it&rsquo;s detected then how should I rollback the transaction that caused earlier records to enter into database?+
    Please let me know if anyone has faced this issue earlyer and how it got resolved. Any pointers regarding this would be of great help.
    Also attached is the chunkread log for reference.
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage errList=[oracle.tip.pc.services.translation.xlators.nxsd.ErrorList@a5213b]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage badCount=[1]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.467-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: Rejecting message fileName=/rh01/s01/n01/Distributions/B2B/Gentran/In/855/Test.txt, startLine=4, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    }</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    PFB the version details :
    SOA suite version : 10.1.3.3.1 and JDEV : 10.1.3.3
    Edited by: SOA Team on Oct 6, 2008 10:48 PM

    Just a thought, you could set the terminator for the last field as {eol} instead of length, this means that it should read the last field regardless of the length.
    Depending on the logic of Db adapter the error could be traped due to incorrect length.
    If the file starts each row with a constant(s), e.g. 01 then you can terminate the previous line on that, this is the better option but relys on the file format.
    The other option is a little thing call compensation, ouch. Basically this allows you to back out commited rows but you have to provide all the logic, it is generally something people avoid because of the complexity.
    cheers
    James

  • Help req in Seeburger SFTP adapter

    Hi All,
                I have a scenario where i need to send a file to SFTP server. I used Seeburger SFTP adapter to connect to SFTP.
              This is a pass through interface and i havent used any party at the confiuration( normal configuration without party)
                 In SFTP channel  @ modules i configured it as:
    localejbs/Seeburger/solution/<solutionName>            Local Enterprise Bean                solutionid
    localejbs/ModuleProcessorExitBean                            Local Enterprise Bean               exit
    Module Key                                    Parameter Name                                   Parameter Value
    exit                                                 JNDIName                                    deployedAdapters/SeeXISFTP/shareable/SeeXISFTP
    When i test the scenario i facing the following error in the receiver communication channel( SFTp Adapter) @ RWB
    Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of ModuleProcessorExitB ean..
    Can someone please help how to resolve this problem.
    Thanks,
    Siva

    Hi,
    can you share how you solved this issue? i am having the same issue with the sftp and receiving the same error.
    Thanks in advance.

  • DEV 6.0 team : Help req while running forms on the WEB

    I am using Windows NT 4.0 with Service pack 3 running Oracle8
    8.0.5 with Apps Server 4.0.7 and Dev6.0. I have been able to run
    Forms on the web and with Jinitiator and with out Jinitiator but
    there are a few problems
    1 ) The Tigger " When Mouse Click" does not fires on the web for
    a display item.
    2) when i set the CLASSPATH=E:\orant\forms60\java for forms the
    tree in OAS 4.0.7 stops showing and if i remove it from there
    then i am not able to run the forms for web through the forms
    designer
    3) the performnce is very slow how to improve the performance on
    Web with jinitiator.
    an early response would be appreciated
    null

    mobeen (guest) wrote:
    : I am using Windows NT 4.0 with Service pack 3 running Oracle8
    : 8.0.5 with Apps Server 4.0.7 and Dev6.0. I have been able to
    run
    : Forms on the web and with Jinitiator and with out Jinitiator
    but
    : there are a few problems
    : 1 ) The Tigger " When Mouse Click" does not fires on the web
    for
    : a display item.
    : 2) when i set the CLASSPATH=E:\orant\forms60\java for forms
    the
    : tree in OAS 4.0.7 stops showing and if i remove it from there
    : then i am not able to run the forms for web through the forms
    : designer
    : 3) the performnce is very slow how to improve the performance
    on
    : Web with jinitiator.
    : an early response would be appreciated
    I can only speculate on some of your issues, but maybe they
    might give you some insight on possible alternatives.
    Mouse-Click on Display Item
    The display item does not, by definition allow modification.
    Have you tried changing the item to text and then disabling the
    INSERT and UPDATE properties to NO? I have tried using display
    items in the past, resulting in a grayed-out box on the web. To
    get around this, I made the above changes and created a mouse
    trigger to jump to another field when someone tried to mouse-
    click on it.
    Changing CLASSPATH on OAS 4.0.7
    I had the same results. The OAS installation sets the CLASSPATH
    to what it needs and changing it has the results you describe.
    I am curious, however, are you able to view the form from the
    Developer Forms Designer using the other CLASSPATH. I have not
    been able to use this feature at all. I read somewhere that
    this functionality is not available in the beta version. I
    would appreciate any information that you can share.
    Jinitiator Performance
    Assuming that you have already tried cache settings and short of
    the users having faster machines with more memory, faster web
    access, etc. I don't think there is much we can do but wait for
    Oracle and Sun to make enhancements.
    I have had some success with using IE 5.0 (beta) directly
    without the Jinitiator. My web applications load and run a
    whole lot faster using the same configuration that you describe.
    It might be worth another look!
    Hope this helps.
    Michael Shannon
    [email protected]
    null

  • MM stock vaule help req?

    hi
    I need to develop a reprot for the stock for a material/plant/month.
    The selction-screen:1.material,2.plant,3.purch grp,4.month
    output:PLANT,MATERIAL,PURCH GRP,OPENING BAL(Total Stock avaible/month),ISUUE STOCK VALUE(/month),CLOSING BLANCE(Total Stock availabele/month).
    This reprot has to display the monthly data for the material's stock available & issued per month.
    I don't hv much knowlegde for stock related tables & fileds.
    can any one help me in this regards,to get th data frm whcih tables,filed..so that i can start the reprot.i had seen the TCODE:MC.9,got some info frm it,but still not clr very much.
    PLZ reply accordingly.
    rgds
    Vipin

    Hi!
    The actual stock can be read from table MARD.
    For historical data, you can use MARDH.
    The purchasing group and the othere material master data stuff can be read from MARA, or MARC tables.
    Regards
    Tamá

  • Help Req: Refreshing Screen

    Hi Folks,
    Could anyone from amongst you let me know if we can refresh contents of screen after a stipulated time. e.g. after every 5 minutes i need to refresh a screen.
    Please let me know if it is possible and if so could you also send me some demo code so that i can understand what is done in order to achieve it.
    Regards,
    Im

    Hi,
    Check this link:
    http://www.sap-img.com/fu014.htm
    This ABAP program will automatically update a report every 30 seconds while it is on the screen 
    at the same time keeping the GUI screen buttons active.
    Reward if it helps.
    Thanks,
    Swati

  • [HELP REQ] [DEPLOYMENT ERROR]Silverlight Sharepoint 2010 Webpart Applicaiton [ERROR WHEN I DEPLOY] [HELP REQ]

    **This solution contains no resources scoped for a web application and cannot be deployed to a particular web application.**
    That is the error I get when I try to deploy the site I get this error.  I have tried adding a element file but I am not too sure if I have done it correct.  Either way no matter what and how I try to add this to my server when I do the following
    commands it returns me this error.
    Commands
    Add the feature:
    Add-SPSolution c:\sp2010\srg.wsp
    Install:
    **Install-spsolution -identity srg.wsp -webapplication http://my.kpl.gov <http://my.kpl.gov/>  -gacdeployment** -THIS IS THE COMMANDS THAT CREATES THE ERROR-

    Hi PsychoticcWMU,
    Thank you for supporting MSDN forum.
    I would like to move this question to a more approximate forum for a better support.
    Thanks for your understanding.
    --James
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • MM help REQ??

    Hi
    I need to change the O/P format for the TCode-ME56,SAP standard O/P is of 3-liner,I need to change it to 1-line.I had never done anything like this,I need some help?
    Plz if any one has idea to change the O/P using badi/exits plz tell me,even I had not workwed any time with badi/exits.so i need some help?
    I had found thet,all the write staments/internal table dec. all are done in enhanceemnts inn this tcode,so its quite diff gfor me to understand frm where to start..plz help me in this regard.
    regds.

    Hi Vipin,
    Check table EBAN for purchase requistion. in this table, if EBAKZ field is set to X. It's means the purchase requistion is closed against purchase order.
    Besides, ask your functional guy which fields are require for that report.
    Hope it will solve your problem.
    Regards
    Krishnendu

  • Help req : alv grid with multiple row selection

    Hi all sap gurus,
    i have a alv list display program , in which i can select the o/p rows(multiple rows)
    and perform some actiom based on some icons .
    now i have to convert this in to grid display
    this is initial code i.e for list
    DATA :  BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE ztest.
    DATA :  checkbox type c.
    DATA : END OF itab.
    s_layout-box_fieldname = 'CHECKBOX'.
      ty_events-name = slis_ev_top_of_page.
      ty_events-form =  'TOP_OF_PAGE'.
      APPEND ty_events TO it_events.
    ALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = v_repid
                i_internal_tabname = 'ITAB'
                i_inclname         = v_repid
           CHANGING
                ct_fieldcat        = build_fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
       I_INTERFACE_CHECK              = ' '
       I_BUFFER_ACTIVE                = ' '
         i_callback_program             = v_repid
         i_callback_pf_status_set       = 'SET_PF_STATUS'
         i_callback_user_command        = 'USER_COMMAND'
         i_structure_name               = 'ITAB'
         is_layout                      = s_layout
         it_fieldcat                    = build_fieldcatalog[]
       IT_EXCLUDING                   =
       IT_SPECIAL_GROUPS              =
       IT_SORT                        =
       IT_FILTER                      =
       IS_SEL_HIDE                    =
       I_DEFAULT                      = 'X'
       I_SAVE                         = ' '
       IS_VARIANT                     =
         it_events                      = it_events
       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.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      IF ucomm = 'DELE'.
        LOOP AT iTAB WHERE CHECKbox = 'X' .
        ENDLOOP.
        MODIFY  ztEST FROM TABLE itAB.
      ENDIF.
      selfield-refresh = 'X'.
    ENDFORM.
    NOW I HAVE A LIST O/P WHERE I CAN SELECT THE BOX AND CLICK DELETE ICON.
    NOW I WANT TO CHANGE TO GRID, SO I KEPT EVERYTHING SAMRE AND I CHANGED  " LIST" TO "GRID"
    NOW TWO THINGS HAPPEND
    1) I SEE A EMPTY COLUMN IN THE O/P , I GUESS THATS BECAUSE CHECKBOSX IN INTERNAL TABLE , SO I REMOVED IT
    SO THIS MADE ME TO REMOVE
    IF ucomm = 'DELE'.
        LOOP AT iTAB." WHERE CHECKbox = 'X' .------PROBLEM
        ENDLOOP.
        MODIFY  ztEST FROM TABLE itAB.
      ENDIF.
      selfield-refresh = 'X'.
    NOW I DON'T SEE THE EMPTY COLUMN , BUT NOW PROBLEM  IS I CANNNOT DISTINGUISH AS TO WHICH IS SELECTED AND AT ANY POINT OF TIME I CANSELECT ONLY ROW.
    ALL I WANT IS
    1) I WANT TO SELECT MULTIPLE ROWS AND SHOULD BE ABLE TO KNOW WHICH ROWS WERE SELECTED IN THE O/P SCREEN.
    IN THE LIST DISPLAY I HAD CHECKBOX = 'X' FOR ALL THE ROWS THAT WERE SELECTED , I WANT THE SIMILAR THING in grid display
    LET ME KNOW whether this can be done without USING 00 LANG.
    thanks

    Hi Swati,
    Below code might help full for you. Description: is It selects multiple rows from ALV and display it on the next ALV.
    *************************Reward Point If help full********************************************
    *& Report   z7cc_alv_oops_show_next_alv                                *
    *&          DEVELOPERS NAME : CHIDANAND CHAUHAN
    *&          DATE: SATURDAY 08-07-2006
    *&          DESCRIPTION: TO CREATE AN OBJECT ORIENTED ALV
    REPORT      z7cc_alv_oops_show_next_alv MESSAGE-ID  z5hs .
    DATA : BEGIN OF it_mara OCCURS 0,
      mark  TYPE flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara.
    DATA : BEGIN OF it_mara1 OCCURS 0,
    *  mark  type flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara1.
    DATA : BEGIN OF it_mara2 OCCURS 0,
    *  mark  type flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara2.
    DATA : t_fieldcat TYPE lvc_t_fcat,
             t_fieldcat1 TYPE lvc_t_fcat,
          s_fieldcat LIKE LINE OF t_fieldcat.
    DATA : s_layout TYPE lvc_s_layo.
    DATA : control TYPE REF TO cl_gui_custom_container,
           grid  TYPE REF TO cl_gui_alv_grid.
    DATA: BEGIN OF wa ,
      mark  TYPE flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF wa.
    *       CLASS lcl_events_box DEFINITION
    CLASS lcl_events_box DEFINITION.
      PUBLIC SECTION.
        METHODS :
    *Handler_Data_Changed for event Data_Changed of cl_gui_alv_grid
    *imporTing er_data_changed,
        handler_user_command FOR EVENT user_command OF cl_gui_alv_grid
        IMPORTING e_ucomm,
        handler_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
        IMPORTING e_object e_interactive.
    ENDCLASS.                    "lcl_events_box DEFINITION
    *       CLASS lcl_events_box IMPLEMENTATION
    CLASS lcl_events_box IMPLEMENTATION.
    * method to handle the user command.
      METHOD handler_user_command.
        PERFORM form_usercommand CHANGING e_ucomm.
      ENDMETHOD.                    "Handler_user_command
    *& Mehod to handle the toolbar.
      METHOD handler_toolbar.
        PERFORM form_toolbar CHANGING e_object e_interactive
        e_object->mt_toolbar.
      ENDMETHOD.                    "Handler_ToolBar
    ENDCLASS.                    "lcl_events_box IMPLEMENTATION
    START-OF-SELECTION.
      DATA : w_events TYPE REF TO lcl_events_box.
      SELECT matnr mtart meins FROM mara INTO CORRESPONDING FIELDS OF TABLE
      it_mara.
      CALL SCREEN 100.
    *&      Module  pbo_module  OUTPUT
    *       text
    MODULE pbo_module OUTPUT.
      IF grid IS INITIAL.
        CREATE OBJECT control
          EXPORTING
            container_name     = 'CUST_CTRL'.
        CREATE OBJECT grid
          EXPORTING
            i_parent          = control.
        PERFORM build_catalog.
        PERFORM build_catalog1.
        PERFORM build_layout.
        CALL METHOD grid->set_table_for_first_display
          EXPORTING
            is_layout       = s_layout
          CHANGING
            it_outtab       = it_mara[]
            it_fieldcatalog = t_fieldcat.
        CREATE OBJECT w_events.
        SET HANDLER : w_events->handler_toolbar FOR grid,
                      w_events->handler_user_command FOR grid.
        CALL METHOD grid->set_toolbar_interactive.
      ELSE.
        CALL METHOD grid->refresh_table_display.
      ENDIF.
    ENDMODULE.                 " pbo_module  OUTPUT
    *&      Form  BUILD_CATALOG
    FORM build_catalog .
      s_fieldcat-col_pos = '1'.
      s_fieldcat-fieldname = 'MARK'.
      s_fieldcat-checkbox = 'X'.
      s_fieldcat-edit = 'X'.
      APPEND s_fieldcat TO t_fieldcat.
      CLEAR s_fieldcat.
      s_fieldcat-col_pos = '2'.
      s_fieldcat-fieldname = 'MATNR'.
      s_fieldcat-scrtext_m = 'MATERIAL'.
      APPEND s_fieldcat TO t_fieldcat.
      s_fieldcat-col_pos = '3'.
      s_fieldcat-fieldname = 'MTART'.
      s_fieldcat-scrtext_m = 'MATERL TYPE'.
      APPEND s_fieldcat TO t_fieldcat.
      s_fieldcat-col_pos = '4'.
      s_fieldcat-fieldname = 'MEINS'.
      s_fieldcat-scrtext_m = 'UOM'.
      APPEND s_fieldcat TO t_fieldcat.
    ENDFORM.                    " BUILD_CATALOG
    *&      Form  BUILD_LAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_layout .
      s_layout-zebra = 'X'.
    * S_LAYOUT-CWIDTH_OPT = 'X'.
      s_layout-grid_title = 'Material Details'.
    ENDFORM.                    "BUILD_LAYOUT
    " BUILD_LAYOUT////////////////////////////////////
    " USER_COMMAND_0100  INPUT
    *&      Form  FORM_USERCOMMAND
    *       text
    *      <--P_E_UCOMM  text
    FORM form_usercommand  CHANGING p_e_ucomm.
      CASE p_e_ucomm.
        WHEN 'INT1'.
          DO.
            READ TABLE it_mara INDEX sy-index TRANSPORTING mark matnr.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
            IF it_mara-mark = 'X'.
              READ TABLE it_mara INTO wa TRANSPORTING matnr mtart meins .
              MOVE-CORRESPONDING wa TO it_mara1.
              READ TABLE it_mara1 TRANSPORTING matnr mtart meins .
              MOVE-CORRESPONDING it_mara1  TO it_mara2.
              APPEND it_mara2.
              CALL METHOD grid->set_table_for_first_display
                EXPORTING
                  is_layout       = s_layout
                CHANGING
                  it_outtab       = it_mara2[]
                  it_fieldcatalog = t_fieldcat1.
    *       SET PARAMETER ID 'MAT' FIELD IT_MARA-MATNR.
    *       CALL TRANSACTION 'MM02'.
            ENDIF.
    *      ENDIF.
          ENDDO.
      ENDCASE.
    ENDFORM.                    " FORM_USERCOMMAND
    *&      Form  FORM_TOOLBAR
    *       text
    *      <--P_E_OBJECT  text
    *      <--P_E_INTERACTIVE  text
    *      <--P_E_OBJECT_>MT_TOOLBAR  text
    FORM form_toolbar  CHANGING p_e_object TYPE REF TO
    cl_alv_event_toolbar_set
    p_e_interactive
    mt_toolbar TYPE ttb_button.
      DATA wal_button TYPE stb_button.
    *WAL_BUTTON-ICON = ICON_status_reverse.
      wal_button-text = 'GO'.
      wal_button-quickinfo = 'PROCEED'.
      wal_button-function = 'INT1'.
      wal_button-butn_type = 0.
      wal_button-disabled = space.
      INSERT wal_button  INTO p_e_object->mt_toolbar INDEX 1.
    ENDFORM.                    " FORM_TOOLBAR
    *&      Module  PF-STATUS  OUTPUT
    *       text
    MODULE pf-status OUTPUT.
      SET PF-STATUS 'Z7CCSTAT'.
    ENDMODULE.                 " PF-STATUS  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  BUILD_CATALOG1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_catalog1 .
      s_fieldcat-col_pos = '1'.
      s_fieldcat-fieldname = 'MATNR'.
      s_fieldcat-scrtext_m = 'MATERIAL'.
      APPEND s_fieldcat TO t_fieldcat1.
      s_fieldcat-col_pos = '2'.
      s_fieldcat-fieldname = 'MTART'.
      s_fieldcat-scrtext_m = 'MATERL TYPE'.
      APPEND s_fieldcat TO t_fieldcat1.
      s_fieldcat-col_pos = '3'.
      s_fieldcat-fieldname = 'MEINS'.
      s_fieldcat-scrtext_m = 'UOM'.
      APPEND s_fieldcat TO t_fieldcat1.
    ENDFORM.                    " BUILD_CATALOG1

  • Script help req in logic

    Hi all,
    I have a script with 2 pages  first and next
    i have  two main windows 00 and 01  per page.
    I have records like
    type  mat  matdes
    a      1    abc
    b     2    abcd
    a      3    abcde
    b      4    bggu
    I want to display in my script as
    type   mat  matdes --inside a box
    a      1    abc
    a      3    abcde
    type   mat  matdes --inside a box.
    b     2    abcd
    b      4   bggu
    my requirement is
    1)i want a box for type mat matdes headings
    2) i wnat to display everything in 1 window i.e main 00 or main 01,
    i.e i dont type mat matdes in mianwindow 00
    and
    b     2    abcd
    b      4   bggu
    in mainwindow 01.
      or
    i dont type mat matdes in mianwindow 01 of page first
    and
    b     2    abcd
    b      4   bggu
    in mainwindow 00 of page next.
    mY CODE IS LIKE
    /E  ITEM
    /: PROTECT
    /: IF &TYPE1& NE ' '.
    P  TYPE  Material    Description       
    /: ENDIF.
    Q &TYPE1& &MATNR& &MAKTX&   
    /: ENDPROTECT
    tHIS IS MY DRIVER PROGRAM.
    LOOP AT ITAB.
    CLEAR TYPE.
    AT NEW TYPE.
    TYPE1 = ITAB-TYPE.
    ENDAT.
    WRITE_FORM
    ITEM
    END LOOP.
    WHAT I SEE IN MY OUTPUT IS,
    1)i DON'T HOW TO WRITE THE CODE FOR BOX, BECAUSE THE YPOS IS  DETERMINED BASED ON THE NO OF RECORD FOR EACH TYPE,
    2)i GET THE PROTECT END PROTECT WORKING FOR MAIN WINDOW 00 TO MAIN WINDOW 01 IN FIRST PAGE,
    BUT IT DOESN'T WORK FOR MAIN WINDOW 01 OF FIRST PAGE TO MAIN WINDOW OF WINDOW 00 OF NEXT PAGE AND
    ALSO IT DOESN'T WORK FROM MAIN WINDOW 00 TO MAIN WINDOW 01 OF NEXT PAGE.
    the number of items for type may vary some times type a has 4 and some times 5 .
    so it varies.
    Any help regarding would be greatly appreciated and its bit urgent.
    Thanks in advance.

    Hi
        This is an example --  WINDOW (FOR BOX) in se71
    /: POSITION WINDOW
    /: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN
    /: SIZE WIDTH '+0.4' CH HEIGHT +1 LN
    /: BOX FRAME 10 TW
    /: BOX HEIGHT '1.7' LN INTENSITY 20
    Regards,
    vind.

Maybe you are looking for

  • How do I get Apple TV to work with my receiver?

    I have a new home theater. If I plug in my AppleTV to my TV, it works but the sound comes out of the TV. If I plug AppleTV into an HDMI port on my receiver, the TV doesn't know it exists. I want it to come out of my sound system thru my receiver. How

  • Install CS3 on MacBook Pro 10.6.8

    I cannot install CS3 Design Standard on my MacBook Pro (with 10.6.8).  It says this: Setup has encountered an error and cannot continue. Contact Adobe Customer Support for assistance. Customer Support does NOT support CS3, and directed me to the foru

  • New versions of Downloaded applications/programs/(Ex:Flash)/etc do not register in browser as updated.

    My computer has been turned off for almost a year. When reconnecting, refreshing, updating, etc, everything that needs to be done on the computer, i come across the problem of firefox acting as though I did not update anything. I've followed all the

  • Forms 6i not working in HTTPS mode

    We have installed OAS 4.0.8.0 We have downloaded the required certificates and installed them using the default Oracle documentation. We cannot display a form using the secure port (8881). Everything thing work with only the HTTP mode. Can anybody he

  • Can I hide web app items from site search?

    I've added: <meta name="robots" content="noindex"> to my page template and also item description layout, but the items are still appearing in search & the sitemap. Is there another way to hide them?