Some Useful topics
Moderators: Snowy, thx4allthefish, mike_ac, Lost Identity
Some Useful topics
Hi,
I am herewith posting some useful topics, OSS notes and problem resolutions... I will update this on regular basis... If people has such kind of things do send it to me.
1. Storage Location Determination at Sales Order:
You can do it through user exit... this is the exit...
USEREXIT_SOURCE_DETERMINATION (MV45AFZB)
2. Pricing Authorisation:
Refer OSS Note 105621
viewtopic.php?t=80256
3. Making some of the Fields as Mandatory in Customer master based on the Business Rule.
Enhancement is SAPMF02D. Activate it through CMOD. The Following are the example to stop the Customer master creation with Tax jurisdiction Code.
*&---------------------------------------------------------------------*
*& Include ZXF04U01 *
*&---------------------------------------------------------------------*
************************************************************************
*This user exit has been written for not to save the customer master *
*to whom the Tax Juridiction code is not updated. The Export Customer *
*is exceptional. Exit written by M. Murali on 18.05.2004. *
************************************************************************
IF i_knvv-vkorg ne '2000' .
if i_kna1-TXJCD is initial .
Message ID 'ZK' type 'E' number '005' .
endif .
endif .
4. Different Billing Document Number range based on Company code / Plant Code for the same billing type.
The Following are the example for different invoice number based on Plant.
Use the Exit RV60AFZZ.
FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
if (
xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )
and xvbrk-vkorg = '1000'.
case xvbrp-werks.
when 'AGR'.
us_range_intern = '22'.
when 'AHD'.
us_range_intern = '28'.
Endif.
ENDFORM.
5. Changing the billing Date to Current date or Changing some of the Field values of the Billing data.
Create a Data transfer routine for the billing and do the changes what ever you want. The following are the example for changing the billing date to current date.
*&--------------------------------------------------------------------*
*& Form DATEN_KOPIEREN_611
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
FORM DATEN_KOPIEREN_611.
IF VBRK-FKDAT NE SY-DATUM .
SY-SUBRC = 0 .
MESSAGE ID 'ZSD1' TYPE 'I' NUMBER '014' .
VBRK-FKDAT = SY-DATUM .
ENDIF .
ENDFORM. "DATEN_KOPIEREN_611
6. Rebate Process Trouble Shooting.
Refer OSS note 75778
7. New Cancellation Procedure for Excise Invoice in India.
Refer OSS note 551932
8. New Cancellation procedure deactivation in India.
Refer OSS note 339928
9. Free Goods Quantity Proble.
Refer OSS note 629679
10. New Pricing Rule based on the business scenarios
Refer OSS note 24832
11. New Pricing is required when you change certain field in the Sales Order.
Refer OSS note 26115
12. Tax Jurisdiction level 1 conditions are not copying to the Return billing (Eg JMOD).
Define a Alternate Calculation base formula and assign it to the conditions of the Pricing procedure. The following is the code.
FORM FRM_KOND_BASIS_600.
* Check if conditon base is zero and conditions are fixed
if ykawrt ne 0 and
xkomv-kawrt = 0 and
xkomv-ksteu ca 'FH'.
* Reset control flag for adjustment
xkomv-ksteu = 'D'.
endif.
ENDFORM.
13. Configuring Pricing Procedure.
viewtopic.php?t=109891
14. Availability checking problem.
viewtopic.php?t=115085
I am herewith posting some useful topics, OSS notes and problem resolutions... I will update this on regular basis... If people has such kind of things do send it to me.
1. Storage Location Determination at Sales Order:
You can do it through user exit... this is the exit...
USEREXIT_SOURCE_DETERMINATION (MV45AFZB)
2. Pricing Authorisation:
Refer OSS Note 105621
viewtopic.php?t=80256
3. Making some of the Fields as Mandatory in Customer master based on the Business Rule.
Enhancement is SAPMF02D. Activate it through CMOD. The Following are the example to stop the Customer master creation with Tax jurisdiction Code.
*&---------------------------------------------------------------------*
*& Include ZXF04U01 *
*&---------------------------------------------------------------------*
************************************************************************
*This user exit has been written for not to save the customer master *
*to whom the Tax Juridiction code is not updated. The Export Customer *
*is exceptional. Exit written by M. Murali on 18.05.2004. *
************************************************************************
IF i_knvv-vkorg ne '2000' .
if i_kna1-TXJCD is initial .
Message ID 'ZK' type 'E' number '005' .
endif .
endif .
4. Different Billing Document Number range based on Company code / Plant Code for the same billing type.
The Following are the example for different invoice number based on Plant.
Use the Exit RV60AFZZ.
FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
if (
xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )
and xvbrk-vkorg = '1000'.
case xvbrp-werks.
when 'AGR'.
us_range_intern = '22'.
when 'AHD'.
us_range_intern = '28'.
Endif.
ENDFORM.
5. Changing the billing Date to Current date or Changing some of the Field values of the Billing data.
Create a Data transfer routine for the billing and do the changes what ever you want. The following are the example for changing the billing date to current date.
*&--------------------------------------------------------------------*
*& Form DATEN_KOPIEREN_611
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
FORM DATEN_KOPIEREN_611.
IF VBRK-FKDAT NE SY-DATUM .
SY-SUBRC = 0 .
MESSAGE ID 'ZSD1' TYPE 'I' NUMBER '014' .
VBRK-FKDAT = SY-DATUM .
ENDIF .
ENDFORM. "DATEN_KOPIEREN_611
6. Rebate Process Trouble Shooting.
Refer OSS note 75778
7. New Cancellation Procedure for Excise Invoice in India.
Refer OSS note 551932
8. New Cancellation procedure deactivation in India.
Refer OSS note 339928
9. Free Goods Quantity Proble.
Refer OSS note 629679
10. New Pricing Rule based on the business scenarios
Refer OSS note 24832
11. New Pricing is required when you change certain field in the Sales Order.
Refer OSS note 26115
12. Tax Jurisdiction level 1 conditions are not copying to the Return billing (Eg JMOD).
Define a Alternate Calculation base formula and assign it to the conditions of the Pricing procedure. The following is the code.
FORM FRM_KOND_BASIS_600.
* Check if conditon base is zero and conditions are fixed
if ykawrt ne 0 and
xkomv-kawrt = 0 and
xkomv-ksteu ca 'FH'.
* Reset control flag for adjustment
xkomv-ksteu = 'D'.
endif.
ENDFORM.
13. Configuring Pricing Procedure.
viewtopic.php?t=109891
14. Availability checking problem.
viewtopic.php?t=115085
Last edited by mmurali on Fri Mar 13, 2009 6:05 am, edited 1 time in total.
Regards,
Murali
:D:D
Murali




Thanks for your useful knowledge sharing
Thanks for your useful knowledge sharing.
-
- Posts: 105
- Joined: Mon Mar 01, 2004 11:02 am
- Location: India
- Contact:
thanks
Dear murli,
Thanks its an excellent stuff for SD guys, Thanks once again
Shrikant
Thanks its an excellent stuff for SD guys, Thanks once again
Shrikant
World's first beer health spa opens in Czech
gOOD oNE -
mrmmurali
good efforts never go unnoticed> thanks - also keep updating the tecniques>
i prefer real time problems with solutions if any you have compiled. i have started my career in consulting. it may help us a lot
rgds' -sdcub


good efforts never go unnoticed> thanks - also keep updating the tecniques>
i prefer real time problems with solutions if any you have compiled. i have started my career in consulting. it may help us a lot
rgds' -sdcub

Great Efforts by Murali
Dear Murali
Great Efforts Thanks on behalf of all the Users
SAPMIKE
Great Efforts Thanks on behalf of all the Users
SAPMIKE
Real good stuff
Thanx Murali, Its was really good input. Do keep us posted for more.
Ranjit M
Ranjit M
