Steps to add custom Tab in standard MIRO item screen using BADI MRM_ITEM_CUSTFIELDS
by Raju | Thursday, July 05, 2012 in custom Tab in MIRO, MRM_ITEM_CUSTFIELDS | comments (7)
We are moving to a better and faster site SAPYard.com (http://www.sapyard.com/).
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
PO re-price issue in BAPI_PO_CHANGE
by Raju | Thursday, July 05, 2012 in BAPI_PO_CHANGE issue, CALCTYPE, Opt. entry, Pr Date Cat, Pricing date control, RE-PRICE | comments (0)
We are moving to a better and faster site SAPYard.com (http://www.sapyard.com/).
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
http://www.sapyard.com/po-re-price-issue-in-bapi_po_change/
1) Use of user validation and preferably with a control table.
2) Code should be written in the custom include and not in the enhancement.
3) In case same user exit, BADI or form routine is used for more than one changes, it is better to save the custom include in separate transports. The custom include should have the syntax 'IF FOUND'.
4) No CHECK statement should be used.
5) SAP internal tables should not be sorted in the custom logic
6) If entry is being read from the stack, please check whether the value is assigned to the field symbol or not.
7) Some form routines likes MV45AFZZ does not have 'Fixed Point arithmetic' check. Beware of that and make adjustments in your calculations
8) Unless and until required, do not give an error message from an ehancement
I will update the list if I remember more
Often we need to convert the system time to local time of the plant and if the local time of the plant observes day light then result is 1 hour off sometimes. This problem occurs due to time difference of daylight saving. If you are facing this problem (like me) then please check your DST system using transaction STZBC.
Fig1 - First check whether Daylight rule is active or not.
Fig2 Check the rule (Variable summer time rule)
Fig3 Check the rule (Fixed summer time rule)
Let us know if this was helpful.
Fig1 - First check whether Daylight rule is active or not.
Fig2 Check the rule (Variable summer time rule)
Fig3 Check the rule (Fixed summer time rule)
Let us know if this was helpful.
Issue with Pop up display
by Voice | Tuesday, November 29, 2011 in ABAP, POPUP_WITH_TABLE_DISPLAY_OK | comments (3)
Hi Friends.
SAP is full of surprises. Today when I was trying to test a program, I saw the messages are not coming properly. Instead of showing the full message, it is truncated with a cross icon.
Finally I was able to trace the source of the problem. The problem lies in the SAP FM - POPUP_WITH_TABLE_DISPLAY_OK. I have used this function module numerous times in past and but this time, I realized there is a "IF" condition in the source code of this FM at line no - 68.
LOOP AT LISTTAB.
IF LISTTAB+15(1) = 'S' OR LISTTAB+15(1) = 'F'.
IF LISTTAB+15(1) = 'S'.
WRITE: / LISTTAB+0(15), ICON_OKAY AS ICON.
ELSEIF LISTTAB+15(1) = 'F'.
WRITE: / LISTTAB+0(15), ICON_CANCEL AS ICON.
ENDIF.
ELSE.
WRITE: / LISTTAB.
ENDIF.
ENDLOOP.
So if the 16th character of your message is either S or F, then your message will be truncated. If you are facing this problem now you the reason. You can solve this issue in your own way.
[My sol - simply convert the 16th character to lower case if it F or S.]
SAP is full of surprises. Today when I was trying to test a program, I saw the messages are not coming properly. Instead of showing the full message, it is truncated with a cross icon.
Finally I was able to trace the source of the problem. The problem lies in the SAP FM - POPUP_WITH_TABLE_DISPLAY_OK. I have used this function module numerous times in past and but this time, I realized there is a "IF" condition in the source code of this FM at line no - 68.
LOOP AT LISTTAB.
IF LISTTAB+15(1) = 'S' OR LISTTAB+15(1) = 'F'.
IF LISTTAB+15(1) = 'S'.
WRITE: / LISTTAB+0(15), ICON_OKAY AS ICON.
ELSEIF LISTTAB+15(1) = 'F'.
WRITE: / LISTTAB+0(15), ICON_CANCEL AS ICON.
ENDIF.
ELSE.
WRITE: / LISTTAB.
ENDIF.
ENDLOOP.
So if the 16th character of your message is either S or F, then your message will be truncated. If you are facing this problem now you the reason. You can solve this issue in your own way.
[My sol - simply convert the 16th character to lower case if it F or S.]
We are moving to a better and faster site SAPYard.com (http://www.sapyard.com/).
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
http://www.sapyard.com/ido-file-for-idocs/
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
http://www.sapyard.com/ido-file-for-idocs/
We are moving to a better and faster site SAPYard.com (http://www.sapyard.com/).
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
http://www.sapyard.com/a-to-z-of-custom-change-pointer/
The content has been moved to below link. Please visit it at your convenience. Thank you for all your cooperation.
http://www.sapyard.com/a-to-z-of-custom-change-pointer/
Subscribe to:
Posts (Atom)



