cancel
Showing results for 
Search instead for 
Did you mean: 

What is the use of displaymodes for PO item text types

former_member218674
Contributor
0 Kudos

Hello,

I am trying to change po using BAPI "BAPI_PO_CHANGE".

It is changing all the field in PO header and ltem except line item text.

When I have debugged found that due to some displaymode flag for item texttypes is set it is not processing further.

Following is the code snip from BAPI_PO_CHANGE:

  • check if texttypes are already read from database

READ TABLE l_texttypes WITH KEY tdobject = lc_tdobject_header TRANSPORTING NO FIELDS.

IF NOT sy-subrc IS INITIAL.

CALL METHOD im_po->if_longtexts_mm~get_types

IMPORTING

ex_texttypes = l_texttypes.

ENDIF.

  • set text id if not provided to F01

IF l_bapitext-text_id IS INITIAL.

l_tdid = l_bapitext-text_id = 'F01'.

ELSE.

l_tdid = l_bapitext-text_id.

ENDIF.

  • find text id for object EKKO - PO Header

READ TABLE l_texttypes WITH KEY tdobject = lc_tdobject_header

tdid = l_bapitext-text_id

INTO l_texttype.

  • check for changeability of current text id

CHECK l_texttype-displaymode IS INITIAL. --> This is were it is checking displaymode.

I wanted to know why and where this displaymode is getting set.

Is there any customization involved to reset displaymode flag.

Please advice,

Thanks,

Augustin.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

As default setting PO item level text is not in display mode.

In ME23N -PO display only it is visible as display mode.

In ME22N -PO change it is in editabe mode only.

If you find it is display field in ME22N for your case , there is need to change screen layout settings At

SPRO >MM>purchasing > purchase order > define screen layout settings for doucment type.

Then go to ME22n and change the required settings

Answers (1)

Answers (1)

former_member218674
Contributor
0 Kudos

I found SAP Note to correct this issue.

SAP Note: Note 782948 - BAPI_PO_CHANGE: Long text changes are not updated

Thanks,

Augustin.