Adding a field

Dear Experts,
I have to add one field at the last of the of a ALV. THe field name is ebeln.
I have made modifiaction in the structure as well as in the fieldcat.
please go through the complete  code below.
Program name           : Z_Invoice                                   *
Program Description    : The purpose of the report is to:            *
                           Give the details of open invoices for a     *
                         project.                                    *
                         Give details of cleared invoices for a      *
                         project                                     *
Technical Object No    : NA                                          *
Developer              : Priyanka Vasudeva,Jasleen Randhawa          *
Level2 Analyst/FC      : Sanjay Arali                                *
Company                : Satyam Computer Services Limited(SCSL)      *
Start Date             : 12-05-2005                                  *
End Date               : 18-05-2005                                  *
Logical Database       : NA                                          *
Function Modules       : HR_SEN_CALE_DAYS_DATE,                      *
                         REUSE_ALV_LIST_DISPLAY,                     *
                         HR_HK_DIFF_BT_2_DATES                       *
Includes               : z_invoice_form - For forms                  *
                         z_invoice_top  - For data Declarations      *
                  C H A N G E      H I S T O R Y                     *
*Version|    Developer     |   Date   |      Change Description        *
V00  |Priyanka ,Jasleen |12/10/2004| New Development
report z_invoice message-id znew.
Include for the data declarations and selection screen
include z_invoice_top.
Include for the forms used
include z_invoice_form.
                    I N I T I A L I Z A T I O N                      *
initialization.
Storing the report name
  v_repid = sy-repid.
                 A T   S E L E C T I O N - S C R E E N               *
at selection-screen.
For validating the Project number entered by the user
  perform f_validate_proj_number.
                 S T A R T - O F - S E L E C T I O N                 *
start-of-selection.
For creating the field catalog
  perform f_fieldcat.
*For checking the project number in lowercse
  perform f_projectno_concatenate.
  if p_open = 'X'.
*For open invoices
    perform f_invoice_open.
  elseif p_closed = 'X'.
*For cleared invoices
    perform f_invoice_cleared.
  endif.
For vendor details
  perform f_vendor_details.
Display the Final Output in ALV
  perform f_alv_display.
                    E N D - O F - S E L E C T I O N                  *
*Free all internal tables
  free: i_output1,
        i_fieldcat,
        i_bsak,
        i_bsik.
                        E N D   O F   R E P O R T                    *
Program name           : Z_Invoice                                   *
Program Description    : The purpose of the report is to:            *
                           Give the details of open invoices for a     *
                         project.                                    *
                         Give details of cleared invoices for a
                         project
Technical Object No    : NA                                          *
Developer              : Priyanka Vasudeva,Jasleen Randhawa
Level2 Analyst/FC      : Sanjay Arali                                *
Company                : Satyam Computer Services Limited(SCSL)      *
Start Date             : 12-05-2005                                  *
End Date               : 17-05-2005                                  *
Logical Database       : NA                                          *
Function Modules       : HR_SEN_CALE_DAYS_DATE,                      *
                         REUSE_ALV_LIST_DISPLAY,                     *
                         HR_HK_DIFF_BT_2_DATES                       *
Includes               : z_invoice_form - For forms                  *
                         z_invoice_top  - For data Declarations      *
                  C H A N G E      H I S T O R Y                     *
*Version|    Developer     |   Date   |      Change Description        *
V00  |Priyanka ,Jasleen   |12/10/2004| New Development              *
  INCLUDE Z_INVOICE_TOP                                              *
include <icon>.
type-pools: slis.
                  D A T A B A S E    T A B L E S                     *
tables: bsak,     "accounting:secondary index for vendors(cleared items)
        bsik,     "accounting:secondary index for vendors
        lfa1,     "vendor master
        proj.     "project definition
I N T E R N A L    T A B L E S ***********************
For the complete details to be shown on the output screen
data: begin of i_output1 occurs 0,
      lifnr like lfa1-lifnr,          "vendor no
      name(70),                       "vendor name1
      belnr like bsak-belnr,          "document no
      bldat like bsak-bldat,          "document date
      dmbtr like bsak-dmbtr,          "amount in local currency
     waers LIKE bsak-waers,          "currency
      augdt like bsak-augdt,          "date paid
      zuonr like bsak-zuonr,          "assignment number
      due_date like bsik-zfbdt,       "due date
      status(4),                      "To set color
      g_days like p0347-scrdd,        "date paid
      end of i_output1.
*For open invoices
data: begin of i_bsak occurs 0,
      lifnr like bsak-lifnr,
      belnr like bsak-belnr,          "document no
      bldat like bsak-bldat,          "document date
      dmbtr like bsak-dmbtr,          "amount in local currency
     waers LIKE bsak-waers,          "currency
      augdt like bsak-augdt,          "date paid
      zuonr like bsak-zuonr,          "assignment number
      bukrs like bsak-bukrs,          "company code
      blart like bsak-blart,          "document type
      shkzg like bsak-shkzg,          "Type Credit Or Debit
      end of i_bsak.
*For vendor details including vendor number and name
data: begin of i_lfa1 occurs 0,
      lifnr like lfa1-lifnr,          "vendor no
      name1 like lfa1-name1,          "vendor name1
      name2 like lfa1-name2,          "vendor name2
      end of i_lfa1.
*For closed invoices
data: begin of i_bsik occurs 0,
      lifnr like bsik-lifnr,           "vendor no
      belnr like bsik-belnr,           "document no
      bldat like bsik-bldat,           "document date
      dmbtr like bsik-dmbtr,           "amount in local currency
     waers LIKE bsik-waers,           "currency
      blart like bsik-blart,           "document type
      zfbdt like bsik-zfbdt,           "baseline date for due date
      zbd1t like bsik-zbd1t,           "cash discount days1
      augdt like bsik-augdt,           "date paid
      zuonr like bsik-zuonr,           "assignment number
      bukrs like bsik-bukrs,           "company code
      shkzg like bsik-shkzg,           "Type Credit Or Debit
      end of i_bsik.
                D A T A    D E C L A R A T I O N S                   *
data: v_repid  type sy-repid,         "For the report name
      v_projno type bsak-zuonr,
      v_projno1(25) type c.
T A B L E    T Y P E S *****************************
Internal Table for Field Catalog
data i_fieldcat type slis_t_fieldcat_alv.
W O R K      A R E A S *************************
Work Area for Field Catalog
data wa_fieldcat type slis_fieldcat_alv.
               S E L E C T I O N     S C R E E N                     *
selection-screen skip 1.
selection-screen begin of block input with frame title text-001.
selection-screen skip 1.
parameters: p_projno type proj-pspid obligatory.
selection-screen skip 2.
parameters: p_open radiobutton group inv,
            p_closed radiobutton group inv.
selection-screen skip 1.
selection-screen end of block input.
Program name           : Z_Invoi  ce                                 *
Program Description    : The purpose of the report is to:            *
                           Give the details of open invoices for a     *
                          project.                                   *
                        Give details of cleared invoices for a     *
                          project
Technical Object No    : NA                                          *
Developer              : Priyanka Vasudeva,Jasleen Randhawa
Level2 Analyst/FC      : Sanjay Arali                                *
Company                : Satyam Computer Services Limited(SCSL)      *
Start Date             : 12-05-2005                                  *
End Date               : 17-05-2005                                  *
Logical Database       : NA                                          *
Function Modules       : HR_SEN_CALE_DAYS_DATE,                      *
                         REUSE_ALV_LIST_DISPLAY,                     *
                         HR_HK_DIFF_BT_2_DATES                       *
Includes               : z_invoice_form - For forms                  *
                         z_invoice_top  - For data Declarations      *
                  C H A N G E      H I S T O R Y                     *
*Version|    Developer     |   Date   |      Change Description        *
V00  |Priyanka ,Jasleen   |12/10/2004| New Development
V01  |                  |          |                                *
  INCLUDE Z_INVOICE_FORM                                             *
        Form To Create a FieldCatalog                                *
form f_fieldcat.
  clear wa_fieldcat.
lifnr
  wa_fieldcat-ref_fieldname  = 'LIFNR'.
  wa_fieldcat-fieldname      = 'LIFNR'.
  wa_fieldcat-tabname        = 'I_OUTPUT1'.
  wa_fieldcat-seltext_m      = 'Vendor No'(004).
  append wa_fieldcat to i_fieldcat.
  clear wa_fieldcat.
NAME
  wa_fieldcat-ref_fieldname  = 'NAME'.
  wa_fieldcat-fieldname      = 'NAME'.
  wa_fieldcat-tabname        = 'I_OUTPUT1'.
  wa_fieldcat-seltext_m      = 'Vendor Name'(005).
  append wa_fieldcat to i_fieldcat.
  clear wa_fieldcat.
BELNR
  wa_fieldcat-ref_fieldname  = 'BELNR'.
  wa_fieldcat-fieldname      = 'BELNR'.
  wa_fieldcat-tabname        = 'I_OUTPUT1'.
  wa_fieldcat-seltext_m      = 'Document No'(006).
  append wa_fieldcat to i_fieldcat.
  clear wa_fieldcat.
BLDAT
  wa_fieldcat-ref_fieldname  = 'BLDAT'.
  wa_fieldcat-fieldname      = 'BLDAT'.
  wa_fieldcat-tabname        = 'I_OUTPUT1'.
  wa_fieldcat-seltext_m      = 'Document Date'(007).
  wa_fieldcat-no_zero        = 'X'.
  append wa_fieldcat to i_fieldcat.
  clear wa_fieldcat.
DMBTR
  wa_fieldcat-ref_fieldname  = 'DMBTR'.
  wa_fieldcat-ref_tabname    = 'BSIK'.
  wa_fieldcat-fieldname      = 'DMBTR'.
  wa_fieldcat-tabname        = 'I_OUTPUT1'.
  wa_fieldcat-just           = 'R'.
  wa_fieldcat-seltext_m      = 'Amount in LC'(008).
  wa_fieldcat-no_zero        = 'X'.
  append wa_fieldcat to i_fieldcat.
  clear wa_fieldcat.
WAERS
wa_fieldcat-ref_fieldname  = 'WAERS'.
wa_fieldcat-fieldname      = 'WAERS'.
wa_fieldcat-tabname        = 'I_OUTPUT1'.
wa_fieldcat-seltext_m      = 'Currency'(009).
wa_fieldcat-no_zero        = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
  if p_open = 'X'.
due date
    wa_fieldcat-fieldname     = 'DUE_DATE'.
    wa_fieldcat-tabname       = 'I_OUTPUT1'.
    wa_fieldcat-seltext_m     = 'Due Date'(010).
    wa_fieldcat-no_zero       = 'X'.
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
Status
    wa_fieldcat-fieldname     = 'STATUS'.
    wa_fieldcat-tabname       = 'I_OUTPUT1'.
    wa_fieldcat-seltext_m     = 'Status'.
    wa_fieldcat-just          = 'C'.
    wa_fieldcat-icon          = 'X'.
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
G_DAYS
    wa_fieldcat-fieldname     = 'G_DAYS'.
    wa_fieldcat-tabname       = 'I_OUTPUT1'.
    wa_fieldcat-seltext_m     = 'Days Past Due'(011).
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
*AUGDT
    wa_fieldcat-ref_fieldname  = 'AUGDT'.
    wa_fieldcat-fieldname      = 'AUGDT'.
    wa_fieldcat-tabname        = 'I_OUTPUT1'.
    wa_fieldcat-seltext_m      = 'Date Paid'(012).
    wa_fieldcat-no_zero        = 'X'.
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
  elseif p_closed = 'X'.
  endif.
endform.
*&      Form  F_VALIDATE_Project_Number
      Form to validate the Project number entered by the user
form f_validate_proj_number.
Validation of Project numbers entered on the selection screen
  select single pspid
         from proj
              into proj-pspid
              where pspid = p_projno.
  if sy-subrc ne 0.
    message e100.
  endif.
endform.
*&      Form  F_projectno_conctenate
      Form to check for the project number.
form f_projectno_concatenate.
  concatenate p_projno(1) '-' p_projno+1(23)
                                    into v_projno.
  v_projno1 = v_projno.
  translate v_projno1 to lower case.
endform.
*&      Form  F_invoice_open
      Form to get the details for open invoices
form f_invoice_open.
  data:  l_dat type endda,
         l_date type begda,
         l_days type psen_duration_dec,
         l_outdate  like  p0347-scrdd,
         l_date1 type dats,
         l_date2 type dats,
         l_days1(6) type c,
         l_days2(6) type c.
  select lifnr                     "vendor no
          belnr                    "document no
           bldat                   "document date
            dmbtr                  "amount in LC
           waers                 "currency
              blart                "document type
               zfbdt               "baseline date for due date
                zbd1t              "cash discount days1
                 augdt             "date paid
                  zuonr            "assignment number
                   bukrs           "company code
                    shkzg          "Type Credit or Debit
                        from bsik
                        into corresponding fields of table i_bsik
                        where ( zuonr = v_projno
                             or zuonr = v_projno1 )
                            and bukrs = 'AIC'
                           AND ( blart = 'RE' OR blart = 'KZ' )
                            and umsks eq space.
  loop at i_bsik.
    i_output1-lifnr = i_bsik-lifnr.
    i_output1-belnr = i_bsik-belnr.
    i_output1-dmbtr = i_bsik-dmbtr.
    i_output1-bldat = i_bsik-bldat.
   i_output1-waers = i_bsik-waers.
    i_output1-zuonr = i_bsik-zuonr.
    l_days-caldd = i_bsik-zbd1t.
    l_date = i_bsik-zfbdt.
*Modification for Account Payable
   if i_bsik-BLART = 'KZ'  .
    if i_bsik-shkzg = 'H'  .
      i_output1-dmbtr = 0 - i_bsik-dmbtr .
    endif.
to add baseline date and accounts recievable days1
    call function 'HR_SEN_CALE_DAYS_DATE'
         exporting
              id_date                  = l_date
              id_operator              = '+'
              is_duration              = l_days
         importing
              ed_date                  = l_dat
         exceptions
              conversion_not_specified = 1
              conversion_not_possible  = 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.
    i_output1-due_date = l_dat.
    if sy-datum > l_dat.
      l_date1 = sy-datum.
      l_date2 = l_dat.
    else.
      l_date1 = l_dat.
      l_date2 = sy-datum.
    endif.
*to calculate difference between the due date and currrent date
    call function 'HR_HK_DIFF_BT_2_DATES'
         exporting
              date1                   = l_date1
              date2                   = l_date2
              output_format           = '02'
         importing
              days                    = l_outdate
         exceptions
              invalid_dates_specified = 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.
    l_days2 = l_outdate.
    if sy-datum le l_dat.
      i_output1-status = icon_green_light.
      concatenate '-' l_days2 into l_days1.
      i_output1-g_days = l_days1.
    elseif sy-datum gt l_dat.
      i_output1-status = icon_red_light.
      concatenate '+' l_days2 into l_days1.
      i_output1-g_days = l_days1.
    endif.
    append i_output1.
  endloop.
endform.
*&      Form  F_vendor_details
      Form to get the details of vendors
form f_vendor_details.
*to get vendor details
  loop at i_output1.
    select single lifnr                            "vendor no
                    name1                          " vendor name1
                      name2                        " vendor name2
                          from lfa1
                          into  i_lfa1
                          where lifnr = i_output1-lifnr.
    if sy-subrc = 0.
      i_output1-lifnr = i_lfa1-lifnr.
      concatenate i_lfa1-name1 i_lfa1-name2
                                      into i_output1-name
                                      separated by space.
      modify i_output1.
    endif.
  endloop.
endform.
*&      Form  F_invoice_cleared
      Form to get the details for cleared invoices
form f_invoice_cleared.
  select lifnr                     "vendor no
          belnr                    "document no
           bldat                   "document date
            dmbtr                  "amount in LC
            waers                 "currency
              augdt                "date paid
               zuonr               "assignment number
                bukrs              "company code
                 blart             "document type
*Added for
                  shkzg          "Type Credit or Debit
                        from bsak
                        into table i_bsak
                        where ( zuonr = v_projno
                             or zuonr = v_projno1 )
                            and bukrs = 'AIC'
                           AND ( blart = 'RE'
                           OR   blart = 'KZ' )
                            and umsks eq space.
  loop at i_bsak.
    i_output1-lifnr = i_bsak-lifnr.
    i_output1-belnr = i_bsak-belnr.
    i_output1-dmbtr = i_bsak-dmbtr.
    i_output1-bldat = i_bsak-bldat.
   i_output1-waers = i_bsak-waers.
    i_output1-augdt = i_bsak-augdt.
    i_output1-zuonr = i_bsak-zuonr.
*Modification for Account Payable
   If i_BSAK-BLART = 'KZ'  .
    if i_bsak-shkzg = 'H'  .
      i_output1-dmbtr = 0 - i_bsak-dmbtr.
    endif.
    append i_output1.
  endloop.
endform.
      FORM f_alv_display                                            *
form f_alv_display.
  data:wa_layout type slis_layout_alv,
       v_title type lvc_title,
       wa_variant like disvariant.              "For default variant
  if p_open = 'X'.
    concatenate 'Open Invoices for Project:'(003) v_projno into
    v_title separated by space.
    wa_variant-variant = '/DEFAULT1'.
  else.
    concatenate 'Cleared Invoices for Project:'(002) v_projno into
      v_title separated by space.
    wa_variant-variant = '/DEFAULT'.
  endif.
  wa_layout-colwidth_optimize = 'X'.
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program = v_repid
            is_layout          = wa_layout
            i_grid_title       = v_title
            it_fieldcat        = i_fieldcat[]
            i_save             = 'A'
            is_variant         = wa_variant
       tables
            t_outtab           = i_output1
       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.
But after doing these changes as i mentioned above , i am not able to get the
catalog in the ALV.
Please help!!!
i wanted to send you all the picture of ALV, But i am not able to paste it,
can  i post picture inthis , if  possible pl tell.
Thanks
Neeraj

Hello,
to get it in ALV , there needs to be an append of EBELN to the field catalogue
ebeln
wa_fieldcat-fieldname = 'EBELN''.
wa_fieldcat-tabname = 'I_OUTPUT1'.
wa_fieldcat-seltext_m = 'EBELN'(009).
append wa_fieldcat to i_fieldcat.
clear wa_fieldcat.
Please check if you have added it to the field catalog.......
In addition to it,before calling the reuse_ALV function put a breakpoint and see if the internal table 'I_OUTPUT1' contains EBELN and all relevant data....
Reward if useful and pls reply if you rectified the problem
Regards
Byju

Similar Messages

  • Added new field to cube but data not passed from DSO

    Hope someone can help.
    (BI 7.0) We added new fields into a cube. The fields already existed in the DSO. When we ran the process chain in development for the first time after making this change, we notice that the 'historical' data for these fields is populated in the cube. When we do this in our quality system only new data passed to the cube is updated. In development in the sub-chain DTP request we see all previous requests listed under selections. In quality it is only the latest request. The only difference is that the DeltaInit flag in the DTP request in development is ticked (extraction mode) - but not in quality. Does anyone know whyb this is?

    hi peter,
    Adding fields to cube doesn't affect delta status...The delta DTP should be able to handle delta requests automatically.
    I guess in you quality system, the cube already got all requests updated from ODS before you importing the change request. And in develop system none of the requests in ODS were updated before the change.
    Regards,
    Frank

  • Adding new field to data source -can not see them

    Experts,
    I have added 4 fields to the data source 0FI_AA_11 .
    I can able to see these fields in the append structure or in RSA2,but i can not able to see in RSA6.I reactivated append structure ,still i can not see these fields in RSA6.
    Please advice me how can i see them in RSA6.

    Hi Manoj,
       Have a look, similar post:
    Re: not able to see new fields in datasource
    Hope it Helps
    Srini

  • Added new field to ALV but not  displaying the ouput

    Hi guys,
    I'm adding one more column to be displayed on an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA : BEGIN OF itab OCCURS 0,
      matnr LIKE eina-matnr,
      extwg LIKE mara-extw,
      matkl LIKE mara-matkl,
      mtart LIKE mara-mtart,
      maktx LIKE makt-maktx,
      lifnr LIKE eina-lifnr,
      wglif LIKE eina-wglif,
    <span style="color:red">idnlf like eina-idnlf,          " <----
    new field</span>
      name1 LIKE lfa1-name1,
      profl LIKE mara-profl,
    END OF itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-cprog
          i_internal_tabname     = 'ITAB'
          i_client_never_display = ''
          i_inclname             = sy-cprog
         i_bypassing_buffer     = 'X'
        CHANGING
          ct_fieldcat            = t_cat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    I've added in a new field inside the ITAB internal table, but it wouldn't appear in the t_cat, only all the old fields will appear. What have i done wrong?

    Hi
      Facing similar kind of issue.. added one field to the existing internal table. This is not getting populted by the field catalog merge FM. Tried with the suggested solution also of running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off  and logging in..
    But the newly added field is not getting populated. Any suggestions would be of great help.
    Regards,
    sridevi S

  • Adding new field to Remote Cube

    Hello,
    We have an existing remote cube that we are trying to add a new field to in 7.0.  I've already added the field to the datasource, unhidden it, and tested it in RSA3.  Now i'm trying to bring it into BW and add it to the remote cube.  I right clicked on the source system under the data target and chose Replicate Metadata however the new field does not show up anywhere.  What am i doing wrong?  Does a remote cube work differently?  How do i get my new field over from R3?
    Regards,
    TMS

    That's the problem.  The R3 field does not show up in the datasource in BW so it can be moved over to the transfer structure.  As you know when you replicate metadata, the new datasource fields appear and can be mapped into the transfer structure.  That is not the case for this remote cube.  The new field is not there.

  • Adding new field to Customer master sales data area sales tab

    Hello everyone,
    I am new to module pool so seeking some help from experts here.
    I have a requirement were in I have to add a new field to the customer master (VB02) sales area data sales tab.
    I found that there is no screen exit.Is there any other way of doing it?
    could you please provide me with a step by step procedure of doing it.
    With Regards,
    Karishma.

    Hi,
    How did you look for screen exit? Have you also tried it in BADI? 'Coz normally, adding custom fields to a standard screen has to be implemented in exits.
    I haven't worked with VB* screens yet so I can not give you a some possible exits. But you can do some debugging. I think there's an available code in the net that searches for exits/screen exit (ask Mr.Google). You can also ask him how to search BADI in debugging mode. I remember it's TCode SE24 then look for cl_exithandler class, get_instance method. Then look for exit_name variable.
    Hope this helps.

  • Adding new fields to the data flow

    Hi,
    I am currently planning to add some new fields in one DSO and map it (with info source) in the update rules.
    Will adding new fields to Info source - Comm. structure affect all the update rules connected to it?
    The info source is connected to multiple DSO.
    (The data source is currently under enhancement for these fields). Once this is done, we have to replicate it to BW.
    Thanks,
    Naveen

    yes.
    Once the enhancement is done for data source in r/3 side, you will have to replicate the datasource in BW.
    Adding new fields will deactivate the update rules. You have to map the same in update rule and activate the same.
    This will require activation of  transformations, update rules, etc for related DSOs. Try to find out the where used list for the DSO where you want to add the new objects. Then check each objects whether these are activate after the changes. If these are inactive, you will have to activate all the objects.
    Cheers
    Chanda

  • SRM 7.0 -Adding Custom fields in Contract Item screen at particular positn

    Hi,
    We have a requirement to add new custom fields in the Contract Item screen at required position, in Left and right side container.
    We have tried the following methods but have not been able to achieve the same. Kindly help!
    1) Added new field in Context through enhancemnt in the Details screen View of Contract , Binded the field to the field in structure INCL_EEW_PD_ITEM_CSF_CTR and add the field to teh Layout - Using this method, The field is not saved to the table.
    2) Added the field to meta data table /SAPSRM/V_MDF_IC - This is positionng the field on teh right container at the bottom. We want to position it on left side.
    Kindly help to understand where we are going wrong.
    Thanks in advance,
    Regards
    Prasuna.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • Adding Summary Fields

    Good Morning Everyone,
    We would like to add summary Fields.
    1)
    Double click on the Data Model icon on the Object Navigator
    Click on the Summary Column tool on the Data Model Editor's left hand toolbar
    Double Click on CS_1
    and so on
    2)use SUM at Report Wizard :
    After researches, we founded Creating summary / formula columns in data model does not show them in paper layout. We learnt the report wizard, and choose to display the summary / formula column in one of the steps.
    Following Report Wizard and will see SUM option;
    http://nycapex.webs.com/apps/photos/photo?photoid=95360469
    We have hard time in both ways.
    If you have experience in Adding Summary Fields, please share with us.
    Thank in advance,
    NY
    Edited by: New Yorker on Aug 17, 2010 7:44 AM

    Your screen shot shows that you have nothing selected as a summary. So, there is nothing to display in the layout. What is your exact problem? The available fields don't look like you can SUM them, so the option is not available.
    we founded Creating summary / formula columns in data model does not show them in paper layoutIf you add them later on, you can manually add them in the layout.
    Edited by: InoL on Aug 18, 2010 1:53 PM

  • Adding a field to an sql statement in Oracle Reports error ORA-00933

    We have been requested to add a field that already exists in the table referred to by the sql statement in Oracle Reports Builder. The report was set up by a consultant about 3 yrs ago and we don't really have much skill in this area. What is happening when I try to modify the SQL statement, either adding a field or deleting a field to the SELECT statement, causes an error message preventing the statement from being saved. The only way out of the error message is to click Cancel. The error message is
    ORA-00933:SQL command not properly ended
    ORDER BY Program ==> NAME
    Even adding or deleting a space anywhere in the SQL statement causes the error (not adding any new fields). A coworker found that if we comment out the ORDER BY, the statement will accept the new field in the SELECT section, however then we lose the order by functionality. I would like to add one additional field before the FROM. Not sure if any additional data are needed. Thank you.
    SELECT p.person_uid PIDM_KEY, p.id_number ID,
                   p.full_name_lfmi name,            
                    p.BIRTH_DATE, p.GENDER Sex,
                    Decode(a.residency,'D',p.Primary_ethnicity,'F')  Ethn,
                    a.academic_period TERM,        
                    CASE WHEN :p_group_by = 'PROGRAM' THEN a.program
                                 ELSE ' '
                    END AS Program,
                    a.COLLEGE, a.degree, a.major, ' ' rule,
                    a.STUDENT_POPULATION,a.STUDENT_LEVEL,    a.application_status Status,  a.application_status_date app_sts_dte,
                    ad.decision_date1 Last_Dec_Date,
                    ad.decision1||' '||ad.decision2||' '|| ad.decision3||' '|| ad.decision4||' '|| ad.decision5 Decisions,
                    /*  Deposit Date uses the last term entered in :p_term parameter string */
                    (SELECT MAX(deposit_effective_date) FROM usf_as_deposit WHERE account_uid = a.person_uid &term_clause group by account_uid)   AS "DEPOSIT DATE",     
                    ph.phone as PHONE,
                    CASE WHEN PS.FIRST_CONTACT IN ('NET','PAP','COM','COP') THEN PS.First_Contact
                     ELSE CASE WHEN ps.latest_contact IN ('NET','PAP','COM','COP') THEN PS.Latest_Contact
                                ELSE '  '
                                END
                    END AS FIRST_CONTACT,
                    DECODE(:p_address,'Y',REPLACE(adr.street1||' '||adr.street2||' '||adr.street3||' '||adr.city||','||adr.state||' '||adr.nation||' '||adr.zip,'  ',' '),' ') as  address, adr.nation, adr.state,
                    goremal_email_address email, a.residency, a.application_date, p.primary_ethnicity, c.cohort
    FROM MST_ADMISSIONS_APPLICATION A,
               MST_PERSON p,mst_pre_student PS,  Admissions_Cohort c, usf_v_phone_pr_ma ph,
               MST_admissions_decision_slot AD, usf_v_email, usf_v_address_dr_lr_ma_pr adr
    WHERE a.PERSON_UID = p.person_uid
            AND a.curriculum_priority  = 1
            AND a.person_uid = ps.person_uid
           AND a.person_uid = ad.person_Uid(+)
           AND a.person_uid = goremal_pidm(+)
           AND a.person_uid = adr.pidm(+)
           AND a.person_uid = ph.pidm(+)
           AND ph.rnum(+) = 1
           AND a.person_uid = c.person_uid(+)
           AND a.academic_period = c.academic_period(+)
      &Where_Clause
           /*    TAKE OUT FOLLOWING LINE AFTER DATA IS CLEANED UP  */
            AND NOT(p.id_number = '00000000'   OR SUBSTR(p.id_number,1,1) = 'B'  OR UPPER(p.full_name_lfmi)  LIKE '%TESTING%')
           AND  a.application_status_date >= NVL(:p_as_of_date,sysdate-8000)
           AND a.academic_period = ad.academic_period(+)
            AND a.application_number = ad.application_number(+)
            AND a.degree <> 'ND'    /*   AND a.college <> 'LW'                         --  Does not need non-degree and law students    */
           &Cohort_Clause 
    ORDER BY Program  &ORDER_CLAUSE

    Hi Denis,
    I tried your suggestion. The good thing is that adding the comma allowed me to be able to add a.campus to the select statement, unfortunately, another error message happened.
    ORA-00936: missing expression SELECT p . person_uid PIDM_KEY ,
    p . id_number , p . full_name_lfmi name , p . BIRTH_DATE , p . GENDER Sex ,
    Decode ( a . residency , 'D' , p . Primary_Ethnicity , 'F' ) Ethn , a . academic_period TERM ,
    CASE WHEN : P_group_by = 'PROGRAM THEN a I started over and tried only putting in the comma and get the same message even though I didn't add campus. After that, removed the comma which led to the ORA-00933 error message. So once again, I had to close the file without saving, in order for the report to run at all.

  • Error while adding user fields to user table using vb6.0

    Hi,
    I am adding a user tables using vb6.0 using DIAPI.
    I am able to add the user table successfully.
    I am getting the following error when i am adding the fields to the table.
    "The metadata object for this object cannot be updated, since it's ref count is bigger than 0."
    My code is as follows:
        oUserFieldsMD.TableName = TABLE_NAME_ITEM_LOCN
        oUserFieldsMD.Name = vTableFields(0, lCount)
        oUserFieldsMD.Description = vTableFields(1, lCount)
        oUserFieldsMD.Type = vTableFields(2, lCount)
        oUserFieldsMD.EditSize = CLng(vTableFields(3,lCount))
        lRetCode = oUserFieldsMD.Add
    This error does not come up when i try to add the field to my table using the vb sample provided by SAP.
    Your help will me much appreciated.
    Thanks.

    Hi Satish,
    The problem is that you added the table and the objetc that you used to add the table is not freed properly. You need to free the object and then the reference count to that table will be 0 - which will enable you to add the fields
    e.g
    Dim pUTables As SAPbobsCOM.UserTablesMD
    'Do your stuff
    Set pUTables = Nothing
    Dim pUFields As SAPbobsCOM.UserFieldsMD
    'Do your stuff
    Set pUFields = Nothing

  • Adding a field to infotype 554 with PM01

    I was adding this field to infotype 0554 via PM01 and while I was generating the objects I got this error.
    Structure HCMT_BSP_PA_US_R0554 does not exist
    Message no. PG361
    Diagnosis
    The structure HCMT_BSP_PA_US_R0554 does not exist in the Dictionary.
    Procedure
    Please create the structure before executing any further actions.
    Any ideas how to solve this?
    Thanks,

    yes it is public sector.
    I went to PE03 and found molga 10 assigned to US.
    not sure how to check for PMI

  • Error with Dump while adding Currency field in UI

    Hello,
    I have a requirement to add a custom entity in MDGM with an currency attribute, and encountring dump while adding the field to Web Dynpro component in UI.
    Could some one point me a direction and see below :
    Custom Entity with attributes
    ZTSTOCK  data element is type curr (Lenght 13, Dec 2)
    Data Model is activated without errors and created custom Web Dynpro Form component. while designing it in UIBB by adding Element TSTOCK_VL encountring a error and dump.
    Error: Could not find attribute WAERS and also dump showing below:
    Category               ABAP Programming Error
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_WD_CONTEXT
    ABAP Program           CL_WDR_CONTEXT_NODE_INFO======CP
    Application Component  BC-WD-ABA-RUN
    Date and Time          21.05.2014 00:13:32
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program
          'CL_WDR_CONTEXT_NODE_INFO======CP' has to be
         terminated.
    Any help please.
    BR, Srihari

    Yes, since the release of the current segment is 45 and you are now in a ECC6 system you cannot cancel the release (because there is no ECC6 version). Just use the add version button to create a new version for ECC6. Once you have that you can add fields and set the release to ECC6.
    If you later on need to add more segements you can then cancel the release for your ECC6 segment and add the fields and set the release to ECC6 again (because you already have an ECC6 segment)
    Hope that explains it,
    Michael

  • Adding Z field in Opportunity search and result view BT111S_OPPT/Search

    Hi,
    I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
    We have Z field in ultimately residing in BUT000.
    Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
    Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
    I am confused with regard to the approach we need to use to get this field in search and result.
    I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
    During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
    BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
    is this correct? or am I doing something wrong?
    Why can't I see the fields in configuration?
    So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
    Any advice?
    Many thanks in advance for your help
    Rakesh

    Hi Rakesh,
    Please follow below steps:
    1. Append your custom field to structure associated with your search/result structure.
    2. After you append this field to structure, this field would be available in context node.
    3.  Check if the field is reflected in available fields in configuration.
    4. If field is not present in configuration then please follow steps stated by me in:
    Re: New Column can not be added in chtmlb:configTable
    5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
    If not then please go through below forum :
    Re: BADI for Claims search in trade promotion management
    Let me know if this helps.
    Regards,
    Bhushan

  • Adding existing field to a UI Search and Modifying UI Query

    Hello.
      I want to add the "central archiving flag" to the Contact search BP_CONT_SEARCH/Search. I've added the field into the SEARCH node via BSP_WD wizard but the field created does not appear as available in the Search because it is not into the context structure. ¿Is there any solution to this? ¿I must append a new field to the standard structure?
      Although I get the "archiving flag" available I think I will need to modify the selection query ¿Is that possible? If it's possible ¿How can I do it?
      I have another problem with a result field of another search for activities (BT126S_APPT/ApptSR). I would like to know how can I reach the selection ( based on BOL result model BTQRAct ) and how can I modify that selection/quety.
    Thanks in advance.
    Kind regards.

    You can create a copy of the standard design layer, add your field and define it as dropdown listbox 0 coding is required
    Otherwise you will need to code in the GET_V method and the GET_P, there's a lot of information about this if you have a little of patience to search
    If fits your requirement (dropdown listbox) I would go for the design layer approach, of course there's info about this through scn too

  • Adding the field to segment

    Hi
    while i am adding the field to segment i am getting this error
    "Error while resetting release of segment Z1XXXX"
    Message no. EA259.
    here i did the cancel release to edit the segment to add field
    i am not able to go to edit mode.any suggestions?
    thank you

    Hi Sunny,
    If you want to add a new field, then in WE31, go to Segment->Add version.
    After addition of the field, set release to this version. But before all this, Cancel release on the active version.
    Let us know if it worked.
    Vijay

Maybe you are looking for

  • History, bookmarks and navigation have stopped working in firefox 3.6.8 for mac

    Firefox 3.6.8; Mac OS 10.5.8 The history function doesn't record anything; all my bookmarks are gone; I can't make any new bookmarks either. I tried safe mode, nothing changed. My forward/back arrows go away some times too. I tried reinstalling firef

  • Can iMovie be used with Panasonic AVCHD camcorder?

    Have a friend who came back from Japan with a camera so new, its not yet available here. It's the Panasonic HDC-DX1-S, and it records HD on 3-inch discs. He wants to be able to import the footage into iMovie, but I've had little luck. I am familiar w

  • My Wifi Card???

    Hello I have a Macbook Pro and my sister have a macbook...We both work at the same . Her Macbook can catch wifi signals from across the street but my Macbook Pro cant. Is it my wifi card or what...Will apple install a new on for me because I have app

  • Listening to multiple playlists at once

    Is there a way to start listening to a playlist on an iPod, but after a few songs start a different playlist, and then later go back to the first one but at the place where you left off? In other words, avoid having to start over every time you play

  • Is it possible using Analytical functions?

    Hi,    I have the following data     Column1      Column2     2005            500     2006            500     2007            500     2008            500 Now, if I've some variable value as 800, then the output record should be     Column1         Co