Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Long text problem while uploading Inspection plan through BDC.

fahim_am
Explorer
0 Kudos
486

Hi,

I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.

I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.

Waiting for quick solution.

Thanks in advance.

Fahié

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos
278

Don't use BDC for upload long text for QP02 (Inpsection plan)

Try to use fm SAVE_TEXT for updating the long text into inspection plan

After finding out tdid, tdobject

0 Kudos
278

Hi a®s,

Thanks a lot for your kind reply.

My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).

When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.

I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).

Waiting for quick solution.

Thanks in advance.

Fahié

0 Kudos
278

Hi,

I have found the reason why the system was behaving like this:

In table STXH, when I enter TDOBJECT=QSS, TDID=QM & execute, system was having TEXT NAME (TDNAME) with blank GROUP for a combination of Operation no & MIC no.

Whenever I am trying to assign the MIC, system is checking the combination of operation & MIC, if for this combination there is a blank group, then it is copying the long text & pasting in the inspection plan.

Solution: We have developed an ABAP program which will delete the line items of table STXH for which there is no GROUP. Basically program is checking all the values as Client, Q (as inspection plan), Group, Operation & MIC no (e.g.: 100Q blank space 00000001 001000000000) for which group is blank & delete the line item.

I hope this will help some body who are/will facing this kind of problem.

Warm Regards,

Fahiem.