CIDX -XI-IDOC adapter scenario???????? urgent?? pls help

Hi Frnds,
I want to develop scenario between  CIDXXIIDOC..
if any one having documentation about CIDX
any scenario withs screene shots share to me...
share any useful links,
what are challenges i wil face while developing CIDX adapter scenario
anyone help me out.. its very urgeNT......
Regards,
RAJ

Hi,
CIDX Adapter is Chemical Industry standard for data exchange in B2B scenarios. It uses XML formatted in different manner specific to Chemical industry.
In order to use this, you need to purchase the license.
There are xml schemas provided by CIDX for each transaction like Order Create, Order change, shipping instruction etc..
You need to download the once which are required in your scenario and use the same.
For overview of CIDX in general you can visit http://www.cidx.org
This might give u an business scenario -http://www.rexsoft.com/sci/Rex_CPI_XI_Configuration_Testing_Business_Package.pdf
Hope this helps too...
http://help.sap.com/saphelp_nw04/helpdata/en/23/cb22419e2ab167e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f4/622c41eda5f423e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d5/351941fcdbf56fe10000000a1550b0/frameset.htm
Check this basic guide too..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/915dc712-0b01-0010-a99a-fb2fdfa5ddc2
Check these forum replies too..
CIDX and R/3
Please reward points.
Thanks,
Vijaya.
Edited by: Vijaya Lakshmi Palla on Jun 5, 2008 8:37 AM
Edited by: Vijaya Lakshmi Palla on Jun 5, 2008 8:42 AM

Similar Messages

  • Lookup issue for File to Idoc scenario-- Urgent Pls.

    Hi All,
    Iam doing File to IDoc scenario with one file --> any of 3 R/3 systems.
    Routing has to be done dynamically using a lookup file, based on the incoming GLN code and last character of the Order Reference number.
    The last character of the Order ref Num will have A,B or C.
    Where,  ' A'  for  R/3 152 Client
                 ' B' for  R/3 142 Client
                 'C'  for  R/3  132 Client.
    1. PlantGLN_Routing lookup file :
    DestinationSystem,   Plant GLNCode,       Partner Number,  
    A,                            5000243000473,         GDKDVRC152,     
    B,                            5000243000473,         GDKDVRC142,      
    C,                            5000243000473,         GDKDVRC132,      
    A                                 500034000487           GDKDVRC152,     
    B                                 500034000487           GDKDVRC142,     
    C                                 500034000487           GDKDVRC132,
    By Using DestinationSystem and Plant GLN Code as lookup key --> I need to get the value of partner system.
    2.  IdocCtrlLookup
    Purpose: To read the IdocCtrlLookup file to populate the Idoc control segment
    Now based on the partner system from previous table --> I need to get the details of Sender Port , Sender Partner Type , Sender Partner Function , Sender Partner Number , Rx Port , Rx Partner Type , Rx Partner Function , Rx Partner Number.
    Please help me how can acheive this scenario with the help of lookups.
    Its very urgent.
    Regards
    Krupakar.

    HI,
    Here you would have to use one mapping for dynamic routing , based on this create IM and use it in receiver determination.
    the another mapping is general to file to idoc.
    see the dynamic routing link here
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping -
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Also if you know the field name the context object can be defined for partner no that can be used in receiver determination in condition. to particular partner no in receiver determination.
    Regards
    Chilla

  • XI FILE(FTP) - XI- CRM(Idoc adapter) scenario - restart message

    Hello All,
    I have scenario as below.
    FTP->XI->CRM
    The sender adatper is File Adapter, FTP.
    Recv. adapter : IDOC adapter.
    In CRM, there were middleware settings for idoc processing.
    For an interface, in XI, i had a problem in getting a file of 10 Mb in size, so the file is split and i have made the XI sender adapter 'Z_PRICE_NEW20061004*.txt', so it picks all files within 5 mins and i have almost 104 XML messages.
    Now the problem is a quite no. of message are ended up with error status in outbouond process in XI.
    How can i reporcess the message? As the file is deleted from FTP? i ahve to do anything with the  failed message.
    A quick help is highly appreciated.
    Thanks in advance.
    Best Regards,
    Jilan Bhasha

    Hi ,
    This weblog will help you....
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
    sekhar

  • How to install adapters in pi 7.0 ex(tibco adapter) its urgent plz help

    hi  friends
                   can any one help me how  to insatlll  the tibco adapter in pi 7.0 its urgent plz help
    thanks in advance
    bye
    raja

    Hi Raj,
    Is  your Sender System  Tibco If  so  Use  JMS Adapter  to get  the Data from tibco  and Use  IDOC  Adapter  to Post  in R3. For this you no need to Install any Adapter in XI System.
    Similar discussions ,
    XI integration with Tibco
    XI Integration with Tibco EMS (Using JMS Adapter)
    Regards
    Agasthuri Doss

  • How can i detect if my PC is not on Network..... Urgent Pls Help Soon !!!!!

    Hello Everyone,
    We all know whenever we try to connect to a PC which is not on network, we get UnKnownHostException etc..... by which we can detect that the corresponding PC is not an network(intranet/internet)
    But when i send a msg from my PC to my PC, it works fine even if the network is down. I hv provided my PC's IP address instead of using localhost or 127.0.0.1 which reduces the possibility that the msg will not be traversed thru the network.
    Any IDEA how this works.
    Is There any possible way by which i can detect that my PC is not on network or the PC to which i'm trying to connect is not on network .......
    Pls help me out, its really urgent as to be implemented in my Project
    Thanks In Advance
    Sahil Shaikh

    Hello Surtee
    I have developed a Messeging Service for the eCRM Apllication my company is developing and we r in the final stage of debugging.
    Now whenever a user sends a msg to a PC which is not on network, the messaging service automatically sends an Offline mssg to that PC. But know i want ot distinguish wheather the PC to which i'm sending the msg is not on network or am I not on network based on this i need to perform diff. actions, hence i wanted to know that how can i detect .......
    Pls see if u canhelp me out ......
    Thanks
    Sahil Shaikh

  • Very  Urgent Pls  help :  Change of  payload type to  user-defined types

    Hello Experts
    I was using sys.xml_type as payload type in my queue table creation.
    consider xml message
    <order>
    <id>1</id>
    <load rerer="mq" erere='gg" > </load>
    </order>
    This i inserted into queue table using enqueue process.
    this is done.
    BUT NOW My manager wants to change the payload type.
    he created a type
    create or replace type systype as object (msg varchar2(4000));
    Now payload type of queue table is changed to
    PayloadType==>aq.systype.
    Pls help me how can i insert xml messages into this queue table.
    This is very urgent. Pls help me
    S

    I've just read this thread three times and I have absolutely no idea what you are doing, in what version, and what you are asking for help with.
    Do you want to change the message type? If you do you MUST drop the queue and start over again from the beginning.
    Do you want to enqueue messages?
    Post your DDL and other relevant information or you are on your own. We can not guess at your issue.

  • Sec. Edu Cess not Flowing in MIGO - Urgent Pls help

    Dear Friends
    We have created a IMPORT PO,
    Invoice verification is done with all necessary cess and duties which flown.
    with the MIRO document and year, when we do MIGO, i am able to see duty, cess but secondary edu.cess is not flowing.
    I tried to enter it manually also, but it is not accepting (field is open).
    I have checked the settings.
    The similar kind of PO, before it had been done, MIRO done, MIGO also done with proper flow of all values. But for this particular PO only problem existing.
    Only difference between the two PO is problematic PO is with account assignment category Q.
    Pls treat this urgent and help me in solving the same friends.
    regards
    Panneer

    For Imports, condition type for SECess is <b>J1CV,</b> you have to maintain this condition type in Excise Defaults of CIN Customization.
    Note - You cannot use any other condition type for SECess for Imports other than J1CV.
    Cheers..
    Santosh.D
    <i>Reward Points if Helpfull</i>

  • Its urgent pls help me .

    how can i call a portal from webdynpro application
    my requirment is
    i was created webdynpro application.
    in that i was created one view . in that i was created one button (go).
    if i click that button i want move some other portal.
    how can i acchive pls help me.
    its urgent.
    pls send any example programe
    Message was edited by:
            madipadiga nagaraju
    Message was edited by:
            madipadiga nagaraju

    hi,
    there is no direct tcode for going to webdynpro component/interfaces in ecc 6.0.
    but u have se58 in ecc 5.0,as webdynpro convertor.u give ur program name and click web dynpro convertor button then it takes u to se80 .but this wda(webdynpro abap) component comes as in application tree hierarchy .
    i can say in wda component refers a class .if u select webdynpro component/interface,it ask u to create a class or interface.
    after that it automatically generate component controller(it is also a class),
    interface view and windows.all these 3 are classes.for every window one interface view will be created.ie.. window is internal visible where as interface view is external visible.
    u create view and embed these views in windows.by going to the window layout,right click on the window name and click embed view.u can enbed as many view as u wish.in order to navigate from one view to other view ,click  "create navigation" by right clicking the view plugs.
    by default windows and view have inbound plugs.this is literally a event of that class.
    if u want to navigate from view1 to view2 ,create outbound plug for view1,the click outbound plug of view1 and right click the click create navigation the select inbound plug of view2.
    then create a application .this is simillar of creating an object.
    click on this object and test .this will open in browser.
    for deploying u have use "sap webdynpro iview".

  • Delete duplicate entriess from the internal table its urgent pls help.

    Hi friends,
    Hope everybody is doing good,Here is m query on delete duplicate data from the intenal table.
    I have an internal table which contain data in the following format.
    Doc No Comp Cod Vendor Assignment
    1500000009 JM11 00000000
    1500000008 JM11 20070212(Repeating)
    1500000007 JM11 20070212
    1500000006 JM11 00000000
    1500000005 JM11 00000000
    1500000004 JM11 00000000(Repeating)
    1500000003 JM11 00000000 (Repeating)
    1500000002 JM11 00000000
    1500000001 JM11 20050302
    1500000000 JM11 00000000
    1500000003 JM11 10000088
    1500000001 JM11 10000088
    1500000030 JM11 10006260
    1500000010 JM11 10006269
    1500000008 JM11 10006269
    1500000006 JM11 10006269
    1500000004 JM11 10006269
    if you see the document numbers,there are some document number which are repeating here,there are some document numer which contain vendor number but not the assignments,some of the document numbers contain the assignments but not the vendors.
    If my internal table contain this kind of data with repeted document numbers than i want the document number which contains only the vendor number.
    Pls help me with the appropriate logic,its urgent.
    Thanks a lot
    mrutyun^

    Hi,
    <u><b>Deleting Adjacent Duplicate Entries</b></u>
    To delete adjacent duplicate entries use the following statement:
    DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
    [COMPARING <f1> <f2> ...
    |ALL FIELDS].
    The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are
    duplicate if they fulfill one of the following compare criteria:
      Without the COMPARING addition, the contents of the key fields of the table must be
    identical in both lines.
      If you use the addition COMPARING <f1> <f2> ... the contents of the specified fields <f1>
    <f2> ... must be identical in both lines. You can also specify a field <fi> dynamically as
    the contents of a field <ni> in the form (<ni>). If <ni> is empty when the statement is
    executed, it is ignored. You can restrict the search to partial fields by
    specifying offset and length.
      If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines
    must be identical.
    You can use this statement to delete all duplicate entries from an internal table if the table is
    sorted by the specified compare criterion.
    If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.
    Examples
    DATA: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1.
    DO 4 TIMES.
    LINE-COL1 = SY-INDEX.
    LINE-COL2 = SY-INDEX ** 2.
    INSERT LINE INTO TABLE ITAB.
    ENDDO.
    LINE-COL1 = 1.
    DELETE TABLE ITAB: FROM LINE,
    WITH TABLE KEY COL1 = 3.
    LOOP AT ITAB INTO LINE.
    WRITE: / LINE-COL1, LINE-COL2.
    ENDLOOP.
    The output is:
    2    4
    4   16
    The program fills a hashed table with a list of square numbers. The DELETE
    statement delete the lines from the table where the key field COL1 has the contents 1 or 3.
    Regards,
    Bhaskar

  • Hi guys (very urgent pls help me out)

    i have an doubt that iam using JBoss AS, my scienraio is
    inital when start my Application Server it will connects to mysql DB datasource, i will retrieve some values those are DB Names like oracle,sql server,db2 etc in my JSP page iam placed at combo box upto this i am very much successful but now my problem is after gettinh those values in html select box.
    if user selects Oracle and in the same screen user can enter connection config details and after submitting the request. At runtime App Server want to connect for that particular Database.
    for ex Oracle and its connection parameters then it want to connect that particular Database without restarting the server.
    so mysql is internal DB and Oracle is external db. how to manage this scienraio
    please anyone knows solution, pls help me out......
    regards
    Yadav

    hi
    the message is very clear that the sold to party ur refering is not from the same sales area. if u have the customer already then extend the same to the said sales area, by common division and distribution channel
    <b>reward points</b>
    Regards

  • Download ALV to EXcel- Urgent pls help me

    Please help me in this...
    I have an ALV report around 120 column. The report is displayed perfectly on screen. But when I use the Export option to download as an excel file, some data is missing in SAP No field
    For example
    My report output is like this
    sap No    Name    Jobdes.   Dept
    00021     AAA      clerk1      FI
    00022     BBB      clerk1      FI
    00023     CCC      clerk1      FI
    00024     DDD      clerk1      FI
    00025     EEE      clerk1      FI
    00026     FFF      clerk1       FI
    Excel output is
    sap No    Name    Jobdes.   Dept
    00021     AAA      clerk1      FI
    Blank     BBB      clerk1      FI
    Blank     CCC      clerk1      FI
    Blank     DDD      clerk1      FI
    00025     EEE      clerk1      FI
    Blank    FFF      clerk1       FI
    Pls help me

    Hi Kumar,
              Pls try the below Function Modules to download the data to excel.
    ALSM_EXCEL_TO_INTERNAL_TABLE
    KCD_EXCEL_OLE_TO_INT_CONVERT – Uploads data directly from Excel sheet
    RH_START_EXCEL_WITH_DATA – Starts Excel with contents of an internal table
    or the below links also might help you.
    For uploading Excel to Internal Table??????
    Data from Excel sheet to my internal table
    Check the following link:
    http://www.sap-img.com/abap/upload-direct-excel.htm
    or even the below code might be helpful.
    Multiple excel sheets generation in a workbook
    CREATE OBJECT EXCEL 'EXCEL.SHEET'.
    GET PROPERTY OF EXCEL 'Application' = APPLICATION.
    SET PROPERTY OF APPLICATION 'Visible' = 1.
    CALL METHOD OF APPLICATION 'Workbooks' = BOOKS.
    CALL METHOD OF BOOKS 'Add' = BOOK.
    CALL METHOD OF BOOK 'WORKSHEETS' = SHEET.
    CALL METHOD OF SHEET 'ADD'.
    Fill all the sheets with relavant data
    PERFORM SHEET1 TABLES ITAB1.
    PERFORM SHEET2 TABLES ITAB2.
    PERFORM SHEET3 TABLES ITAB3.
    PERFORM SHEET4 TABLES ITAB4.
    Quit the excel after use
    CALL METHOD OF EXCEL 'QUIT'.
    FREE OBJECT: COLUMN,SHEET,BOOK,BOOKS,APPLICATION,EXCEL. "NO FLUSH.
    CLEAR V_SHEET.
    FORM FILL_CELL USING ROW COL VAL.
    CALL METHOD OF SHEET 'cells' = CELL NO FLUSH
    EXPORTING #1 = ROW #2 = COL.
    SET PROPERTY OF CELL 'value' = VAL.
    FREE OBJECT CELL NO FLUSH.
    ENDFORM. " FILL_CELL
    FORM SHEET1 TABLES ITAB1 STRUCTURE ITAB1.
    V_SHEET = Sheet Name.
    V_NO = V_NO + 1.
    CALL METHOD OF BOOK 'worksheets' = SHEET NO FLUSH EXPORTING #1 = V_NO.
    SET PROPERTY OF SHEET 'Name' = V_SHEET NO FLUSH.
    PERFORM FILL_SHEET1 TABLES ITAB1 USING V_NO V_SHEET.
    CALL METHOD OF SHEET 'Columns' = COLUMN.
    FREE OBJECT SHEET.
    CALL METHOD OF COLUMN 'Autofit'.
    FREE OBJECT COLUMN.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    FORM FILL_SHEET1
    TABLES ITAB1 STRUCTURE ITAB1
    USING V_NO V_SHEET.
    ROW = 1.
    PERFORM FILL_CELL USING ROW 1 'Column1 Name'.
    PERFORM FILL_CELL USING ROW 2 'Column2 Name'.
    PERFORM FILL_CELL USING ROW 3 'Column3 Name'.
    ROW = ROW + 1.
    LOOP AT ITAB1.
    PERFORM FILL_CELL USING ROW 1 ITAB1-Column1.
    PERFORM FILL_CELL USING ROW 2 ITAB1-Column2.
    PERFORM FILL_CELL USING ROW 3 ITAB1-Column3.
    ROW = ROW + 1.
    ENDLOOP.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    Try this also
    TYPE-POOLS: truxs.
    DATA: it_raw TYPE truxs_t_text_data.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = 'P_FILE'
    IMPORTING
    file_name = p_file.
    Upload Excel file
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw
    i_filename = p_file
    TABLES
    i_tab_converted_data = i_XCEL[]
    EXCEPTIONS
    conversion_failed = 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.
    Pls reward if useful.
    THanks,
    Sirisha

  • Urgent Pls Help Me

    I am using the reports 6i and running it on web in excel format and pdf format.
    I want to highlight a particular row with some color based on some condition on of the column
    how do i do this, pls help me
    Vinod

    Bear in mind that your 'Excel' format is really just delimited data and a pure ASCII file, which doesn't support the type of highlighting that you're requesting.
    In 9i you can use jsp technology to embed reports data directly into an Excel spreadsheet. In this case you could probably also include either an Excel macro, or execute some java code that highlighted the appropriate row/values.
    There's an example of this jsp approach available on the demos page available at http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    Hope this helps,
    Danny

  • Download data to Excel- very urgent pls help

    Hi  Experts
    Following is my coding. i need to download and save the it_material table as Excel file.
    pls help me out
    REPORT zvio1001 LINE-SIZE 190
               LINE-COUNT 55
               MESSAGE-ID zz
               NO STANDARD PAGE HEADING.
    TABLES: mara,marce,makt,marc,mvke,zmpkg,t005t,cdhdr.
    DATA : BEGIN OF it_mara OCCURS 0,
             mandt LIKE mara-mandt,          "Client
             matnr LIKE mara-matnr,
             meins LIKE mara-meins,
             laeda LIKE mara-laeda,
             aenam LIKE mara-aenam,
           END OF it_mara.
    DATA : BEGIN OF it_marc OCCURS 0,
           matnr LIKE marc-matnr,
           werks LIKE marc-werks,
           END OF it_marc.
    DATA : BEGIN OF it_makt OCCURS 0,
           matnr LIKE makt-matnr,
           maktx LIKE makt-maktx,
           END OF it_makt.
    DATA : BEGIN OF it_zmpkg OCCURS 0,
           matnr LIKE makt-matnr,
           zppqt LIKE zmpkg-zppqt,
           zspqt LIKE zmpkg-zspqt,
           zpmqt_3 LIKE zmpkg-zpmqt_3,
           END OF it_zmpkg .
    DATA : BEGIN OF it_material OCCURS 0,
             mandt LIKE mara-mandt,          "Client
             werks LIKE marc-werks,
             matnr LIKE marc-matnr,
             maktx LIKE makt-maktx,
             meins LIKE mara-meins,
             zppqt LIKE zmpkg-zppqt,
             zspqt LIKE zmpkg-zspqt,
             zpmqt_3 LIKE zmpkg-zpmqt_3,
             laeda LIKE mara-laeda,
             aenam LIKE mara-aenam,
             date LIKE sy-datum,
             time LIKE sy-uzeit,
             user    LIKE sy-uname,
           END OF it_material.
    P a r a m e t e r s                                                 *
    Start of tabbed screens
    SELECTION-SCREEN BEGIN OF TABBED BLOCK list FOR 20 LINES.
    SELECTION-SCREEN TAB (30) gc_gen USER-COMMAND gen_tab
                                        DEFAULT SCREEN 1001.
    SELECTION-SCREEN TAB (30) gc_view  USER-COMMAND view_tab
                                        DEFAULT SCREEN 1002.
    SELECTION-SCREEN TAB (30) gc_outp  USER-COMMAND outp_tab
                                        DEFAULT SCREEN 1003.
    SELECTION-SCREEN END OF BLOCK list.
    SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK box01 WITH FRAME TITLE text-401.
    PARAMETERS : p_werks LIKE marc-werks OBLIGATORY.
    PARAMETERS : p_vkorg LIKE mvke-vkorg OBLIGATORY.
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    SELECT-OPTIONS : s_mtart FOR mara-mtart.
    SELECT-OPTIONS : s_mmsta FOR marc-mmsta.                           "A01
    SELECT-OPTIONS : s_dispo FOR marc-dispo.
    SELECT-OPTIONS : s_beskz FOR marc-beskz.
    SELECT-OPTIONS : s_lgpro FOR marc-lgpro.
    SELECT-OPTIONS : s_lgfsb FOR marc-lgfsb.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-014.
    PARAMETERS : p_repall RADIOBUTTON GROUP sel2 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-011.
    PARAMETERS : p_change  RADIOBUTTON GROUP sel2.
    SELECTION-SCREEN COMMENT 36(1) text-013.
    PARAMETERS : p_chgdat LIKE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-010.
    PARAMETERS : p_excdel AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box01.
    SELECTION-SCREEN END OF SCREEN 1001.
    View Selection Screen
    SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK box05 WITH FRAME TITLE text-403.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(77) text-109.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-021.
    PARAMETERS: p_sales AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-022.
    PARAMETERS: p_mrp  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-023.
    PARAMETERS: p_store AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-024.
    PARAMETERS: p_accnt AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-025.
    PARAMETERS: p_cost  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 38(20) text-026.
    PARAMETERS: p_purch AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box05.
    SELECTION-SCREEN END OF SCREEN 1002.
    SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN.
    extract format selection
    SELECTION-SCREEN BEGIN OF BLOCK box04 WITH FRAME TITLE text-402.
    PARAMETERS : p_vari LIKE ltdxt-variant OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-009.
    PARAMETERS: p_report RADIOBUTTON GROUP sel1 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-016.
    PARAMETERS : p_repcoo RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-017.
    PARAMETERS : p_reppak RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-008.
    PARAMETERS: p_extun RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-007.
    PARAMETERS: p_extpc RADIOBUTTON GROUP sel1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: p_pcfile LIKE rlgrap-filename
               DEFAULT 'c:\#ups\CLIENTIDCCYYMMDDHHMMSS.ITM'.
                DEFAULT 'd:\P0121205MMM_YYYYMMDD HHMMSS.XLS'.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(40) text-015.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END   OF BLOCK box04.
    SELECTION-SCREEN END OF SCREEN 1003.
    F i e l d   S y m b o l s                                           *
    FIELD-SYMBOLS: <f>.
    D a t a                                                             *
    common include for file layouts
    INCLUDE zvin1010.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_PCFILE'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
                     I N I T I A L I Z A T I O N                         *
    INITIALIZATION.
      gc_gen   = text-401.
      gc_outp  = text-402.
      gc_view  = text-403.
    SET up the file directory depending on the system id.
      GET PARAMETER ID 'WRK' FIELD p_werks.
      GET PARAMETER ID 'VKO' FIELD p_vkorg.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'ROH'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'MFPK'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
      CLEAR s_mtart.
      s_mtart-sign   = 'E'.
      s_mtart-option = 'EQ'.
      s_mtart-low    = 'VERP'.
      s_mtart-high   =  ''.
      APPEND s_mtart.
    START-OF-SELECTION.
    check that the download is active
    PERFORM get_data.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
    SELECT   mandt matnr meins laeda aenam
    FROM mara
    INTO TABLE it_mara
    WHERE matnr IN s_matnr.
    IF NOT it_mara[] IS INITIAL.
    SELECT matnr werks
    FROM marc
    INTO TABLE it_marc
    FOR ALL ENTRIES IN it_mara
    WHERE matnr = it_mara-matnr
    AND werks = p_werks.
    SELECT matnr maktx
    FROM makt
    INTO TABLE it_makt
    FOR ALL ENTRIES IN it_marc
    WHERE matnr = it_marc-matnr
    AND spras = 'E'.
    SELECT matnr zppqt  zspqt zpmqt_3
       INTO TABLE    it_zmpkg
       FROM zmpkg
       FOR ALL ENTRIES IN it_marc
    WHERE matnr = it_marc-matnr
    AND  werks = p_werks.
    ENDIF.
    LOOP AT it_mara.
    READ TABLE it_marc WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    READ TABLE it_makt WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    READ TABLE it_zmpkg WITH KEY matnr = it_mara-matnr.
    IF sy-subrc EQ 0.
    it_material-mandt = it_mara-mandt.
    it_material-matnr = it_mara-matnr.
    it_material-maktx = it_makt-maktx.
    it_material-meins = it_mara-meins.
    it_material-laeda = it_mara-laeda.
    it_material-aenam = it_mara-aenam.
    it_material-werks = it_marc-werks.
    it_material-zppqt = it_zmpkg-zppqt.
    it_material-zspqt = it_zmpkg-zspqt.
    it_material-zpmqt_3 = it_zmpkg-zpmqt_3.
    it_material-date = sy-datum.
    it_material-time = sy-uzeit.
    it_material-user = sy-uname.
    APPEND it_material.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    " GET_DATA

    Hi Kumar,
         After building your it_material internal table, try using GUIO_DOWNLOAD to load the data into an excel sheet.
    check this sample code.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = SELECT_FILE   " Filename
          FILETYPE                = 'ASC'
          APPEND                  = ' '
        TABLES
          DATA_TAB                = ITAB_STR_1
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          OTHERS                  = 22.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        EXIT.
      ENDIF.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Select statement- very urgent pls help

    hi
    i want to extract following fields into one internal table.
    anyone pls help me to do this?
      mara-mandt, mara-matnr, mara-meins, mara-laeda, mara-aenam, marc-werks, makt-maktx, sy-datum, sy-uzeit, sy-uname
    Thanks
    Kumar

    Hi Kumar K,
    TABLES: MARA, MARC, MAKT.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    PARAMETERS : P_WERKS LIKE MARC-WERKS  OBLIGATORY.
    DATA :      BEGIN OF WA_FINAL,
         MANDT LIKE MARA-MANDT,
         MATNR LIKE MARA-MATNR,
         MEINS LIKE MARA-MEINS,
         LAEDA LIKE MARA-LAEDA,
         AENAM LIKE MARA-AENAM,
         WERKS LIKE MARC-WERKS,
         MAKTX LIKE MAKT-MAKTX,
    DATE TYPE SY-DATUM,
    TIME TYPE SY-UZEIT,
    UNAME TYPE SY-UNAME,
         END OF WA_FINAL,
         BEGIN OF WA_MARA,
         MANDT LIKE MARA-MANDT,
         MATNR LIKE MARA-MATNR,
         MEINS LIKE MARA-MEINS,
         LAEDA LIKE MARA-LAEDA,
         AENAM LIKE MARA-AENAM,
         END OF WA_MARA,
         BEGIN OF WA_MAKT,
         MATNR LIKE MAKT-MATNR,
         MAKTX LIKE MAKT-MAKTX,
         END OF WA_MAKT,
         BEGIN OF WA_MARC,
         MATNR LIKE MARC-MATNR,
         WERKS LIKE MARC-WERKS,
         END OF WA_MARC.
    DATA : IT_MARA LIKE STANDARD TABLE OF WA_MARA WITH HEADER LINE,
    IT_FINAL LIKE STANDARD TABLE OF WA_FINAL WITH HEADER LINE,
    IT_MAKT LIKE STANDARD TABLE OF WA_MAKT WITH HEADER LINE,
    IT_MARC LIKE STANDARD TABLE OF WA_MARC WITH HEADER LINE.
    SELECT   MANDT
         MATNR
         MEINS
         LAEDA
         AENAM
    FROM MARA
    INTO TABLE IT_MARA
    WHERE MATNR IN S_MATNR.
    IF IT_MARA[] IS NOT INITIAL.
    SELECT MATNR
    WERKS
    FROM MARC
    INTO TABLE IT_MARC
    FOR ALL ENTRIES IN IT_MARA
    WHERE MATNR = IT_MARA-MATNR
    AND WERKS = P_WERKS.
    ENDIF.
    IF IT_MARA[] IS NOT INITIAL.
    SELECT MATNR
                 MAKTX
    FROM MAKT
    INTO TABLE IT_MAKT
    FOR ALL ENTRIES IN IT_MARA
    WHERE MATNR = IT_MARA-MATNR.
    ENDIF.
    LOOP AT IT_MARA.
    IT_FINAL-MANDT = IT_MARA-MANDT.
    IT_FINAL-MATNR = IT_MARA-MATNR.
    IT_FINAL-MEINS = IT_MARA-MEINS.
    IT_FINAL-LAEDA = IT_MARA-LAEDA.
    IT_FINAL-AENAM = IT_MARA-AENAM.
    READ TABLE IT_MARC WITH KEY MATNR = IT_MARA-MATNR.
    IF SY-SUBRC = 0.
    IT_FINAL-WERKS = IT_MARC-WERKS.
    ENDIF.
    READ TABLE IT_MAKT WITH KEY MATNR = IT_MARA-MATNR.
    IF SY-SUBRC = 0.
    IT_FINAL-MAKTX = IT_MAKT-MAKTX.
    ENDIF.
    IT_FINAL-DATE = SY-DATUM.
    IT_FINAL-TIME = SY-UZEIT.
    IT_FINAL-UNAME = SY-UNAME.
    APPEND IT_FINAL.
    CLEAR : IT_FINAL, IT_MARA , IT_MAKT, IT_MARC.
    ENDLOOP.
    now IT_FINAL table contains the final data which you want...
    Hope it will solve your problem
    Reward points if useful...
    Thanks & Regards
    ilesh 24x7

  • Very URGENT: PLS HELP:canno resolve symbol session.setAttrribute

    hi everbody,
    i'm new at this and have got a presentation after 1 day!....pls help
    when i compile the servlet i get :
    cannot resolve symbol
    metod: setAttribute (java.lang.String,java.lang.String)
    location: interface(javax.servlet.http.HttpSession)
    the servlet that gets te error when comiled is:
    * Authenticate.java
    // this places all user variables in session
    //to access use session.getAttribute
    //dispatcher stuff
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    * @author Gudiya
    * @version
    public class Authenticate extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    HttpSession session = request.getSession(true);
    Connection con=null;
    String sessionid;
    String deptcode;
    String desig;
    String add1;
    String add2;
    String contname;
    PrintWriter out = response.getWriter();
    try
    response.setContentType("text/html");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:SACFA","","");
    System.out.println("connection established");
    catch(ClassNotFoundException e){
    System.out.println("database driver not found");
    System.out.println(e.toString());
    catch(Exception e){System.out.println(e.toString());
    // ServletContext context=getServletContext();
    String username=request.getParameter("username");
    String password=request.getParameter("password");
    try{
    PreparedStatement stmt=con.prepareStatement("SELECT * FROM AUTHENTICATION,mb_add where AUTHENTICATION.NAME=? AND AUTHENTICATION.PASSWORD=? AND mb_add.DEPT_NAME=?");
    stmt.setString(1,username);
    stmt.setString(2,password);
    stmt.setString(3,username);
    ResultSet rs=stmt.executeQuery();
    boolean rowfound=false;
    rowfound=rs.next();
    if (rowfound==true)
    sessionid=session.getId();
    System.out.println(sessionid);
    //context.setAttribute("userid",sessionid);
    // session.setAttribute("user",username);
    rs.beforeFirst();
    while (rs.next())
    deptcode=rs.getString("DEPT_CODE");
    desig=rs.getString("DESIGNATION");
    add1=rs.getString("ADDRESS1");
    add2=rs.getString("ADDRESS2");
    contname=rs.getString("NAME");
    session.setAttribute("dept_code",deptcode);
    session.setAttribute("designation",desig);
    session.setAttribute("address1",add1);
    session.setAttribute("address2",add2);
    session.setAttribute("cont_name",contname);
    //context.getRequestDispatcher(request.getParameter("dispatcho")).forward(request,response);
    }          out.println("<html>");
              out.println("<head>");
              out.println("<title>Successful Login Screen</title>");
              out.println("</head>");
              out.println("<body bgcolor='ORANGE'>");
    out.println("<script language='Javascript'>");
    out.println("<!--function send_onclick(mydispatcho) {var dispatcho;if(mydispatcho=='Noc'){ dispatcho='/Noc1';}if(mydispatcho=='Ce'){ dispatcho='/Ce1';} if(mydispatcho=='Bye'){ dispatcho='/Bye1';}}-->");
    out.println("</script>");
    out.println("WELCOME MEMBERS FROM "+ username);
    //print decorative html statements here
              out.println(" SELECT NY ONE ACTION:-");
    out.println("<form Action="+"\"servlet/noc\""+" method =post>");//call for your noc servlet
    //print decorative html statements here
    out.println("<INPUT TYPE=submit VALUE='GENERATE NOC' NAME='NOC' language='javascript'>");
    out.println("</form>");
    //print decorative html statements here
    out.println("<form Action="+"\"servlet/comments\""+" method =post>");//call for your comment servlet
    out.println("<INPUT TYPE=submit VALUE='ENTER/ MODIFY COMMENTS' NAME='COMMENTS' language='javascript' >");
    out.println("</form>");
    //print decorative html statements here
    out.println("<form Action="+"\"servlet/bye\""+" method = post>");
    out.println("<INPUT TYPE=submit VALUE=EXIT NAME=EXIT language='javascript' >"); //place javascript fucction for exiting window
    out.println("</form>");
              out.println("</body>");
              out.println("</html>");
    con.close();
    } catch( SQLException e){ }
    out.close();}
    NOTE: I'M USING JDK1.3 and jsdk2.0
    pls help me....
    Thank u all,
    ashna

    HTTP Status 404 - /mywork/servlet/Authenticate
    hi dheeraj,
    thank u so much the servlet comiled!!!
    now i have a new problem....the Tomcat server cannot find its class file. i have placed the class file in C:\Program Files\Apache Group\Tomcat 4.1\webapps\mywork\WEB-INF\classes.
    the error it shows is as follows:
    type Status report
    message /mywork/servlet/Authenticate
    description The requested resource (/mywork/servlet/Authenticate) is not available.
    Apache Tomcat/4.1.18-LE-jdk14
    PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

Maybe you are looking for