Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

Placing a long-text on an SAP CS Order

$
0
0

Currently i'm working in SAP CS implementing a mobile solution for Quality Assurance based on SAP CS Workorders.

 

One of my requirements was to store information on the order header of this CS order.

 

Looking at the function module BAPI_ALM_ORDER_MAINTAIN it has importing parameters allowing you to put in text:

 

text-tables.png

But soon I discovered that these text weren't showing up in the actual order header nor in the operations linked to the order.

 

So I needed a different approach, luckily SAP also provides us with SAVE_TEXT and READ_TEXT function modules.

 

I implemented a method saving the text for me:

 

method.png

 

Soon I discovered that the text I was changing using this function module turned up to be in the table STXH but still not showing up in IW33.

 

Therefore I debugged the logic behind the transaction itself and came to the conclusion that the longtext indicator on the order header (AUFK-LTEXT) wasn't properly used.

 

When looking at the domain value of the longtext it only allows true or false (X or blank):

 

longtext yes-no.png

But I found that iw32 was updating the field with the language key:

 

longtext N.png

 

Therefore, against everything I've been taught I added an additional line of code updating the longtext indicator directly:

 

update dbtab.png

 

This actually shows the longtext in iw33.

 

order.png


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>