hi experts ..
iam beinng stuck in problem where long text is to be modified but didnt got any helpfull answer till now pls any body there who had done bdc for QP02 --inspection plan characterstic .. with long text to be modifeid with respective characterstic.
i created a internal table for long text and iam reading it with keys..
but the problem is suppose one material .. i have to modfiy 3 charstic ..
material plnt plnnr plnal oper char longtxt
105012 3011 1001 1 1 10 long text1
20 longtext2.
105013 3110 1001 1 1 10 long text1
now when it run for 105012 matnr
it goes into text screen and after the 20 charstic it is overwriting the same matnr with the contents of 105013.
here is my code.
pls do correct me where iam wrong.
loop at ichr.
PERFORM bdc_dynpro USING 'SAPLQPAA' '0150'.
PERFORM bdc_field USING 'BDC_CURSOR'
'PLMKB-AUSWMENGE1(10)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RQPAS-QUANTITAT(01)'
wa_ichr-quantitat .
PERFORM bdc_field USING 'RQPAS-QUALITAT(01)'
wa_ichr-qualitat.
READ TABLE itext WITH KEY matnr = wa_ichr-matnr
plnnr = wa_ichr-plnnr
plnal = wa_ichr-plnal
verwe = wa_ichr-verwe
werks = wa_ichr-werks
vornr = wa_ichr-vornr
merknr = wa_ichr-merknr.
IF sy-subrc = 0.
LOOP AT itext WHERE merknr = wa_ichr-merknr.
PERFORM long_text.
ENDLOOP.
*
ENDIF.
ENDAT.
ENDLOOP." Loop at ichr