ABAP Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ENTRYSHEET_CREATE issue with service short text

0 Likes
900

Hi. I'm having an issue with BAPI_ENTRYSHEET_CREATE. I'm passing a custom text to the entrysheetservices-short_text parameter for each service. However, the BAPI automatically assigns the short text of the service from the purchase order or contract to the SES. How can I ensure that my custom text is used instead?

Hi. I'm having an issue with BAPI_ENTRYSHEET_CREATE. I'm passing a custom text to the entrysheetservices-short_text parameter for each service. However, the BAPI automatically assigns the short text of the service from the purchase order or contract to the SES. How can I ensure that my custom text is used instead?

4 REPLIES 4
Read only

ricky_shaw
Contributor
0 Likes
887

You Can use a field exit

Read only

0 Likes
616

I think it doesn't work in S4 HANA. I just get data from outside and call BAPI. No screens.  

Read only

0 Likes
595

Hi,

I found this note: https://me.sap.com/notes/1337342/E

It mentions a symptom related to the short text.
Even though it is not exactly what you are experiencing it did make me think that the usage of the short text field is somewhere configureable.
When a Service Entry Sheet(SES) is created using BAPI_ENTRYSHEET_CREATE with a service master record having "Short text change allowed(ASMD-CHGTEXT)" indicator set and if the short text field for the service is not filled in the BAPI then the system creates SES with service line short text as '$'.

I then looked further and apparently the CHGTEXT indicator can be configured via transaction ML02 based on the service type. 
As it turns out I don't have a system where this functionality is used and as such did not check it further.
Nonetheless it might give you some direction to look further into 🙂

If that is not it there is still the option that there is a badi or exit used in the flow that holds custom logic to overwrite the short text field. Use a trace or other manners of finding such potential points of customer adaptations in the flow.

Hope it helps.

Kr,
Joery

Read only

0 Likes
597

Hi Joery, yes, CHGTEXT is set to 'X' for me, so the short text should be editable. I will try to investigate exits and badis.