Needed coded

Hi Experts ,
              Please do the needful.I need logic for this method.Thanks in Advance.
To make the printing optional, we will use a field on the customer master (attribute 6) à on the Billto Partner of the invoice.  We will only be interested in the first character of this field.  Ie KNA!-KATR6+0(1)
Detailed process description
The meaning of the FULL values on attribute 6 are seen below: Each character has a meaning.  YOU ARE ONLY INTERESTED IN THE FIRST CHARACTER(1)     à sequence on inv (N = no, Other values = yes)(2)     à Oligo summary on Order (0 = no, 1 = yes)(3)     à Oligo summary on Inv. (0 = no, 1 = yes)The Function analyst will create 6 more values  for attribute 6:N00     no sequence on inv / no Variant summary  (Order and invoice)N01     no sequence on inv / No Var.sum. Order / Var.sum. Inv. N02     no sequence on inv / No Var.sum. Order / Var.sum. on Inv at Partner level N10     no sequence on inv / Var.sum. Order / No Var.sum. inv N11     no sequence on inv / Var.sum. Order / Inv no sequenceN12     no sequence on inv / Var.sum. Order / Inv/P no sequenceIf the first character of the value of attribute 6 = ‘N’  i.e. “No print” à neither  the Oligo  nor  the Peptide sequences should be printed.   If the value is “V” or there is no value in Attribute 6 field in the customer master data, the default should be to print the sequence as it is today.
6.     Technical proposal
6.1.     Design / Development Approach
Type of requirement
Printout
Processing Logic
The following needs to be created once, after which, the call to the method should be inserted in all related outputs.Create Method:  IS_SEQUENCE_NOT_TO_PRINT .  This must be a value method in class ZCL_CONFIGURABLE_ITEM , passing document number VBDKR-VBELN that returns a parameter value: X = True, Blank = false.see e.g. method IS_GENOSYS_ITEM below from class (METHOD is_genosys_item .  STATICS: l_gen_cats TYPE z_pstyv_tt.  DATA:    l_gen_cat_line TYPE zpstyv_line.  IF l_gen_cats[] IS INITIAL.    CALL METHOD zcl_configurable_item=>get_gen_valid_item_cats      IMPORTING        itemcats_range_all_out   = l_gen_cats      EXCEPTIONS        no_item_categories_found = 1        OTHERS                   = 2.    IF sy-subrc <> 0.      is_genosys_item = space.      RETURN.    ENDIF.  ENDIF.  IF item_cat_in IN l_gen_cats    AND NOT l_gen_cats[] IS INITIAL.    is_genosys_item = c_checked.  ELSE.    is_genosys_item = space.  ENDIF.ENDMETHOD.)ZCL_CONFIGURABLE_ITEM. In this method, include the following logic:GET BILLTO_PARTNER customer number for the document (reading VBPA where VBELN = document number VBDKR-VBELN and partner PARVW = ‘RE’ / ‘BP’)Read table KNA1 to get field KNA1-KATR6 where KUNNR equals Billto partner, and fields VBDKR-VKORG, VBDKR-VTWEG, VBDKR-SPART, Store first character of field KNA1-KATR6 in a work field e.g. W_ KATR6.Add the entry below to the ZLITERAL table in all clients Read the records from ZLITERAL table (reading key1 = C_ZLIT_GENOSYS_KEY, and key2 = C_KATR6_1) where C_KATR6_1 = attribute on class, with value = KATR6_1 .  You must add this attribute on the class.  Populate the internal table L_ZLITERAL_TAB type ZLITERAL_TAB_TYPE.See e.g. in method GET_GEN_VALID_PRICE_CONDS( method GET_GEN_VALID_PRICE_CONDS .  data: l_zliteral_tab type ZLITERAL_TAB_TYPE,        l_zliteral type zliteral,        l_kscha type zkscha_line.  select *    from zliteral    into table l_zliteral_tab    where zkey1 = zliteral_key1_in      and zkey2 = zliteral_key2_in.  if sy-subrc = 0.    loop at l_zliteral_tab into l_zliteral.      clear l_kscha.      l_kscha-sign = l_zliteral-zvalue1.      l_kscha-option = l_zliteral-zvalue2.      l_kscha-low = l_zliteral-zvalue3.      append l_kscha to condtype_range_out.    endloop.  else.    raise no_pricing_conds_found.  endif.endmethod.)of class ZCL_CONFIGURABLE_ITEMDeclare a range R_KATR6_1 in the program and load range from internal table L_ZLITERAL_TAB.Check if stored field W_ KATR6 (ie first character of KNA1-KATR6) is in the range not to print R_KATR6_1.If the value in the stored field is in the range not to print R_KATR6_1, set the returning parameter to ‘X’ using attribute c_checked.  If not, it means that the  sequence should be printed.  So the value method should return the value ‘ ‘ – initial.  In the print program, call the value method once while processing the header section and store the value in a work field.  This field can be used later when processing each item.  It is not necessary to call the method for each item.  Once is fine, as the data is at header level.How to call the value method:W_NO_SEQUENCE_PRINT =  zcl_configurable_item=> IS_SEQUENCE_NOT_TO_PRINT (VBDKR).Add “ IF STATEMENT “ as seen below:IF W_NO_SEQUENCE_PRINT IS INITIAL.  IF wgen-bulk_item <> 'X'.    IF wgen-prfid = c_oligo.      PERFORM write_oligo_sequence.    ELSEIF wgen-prfid CS c_peptide.  "       PERFORM write_peptide_sequence.    ENDIF.  ENDIF.ENDIF.
Program Dependencies
The following outputs must be developed.  1. ZRD02. ZRD13. ZRD24. ZRD35. ZRD46. ZRD57. ZRD68. ZRDXPlease be aware that ZRD0 ZRD1, ZRD5 – same program -  are currently being changed in other requests.

What activation code?
Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

Similar Messages

  • How to create a Webservice for Adobe Form(I need Coding)?

    Hi,
    I need coding for Webservice inorder to define the context structure for Adobe Form.
    In AdobeForm:
    1) I create a dataconnection and while creating it i need to give WSDL Url.
    2) I have created it.
    3) But iam not getting the Context structure in the Dataview.
    For this wht coding i need to write in WSDL File?
    Any Help is Highly aprreciated with Points.
    Very urgent requirement?

    Hi,
    I'm not exactly sure what your problem is.
    A description on how to call web services can be found in my blog:
    /people/juergen.hauser2/blog/2008/02/25/using-web-services-with-sap-interactive-forms-by-adobe-overview-tips
    If you are facing an issue with what is displayed in the data view for the WSDL data connection (i.e you are missing nodes) you could try to use Designer 8.0 instead since it cotains bug fixes in that area.
    Regards,
    Juergen

  • Need coding support for Accessing MYSQL stored procedure from java

    Hi every one,
    I need coding support for accessing Mysql stored procedure from java and JSP.
    Please help me
    pranav

    You'd better have a recent version of MySQL, because earlier ones didn't support stored procs.
    If your MySQL and driver support stored procs, maybe you just need a JDBC stored proc tutorial.
    %

  • Need Coding!!!!!!!!!!!

    Dear All,
    I need to create Vendors Ageing Report in SAP version 4.7. As there is already a standard program name "RFKOPR00" available and need to be customized based on my requirement.
    I want output to be displayed in ALV grid format having all these as header:-
    Vendor (BSIK-LIFNR) - Cost centre (BSIK-KOSTL) - Document No (BSIK-BELNR) - Doc date (BSIK-BLDAT) - refrence (BSIK-XBLNR) - Amount In Foriegn Currency (BSIK-WRBTR) - Amount in Inr (BSIK-DMBTR) - 0 to 30days - 31 to 60days - 61 to 90days - 91 to 180days - above 180 days.
    How I will do that.
    Any body can help me out in coding.
    Plz need urgently.
    Thnaks.

    Hi AbhaySingh,
    Report Name : Vendor Open Items Ageing Report
    Purpose : This report displays the Vendor Open Items based on
    different Ageing days (Calculated by taking the Base
    Line date and the days mentioned in Payment Terms)
    M O D I F I C A T I O N L O G
    Date | Change Number | Initials | Description
    30-Aug-2004 | DTSK900**** | Anji Reddy | Initial
    D A T A B A S E T A B L E S D E C L A R A T I O N
    TABLES: lfa1, " Vendor Master (General)
    t001, " Company Codes
    rfpdo.
    I N T E R N A L T A B L E S D E C L A R A T I O N S *
    Internal Table for Vendor Open Items Data
    DATA: BEGIN OF int_bsik OCCURS 0,
    lifnr LIKE bsik-lifnr, " Vendor Number
    name1 LIKE lfa1-name1, " Vendor Name
    shkzg LIKE bsik-shkzg, " Dr/Cr Indicator
    belnr LIKE bsik-belnr, " Document Number
    xblnr LIKE bsik-xblnr, " Ref Doc No
    blart LIKE bsik-blart, " Document Type
    zfbdt LIKE bsik-zfbdt, " Base Line Date
    zbd1t LIKE bsik-zbd1t, " Due date1
    zbd2t LIKE bsik-zbd2t, " Due Date2
    zbd3t LIKE bsik-zbd3t, " Due Date3
    waers LIKE bsik-waers, " Currency
    dmbtr LIKE bsik-dmbtr, " Amount in Local Curr
    END OF int_bsik.
    Internal Table for Amounts Sum Up Data
    DATA: BEGIN OF int_final OCCURS 0,
    lifnr LIKE bsik-lifnr, " Vendor Number
    name1 LIKE lfa1-name1, " Vendor Name
    total1 LIKE bsik-dmbtr, " Amount in Local Curr
    total2 LIKE bsik-dmbtr, " Amount in Local Curr
    total3 LIKE bsik-dmbtr, " Amount in Local Curr
    total4 LIKE bsik-dmbtr, " Amount in Local Curr
    total5 LIKE bsik-dmbtr, " Amount in Local Curr
    total6 LIKE bsik-dmbtr, " Amount in Local Curr
    total LIKE bsik-dmbtr, " Amount in Local Curr
    END OF int_final.
    D A T A D E C L A R A T I O N S
    DATA : v_flag, " Flag
    v_gtotal1 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal2 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal3 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal4 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal5 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal6 LIKE bsik-dmbtr, " Amount Totals
    v_gtotal LIKE bsik-dmbtr, " Amount Totals
    v_subtotal1 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal2 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal3 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal4 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal5 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal6 LIKE bsik-dmbtr, " Amount Totals
    v_subtotal LIKE bsik-dmbtr, " Amount Totals
    v_date LIKE bsik-zfbdt, " Due Date
    v_tage1(4), " Age 30 days
    v_tage2(4), " Age 60 days
    v_tage3(4), " Age 90 days
    v_fir(15), " Column Text1
    v_sec(15), " Column Text2
    v_thir(15), " Column Text3
    v_four(17), " Column Text4
    v_fidd(4), " Days field1
    v_sedd(4), " Days field2
    v_thdd(4), " Days field3
    v_fodd(4), " Days field4
    v_str TYPE SY-LISEL, " String
    v_str1(11), " String
    v_tage(3), " String
    v_date1(10). " Date field
    R A N G E D E C L A R A T I O N S
    RANGES: r_date1 FOR bsik-zfbdt, " Date Range 1
    r_date2 FOR bsik-zfbdt, " Date Range 2
    r_date3 FOR bsik-zfbdt, " Date Range 3
    r_date4 FOR bsik-zfbdt. " Date Range 4
    S E L E C T I O N S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr. "Vendor account
    PARAMETERS: p_bukrs LIKE t001-bukrs. "Co. Code
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: p_allgst LIKE rfpdo-allgstid OBLIGATORY DEFAULT sy-datum.
    "Open items at key date
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETERS: p_tage1 LIKE rfpdo1-allgfael DEFAULT '30',
    p_tage2 LIKE rfpdo1-allgfael DEFAULT '60',
    p_tage3 LIKE rfpdo1-allgfael DEFAULT '90',
    p_tage4 LIKE rfpdo1-allgfael DEFAULT '120'.
    SELECTION-SCREEN END OF BLOCK b3.
    A T S E L E C T I O N S C R E E N *
    AT SELECTION-SCREEN.
    Validate the screen fields
    PERFORM validate_flds.
    S T A R T O F S E L E C T I O N *
    START-OF-SELECTION.
    Fetch main data
    PERFORM fetch_data.
    T O P O F P A G E
    Header
    TOP-OF-PAGE.
    PERFORM header.
    E N D O F P A G E
    Footer
    END-OF-PAGE.
    ULINE.
    T O P O F P A G E D U R I N G L I N E S E L E C T I O N *
    Top of Page in Secondary List
    TOP-OF-PAGE DURING LINE-SELECTION.
    PERFORM header1.
    A T L I N E S E L E C T I O N *
    AT LINE-SELECTION.
    Perform Line Selections
    PERFORM line_selection.
    E N D O F S E L E C T I O N
    END-OF-SELECTION.
    List generation
    PERFORM basic_list.
    *& Form validate_flds
    Validation of Selection Screen fields
    FORM validate_flds .
    Validate Vendor Code
    CLEAR lfa1-lifnr.
    SELECT lifnr UP TO 1 ROWS
    INTO lfa1-lifnr
    FROM lfa1
    WHERE lifnr IN s_lifnr AND
    spras = sy-langu.
    ENDSELECT.
    IF sy-subrc <> 0.
    MESSAGE e000 WITH 'Invalid Vendor Code range'(023).
    ENDIF.
    Validate Company Code
    CLEAR t001-bukrs.
    SELECT bukrs UP TO 1 ROWS
    INTO t001-bukrs
    FROM t001
    WHERE bukrs = p_bukrs AND
    spras = sy-langu.
    ENDSELECT.
    IF sy-subrc <> 0.
    MESSAGE e021. " Invalid Company Code range
    ENDIF.
    IF ( p_tage1 > p_tage2 ) OR ( p_tage1 > p_tage3 ) OR
    ( p_tage1 > p_tage4 ).
    MESSAGE e999 WITH 'Column 1 greater'(004)
    'than Column# 2 or 3 or 4'(005).
    ENDIF.
    *column 2
    IF ( p_tage2 > p_tage3 ) OR ( p_tage1 > p_tage4 ).
    MESSAGE e999 WITH 'Column 2 greater'(006)
    'than Column# 3 or 4'(007).
    ENDIF.
    *column3
    IF ( p_tage3 > p_tage4 ).
    MESSAGE e999 WITH 'Column 3 greater'(008)
    'than Column#4'(009).
    ENDIF.
    ENDFORM. " validate_flds
    *& Form fetch_data
    Fetching Data from Database Tables
    FORM fetch_data .
    Date Range Population
    r_date1-sign = 'I'.
    r_date1-option = 'BT'.
    r_date1-low = p_allgst.
    r_date1-high = r_date1-low + p_tage1.
    APPEND r_date1.
    r_date2-sign = 'I'.
    r_date2-option = 'BT'.
    r_date2-low = r_date1-high + 1.
    r_date2-high = r_date1-low + p_tage2.
    APPEND r_date2.
    r_date3-sign = 'I'.
    r_date3-option = 'BT'.
    r_date3-low = r_date2-high + 1.
    r_date3-high = r_date1-low + p_tage3.
    APPEND r_date3.
    r_date4-sign = 'I'.
    r_date4-option = 'BT'.
    r_date4-low = r_date3-high + 1.
    r_date4-high = r_date1-low + p_tage4.
    APPEND r_date4.
    Select the Vendor Open Items data from BSIK
    SELECT l~lifnr
    l1~name1
    b~waers
    b~dmbtr
    b~zfbdt
    b~zbd1t
    b~zbd2t
    b~zbd3t
    b~belnr
    b~xblnr
    b~shkzg
    b~blart
    INTO CORRESPONDING FIELDS OF TABLE int_bsik
    FROM lfb1 AS l INNER JOIN lfa1 AS l1
    ON llifnr = l1lifnr
    INNER JOIN bsik AS b
    ON llifnr = blifnr AND
    lbukrs = bbukrs
    WHERE l~lifnr IN s_lifnr AND
    l~bukrs = p_bukrs and
    b~zfbdt le p_allgst.
    IF SY-SUBRC <> 0.
    MESSAGE i000 WITH 'No Data found'(027).
    ENDIF.
    Removing the date limit to get the due items in the past
    DELETE int_bsik WHERE
    ( blart NE 'RE' AND blart NE 'KR' ) OR
    shkzg NE 'H'.
    SORT int_bsik BY lifnr.
    ENDFORM. " fetch_data
    *& Form header
    Display the Report Columns
    FORM header .
    v_tage1 = p_tage1 + 1.
    v_tage2 = p_tage2 + 1.
    v_tage3 = p_tage3 + 1.
    v_fidd = p_tage1.
    v_sedd = p_tage2.
    v_thdd = p_tage3.
    v_fodd = p_tage4.
    MOVE v_fodd0(4) TO v_fodd1(3).
    v_fodd+0(1) = space.
    CONCATENATE '1 to'(010) v_fidd INTO v_fir.
    CONCATENATE v_tage1 ' to '(011) v_sedd INTO v_sec.
    CONCATENATE v_tage2 ' to '(011) v_thdd INTO v_thir.
    CONCATENATE v_tage3 ' to '(011) space v_fodd INTO v_four.
    Standard header
    clear: v_date1, v_str, v_str1, v_tage.
    write p_allgst to v_date1.
    Move p_tage4 to v_tage.
    concatenate '>' v_tage text-025 into v_str1.
    concatenate
    'Summary of Ageing Analysis for Vendor Open Invoices as on'(013)
    v_date1 into v_str separated by space.
    CALL FUNCTION 'Z_STANDARD_HEADER'
    EXPORTING
    title1 = 'Saudi International Petrochemical Company'(012)
    title2 = v_str.
    FORMAT COLOR OFF.
    WRITE : /1(168) sy-uline.
    FORMAT COLOR 1 INTENSIFIED.
    WRITE :/1 sy-vline, 13 sy-vline, 49 sy-vline,
    50(101) 'Invoices Due For(In Days)'(014) CENTERED,
    151 sy-vline, 168 sy-vline .
    WRITE :/1 sy-vline, 2(11) 'Vendor#'(015) CENTERED,
    13 sy-vline ,14(35) 'Vendor Name'(016) CENTERED,
    49 sy-vline,
    50(101) sy-uline,151 sy-vline,
    152(16) 'Total'(017) CENTERED,
    168 sy-vline.
    WRITE : /1 sy-vline,13 sy-vline, 49 sy-vline,
    50(16) v_fir CENTERED, 66 sy-vline,
    67(16) v_sec CENTERED, 83 sy-vline,
    84(16) v_thir CENTERED, 100 sy-vline,
    101(16) v_four CENTERED, 117 sy-vline,
    118(16) v_str1 centered, 134 sy-vline,
    135(16) 'Already Overdue'(018) CENTERED,151 sy-vline,
    168 sy-vline.
    FORMAT COLOR OFF.
    WRITE : /1(168) sy-uline.
    ENDFORM. " header
    *& Form basic_list
    Display the Basic List
    FORM basic_list .
    NEW-PAGE LINE-SIZE 168.
    LOOP AT int_bsik.
    CLEAR v_date.
    IF int_bsik-zbd3t <> ' '.
    v_date = int_bsik-zfbdt + int_bsik-zbd3t.
    ELSE.
    IF int_bsik-zbd2t <> ' '.
    v_date = int_bsik-zfbdt + int_bsik-zbd2t.
    ELSE.
    v_date = int_bsik-zfbdt + int_bsik-zbd1t.
    ENDIF.
    ENDIF.
    IF int_bsik-zbd1t = ' '.
    v_date = int_bsik-zfbdt.
    ENDIF.
    IF v_date IN r_date1.
    int_final-total1 = int_final-total1 + int_bsik-dmbtr.
    ELSEIF v_date IN r_date2.
    int_final-total2 = int_final-total2 + int_bsik-dmbtr.
    ELSEIF v_date IN r_date3.
    int_final-total3 = int_final-total3 + int_bsik-dmbtr.
    ELSEIF v_date IN r_date4.
    int_final-total4 = int_final-total4 + int_bsik-dmbtr.
    ELSEif v_date > r_date4-high.
    int_final-total5 = int_final-total5 + int_bsik-dmbtr.
    ELSEif v_date < p_allgst.
    int_final-total6 = int_final-total6 + int_bsik-dmbtr.
    ENDIF.
    AT END OF lifnr.
    v_flag = 1.
    ENDAT.
    IF v_flag = 1.
    int_final-lifnr = int_bsik-lifnr.
    int_final-name1 = int_bsik-name1.
    int_final-total = int_final-total1 + int_final-total2 +
    int_final-total3 + int_final-total4 + int_final-total5 +
    int_final-total6.
    APPEND int_final.
    v_gtotal1 = v_gtotal1 + int_final-total1.
    v_gtotal2 = v_gtotal2 + int_final-total2.
    v_gtotal3 = v_gtotal3 + int_final-total3.
    v_gtotal4 = v_gtotal4 + int_final-total4.
    v_gtotal5 = v_gtotal5 + int_final-total5.
    v_gtotal6 = v_gtotal6 + int_final-total6.
    v_gtotal = v_gtotal + int_final-total.
    WRITE: /1 sy-vline,
    2 int_final-lifnr COLOR 4 INTENSIFIED ON,
    13 sy-vline,
    14 int_final-name1 COLOR 4 INTENSIFIED ON,
    49 sy-vline.
    DATA : v_rem.
    v_rem = sy-tabix MOD 2.
    IF v_rem NE 0.
    FORMAT COLOR 2 INTENSIFIED.
    WRITE : 50 int_final-total1 CURRENCY int_bsik-waers,
    66 sy-vline,
    67 int_final-total2 CURRENCY int_bsik-waers,
    83 sy-vline,
    84 int_final-total3 CURRENCY int_bsik-waers,
    100 sy-vline,
    101 int_final-total4 CURRENCY int_bsik-waers,
    117 sy-vline,
    118 int_final-total5 CURRENCY int_bsik-waers,
    134 sy-vline,
    135 int_final-total6 CURRENCY int_bsik-waers,
    151 sy-vline,
    152 int_final-total CURRENCY int_bsik-waers,
    168 sy-vline.
    ELSE.
    WRITE : 50 int_final-total1 CURRENCY int_bsik-waers,
    66 sy-vline,
    67 int_final-total2 CURRENCY int_bsik-waers,
    83 sy-vline,
    84 int_final-total3 CURRENCY int_bsik-waers,
    100 sy-vline,
    101 int_final-total4 CURRENCY int_bsik-waers,
    117 sy-vline,
    118 int_final-total5 CURRENCY int_bsik-waers,
    134 sy-vline,
    135 int_final-total6 CURRENCY int_bsik-waers,
    151 sy-vline,
    152 int_final-total CURRENCY int_bsik-waers,
    168 sy-vline.
    ENDIF.
    FORMAT COLOR OFF.
    HIDE int_final.
    CLEAR int_final.
    v_flag = 0.
    ENDIF.
    AT LAST.
    WRITE : /1(168) sy-uline.
    FORMAT COLOR 3 INTENSIFIED.
    WRITE : /1 sy-vline, 2(47) 'GRAND TOTAL'(022) CENTERED,
    49 sy-vline, 50 v_gtotal1 CURRENCY int_bsik-waers,
    66 sy-vline, 67 v_gtotal2 CURRENCY int_bsik-waers,
    83 sy-vline, 84 v_gtotal3 CURRENCY int_bsik-waers,
    100 sy-vline,101 v_gtotal4 CURRENCY int_bsik-waers,
    117 sy-vline,118 v_gtotal5 CURRENCY int_bsik-waers,
    134 sy-vline,135 v_gtotal6 CURRENCY int_bsik-waers,
    151 sy-vline,152 v_gtotal CURRENCY int_bsik-waers,
    168 sy-vline.
    HIDE : v_gtotal1,
    v_gtotal2,
    v_gtotal3,
    v_gtotal4,
    v_gtotal5,
    v_gtotal6,
    v_gtotal.
    ENDAT.
    FORMAT COLOR OFF.
    ENDLOOP.
    WRITE : /1(168) sy-uline.
    ENDFORM. " basic_list
    *& Form line_selection
    When double clicked on the line display the seconday list
    FORM line_selection .
    NEW-PAGE LINE-SIZE 206.
    Sy-lsind = 1.
    DATA : v_rem,v_cnt LIKE sy-tabix.
    v_cnt = 0.
    SORT int_bsik BY belnr zfbdt.
    LOOP AT int_bsik WHERE lifnr EQ int_final-lifnr.
    v_rem = v_cnt MOD 2.
    CLEAR v_date.
    IF int_bsik-zbd3t <> ' '.
    v_date = int_bsik-zfbdt + int_bsik-zbd3t.
    ELSE.
    IF int_bsik-zbd2t <> ' '.
    v_date = int_bsik-zfbdt + int_bsik-zbd2t.
    ELSE.
    v_date = int_bsik-zfbdt + int_bsik-zbd1t.
    ENDIF.
    ENDIF.
    IF int_bsik-zbd1t = ' '.
    v_date = int_bsik-zfbdt.
    ENDIF.
    IF v_rem NE 0.
    format color 2 intensified.
    WRITE :/1 sy-vline, 2 int_bsik-belnr,
    12 sy-vline,13 int_bsik-lifnr,
    23 sy-vline,24 int_bsik-name1,
    59 sy-vline,60 int_bsik-xblnr,
    76 sy-vline,77 int_bsik-zfbdt,
    87 sy-vline.
    WRITE : 104 sy-vline,121 sy-vline,
    138 sy-vline,155 sy-vline,
    172 sy-vline, 189 sy-vline,
    190 int_bsik-dmbtr CURRENCY int_bsik-waers,
    206 sy-vline.
    IF v_date IN r_date1.
    v_subtotal1 = v_subtotal1 + int_bsik-dmbtr.
    WRITE : 88 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date2.
    v_subtotal2 = v_subtotal2 + int_bsik-dmbtr.
    WRITE : 105 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date3.
    v_subtotal3 = v_subtotal3 + int_bsik-dmbtr.
    WRITE : 122 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date4.
    v_subtotal4 = v_subtotal4 + int_bsik-dmbtr.
    WRITE : 139 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEif v_date > r_date4-high.
    v_subtotal5 = v_subtotal5 + int_bsik-dmbtr.
    WRITE : 156 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEif v_date < p_allgst.
    v_subtotal6 = v_subtotal6 + int_bsik-dmbtr.
    WRITE : 173 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ENDIF.
    format color off.
    ELSE.
    WRITE :/1 sy-vline, 2 int_bsik-belnr,
    12 sy-vline,13 int_bsik-lifnr,
    23 sy-vline,24 int_bsik-name1,
    59 sy-vline,60 int_bsik-xblnr,
    76 sy-vline,77 int_bsik-zfbdt,
    87 sy-vline.
    WRITE : 104 sy-vline,121 sy-vline,
    138 sy-vline,155 sy-vline,
    172 sy-vline,189 sy-vline,
    190 int_bsik-dmbtr CURRENCY int_bsik-waers,
    206 sy-vline.
    IF v_date IN r_date1.
    v_subtotal1 = v_subtotal1 + int_bsik-dmbtr.
    WRITE : 88 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date2.
    v_subtotal2 = v_subtotal2 + int_bsik-dmbtr.
    WRITE : 105 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date3.
    v_subtotal3 = v_subtotal3 + int_bsik-dmbtr.
    WRITE : 122 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEIF v_date IN r_date4.
    v_subtotal4 = v_subtotal4 + int_bsik-dmbtr.
    WRITE : 139 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEif v_date > r_date4-high.
    v_subtotal5 = v_subtotal5 + int_bsik-dmbtr.
    WRITE : 156 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ELSEif v_date < p_allgst.
    v_subtotal6 = v_subtotal6 + int_bsik-dmbtr.
    WRITE : 173 int_bsik-dmbtr CURRENCY int_bsik-waers.
    ENDIF.
    ENDIF.
    FORMAT COLOR OFF.
    v_cnt = v_cnt + 1.
    ENDLOOP.
    WRITE : /1(206) sy-uline.
    v_subtotal = v_subtotal1 + v_subtotal2 + v_subtotal3
    + v_subtotal4 + v_subtotal5 + v_subtotal6.
    FORMAT COLOR 3 INTENSIFIED.
    WRITE : /1 sy-vline,
    2(85) 'Total'(017) CENTERED CURRENCY int_bsik-waers ,
    87 sy-vline,
    88 v_subtotal1 CURRENCY int_bsik-waers,
    104 sy-vline,
    105 v_subtotal2 CURRENCY int_bsik-waers,
    121 sy-vline,
    122 v_subtotal3 CURRENCY int_bsik-waers,
    138 sy-vline,
    139 v_subtotal4 CURRENCY int_bsik-waers,
    155 sy-vline,
    156 v_subtotal5 CURRENCY int_bsik-waers,
    172 sy-vline,
    173 v_subtotal6 CURRENCY int_bsik-waers,
    189 sy-vline,
    190 v_subtotal CURRENCY int_bsik-waers,
    206 sy-vline.
    FORMAT COLOR OFF.
    WRITE : /1(206) sy-uline.
    CLEAR : v_subtotal,v_subtotal1,v_subtotal2,v_subtotal3,
    v_subtotal4,v_subtotal5,v_gtotal1,v_gtotal2,v_gtotal3,
    v_gtotal4, v_gtotal5,v_gtotal,v_subtotal6,v_gtotal6.
    ENDFORM. " line_selection
    *& Form header1
    Secondary List Header
    FORM header1 .
    Standard header
    clear: v_date1, v_str, v_str1, v_tage.
    write p_allgst to v_date1.
    Move p_tage4 to v_tage.
    concatenate '>' v_tage text-025 into v_str1.
    concatenate
    'Details of Ageing Analysis for Vendor Open Invoices as on'(024)
    v_date1 into v_str separated by space.
    CALL FUNCTION 'Z_STANDARD_HEADER'
    EXPORTING
    title1 = 'Saudi International Petrochemical Company'(012)
    title2 = v_str.
    FORMAT COLOR 1 intensified.
    WRITE :/1(206) sy-uline.
    WRITE :/1 sy-vline,12 sy-vline ,
    23 sy-vline,59 sy-vline,76 sy-vline,87 sy-vline,
    88(101) 'Invoices Due For(In Days)'(014) CENTERED,
    189 sy-vline,206 sy-vline.
    WRITE : /1 sy-vline, 2(10) 'Doc Number'(021) CENTERED,
    12 sy-vline, 13(10) 'Vendor#'(015) CENTERED,
    23 sy-vline, 24(35) 'Vendor Name'(016) CENTERED,
    59 sy-vline, 60(16) 'Ref invoice#'(019) CENTERED,
    76 sy-vline, 77(10) 'Inv dt'(020) CENTERED,
    87 sy-vline, 88(101) sy-uline,
    189 sy-vline,190(16) 'Total'(017) CENTERED,
    206 sy-vline.
    WRITE : /1 sy-vline, 12 sy-vline,
    23 sy-vline,59 sy-vline,
    76 sy-vline,87 sy-vline,
    88(16) v_fir CENTERED, 104 sy-vline,
    105(16) v_sec CENTERED, 121 sy-vline,
    122(16) v_thir CENTERED, 138 sy-vline,
    139(16) v_four CENTERED, 155 sy-vline,
    156(16) v_str1 CENTERED,
    172 sy-vline,
    173(16) 'Already Overdue'(018) CENTERED,
    189 sy-vline,
    206 sy-vline.
    format color off.
    WRITE : /1(206) sy-uline.
    ENDFORM. " header1
    Hope it will solve ur problem..
    <b>Reward points if useful...</b>
    Thanks & Regards
    ilesh 24x7

  • Need  Coding for retriving the data

    Hi ,
       I'm not an ABAPer.. but i need to write some coding in R/3 system..  that is from XI system I'm getting  data  (that is in R/3 system i'm getting inside of one class.. that calss contain  one method.. that method internally contain  sub structures.. for example.. that method contain one Header Structure... that  Header structure contain some 5 fields along with those.. one sub structure also contain.. Again that sub structure (Item level)   contain some 10  fields.. and  and along with that one more sub structure also contain..if you go inside that sub structure that contain some 5 fields...
    now the reqirement is i want to split those fields according to structures( Header level, Item Lvel , Sub Item level) and   iw ant to load this fields into  particular ZTABLES.. by using Move corresponding..
    so, can any one plz give me the coding... how can i define structures inside of the  class... ..
    helpful answers will be highly appriciated..
    Thanks
    Babu

    Hi Babu,
    it is difficult to understand what u realy want. You have to explain yourself better. Just a tip. If you want to define a Structure in a Class, should be done at the Class definition and selection should be done at Class implementation.
    Example:
    Class babu_class definition.
    public section.
    *Structure definition
    types: begin of i_struc.
               include structure vbak.
    types: end of i_struc.
    *Internal tab
    data: int_tab type table of i_struc.
    *protected section
    *your declarations-----
    private section
    methods: babu_meth
    endclass.
    Class babu_class implementation.
    method babu_meth.
    *example
    select * from vbak
    into corresponding fields of table int_tab
    where vbeln =
    endmethod.
    endclass.
    Blacky
    *give point if it helps and i hope I have understood your problem
    Message was edited by:
            BlackMoses

  • Need coding example

    Hi!
    Moving the contents of these Internal Tables into the Database Table
    Internal tables have not the same structure like db_Table.
    I need a code example. Can u pls help.
    itab1
    itab2
    itab3
    itab4
    Regards
    Ilhan

    Hey Fren,
    You need to create the internal table of the same line type as of the Database Table....
    TABLES: DBTABLE.
    DATA:
       it_final LIKE STANDARD TABLE OF dbtable.
    Then dump the data from all the internal tables itab1, itab2, itab3, itab4, itab5 into it_final.
    also ensure that all the key-fields of the line-type are filled and ARE NOT LEFT BLANK......
    You can also use COLLECT statement to avoid the problem of duplicate entries while updating the Database table.
    Then using the Modify statement you can update the DB table in this way.
    MODIFY dbtable FROM TABLE it_final.
    Inspire if Needful,
    Abhi...

  • Is there an adobe -non coding needed- program for creating iPhone applications?

    hi there,
    i've been asking around for a program that i can create iphone applications with, and so far landed on xCode from apple,
    i haven't tried it yet, but as far as i heard it needs coding, and as a designer i'm not fimiliar with coding languages...
    need a simple, user friendly program to deal with, similar to adobe muse when it comes to designing websites.
    i would much more prefer deal with an adobe program to create applications than an apple's...
    is there one?

    i know one, a coder/programmer, but thought maybe there is program that will allow me to do the whole thing by myself,
    specially when i found out about adobe muse, anyway, thanks a lot for the info.
    wafa'a j.

  • Coding for ABAP Proxy and mapping

    Hi XI Ds
    which one need coding neither ABAP Proxy nor ABAP Mapping
    Thanks

    Hi Kushee  ,
    We need coding for both ABAP Proxy and mapping. We need to know some OO(Object Oreinted) ABAP concepts.
    We can also import JAVA CODE for certain functionality.
    Check the following websites for clarity:
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    cheers!
    gyanaraj

  • Is there any module in ABAP which requires almost zero percent of coding?

    Hi all,
    i just wanted to know if there is any module in ABAP which has zero percent of coding apart from functional modules like SD MM etc?
    Regards
    Sanjeev

    ABAP is a programming language.
    If you say reporting, bdc, sapscript, module pool, smartforms and ask if they need coding, the answer is yes. They require ABAP programming language for its coding.
    Everything in SAP done not require coding. For a person working in SAP-BW there is substantially low necessity for ABAP codes. However it requires ABAP knowledge when working with Exits in BW.
    SAP-XI mostly requires creating scenarios creating IDOCs, BDOCs and handling XML. This also has very little ABAP.
    Reward points if helpful.

  • Code to traverse through wpfgrid and click on the wpfimage for the corresponding in Coded UI

    Hi,
    I have a wpf application which has wpftable having columns as name, type, created date, modified date and an image. (On click on this image, edit and delete button will be displayed for each row).
    I am trying to do edit and delete operations for a row by giving input as the name as name is unique. I need coded ui test method  to traverse through this wpftable identify the row with the name provided, click on the image and select edit or delete
    options.
    Please refer the screenshot below:
    Please anyone provided me code for this in c# for coded ui test. Because for the wpfimage properties added in my respository are very less. Hence facing this issue.
    Thanks in advance.
    Regards,
    G.Madhavi

    Sure Edward.
    Below is the method I have used. As I have already described the input for my method is the WpfTable, the name for which I need to perform edit or delete options and columnindex (this is used because I need to click on the image. And I have such similar
    tables across the application and want to reuse the method. The rowindex changes based on the input name but the columnindex would be same).
    Please refer the screenshot above forbetter understanding.
    public boolVerifyEditing(WpfTableTargetTable, stringName, string columnIndex)
                 bool searchRes = false;
                 int rowIndex = 0;
                 foreach (WpfRow UIRow in TargetTable.Rows)
                     foreach (UITestControl cell in UIRow.Cells as UITestControlCollection)
                         var cellcontents = cell.GetChildren();
                         foreach (var content in cellcontents)
                             WpfText wpfText = content as WpfText;
                            if (wpfText!= null && wpfText.DisplayText.Equals(Name, StringComparison.OrdinalIgnoreCase))
                                 cell.Container = TargetTable;
                                cell.SearchProperties.Add(WpfCell.PropertyNames.RowIndex, rowIndex.ToString());
                                cell.SearchProperties.Add(WpfCell.PropertyNames.ColumnIndex, columnIndex);
                                var contents = cell.GetChildren();
                                foreach (var child in contents)
                                     WpfImage image = child as WpfImage;
                                     Mouse.Click(image);
                                     searchRes = true;
                                     break;
                                 if (searchRes)
                                     break;
                         if (searchRes)
                             break;
                     if (searchRes)
                         break;
                     rowIndex++;
                 return searchRes;
    I will use this method, which clicks on the row for which I need to perform edit or delete operations. Then I click on Edit or delete button.
    This suffices my requirement. Hope this helpothershaving same issue.
    Regards,
    Madhavi

  • Inputs needed for this issue

    Hi experts,
    We have a requirement as follows, please guide me how to write the needed coding in the updaterules
    level to meet this requirement:
    In our client side normally each sales documents will be having 2 materials. Of these two one will of one
    material group say grp1 and the other will be of other material group say grp2.
    GRP1 material groups will be like this: VBN-A-0345.
    GRP2 material groups will be like this: VBN-CP-Single.
    We have two fields added in the cube called tower and flat no.
    The values are populated into these fields through an abap code as follows:
    For Tower:
    if comm_STRUCTURE-MATL_GROUP = 'GRP1'.
    RESULT = COMM_STRUCTURE-MATERIAL+4(1).
    ENDIF.
    For Flat:
    If COMM_STRUCTURE-MATL_GROUP = 'GRP1'.
    RESULT = COMM_STRUCTURE-MATERIAL+6(4).
    ENDIF.
    So from the above code we will get the tower and flatno filled only if material group is GRP1. ( If the
    material is from grp2 then the tower and flatno fields will not be filled ).
    Our requirement is how can write the code in such a way that if in a sales document if the material
    group is grp2 then the tower and flatno fields should also be filled but with the other materials i.e grp1
    materials tower and flatno.
    Please suggest me in this regard..
    Regards,
    Nishuv N.

    Hi all,,
    This is a material VBN-A-0345 which  belongs to Material group 1.
    This is another material VBN-CP-Single - which belongs to Material group 2.
    Each sales document will have 2 material. One from material group 1 and the other from material group2.
    Upto now what the code we have is
    For Tower:
    if comm_STRUCTURE-MATL_GROUP = 'material group1'.
    RESULT = COMM_STRUCTURE-MATERIAL+4(1).
    ENDIF.
    For Flat:
    If COMM_STRUCTURE-MATL_GROUP = 'material group1'.
    RESULT = COMM_STRUCTURE-MATERIAL+6(4).
    ENDIF.
    So after dataloading the tower and flat no fields are filled only for the first material i.e VBN-A-0345 which
    is from material group1. ( Tower = A , Flatno = 0345 )
    For the second material which is from material group 2 i.e  VBN-CP-Single the tower and flatno will not
    be filled. ( Tower = Not assigned ( blank ) , Flatno = Not Assigned ( blank ) ).
    Now my requirement is in each sales document:
    If the material's in a sales document are from material group 1 or material group 2 then the tower and
    flatno of both the materials should be filled with A and 0345. i.e after data loading the output for both the
    materials should be as follows:
    __  Material         Material group    Tower    Flat__
    VBN-A-0345      Material group1      A       0345
    VBN-CP-Single  Material group2      A       0345
    How to achieve this ?
    Regards,
    Nishuv.

  • I need help to store images in database

    hi,
    at present i am working in oracle, i need one help.
    i want to create one directory in c:\drive and i have to store and retreive my images in that directory.i want to do in oracle only,i am not using any front end. i need coding for that,please give me coding to do that.first i have to store that images in my table.that image is in my desktop,how to call that image and how to store that image in my table and how to store that image in that directory. please give coding and ideas for that,help meeeeeeeeeeeeee.

    You need to create a oracle directory which will point to the physical directory where picture or image file lies...
    For this you need create directory privillege
    Once you create the oracle directory..
    Please see my sample try
    create table sample_bfile(id number,photo bfile);
    insert into sample_bfile values (1,bfilename('<oracle_dir_name>','<file_name>');
    This will insert into the reference of the image in the column...
    But you cant select this column in sqlplus which u might be knowing...
    Then you can access the image with the front end
    Regards,
    Shasi

  • Need help with error msg 1120: Access of undefined property

    I am not a coder, so I need coding help. Any help would be greatly appreciated.
    I'm doing a Flash banner that has clickTAG instructions from Google. The code they said to put on the button is:
    ClickTAG parameter code for ActionScript 3:
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    someButton_or_displayObject_to_receive_mouseClick.addEventListener(
          MouseEvent.CLICK,
          function(event: MouseEvent) : void {
          flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    Replace someButton_or_displayObject_to_receive_mouseClick with the actual name of button that will receive the click.
    Note that it's not necessary to specify the destination URL for the ad anywhere in this code; this is taken care of through the usage of clickTAG. Also, depending on the structure of your Flash ad, it may be necessary to prepend "_root." or "_level0." to "clickTAG" above, resulting in "_root.clickTAG" or "_level0.clickTAG". It is strongly recommended to upload the ad into your account and verify that the ad is behaving normally prior to it going live, allowing time for any necessary changes.
    And this is the code I put in (btnClickTag is the name of my button):
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    btnClickTag.addEventListener(
          MouseEvent.CLICK,
          function(event: MouseEvent) : void {
          flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    and this is the error I got:
    Scene1, Layer 'actions', Frame 1, 1120: Access of undefined property btnClickTag. btnClickTag.addEventListener(

    First, make sure you have assigned that name to the button via the properties panel, then, be sure to adjust the code so that it is not spread out over several lines... normally it needs to be on one line.  You should not nest the function in the event listener either, so try the following (no need for the import statements)...
    btnClickTag.addEventListener(MouseEvent.CLICK, tagClick);
    function tagClick(event:MouseEvent):void {
          navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");

  • How to create a funtion module as i need.

    How to create a funtion module, that which should  retrive mutiple data with out using data structure.
    i.e..using internal table i need to get only some data.
    Example:
                1)  Using MARC table, i need to get fields only with data  (werks, matnr, mmsta, pstat).
    i.e importing : werks.
         exporting: werks,
                        matnr,
                        mmsta,
                         pstat.
                2) Also i need coding to get data by without using internal table with the only fields i want.

    Hi,
    You can only create function modules and function groups using the Function Builder in the ABAP Workbench. For further information, refer to Creating New Function Modules. This section uses an example to illustrate how a function module is created from the point of view of ABAP programming.
    <u><b>Function Groups and Function Modules:</b></u>
    Firstly, we create a new function group DEMO_SPFLI to hold the function module. Then, we can create the new function module.
    <u><b>Parameter Interface:</b></u>
    You can specify the types of interface parameters in function modules in the
    same way as the parameter interfaces of subroutines. Since function
    modules can be used anywhere in the system, their interfaces can only contain
    references to data types that are declared systemwide. These are the elementary
    ABAP data types, the systemwide generic types, such as ANY TABLE, and types
    defined in the ABAP Dictionary. You cannot use LIKE to refer to data types
    declared in the main program.
    <u><b>Exceptions:</b></u>
    Our function module needs an exception that it can trigger if there are no entries
    in table SPFLI that meet the selection criterion. The exception NOT_FOUND
    serves this function.
    <u><b>Source Code:</b></u>
    Having defined the parameter interface and exceptions, we can now write the
    source code of our function module. To do this, choose Source code in the
    Function Builder. This opens the ABAP Editor for the include program
    L<fgrp>U<xx> (see Function Groups). This is the include that will
    hold the program code for the function module;
    <i><u><b>Data in Function Modules</b></u></i>
    You can use the TYPES and DATA statements to create local data types and
    objects. The interface parameters also behave like local data objects. In
    addition, you can access all of the global data of the main program. This data is
    defined in the include program L<fgrp>TOP. To open this include, choose Goto
      Global data. The global data behaves like the instance attributes of a class.
    The first time you call a function module in a particular function group, the data is
    loaded into memory. It can then be accessed and changed by all of the function
    modules in the group. The system retains the values until the next time a function
    module is called.
    <u><b>Calling Subroutines</b></u>
    You use subroutines for local modularization. Function modules can
    also use this technique. The function module that they call are defined in the
    corresponding main program.
    If you only want to call a subroutine from a single function module, it is best to
    define them in the same include program as the function module itself, directly
    after the ENDFUNCTION statement. These subroutines can be called from all
    function modules in the function group, but for clarity, they should only be called
    from the function module that precedes them.
    If you want to define a subroutine that will be called from several different function
    modules, you can define a special include program for it with the name
    L<fgrp>F<xx>.
    <b><u><i>Raising Exceptions</i></u></b>
    There are two ABAP statements for raising exceptions. They can only be used in
    function modules:
    RAISE <except>.
    and
    MESSAGE..... RAISING <except>.
    The effect of these statements depends on whether the calling program handles
    the exception or not. If the name <except> of the exception or OTHERS occurs
    in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is
    handled by the calling program.
    If the calling program does not handle the exception
      The RAISE statement terminates the program and switches to debugging mode.
      The MESSAGE ..... RAISING statement display the specified message. How the
    processing continues depends on the message type.
    If the calling program handles the exception, both statements return control to the
    program. No values are transferred. The MESSAGE ..... RAISING statement
    does not display a message. Instead, it fills the system fields SY-MSGID, SYMSGTY,
    SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION READ_SPFLI_INTO_TABLE.
    ""Local interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID = ID.
    IF SY-SUBRC NE 0.
    MESSAGE E007(AT) RAISING NOT_FOUND.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where
    the key field CARRID is equal to the import parameter ID and places the entries
    that it finds into the internal table SPFLI_TAB. If it cannot find any entries, the
    exception NOT_FOUND is triggered using MESSAGE...RAISING. Otherwise, the
    table is passed to the caller as an exporting parameter.
    Regards,
    Bhaskar

  • I need to determine the fields on a selscreen at runtime

    Hi Team ABAP,
    I need to determine the fields on a selscreen at runtime.
    That means FM´s like DYNPRO_FIELD_GET, are not doing the i need.
    If a field is made inactive or invisible in PBO (at selection Screen Output) i dont Need/want this in my Analysis.
    Maybe i better state what i want to achieve.
    I want to rightclick a selscreen-field, and then use the upcoming context menue to make it dissappear.
    For that i added a pf-status to that selscreen.
    In sy-curow i get which row the user clicked on (for example take 5), so now i need to find out which selscreen field is displayed in row 5.
    So i can create the customizing entry for this field.
    Maybe someone has an idea for me, i dont need coding, i can do that myself.
    Thanks for reading
    regards
    Florian Kemmer

    Well Anyway, it took me a Little but i figured it out.
    following code does the trick for me:
    [code]
    Tables phelp.
    IMPORT phelp FROM MEMORY ID 'PHELP'. [/code]
    i do this in the Event AT_SELECTION_SCREEN OUTPUT.
    Then in phelp-dynprofld i have the actual field i clicked on.
    And even if i totally misunderstood you you helped me a lot focusing my thoughts on the right way.
    Before your answer i didnt think about that while pressing F1 it works and i only have to find out how they do it.

Maybe you are looking for