cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro: TM module : To add a field in WDY_APPLICATION - Transportation Cockpit

0 Kudos

Hi Experts,

I had a requirement as below with Transportation Management Module.

Requirement: In planning Folder -> Planning -> "WDY_APPLICATION - Transportaion Cockpit" , for one of the FU's(Freight Unit Stages) I need to add one field to the screen.

The below screen is displayed. In the below screen we need to add one more field "DLV_PRIO" after the carrier field

To get the field "DLV_PRIO", Below is the reference. Go to the T-code: /BOBF/TEST_UI

Below is the screen we get and add the Business Object Builder: /SCMTMS/TOR.

Then follow the below steps.

Below screen appears, Give the value from Freight Unit Stage "Frieght Unit" field Value (See the second screen shot) in "TOR_ID" and click Continue.

Then the details of the Frieght Unit gets displayed as shown below.

From here I want the field "DLV_PRIO" this field should be added to the Transportation Cockpit screen after the CARRIER Field. (As showed in Screen -2 )

Kindly help out ASAP.

Thanks In Advance!!!

Regards,

Prathyusha Rudraraju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prathyusha,

      To add additional column in Freight unit.you need to enhnace the POWL

1.Go to Tcode : POWL_TYPE and find freight unit powl type : SCMTMS_TOR_FU

2.Feeder class for freight unit POWL is /SCMTMS/CL_UI_POW_FD_TOR_FU

3.Enhance method IF_POWL_FEEDER~GET_OBJECTS to fetch data(in you case DLV_PRIO ).

4.Enhance fieldcatlog method of POWL :  GET_FIELDCATALOG_FU to add DLV_PRIO in POWL UI

Regards,

Raja

0 Kudos

Hi Raja,

Can you please help me further, to add a field in the

METHOD: if_powl_feeder~get_field_catalog.

Thanks In Advance.

Regards,

Prathyusha Rudraraju

Former Member
0 Kudos

Hi Prathyusha ,

  Please go to method GET_FIELDCATALOG_FU to add field catlog for FU

sample code :

WHEN 'DLV_PRIO'.

        ls_fieldcat-colpos = 15."Column Position

        ls_fieldcat-header =  "Header Text

ls_fieldcat is of type 'POWL_FIELDCAT_STY' where you have different options of fieldcatlog

Regards,

Raja

0 Kudos

Hi Rajashiva,

Thanks for the reply.

As per my requirementI need add one more extra column (DLV_PRIO) to output ALV.

I believe that column(DLV_PRIO) should there in MT_OUTPUT_DDFIELDS, So that how can I add the columnto MT_OUTPUT_DDFIELDS, how can I find out the structure name (BO Name).

Please find theattached screen shots.

Kindly help me out.

Will be waiting for your reply.

Thanks so much for bringing to this extent in this object.

Regards,

Prathyusha Rudraraju

0 Kudos

Hi Raja,

We have tried as below, but it didn't work.

Below is the code written.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Class /SCMTMS/CL_UI_POW_FD_TOR_FU, Method GET_FIELDCATALOG_FU, End                                                                                A

*$*$-Start: (1)---------------------------------------------------------------------------------$*$*

ENHANCEMENT ZDLV_PRIO_ENH.    "active version

*

**  LOOP AT mt_output_ddfields INTO ls_output_ddfields WHERE fieldname = 'DLV_PRIO'.

*  READ TABLE mt_output_ddfields inTO ls_output_ddfields with key fieldname = 'DLV_PRIO'.

*  if sy-subrc = 0.

*    CLEAR ls_fieldcat.

**   now set default layout for all other columns

*    ls_fieldcat-colid             = ls_output_ddfields-fieldname.

*    ls_fieldcat-col_visible       = abap_true.

*    ls_fieldcat-header_by_ddic    = abap_true.

*    ls_fieldcat-enabled           = abap_true.

*    ls_fieldcat-allow_filter      = abap_true.

*    ls_fieldcat-allow_sort        = abap_true.

*    ls_fieldcat-display_type      = /scmtms/if_ui_pow_const=>co_display_type-textview.

*    ls_fieldcat-colpos = 1.

*    ls_fieldcat-header         = 'TEST DLV'."cl_wd_utilities=>get_otr_text_by_alias( '/SCMTMS/UI_CMN/DATE_EARLIEST_REQ_DELIVERY' ).

**    ls_fieldcat-header_by_ddic = abap_false.

*    INSERT ls_fieldcat INTO TABLE c_fieldcat.

*  ENDIF.

** ENDLOOP.

** * add default Header for descriptions fields

*  add_std_description_label( CHANGING c_fieldcat = c_fieldcat ).

ENDENHANCEMENT.

*$*$-End:   (1)---------------------------------------------------------------------------------$*$*

ENDMETHOD.



Regards,

Prathyusha Rudraraju

Answers (0)