‎2008 Apr 03 7:59 AM
can any one give me explaination of this:
FORM output_cfg_label.
CHECK p_cfg = 'X'.
SUBMIT zmr_cfg_tags
WITH p_ldest = p_dest2
WITH p_test = p_test
WITH s_charg = itab_batches_line-charg
WITH s_posnr = itab_batches_line-posnr
WITH s_vbeln = itab_batches_line-vbeln
AND RETURN.
ENDFORM.
‎2008 Apr 03 8:18 AM
first he is checking the condition whether the value of the field p_cfg is x.
if its x.
he is passing the input parameters p_ldest ,p_test,s_charg , s_posnr,s_vbeln to the program zmr_cfg_tags,which inturn gives the result after executing.
concept is he is calling an executable program with in the subroutine by providing the select-options as the input.
Reward if useful.
‎2008 Apr 03 8:52 AM
hi,
First he is checkng the condition p_cfg if 'X'.
if checked he is calling an executable program by passing the parameters in the select-options which in turns executes and gives the output in return.
reward if helpful
‎2008 Apr 03 9:21 AM
Hi,
first it is Checking The Value of Configuration parameter .
If it is Checked(Value X) Then it is submitting the program zmr_cfg_tags
with values from Selection screen
regards
Sandipan
‎2008 Apr 04 12:10 AM
Hi,
FORM output_cfg_label.
CHECK p_cfg = 'X'.
SUBMIT zmr_cfg_tags
WITH p_ldest = p_dest2
WITH p_test = p_test
WITH s_charg = itab_batches_line-charg
WITH s_posnr = itab_batches_line-posnr
WITH s_vbeln = itab_batches_line-vbeln
AND RETURN.
ENDFORM.
In the above subroutine you are using check statement to check the value of p_cfg.you can change the above code as
FORM output_cfg_label.
If p_cfg = 'X'.
SUBMIT zmr_cfg_tags
WITH p_ldest = p_dest2
WITH p_test = p_test
WITH s_charg = itab_batches_line-charg
WITH s_posnr = itab_batches_line-posnr
WITH s_vbeln = itab_batches_line-vbeln
AND RETURN.
endif.
ENDFORM.
the difference between if statement and check statement is
if if statement fails then the code after endif is executed.in your case the code after subroutine is executed.if check statement fails the execution stops completely.
‎2008 Apr 04 5:41 AM
Hi,
Based on some conditions making the p_cfg = 'X'.If condtions not satisfies p_cfg = ''.
In your code.
If p_cfg = 'X'. run the program "zmr_cfg_tags" in back ground.
else. com out of the perform.