IDOC: How to fill data for sub segments ?

Hi,
I have 3 segments, segA , segB , segA1 . segA1's parent segment is segA . segA and segB are at the same level .
How to fill data for segA1  ? can you give some sample code ?
Thanks a lot !

hi,
You can fill the segment in the sequence in the idoc either parent or child.
In you case first fill parent segment SEGA next SEGA1. Then you can fill the SEGB.(If segB is deifned as next segment of segA in the idoc structre)
Thanks and regards,
shyla kumar

Similar Messages

  • How to fill data  for asset accoutning datasources

    hi gurus
    i want to know how to fill data for the FI:asset accounting data sources.As these datasources are not related to Logistics,i think filling setuptables concept doesnot come into picture here.thenhoe to  fill data for the datasources:0FI_AA_001,0FI_AA_005,0FI_AA_006
    Pls give me some inputs ASAP
    Its very Urgent
    Thanks in Advance
    Surya Reddy

    Hi,
    Asset Accounting works with Timestamp mechanism.  No Setup table concept like logistics.  Find the prerequisites for AA extraction.
    For Asset Accounting Delta Extraction you first need to have this BADI - FIAA_BW_DELTA_UPDATE active in the system:
    Check the link below for more details about the badi and the delta extraction procedure.
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/f4153c4eb5d82ce10000000a114084/frameset.htm
    Sequence of Data Requests
    For summarization of line items by master record characteristics (such as cost center) during posting of ODS objects to Info Cubes, master data must already exist prior to extraction of transaction data.
    Also the following sequence must therefore be kept to during extraction:
    1. 0FI_GL_4 General Ledger: line items (if required)
    2. 0ASSET_ATTR_TEXT Asset sub number (flexible updating)
    3. 0ASSET_AFAB Depreciation area real or derived
    Then the transaction data
    0FI_AA_11 FIAA: transactions and / or
    0FI_AA_12 Posted depreciations (period values)
    Hope it helps
    Regards
    Srikanth

  • How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC

    Hi
    How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC datasources at RSA3?
    I'm very new to retail BI.
    I think there is no setup tables for Retail infosources.
    Any IDoc or BAPI activation is required or other procedure?
    We are in BI-700 SAPKW70015 support pack R/3 side
    and SAP_BW 700 Support pack SAPKW70016 &
    BI_CONT 703 Support pack SAPKIBIIP9 BI side
    Can anyone guide me how to load data?
    Points assured
    Thanks in advance
    Ramana P

    Dear Ramana,
    There is no setup table for POSCAS and POSREC.This has to be popuated with a BADI Implementation. 
    As of PlugIns 2002_1_470 and 2002_2_470, POS data is update into BW the 2LIS_44_POSREC and 2LIS_43_POSCAS extractors using a BADI. To be able to update data into BW, the relevant implementation for the BADI must be activated in each case. You can activate the implementation in transaction SE19. The implementations are as follows:
    POS_EX_REC_PI2003_1 for extractor 2LIS_44_POSREC
    POS_EX_CAS_PI2003_1 for extractor 2LIS_44_POSCAS
    Once the activation of BADI , create the back ground jobs for the 44 application and the data is pushed into Delta queue and it can be loaded into BI .
    Hope this helps you.
    Thanks,
    Krishna Charan

  • How to bring data for newly aciated datasource in a Application componenet

    Hi ,
             i have 2 data sources(application component 11) are active in production system. and  delta load is running for them.
    Now we have a requirement that we need to activate the 3rd datasource in the same application component 11.
    so, how to bring data for the newly acivated datasource. Do i delete the setup table data and again run statistical setup and run the init for the three data sources?
    how to do?

    Hi,
    To bring the data for the new data source you need to delete the data from setup tables and need to fill up again. before filling up the tables, its better to load the delts for other 11 application components data.
    Your deltas will come from delta queue, by deleting the setup tables, you will not impact your delta loads.
    So just fill up setup tables and run your init package. it will extract the data.
    Thanks
    Srikanth

  • HT4623 how to recover data for contacts on iPad mini

    how to recover data for contacts on ipad mini?

    You don't give much info to go on. Do you sync your contacts?

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

  • How should restrict data for particular month?

    Hi Experts,
    How should retrieve data for particular month without where condition.

    Hi,
    You must be having Month Object right in your Webi?
    User will be given opportunity to Select his/her required [Month]
    Create variable as =Userresponse("Enter value for Month")same text as you are giving in the Prompt text....Name it as [UMonth]
    Go to analysis tab..Filter..Add filter...[Month]=[UMonth]
    always this report will run for the month user require

  • How to fill data in to extended idoc segments  for outbound program

    Hi all,
    I am new to this Community In the extension of  Standard idoc INVOIC02  with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
    i need some sample code
    THANKS
    PAVAN K

    Hi all,
    I am new to this Community In the extension of  Standard idoc INVOIC02  with some custom segments like zemail, zfax,,,,how to fill the data into both standard segments and custom segments for outbound idoc using exit EXIT_SAPLVEDF_002 of standard function module IDOC_OUTPUT_INVOIC...
    i need some sample code
    THANKS
    PAVAN K

  • How to fill data in idoc

    Hi experts,
    Could u please give some sample codes for filling data into idoc.

    Hi Nisha,
    Go through this userdefined program u can understand .
    *& Report  ZBT_SEL_PROGRAM                                             *
    REPORT  zbt_sel_program                         .
    TABLES: mara.
                  Data declaration
    *--Material number selection.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    PARAMETERS:
    *--Rec.Partner
       p_rcvprn TYPE edi_rcvprn,
    *--Message type
       p_msgtyp TYPE edi_mestyp.
                  Internal table declaration
    DATA:
    *--MARA data
          it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
    *--To fill the segment Z1MARM
          it_temp_mara TYPE STANDARD TABLE OF z1marm WITH HEADER LINE,
    *--MAKT data
          it_makt TYPE STANDARD TABLE OF makt WITH HEADER LINE,
    *--To fill the segment E1MAKTM
          it_temp_makt TYPE STANDARD TABLE OF e1maktm WITH HEADER LINE.
    DATA: st_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
          st_comm_cont TYPE STANDARD TABLE OF edidc WITH HEADER LINE,
          st_mast_cont TYPE edidc.
    *--Fetch the data from MARA table
    SELECT * FROM mara INTO TABLE it_mara WHERE matnr IN s_matnr.
    IF sy-subrc = 0.
      SORT it_mara.
    ENDIF.
    *--Fetch the data from MAKT table
    IF NOT it_mara[] IS INITIAL.
      SELECT * FROM makt INTO TABLE it_makt FOR ALL ENTRIES IN it_mara
                        WHERE matnr = it_mara-matnr.
      IF sy-subrc = 0.
        SORT it_makt.
      ENDIF.
    ENDIF.
    *--Fill the iternal tables which is type the same of Segments
    LOOP AT it_mara.
      MOVE-CORRESPONDING it_mara TO it_temp_mara.
      APPEND it_temp_mara.
      CLEAR it_temp_mara.
    ENDLOOP.
    LOOP AT it_makt.
      MOVE-CORRESPONDING it_makt TO it_temp_makt.
      APPEND it_temp_makt.
      CLEAR it_temp_makt.
    ENDLOOP.
    *--Fill the segments
    LOOP AT it_temp_mara.
      st_edidd-segnam = 'Z1MARM'.
      st_edidd-sdata = it_temp_mara.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    LOOP AT it_temp_makt.
      st_edidd-segnam = 'E1MAKTM'.
      st_edidd-sdata = it_temp_makt.
      APPEND st_edidd.
      CLEAR st_edidd.
    ENDLOOP.
    *--Fill Master IDOC
    st_mast_cont-rcvprt = 'LS'.
    st_mast_cont-rcvprn = p_rcvprn.
    st_mast_cont-mestyp = p_msgtyp.
    st_mast_cont-idoctp = 'ZMATMAS01'.
    *--Create the communication IDOC by passsing master IDOC and control
    information.
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        master_idoc_control                  = st_mast_cont
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      TABLES
        communication_idoc_control           = st_comm_cont
        master_idoc_data                     = st_edidd
    EXCEPTIONS
       error_in_idoc_control                = 1
       error_writing_idoc_status            = 2
       error_in_idoc_data                   = 3
       sending_logical_system_unknown       = 4
       OTHERS                               = 5
    IF sy-subrc = 0.
    *--Commit work
      COMMIT WORK.
    ENDIF.
    *--Display IDOC Number.
    LOOP AT st_comm_cont.
      WRITE: 'IDOC Numbers:',st_comm_cont-docnum.
    ENDLOOP.
    Rewards some points.
    Rgds,
    P.Naganjana Reddy

  • IDOC :: how to send data from Custom Infotype in SAP HR to third party

    Hi,
    I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
    Please help me in doing it.
    I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
                                                                                    ZTALENT                        Talent Management                                                                               
    5  E1PLOGI                        Header for an HR Object (Master Data or Organizational Data)                                                                               
    5  E1PITYP                        HR: Transported Infotypes and Subtypes for an Object                                                                               
    ZPUSER                         User base Data File                                          
                    ZPERSON                        Personal Information File Segment                            
                    ZPOST                          Position File                                                
                    ZOPE                           Overall Performance                                          
                    ZPWORK                         Outside Work Experience                                      
                    ZPEDUC                         Education Details of Employee                                
                    E1P0000                        HR: HR Master Record Infotype 0000 (Actions)                 
                    E1P0001                        HR: HR Master Record Infotype 0001 (Org. Assignment)         
                    E1P0002                        HR: HR Master Record Infotype 0002 (Personal Data)           
                    E1P0016                        HR Master Record: Infotype 0016 (Contract Elements)          
                    E1P0022                        HR Master Record: Infotype 0022 (Education)                  
                    E1P0023                        HR Master Record: Infotype 0023 (Other/Previous Employers)   
                    E1P0041                        HR Master Record: Infotype 0041 (Date Specifications)        
                    E1P0105                        HR: HR Master Record Infotype 0105 (Communications)       
                   ZE1P9020
                    ZPLANG                         Language Details                                             
                    ZACTION                        Actions Changes            
    Regards,
    Krishna

    Hello Shankar,
             Technically TEMSE files are read by calling the following 3 function modules in sequence,
                  1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
                  2) RSTS_READ : read the object
                  3) RSTS_CLOSE: close the object
    Regards,
    Rajesh

  • How to get data from  different SEGMENTs

    Hi;
    My requirement is to first of all retrieve the data from different segments in run time.
    I mean, i have to execute t/code WE19 and the idoc will be given after that an user exit would called where i have to retrieve the data from different segments and then it would store in an internal table for further calculation.
    Can you all please guide me how to retrieve the data via ABAP code in runtime so that it can store in an internal table.
    Regards
    Shashi

    write code lke this ..
    form post_idoc tables idoc_data structure edidd
                                    idoc_status structure bdidocstat .
    loop at idoc_data .
      case idoc_data-segnam .
        when 'zsegment1'.
           move idoc_data-sdata to wa_zsegment1 .
        when 'zsegment2'.
          move idoc_data-sdata to wa_zsegment2 .
       when 'zsegmentn'.
          move idoc_data-sdata to wa_zsegmentn.
      endcase .
    endloop.
    After this write code to move data to int table from work area .
    endform .
    Hope this helps u....

  • How to fill data in a table automatically

    Hello Experts,
    I would like to know if its possible to fill data in a table by looping.
    I have the following table:
    Draws(
    NUM NUMBER,
    START_DATE DATE NOT NULL,
    END_DATE DATE NOT NULL,
    ACTIVE CHAR(1 BYTE) DEFAULT 'Y')
    Now my table should contain the foll:
    Num start_date end_date active
    1 23/01/2010 21:00:00 30/01/2010 19:00:00 Y
    2 30/01/2010 21:00:00 06/02/2010 19:00:00 Y
    I have an initial start date and the end_date is always (start_date + 7) and the next start date starts with the previous end_date but time changes from 19:00 to 21:00.
    Is there a way i can enter those values on a weekly basis???
    Thanks
    Edited by: Kevin CK on Jul 5, 2010 3:07 AM

    there are a number of ways to do weekly inserts. it just depends on your environment and what you want to manage.
    1. write a PL/SQL procedure to do the periodic insert. i assume you know how to do this since you only asked about doing the insert weekly.
    2. options for running the procedure weekly:
    a. using your OS job scheduler, schedule a batch job to run a sql script to execute the procedure.
    b. inside the Oracle database, use DBMS_SCHEDULER (or DBMS_JOB if you are on a version older than 10g) to run the procedure.
    c. write yourself a reminder on a sticky note to run the procedure each week, post it on your computer, and run it manually.
    if you need more details, just say so.

  • How to select data for nested object (Object based on another objects)

    Hi,
    I have written the following code, but I am not able to fetch data as I fetch from normal table, Plz help.
    Following is the sample code -
    CREATE TYPE A_OBJ IS OBJECT (
    A_NAME VARCHAR2 (100),
    A_DESC VARCHAR2 (100)
    CREATE TYPE A_TAB IS
    TABLE OF A_OBJ
    CREATE TYPE B_OBJ IS OBJECT (
    B_NAME VARCHAR2 (100),
    B_DESC VARCHAR2 (100)
    CREATE TYPE B_TAB IS
    TABLE OF B_OBJ
    CREATE TYPE H_OBJ IS OBJECT (
    A A_TAB,
    B B_TAB
    create type H_TAB is table of H_OBJ
    -- Created the function to fill the data into my objects.
    Create or Replace Function ABC RETURN H_TAB IS
         l_data H_TAB := H_TAB();
         v_loop_count BINARY_INTEGER := 1;
         obj1 A_TAB;
         obj2 B_TAB;
    begin
         for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A') loop
              obj1 := A_TAB();
              obj1.extend;
              obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              obj2 := B_TAB();
              obj2.extend;
              obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              l_data.extend;
              l_data(l_data.last) := H_OBJ(obj1,obj2);
         end loop;
         Return l_data ;
    end;
    -- used this SQL for fetching the data using the function -
    select *
    FROM the ( SELECT cast(ABC ()
    as H_TAB) FROM dual )
    the above SQL not gives me the data in the as a normal table returns, plz suggest me how to write SQL for above case.
    Thanks in Advance,
    Deepak

    First try to move your obj1 and obj2 initialization outside of the for loop. Not sure if this is even the issue, but it can't be helping.
    obj1 := A_TAB();
    obj2 := B_TAB();
    for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A')
    loop
      obj1.extend;
      obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      obj2.extend;
      obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      l_data.extend;
      l_data(l_data.last) := H_OBJ(obj1,obj2);
    end loop;

  • How to fill data when call function of sap standard script form?

    Hi every experts,
    <Priority Normalized>
    In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N.  And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame.  The form is done by script form.
    And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so  I print puchase order by smartform, when logging in 'ZH'.
    But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
    So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
    If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
    <Urgency downgraded>
    Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
    Edited by: Vinod Kumar on Jul 26, 2011 4:09 PM

    Hi,
    Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
    so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
    hope this helps.
    Thanks,
    Venkatesh

  • How to fill listbox for some lines in a table control

    I have a table control associated to a database table. I would like to enable several lines in the table control for the user to input data. I have a field defined as a listbox with key. In PBO -> I fill the listbox based on the value of  field u201CAu201D.  I execute a select using value of field u201CAu201D.
    If I maintain module tc_zmovi_wm_change_tc_attr OUTPUT as the wizard created it:
    MODULE tc_zmovi_wm_change_tc_attr OUTPUT.
        DESCRIBE TABLE i_zmov_wm LINES tc_zmovi_wm-lines.
    ENDMODULE.    
    I have no problem with the listbox ( it is filled normaly) but user has a unique line enabled in the table control to input data.
    If I change the module in this way:
    MODULE tc_zmovi_wm_change_tc_attr OUTPUT.
    DATA: v_lineas type i.
    tc_zmovi_wm-lines = v_lineas + 10.
    ENDMODULE.   
    There are 10 lines enabled to input data for the user but the list is not filled whenever user filles field u201CAu201D.
    How could I solve this problem?
    Thanks.

    With this Eventcase the mouse down of the specified cell will be ignored
    Attachments:
    Table.png ‏28 KB

Maybe you are looking for

  • Unlimited Data Vent

    I have been a Verizon customer for a good many years.  When I joined all 4 of our phones had unlimited data.  Over the years the unlimited data dropped off and in order to upgrade my wife and kids' phones I had to go to new plans for them.  Due to th

  • How to do paging in the Azure search?

    how to do paging in the Azure search? please provide me any code if you have

  • System fonts messed up,

    After installing some fonts bought online, applications like Flash, Dreamweaver, Internet browser such as Safari, Camino, IE and others has it fonts messed up. Now when I browse the web or even search on Google, all the fonts messed up to some sort o

  • Can't get Encore to produce a valid DVD image

    I've got a project with about 6 menus and 7 timelines - one ~2 hour feature, and several 1-2 minute 'extras'. Menus have simple 30 second looping background videos. Nothing really special... I've set all my videos to transcode to a custom preset I cr

  • App-V Adobe Acrobat XI Professional PDF Maker office addin issue after sequencing

    Hello I sequenced acrobat prof successfully with app-v 5.0 sp2. the software works fine with one exception... If i try to create a pdf from a word/excel or powerpoint 2010 following error occurs: "Unable to find Adobe PDF Ressource files"