Getting facility code in ALV

I would like to get the facility code in my ALV repot for a customer statment report .
Its been asked to populate that field using the logic as follows.
The logic for the customer facility code should be something like this.
Find the business location partner of the ship-to.  If the business location has a partner u2018ZFACu2019 use the ZFAC if there is no partner ZFAC display u2018AMBCu2019.  If there is no business location partnered to the u2018ship tou2019 leave blank.
Could anyone please guide me how to go through to get the facility code and fill with ABMC when its partnered and facility code is blank and to leave blank if its not partnered.
Thanks

.

Similar Messages

  • Total is not getting displayed in the ALV output.

    Hi,
    Total is not getting displayed in the ALV output.
    I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
    Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
    source code:
    DATA: layout TYPE slis_layout_alv,
          IT_eventS  TYPE slis_t_event,
          fcat   TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    TYPES: BEGIN OF ty_tab,
          belnr TYPE dberchz-belnr,
          belzart TYPE dberchz-belzart,
          net TYPE dberchz-nettobtr,
          END OF ty_tab.
    DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
    SELECT belnr belzart nettobtr
      FROM dberchz
      INTO TABLE lt_tab[]
    WHERE belnr eq '000000000001'.
      if sy-subrc ne 0.
      ENDIF.
    *  defining layout
    layout-colwidth_optimize = 'X'.
    layout-def_status = 'X'.
    *defning event
    *event
    *defining field catalog
    fcat-col_pos = 1.
    fcat-fieldname = 'BELNR'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 2.
    fcat-fieldname = 'BELZART'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 3.
    fcat-fieldname = 'NET'.
    fcat-tabname  = 'LT_TAB'.
    fcat-do_sum = 'X'.
    APPEND fcat.
    *calling alv
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
      EXPORTING
        i_callback_program             = 'YZ_PLR'
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   IT_EXCLUDING                   =
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        is_layout                        = layout
        it_fieldcat                      = fcat[]
        i_tabname                        = 'LT_TAB'
        it_events                        = IT_EVENTS[]
    *   IT_SORT                          =
    *   I_TEXT                           = ' '
      tables
        t_outtab                         = lt_tab[]
    * EXCEPTIONS
    *   PROGRAM_ERROR                    = 1
    *   MAXIMUM_OF_APPENDS_REACHED       = 2
    *   OTHERS                           = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    Thanks,
    Gaurav

    Hi
    No I don't think, this is my code (based on your code) and it works fine:
    TYPE-POOLS SLIS.
    DATA: BEGIN OF LT_TAB OCCURS 0,
           BELNR LIKE BSEG-BELNR,
           GJAHR LIKE BSEG-GJAHR,
           WRBTR LIKE BSEG-WRBTR,
           WAERS LIKE BKPF-WAERS,
          END OF LT_TAB.
    DATA: LAYOUT     TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS  TYPE SLIS_T_EVENT,
          FCAT       TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          REC_FCAT   TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    START-OF-SELECTION.
      FCAT-COL_POS       = 1.
      FCAT-FIELDNAME     = 'BELNR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'BELNR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 2.
      FCAT-FIELDNAME     = 'GJAHR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'GJAHR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 3.
      FCAT-FIELDNAME     = 'WRBTR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-CFIELDNAME    = 'WAERS'.
      FCAT-REF_FIELDNAME = 'WRBTR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      FCAT-DO_SUM        = 'X'.
      APPEND FCAT.
      FCAT-COL_POS       = 4.
      FCAT-FIELDNAME     = 'WAERS'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'WAERS'.
      FCAT-REF_TABNAME   = 'BKPF'.
      FCAT-DO_SUM        = SPACE.
      APPEND FCAT.
      SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
        WHERE BUKRS = 'MAAB'
          AND BELNR = '0000000001'.
      LT_TAB-WAERS = 'EUR'.
      MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
    *CALLING ALV
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT   = LAYOUT
          IT_FIELDCAT = FCAT[]
          I_TABNAME   = 'LT_TAB'
          IT_EVENTS   = IT_EVENTS[]
        TABLES
          T_OUTTAB    = LT_TAB[].
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    I've also inserted a currency field
    Max

  • How to get check box in alv grid list output

    hi gurus,
    can anyone inform me
    how to get check box in alv output it should not be a pop up window
    thank you
    regards
    kals.

    or
    hi go through the fallowing code.
    code*&----
    *& Report YGS_ALV_BOM *
    REPORT YGS_ALV_BOM .
    TABLES : MAST,STKO,STPO.
    TYPE-POOLS: SLIS.
    TYPES : BEGIN OF TY_MAST,
    CHECK_BOX,
    MATNR TYPE MAST-MATNR,
    WERKS TYPE MAST-WERKS,
    STLAN TYPE MAST-STLAN,
    STLNR TYPE MAST-STLNR,
    STLAL TYPE MAST-STLAL,
    END OF TY_MAST.
    TYPES : BEGIN OF TY_STKO,
    STLTY TYPE STKO-STLTY,
    STLNR TYPE STKO-STLNR,
    STLAL TYPE STKO-STLAL,
    STKOZ TYPE STKO-STKOZ,
    BMENG TYPE STKO-BMENG,
    BMEIN TYPE STKO-BMEIN,
    END OF TY_STKO.
    TYPES : BEGIN OF TY_STPO,
    LIGHTS,
    STLTY TYPE STPO-STLTY,
    STLNR TYPE STPO-STLNR,
    STLKN TYPE STPO-STLKN,
    STPOZ TYPE STPO-STPOZ,
    IDNRK TYPE STPO-IDNRK,
    MENGE TYPE STPO-MENGE,
    MEINS TYPE STPO-MEINS,
    END OF TY_STPO.
    DATA : IT_MAST TYPE TABLE OF TY_MAST,
    WA_MAST TYPE TY_MAST,
    IT_STKO TYPE TABLE OF TY_STKO,
    WA_STKO TYPE TY_STKO,
    IT_STPO TYPE TABLE OF TY_STPO,
    WA_STPO TYPE TY_STPO.
    DATA : lt_fieldcat TYPE slis_t_fieldcat_alv,
    ls_layout TYPE slis_layout_alv,
    ls_event TYPE slis_alv_event,
    lt_event TYPE slis_t_event,
    it_sortinfo type slis_t_sortinfo_alv,
    ls_header TYPE slis_listheader,
    lt_header TYPE slis_t_listHEADER.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    SELECT-OPTIONS : S_MATNR FOR MAST-MATNR.
    START-OF-SELECTION.
    PERFORM GET_DATA.
    PERFORM BUILD_FIELDCAT USING LT_FIELDCAT.
    PERFORM BUILD_LAYOUT.
    END-OF-SELECTION.
    PERFORM DISPLAY_DATA.
    *& Form GET_DATA
    text
    --> p1 text
    <-- p2 text
    form GET_DATA .
    REFRESH : IT_MAST.
    SELECT MATNR
    WERKS
    STLAN
    STLNR
    FROM MAST
    INTO CORRESPONDING FIELDS OF TABLE IT_MAST
    WHERE MATNR IN S_MATNR.
    endform. " GET_DATA
    *& Form BUILD_FIELDCAT
    text
    --> p1 text
    <-- p2 text
    form BUILD_FIELDCAT USING LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    REFRESH : LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 1.
    L_FIELDCAT-FIELDNAME = 'MATNR'.
    L_FIELDCAT-TABNAME = 'IT_MAST'.
    L_FIELDCAT-REF_FIELDNAME = 'MATNR'.
    L_FIELDCAT-REF_TABNAME = 'MAST'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 2.
    L_FIELDCAT-FIELDNAME = 'WERKS'.
    L_FIELDCAT-TABNAME = 'IT_MAST'.
    L_FIELDCAT-REF_FIELDNAME = 'WERKS'.
    L_FIELDCAT-REF_TABNAME = 'MAST'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 3.
    L_FIELDCAT-FIELDNAME = 'STLNR'.
    L_FIELDCAT-TABNAME = 'IT_MAST'.
    L_FIELDCAT-REF_FIELDNAME = 'STLNR'.
    L_FIELDCAT-REF_TABNAME = 'MAST'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    endform. " BUILD_FIELDCAT
    *& Form BUILD_LAYOUT
    text
    --> p1 text
    <-- p2 text
    form BUILD_LAYOUT .
    CLEAR LS_LAYOUT.
    LS_LAYOUT-BOX_FIELDNAME = 'CHECK_BOX'.
    LS_LAYOUT-BOX_TABNAME = 'IT_MAST'.
    endform. " BUILD_LAYOUT
    *& Form DISPLAY_DATA
    text
    --> p1 text
    <-- p2 text
    form DISPLAY_DATA .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    I_STRUCTURE_NAME =
    IS_LAYOUT = LS_LAYOUT
    IT_FIELDCAT = LT_FIELDCAT
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = IT_MAST
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform. " DISPLAY_DATA
    FORM PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
    SET PF-STATUS 'YSTATUS' OF PROGRAM SY-REPID
    EXCLUDING RT_EXTAB.
    ENDFORM.
    FORM USER_COMMAND USING RF_UCOMM TYPE SY-UCOMM
    SELFIELD TYPE SLIS_SELFIELD.
    CASE RF_UCOMM.
    WHEN '&NEXT'.
    PERFORM GET_DATA_BOM .
    PERFORM BUILD_FIELDCAT_BOM USING LT_FIELDCAT.
    PERFORM BUILD_LAYOUT_BOM.
    PERFORM DISPLAY_DATA_BOM.
    ENDCASE.
    ENDFORM.
    *& Form GET_DATA_BOM
    text
    --> p1 text
    <-- p2 text
    form GET_DATA_BOM .
    CLEAR : WA_STPO,
    WA_MAST.
    REFRESH : IT_STPO.
    DATA : IT_CHECK TYPE TABLE OF TY_MAST.
    LOOP AT IT_MAST INTO WA_MAST.
    IF WA_MAST-CHECK_BOX EQ 'X'.
    APPEND WA_MAST TO IT_CHECK.
    ENDIF.
    ENDLOOP.
    SELECT STLTY
    STLNR
    STLKN
    VGKNT
    IDNRK
    MENGE
    MEINS
    FROM STPO
    INTO CORRESPONDING FIELDS OF TABLE IT_STPO
    FOR ALL ENTRIES IN IT_CHECK
    WHERE IDNRK EQ IT_CHECK-MATNR.
    CLEAR WA_STPO.
    LOOP AT IT_STPO INTO WA_STPO.
    SELECT SINGLE * FROM MAST WHERE MATNR EQ WA_STPO-IDNRK.
    IF SY-SUBRC = 0.
    WA_STPO-LIGHTS = '2'.
    ELSE.
    WA_STPO-LIGHTS = '1'.
    ENDIF.
    MODIFY IT_STPO FROM WA_STPO.
    ENDLOOP.
    endform. " GET_DATA_BOM
    *& Form BUILD_FIELDCAT_BOM
    text
    --> p1 text
    <-- p2 text
    form BUILD_FIELDCAT_BOM USING LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    REFRESH : LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 1.
    L_FIELDCAT-FIELDNAME = 'STLTY'.
    L_FIELDCAT-TABNAME = 'IT_STPO'.
    L_FIELDCAT-REF_FIELDNAME = 'STLTY'.
    L_FIELDCAT-REF_TABNAME = 'STPO'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 2.
    L_FIELDCAT-FIELDNAME = 'STLNR'.
    L_FIELDCAT-TABNAME = 'IT_STPO'.
    L_FIELDCAT-REF_FIELDNAME = 'STLNR'.
    L_FIELDCAT-REF_TABNAME = 'STPO'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 3.
    L_FIELDCAT-FIELDNAME = 'STLKN'.
    L_FIELDCAT-TABNAME = 'IT_STPO'.
    L_FIELDCAT-REF_FIELDNAME = 'STLKN'.
    L_FIELDCAT-REF_TABNAME = 'STPO'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 4.
    L_FIELDCAT-FIELDNAME = 'IDNRK'.
    L_FIELDCAT-TABNAME = 'IT_STPO'.
    L_FIELDCAT-REF_FIELDNAME = 'IDNRK'.
    L_FIELDCAT-REF_TABNAME = 'STPO'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    L_FIELDCAT-COL_POS = 5.
    L_FIELDCAT-FIELDNAME = 'MENGE'.
    L_FIELDCAT-TABNAME = 'IT_STPO'.
    L_FIELDCAT-REF_FIELDNAME = 'MENGE'.
    L_FIELDCAT-REF_TABNAME = 'STPO'.
    APPEND L_FIELDCAT TO LT_FIELDCAT.
    endform. " BUILD_FIELDCAT_BOM
    *& Form BUILD_LAYOUT_BOM
    text
    --> p1 text
    *<-- p2 text
    form BUILD_LAYOUT_BOM .
    CLEAR : LS_LAYOUT.
    LS_LAYOUT-LIGHTS_FIELDNAME = 'LIGHTS'.
    LS_LAYOUT-LIGHTS_TABNAME = 'IT_STPO'.
    endform. " BUILD_LAYOUT_BOM
    *& Form DISPLAY_DATA_BOM
    text
    --> p1 text
    <-- p2 text
    form DISPLAY_DATA_BOM .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER = ' '
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND_BOM'
    I_CALLBACK_TOP_OF_PAGE = 'TOP9'
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    I_GRID_TITLE =
    I_GRID_SETTINGS =
    IS_LAYOUT = LS_LAYOUT
    IT_FIELDCAT = LT_FIELDCAT
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IT_ALV_GRAPHICS =
    IT_HYPERLINK =
    IT_ADD_FIELDCAT =
    IT_EXCEPT_QINFO =
    I_HTML_HEIGHT_TOP =
    I_HTML_HEIGHT_END =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = IT_STPO
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform. " DISPLAY_DATA_BOM
    FORM TOP9 .
    CLEAR LS_HEADER.
    REFRESH LT_HEADER.
    LS_HEADER-TYP = 'H'.
    LS_HEADER-INFO = 'BILL OF MATERIALS'.
    APPEND LS_HEADER TO LT_HEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = LT_HEADER
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID =
    ENDFORM.
    FORM USER_COMMAND_BOM USING RF_UCOMM_BOM LIKE SY-UCOMM
    SEL_FIELD TYPE SLIS_SELFIELD.
    CASE RF_UCOMM_BOM.
    WHEN '&IC1'.
    SET PARAMETER ID 'MAT' FIELD WA_STPO-IDNRK.
    SET PARAMETER ID 'WRK' FIELD WA_MAST-WERKS.
    SET PARAMETER ID 'CSA' FIELD WA_MAST-STLAN.
    CALL TRANSACTION 'CS03' AND SKIP FIRST SCREEN.
    ENDCASE.[/code]

  • How to get the SUBTOTAL_TEXT  in ALV

    Hi
    we have a requirement, it needs to get the SUBTOTAL_TEXT in ALV.
    Can i know how to do it in ALV.
    Can you give me any Example.
    And How to Use TOP-OF-PAGE in ALV. What is the Purpose of TOP-OF-PAGE.
    Regards,
    N.L.

    Hi,
    I am giving you sample code look at this regarding TOP-OF-PAGE.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program      = i_repid
            i_callback_user_command = 'USER_COMMAND_PERNR'
            it_fieldcat             = header
            is_layout               = gt_layout
            i_callback_top_of_page  = 'TOP-OF-PAGE1'
            i_grid_title  = 'Communication device details - Deleted records'
            it_sort                 = gt_sort[]
            i_default               = 'X'
            i_save                  = 'U'
            is_variant              = gt_variant
            it_events               = gt_events
           TABLES
            t_outtab                = ITAB.
         clear itab.
    Form TOP-OF-PAGE1
    form top-of-page1.
      data: header type slis_t_listheader,
      wa type slis_listheader. "infield like wa-info, nline type n.
    TITLE AREA
      wa-typ = 'S'.
      wa-info = 'Communication device details'.
      append wa to header.
      wa-typ = 'S'.
      write sy-datum to wa-info MM/DD/YYYY.
      concatenate 'Date: ' wa-info into wa-info separated by space.
      append wa to header.
      wa-typ = 'S'.
      concatenate 'User Name: ' sy-UNAME into wa-info separated by space.
      append wa to header.
      wa-typ = 'S'.
      concatenate 'Prog Name: ' sy-repid into wa-info separated by space.
      append wa to header.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = header
                i_logo             = 'ENJOYSAP_LOGO1'.
    endform.
    In this top of page you will get Report name date etc and your company logo or SAP enjoy logo what ever you want.
    You check this link also for reference.
    http://www.sapdevelopment.co.uk/reporting/alvhome.htm
    Thanks.
    If this helps you award points and close the thread.

  • Function codes ininteractive  ALV

    Hello all,
    In interactive alv we can use function code as &IC1 to indicate double click .
    Here my doubt is where we can find all this function codes. Is there  any table or ?
    Thanks in advance.
    Apps.

    Hi,
    try this .
    In the alv display screen,before clicking any button( if u want to know function code ),
    press /h on the command box and press enter.This gives u message like debugging on.
    Then click on button required,it will goto debugging ,then type sy-ucomm and press F5,u will get function code associated with the button.
    Hope this helps u.

  • Getting building code for teh storage location in the output

    HI !
    In one of my program I ahve to bring in several plant details as well external bill of lading deatils as well as the building code . I have been able to get the other details except for the building code which needs to come from teh adrc table I suppose. Actually not able to connect the detaisl to grab in the building code. Would anyone be able to help me out in getting the building code for the storage location in my program if possible .
    Help would be greatly appreciated.
    Thanks

    I wrote down a code for that and this
    is what its doing as of now.
    When I do the selection of a single plant and for a particluar date
    it does give me the correct storage location building
    code , bust as soon as I put a range of plant say 120 to 300
    it copies the the storage location building code
    of the previous plant itself which si contradictory.
    I would like to get the correct building code
    even when I do the range of selection like when I do
    a single selection of plant.
    For example when I select the range between 0135 and 0351
    this is the output I get.
    50002438 80002249 0135 ABWP0000659 100051 < correct
    50002439 80002250 0135 ABWP0000659 100005 < correct
    50002447 80002257 0135 ABWP0000659 100005 < correct
    50002459 80002258 0135 ABWP0000659 100005 < correct
    50002460 80002259 0135 ABWP0000659 100005 < correct
    50002461 80002260 0135 ABWP0000659 100005 < correct
    50002424 80002235 0351 ABCT0000426 100101 < copied teh B.code from Strg loc "CT" of plant 135
    50002429 80002237 0351 ABTM0082315 100101 < copied teh B.code from Strg loc "TM" of plant 135
    50002430 80002244 0351 ABWP0000659 100101 < copied teh B.code from Strg loc "WP" of plant 135
    The code I used :-
      loop at gt_adrc assigning <fs_adrc> .   <  this is where I am trying to get the building code from S.Loc address into lgobe
            loop at gt_twlad assigning <fs_twlad>.
              if <fs_twlad>-adrnr = <fs_adrc>-addrnumber  and
                 <fs_twlad>-lgort = <lfs_lips>-lgort_i.
                gt_deliveries-lgobe = <fs_adrc>-building.
              endif.
            endloop.
          endloop.
    ********and then .......
    * Selecting Address Number from TWLAD
      select werks lgort adrnr
        from twlad
        into corresponding fields of table gt_twlad
        where werks in s_werks and lgort in s_lgort  .
    * Selecting Facility code
      if not gt_twlad[] is initial.
        select addrnumber name2 street roomnumber building
          from adrc
          into corresponding fields of table gt_adrc
          for all entries in gt_twlad
          where addrnumber = gt_twlad-adrnr.
      endif.
      if not gt_adrc[] is initial.
    * Get the provinces
        select * from t005u
          into table gt_t005u
          for all entries in gt_adrc
          where spras = sy-langu and bland = gt_adrc-region.
      endif.
      loop at gt_twlad assigning <fs_twlad>.
        clear gt_lgort.

  • How to get one column of ALV table as dropdown by key.

    Hi experts,
                  How can I get one column of ALV table as dropdown and editable. If  user wants to change that column value he can just select from that dropdown and click on update button. Can I provide tool tip to that column as " Select from drop down to change the status "?
      Please Help.
    Thanks,
      Pratibha

    You just need to change the cell editor of that column in ALV.
    So first get access to the alv model object (adjusting the code below for your ALV Component Usage name - mine was ALV_ADV):
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
    Then access the column object you want to change:
    DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'REGION' ).
    Then create the cell editor for DDLB and set it as the new cell editor for this column:
    DATA ddlb TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      create object ddlb
        exporting
          selected_key_fieldname = 'REGION'.
      ddlb->set_tooltip( `Select from drop down to change the status` ).
      l_column->set_cell_editor( ddlb ).

  • While activating a request in DSO getting error code 10

    While activating a request in DSO getting error code 10
    Hi All,
    I am trying to load data into Billing: Condition Data (0SD_O06) using 2LIS_13_VDKON. First while loading data I am getting error
    Record 8778 :InfoObject SOLD_TO does not contain alpa-conforming value 100000 which I changed manually in PSA maintenence and tried to load data again and now I am getting an error (Error 10 in the update) ID:RSAR No119.
    I have checked the formula in Transformation and it works fine. Still I am not able to load data.
    Please help.
    Thanks and regards
    Vishal Pardeshi

    Check the log for the request from the manage screen of the DSO, it will be there next to the monitor button.
    Otherwise you can check the error from the monitor screen of the request in Details tab.
    Veerendra.

  • Trying to install Creative Cloud Desktop on windows 8.1, I've tried everything. Cloud Cleaner, removed all Adobe products from computer, ran in Administrator Deleted everything still get error code 1

    I've tried everything. Cloud Cleaner, removed all Adobe products from computer, ran in Administrator Deleted everything still get error code 1 noting in all the troubleshoots have helped.

    Error Code 1: "Failed to install" | Creative Cloud Desktop :
    https://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html

  • When I try to open Photoshop CS6 I get "Error Code 16"

    When I try to open Photoshop CS6 I get "Error Code 16"
    I have researched Internet - ADOBE and others - to find a solution, but no luck! (see under)
    The problem started around one year ago but I was able to open Bridge and go to Photoshop from there until recently.
    Now I get "Error Code 16" in Bridge too when I am trying to go to Photoshop.
    I have tried everything I could think of (including creating a new Administrator-user) with help from my Internet research and my own pretty good experience (I started working with computer systems as a Systems Analysts 1968...... - now it is only PCs)
    I miss my Photoshop and Bridge a lot - it is very frustrating to have this problem, but I can see I am not the only one!!!
    I also have these Adobe products:
    Adobe Photoshop
    1045-1297-1724-5553-8938-xxxx
    Adobe InDesign
    1037-1476-0290-3491-8464-xxxx
    Adobe Audition
    1137-1169-5106-2253-7226-xxxx
    Adobe Photoshop
    1045-1007-5934-1160-3319-xxxx
    Adobe Photoshop Elements
    1057-4535-7945-2468-2014-xxxx
    and some more.
    I am grateful for all help.
    /// Björn Andrén   -   [email protected]   (member ID)
    =======================================================================
    Configuration error 16 when you start a Creative Cloud (CC) or Creative Suite (CS) application
    https://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html
    ========================================================================
    Adobe CC/CS6 - Error 16 and no SLStore or PCD File
    https://forums.adobe.com/message/7157810
    https://forums.adobe.com/thread/1243845?tstart=0
    =========================================================================
    How to Erase an Adobe Registration File
    http://smallbusiness.chron.com/erase-adobe-registration-file-45714.html
    =========================================================================
    Why can't I open Photoshop CS6? Missing Adobe PCD and SLstore folders!?
    https://answers.yahoo.com/question/index?qid=20130608085953AAuWzEA
    ========================================================================
    Issue with getting an Error code '16' if trying to install Adobe Photoshop CS5
    http://thedailybuggle.com/forum/issue-getting-error-code-16-if-trying-install-adobe-photos hop-cs5-66.html
    ========================================================================
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Mon Feb 09 17:24:22 2015] ---------------------------------------------------------
    [Mon Feb 09 17:24:22 2015] *=*=*=*=*=*=*=*=* :: Start Session :: *=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:24:22 2015] ---------------------------------------------------------
    [Mon Feb 09 17:24:22 2015] Win OS Version: 6.1
    [Mon Feb 09 17:24:22 2015] Cleaner Tool version        : 2.0.0.0
    [Mon Feb 09 17:24:22 2015] Cleanup source directory    : C:\Program Files (x86)\Common Files\Adobe\AdobeCreativeCloudCleanerTool
    [Mon Feb 09 17:24:22 2015] [AdobeProgramFiles]        : C:\Program Files (x86)\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeProgramFiles_x64]    : C:\Program Files\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeCommon]            : C:\Program Files (x86)\Common Files\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeCommon_x64]        : C:\Program Files\Common Files\Adobe
    [Mon Feb 09 17:24:22 2015] [UserRoamingAppData]        : C:\Users\BEAR2\AppData\Roaming
    [Mon Feb 09 17:24:22 2015] [UserLocalAppData]        : C:\Users\BEAR2\AppData\Local
    [Mon Feb 09 17:24:22 2015] [StartMenu]                : C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    [Mon Feb 09 17:24:22 2015] [System32Folder]            : C:\Windows\system32
    [Mon Feb 09 17:24:22 2015] [SharedApplicationData]    : C:\ProgramData
    [Mon Feb 09 17:24:28 2015] Language selected: English
    [Mon Feb 09 17:24:28 2015] Displaying the Adobe End User License Agreement
    ADOBE
    Gen_WWCombined-en_US-20121017_1230
    [Mon Feb 09 17:24:28 2015] Please enter (y) for Yes or (n) for No. ... >>
    [Mon Feb 09 17:24:38 2015] Choose from one of the following options to clean up :
    [Mon Feb 09 17:24:38 2015] 1.  All
    [Mon Feb 09 17:24:38 2015] 2.  Adobe Flash Player 10.2
    [Mon Feb 09 17:24:38 2015] 3.  Creative Cloud 2014 , Creative Cloud & CS6 Products
    [Mon Feb 09 17:24:38 2015] 4.  Creative Cloud 2014 only
    [Mon Feb 09 17:24:38 2015] 5.  Creative Cloud only
    [Mon Feb 09 17:24:38 2015] 6.  CS6 only
    [Mon Feb 09 17:24:38 2015] 7.  CS5-CS5.5-CS6
    [Mon Feb 09 17:24:38 2015] 8.  CS5-CS5.5
    [Mon Feb 09 17:24:38 2015] 9.  CS3, CS4
    [Mon Feb 09 17:24:38 2015] 10.  Adobe Id credentials
    [Mon Feb 09 17:24:38 2015] 11.  Quit
    [Mon Feb 09 17:24:38 2015] Choice :>
    [Mon Feb 09 17:24:44 2015] User selected: CS6 Only
    [Mon Feb 09 17:24:44 2015] Executed the command : call copy /Y "C:\Program Files (x86)\Common Files\Adobe\caps\pdb.db" "C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444\pdb.db"
    [Mon Feb 09 17:24:44 2015] Executed the command : call copy /Y "C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db" "C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444\Media_db.db"
    [Mon Feb 09 17:24:44 2015] Opened DB connection with path: C:\Program Files (x86)\Common Files\Adobe\caps\pdb.db
    [Mon Feb 09 17:24:44 2015] DB does not exist at: C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db
    [Mon Feb 09 17:24:44 2015] List of products installed on this machine
    [Mon Feb 09 17:24:44 2015] Listing products for cleanup:
    [Mon Feb 09 17:24:44 2015] Please enter the option number of the product you wish to remove; enter (q) to quit ... >>
    [Mon Feb 09 17:25:02 2015] response 1
    [Mon Feb 09 17:25:02 2015] Are you sure you want to clean all the listed products and associated files?
    [Mon Feb 09 17:25:02 2015] Type (y) to confirm and remove or (n) to quit ... >>
    [Mon Feb 09 17:25:07 2015] Please wait for Adobe Creative Cloud Cleaner Tool to finish........
    [Mon Feb 09 17:25:07 2015] User selected: 'Clean All'
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*-* Start removing product : ALL *-*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*-* Finished removing product : ALL *-*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] Action : Deleting the C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444 folder as there is no product deleted.
    [Mon Feb 09 17:25:07 2015] LOG FILE SAVED TO: C:\Users\BEAR2\AppData\Local\Temp\Adobe Creative Cloud Cleaner Tool.log
    [Mon Feb 09 17:25:07 2015] Adobe Creative Cloud Cleaner Tool completed successfully
    [Mon Feb 09 17:25:07 2015]
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*- ::START:: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Mon Feb 09 17:24:44 2015] DB does not exist at: C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*- :: END :: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] ---------------------------------------------------------
    [Mon Feb 09 17:25:07 2015] *=*=*=*=*=*=*=*=* :: End Session :: *=*=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:25:07 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] *=*=*=*=*=*=*=*=* :: Start Session :: *=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:28:53 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] Win OS Version: 6.1
    [Mon Feb 09 17:28:53 2015] Cleaner Tool version        : 2.0.0.0
    [Mon Feb 09 17:28:53 2015] Cleanup source directory    : C:\Program Files (x86)\Common Files\Adobe\AdobeCreativeCloudCleanerTool
    [Mon Feb 09 17:28:53 2015] [AdobeProgramFiles]        : C:\Program Files (x86)\Adobe
    [Mon Feb 09 17:28:53 2015] [AdobeProgramFiles_x64]    : C:\Program Files\Adobe
    ================================================================================
    OS Name    Microsoft Windows 7 Professional
    Version    6.1.7601 Service Pack 1 Build 7601
    Other OS Description     Not Available
    OS Manufacturer    Microsoft Corporation
    System Name    BEAR-PC
    System Manufacturer    System manufacturer
    System Model    System Product Name
    System Type    x64-based PC
    Processor    Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s)
    BIOS Version/Date    American Megatrends Inc. 0801, 2011-08-15
    SMBIOS Version    2.6
    Windows Directory    C:\Windows
    System Directory    C:\Windows\system32
    Boot Device    \Device\HarddiskVolume1
    Locale    United States
    Hardware Abstraction Layer    Version = "6.1.7601.17514"
    User Name    BEAR-PC\BEAR2
    Time Zone    Eastern Standard Time
    Installed Physical Memory (RAM)    16.0 GB
    Total Physical Memory    16.0 GB
    Available Physical Memory    12.1 GB
    Total Virtual Memory    31.9 GB
    Available Virtual Memory    28.1 GB
    Page File Space    16.0 GB
    Page File    C:\pagefile.sys

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • I keep getting error code 4450 when I'm trying to burn a CD from itunes.  It keeps my CD and won't eject it and says "cancelling burn" forever then itunes locks up and my cd is ruined and NO songs on it.

    i can't burn cd's in iTunes anymore. I get error code 4450 when I'm trying to burn a playlist. Songs from my own cd's, or bought in iTunes (have not burned 7x's as I can't BURN any cd's at all!),  Then my cd gets stuck in the drive. and it says "cancelling burn" forever and then itunes freezes up. I have a Dell with Windows 7.
    -I've slowed down the burn as slow as it can go
    -I have bought 3 different brands of cd's
    -i have the latest version of iTunes.
    Can someone help me?

    I have Windows 7 on a Dell.  Open and play iTunes in the compatability mode and use Windows XP (service pack 2).  Disregard any messsages to disable the compability mode.  This has worked for me.  I have also reinstalled iTunes and played with burn speeds etc.  These ideas did not work.  Compatability mode works.

  • Part of Photoshop isn't functioning.  Under adjustments, when HDR toning is clicked on I get a code:  Error 48: File or folder does not exist.  Line:11  - $.evalFile(g_StackScriptFolderPath   "StackSupport.jsx");  How can it be fixed?

    The phone company was here working on something while I was gone.  They sat down at my computer (iMac) and since then HDR toning doesn't work.  Get the code:   Error 48: File or folder does not exist.    Line: 11     ->  $.evalFile(g_StacScriptFolderPatch + "StackSupport.jsx");   How can this be fixed?   

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • TS3694 i keep getting error  code 3194 i just want update to5.1.1 on my ipad help

    i keep getting error  code 3194 i just want update to5.1.1 on my ipad help

    Here you go:  http://lmgtfy.com/?q=iphone+error+3194

  • Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshpp onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a p

    Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshop onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a password... any ideas how to get it working again?

    You can never, never migrate an installed copy of PSE. It's just too complex and you can't get to all the bits and bobs.
    First you will have to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    which will not seem to do anything, but is necessary to break the links within PSE so that you can pitch the bits manually. Then you will have to go around, not only to applications, but also to your username>library>preferences and most importantly to the library at the top level of your hard drive>application support>adobe, and remove everything you can find. Spotlight will not help with this kind of search, so don't try that.
    Then you can install PSE from scratch.

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get "error code 3: Could not load front panel" for each of my agilent spectrum analyzer VIs. I have to click "OK" about ten times, once for each VI. (My executable runs fine on all machines that have labview 8.5) The front panel does load with a broken arrow. The errors listed when the arrow is clicked for all of the Agilent VIs state: Missing subVI AGE444xInitialize.VI (or close.VI or read.VI etc.)
    There is an AGE444x32.DLL in the data folder with the EXE file so I included as support both the DLL and all of the agilent drivers in the application build. Still no luck. I have built the application and installer about 6 times in various forms. I NEED AIR SUPPORT.
    Unfortunately I do not have access to the internet at my jobsite so bear with me.
    Rob

    Hi V-rob,
    I'm glad to hear the executable is working now that NI-VISA is installed.  Thanks for posting the solution!
    Jennifer R.
    National Instruments
    Applications Engineer

Maybe you are looking for

  • Can you help me on these 6 SAP BW interview questions?

    Hi, Can you help me get a better understanding of the expectations in the following interview questions? Please explain them in your on words and if you think there is an additional information, you may provide the link but I am more interested in yo

  • Accesing image files in java beans

    hi all I am developing an application which needs to access images files put in image folder in java bean file. I tried a lot by using different methods and failed always, except in case of absolute path which I dont want to use. My directory structu

  • IPod has a major freeze

    My iPod froze on the Movies menu. I didnt select anything at all and the battery is now low but not turning off by holding down the play button. I am dissapointed in the iPod therefor it need to fix alot of bugs. And the screen got scratched 1 day of

  • Problems with Advanced Queueing...

    Hi, Has anyone used AQ through OCI? We are having problems with OCISubscriptionRegister() the error reported back is 'two task conversions - overflow integer'. The code we are running is straight out of the published demos... Please HELP!! Thanks, Da

  • To find final internal table

    I HAVE PROBLEM IN KE24 SCREEN PROGRAM.THAT PROGRAM NAME Z RKEB0601. HERE IN THIS PROGRAM OUTPUT I HAVE TO ADD ONE FIELDNAME ORDERABLITY WHICH IDENTIFY D STANDARD ORDER OR SAMPLE ORDER. (WHEN SOME COMPANY GIVES US PO OR AFTER PRODUCTION I GIVE MY PROD