‎2008 Mar 05 10:33 AM
hi,
i have a field in table control i want to validate that one .
i have write the code as bellow after PAI.
PROCESS AFTER INPUT.
CHAIN.
FIELD: TP1 .
MODULE CHAIN_1.
ENDCHAIN.
in module chain_1.i wrote the validation code.
but my problem is while activating this program its showing error :Invalid field assignment: Field "TP1" is not assigned to any loop.
how to solve this problem .
please any body help me.
thanks in advance.
‎2008 Mar 05 11:47 AM
you must insert all fields, which you'll valuate, in the chain:
TP1-field1
TP1-field2...
A.
‎2008 Mar 05 1:13 PM
hi,
i am not able to understand what ur telling.
can you please tell me clearly.
thank u
‎2008 Mar 06 5:27 AM
HOW TO DO CHAIN AND ENDCHAIN IN FLOWLOGIC
PLEASE TELL ME ANY BODY
‎2022 Jan 07 7:25 AM
JUST WRITE THE BELOW LOGIC IN PAI.
LOOP AT <INTERNAL TABLE>.
CHAIN.
FIELD: F1,F2,F3.
MODULE MODULE_FIRST ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
‎2008 Mar 06 5:34 AM
HI
While using table control we need to define a ITAB to send and retrive data from Table control and you will check the TAble control fields names are like this
ITAB-field1
ITAB-field2
So you need to code like this
Chain.
Field: Itab-field1.
module: check.
endchain.
regards
Aditya
‎2008 Mar 06 5:41 AM
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR ABLECONTROL 'TC2'
LOOP AT G_TC2_ITAB.
CHAIN.
FIELD ZSDRBT_INELG_INV-VBELN.
FIELD ZSDRBT_INELG_INV-FKDAT.
FIELD ZSDRBT_INELG_INV-MATNR.
FIELD ZSDRBT_INELG_INV-FKIMG.
FIELD ZSDRBT_INELG_INV-NETWR.
FIELD ZSDRBT_INELG_INV-ZBLK_AMT.
FIELD ZSDRBT_INELG_INV-REASON.
FIELD ZSDRBT_INELG_INV-ZAPPR1_STA.
FIELD ZSDRBT_INELG_INV-ZAPPR1_REM.
FIELD ZSDRBT_INELG_INV-ZAPPR2_STA.
FIELD ZSDRBT_INELG_INV-ZAPPR2_REM.
FIELD ZSDRBT_INELG_INV-ZAPPR3_STA.
FIELD ZSDRBT_INELG_INV-ZAPPR3_REM.
MODULE TC2_MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
*&SPWIZARD: MODIFY TABLE
MODULE TC2_MODIFY INPUT.
*Do not allow the approver to input other than SPACE, R or A in approver
status field
IF ZSDRBT_INELG_INV-ZAPPR1_STA <> ' ' AND
ZSDRBT_INELG_INV-ZAPPR1_STA <> 'A' AND
ZSDRBT_INELG_INV-ZAPPR1_STA <> 'R'.
MESSAGE E011.
ELSEIF ZSDRBT_INELG_INV-ZAPPR2_STA <> ' ' AND
ZSDRBT_INELG_INV-ZAPPR2_STA <> 'A' AND
ZSDRBT_INELG_INV-ZAPPR2_STA <> 'R'.
MESSAGE E011.
ELSEIF ZSDRBT_INELG_INV-ZAPPR3_STA <> ' ' AND
ZSDRBT_INELG_INV-ZAPPR3_STA <> 'A' AND
ZSDRBT_INELG_INV-ZAPPR3_STA <> 'R'.
MESSAGE E011.
ELSE.
MOVE-CORRESPONDING ZSDRBT_INELG_INV TO G_TC2_WA.
MOVE : ZSDRBT_INELG_INV-ZAPPR1_STA TO G_TC2_WA-ZAPPR1_STA,
ZSDRBT_INELG_INV-ZAPPR1_REM TO G_TC2_WA-ZAPPR1_REM,
ZSDRBT_INELG_INV-ZAPPR2_STA TO G_TC2_WA-ZAPPR2_STA,
ZSDRBT_INELG_INV-ZAPPR2_REM TO G_TC2_WA-ZAPPR2_REM,
ZSDRBT_INELG_INV-ZAPPR3_STA TO G_TC2_WA-ZAPPR3_STA,
ZSDRBT_INELG_INV-ZAPPR3_REM TO G_TC2_WA-ZAPPR3_REM.
MODIFY G_TC2_ITAB
FROM G_TC2_WA
INDEX TC2-CURRENT_LINE.
ENDIF.
ENDMODULE. "TC2_MODIFY INPUT
‎2008 Mar 06 8:57 AM
Hi,
Thank you for your answer it is helpful.
but i have one more problem that is
after validation PAI & PBO are executing i don't want to execute pai &pbo .i want to display screen ready for input.
please tell me soon
thank you.
Edited by: tharangini kamatham on Mar 6, 2008 9:57 AM
‎2008 Mar 07 4:10 AM
Hi,
i am validating two fields using chain and endchain.
it is working but my problem is after displaying error message PAI &PBO are executing.
i want to avoid PAI & PBO .
please tell me any body.
thank you.
‎2008 Mar 07 4:29 AM
HI,
U mean after Error message, u need to come out of the screen??
if so then u can use EXIT statement.
Is that ur issue?
Revrt back,
Regrads,
Naveen