cancel
Showing results for 
Search instead for 
Did you mean: 

reading long text for MIC in a inspection plan

former_member214626
Active Contributor
0 Kudos

Hi guys ,

I want to read long text of a particular MIC in inspeciton plan .

I tried using table PLMK . Over there I will find long text exist or not if exist how to read it using READ_TEXT . what should the value in "TEXT NAME" parameter of the FM .

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Pawan_Kesari
Active Contributor
0 Kudos

In text editor where you enter text in sap, choose menu option Goto->Header. This will given you all values including text name, language, text id and text object which can be then used with READ_TEXT function module.

Regards,

Pawan.

PS: If its enjoy transaction then double click on text and it will take you to text editor.

former_member214626
Active Contributor
0 Kudos

Hi Pawan ,

"Go to -> HEader" option I knnow but over there the value for TEXT NAME will be unique for each and every MIC . how to find the text name for a mic's long text . Is there any table from which i can uniquely find TEXT NAME for a particular inspection plan's operations's MIC . I dont want to hard code it because in my program the inspection plan number will keep on changing .

Regards

former_member207800
Active Contributor
0 Kudos

As I know, the text name isn't stored in any standard table.

SAP also combines some data for the text name in standard program.

Please refer below logic (same with standard SAP logic as I know).

If the long text of master inspection characteristic,

MANDT+WERKS+MKMNR+VERSION+SPRACHE

Regards, DoWook KIM

former_member214626
Active Contributor
0 Kudos

Hi Dowook ,

Thanks for help . Its a combination of :

MANDT+Q+PLNNR+PLNAL+"SPACE"+MERKNR(4 digit)+ Z

where Z is the position of MIC in Plan . For example if the plan is having 2 operation first operation having 3 MIC and 2nd opeartion having 4 MIC . Now if we are looking for value long text of 4th MIC in 2nd operation then value of Z will be :

total no of MIC in operations before the current operation + position of the MIC selecte

=  (3) + (4)

= 7 .

But I am not able to find the value of Z in any table field .Please help . otherwise to find Z , again number of code lines should be written .

REgards

former_member214626
Active Contributor
0 Kudos

found this Z is ZAEHL in QALS .

thanks everybody

former_member207800
Active Contributor
0 Kudos

To SAP PM

You are talking about the long text of insp. characteristic in plan, not MIC's.

Then please refer the function module CQ_BM_PLMK_TEXT_FILL.

MANDT+PLNTY+PLNNR+PLNKN+KZEINSTELL+MERKNR+ZAEHL from PLMK.

Regards, DoWook KIM