on 07-03-2009 8:32 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found SAP Note to correct this issue.
SAP Note: Note 782948 - BAPI_PO_CHANGE: Long text changes are not updated
Thanks,
Augustin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.