2007 Jul 20 7:30 AM
plz help me out
actually i want TO display excise IM PURCHASE ORDER SACPSCRIPT
MEDRUCK
PLZ HELP ME OUT
THANK U
2007 Jul 20 8:17 AM
Hi
First copy the MEDRUCK and do the changes in it
first check the pricing related conditions data in the Main window
check this code
/: ITEM_CONDITIONS
IC ,,&KOMVD-VTEXT&,,&''KOMVD-KBETR& &KOMVD-KOEIN&,,&KOMVD-KWERT&
/:ITEM_CONDITIONS_UNIT
IC ,,&KOMVD-VTEXT(16)&,,&KOMVD-KBETR&,,&KOMVD-KOEIN&,,&''KOMVD-KPEIN&
&KOMVD-KMEIN&,,&KOMVD-KWERT&
Here first know what is the condition type for excise Rate/tax
check in table T685T for this
and in debug of the script check whether that condition type values is coming or not. Mostly it comes, check and display
If the values or not coming then
Write a PERFORM subroutine in the script to bring the related Excise Tax rate from the program and display
see the sample code for Subroutines
The Form :
/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
*----
*
FORM CDE_CENT
*
*----
*
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.
Reward points for useful Answers
Regards
Anji
2007 Jul 20 8:17 AM
Hi
First copy the MEDRUCK and do the changes in it
first check the pricing related conditions data in the Main window
check this code
/: ITEM_CONDITIONS
IC ,,&KOMVD-VTEXT&,,&''KOMVD-KBETR& &KOMVD-KOEIN&,,&KOMVD-KWERT&
/:ITEM_CONDITIONS_UNIT
IC ,,&KOMVD-VTEXT(16)&,,&KOMVD-KBETR&,,&KOMVD-KOEIN&,,&''KOMVD-KPEIN&
&KOMVD-KMEIN&,,&KOMVD-KWERT&
Here first know what is the condition type for excise Rate/tax
check in table T685T for this
and in debug of the script check whether that condition type values is coming or not. Mostly it comes, check and display
If the values or not coming then
Write a PERFORM subroutine in the script to bring the related Excise Tax rate from the program and display
see the sample code for Subroutines
The Form :
/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
*----
*
FORM CDE_CENT
*
*----
*
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.
Reward points for useful Answers
Regards
Anji
2007 Jul 20 9:44 AM
Anji
thanx 4 da reply
but the issue is dat
d script shows oder tax rate but not excise tax