22.5.10

Note 10118 - Number ranges for non-existent controlling areas

Symptom
If you call up the "Overview" function in number range maintenance for CO documents, number range intervals are displayed for controlling areas that do not exist in the respective client.
As these intervals can no longer be deleted, they obstruct the number range maintenance for other controlling areas.

Cause and prerequisites
The reasons are superfluous table entries in the tables TKA04, NRIV or TNRGT caused by transports or deletion of controlling areas for which number ranges have already been maintained.

Solution
Install correction program and run it:
-------------------------------------------------------------------------------------------------------------------
Note: Report RKCORR01 is available in the standard system as of release 2.2A
------------------------------------------------------------------------------------------------------------------

REPORT RKCORR01 .

PARAMETERS: DELETE(1) TYPE C DEFAULT ' '.

TABLES: TKA01, NRIV, TNRGT, TKA04.

RANGES: KOKRS FOR TKA01-KOKRS.

KOKRS-SIGN = 'I'.
KOKRS-OPTION = 'EQ'.
SELECT * FROM TKA01.
KOKRS-LOW = TKA01-KOKRS.
APPEND KOKRS.
ENDSELECT.
CHECK SY-SUBRC = 0.

* Nummernkreisintervalle
WRITE: / TEXT-001.
SELECT * FROM NRIV WHERE OBJECT = 'RK_BELEG'
AND NOT ( SUBOBJECT IN KOKRS ).
WRITE: /10 NRIV-SUBOBJECT, NRIV-NRRANGENR,
NRIV-FROMNUMBER, NRIV-TONUMBER, NRIV-NRLEVEL.
CHECK DELETE = 'X'.
DELETE NRIV.
ENDSELECT.
ULINE.
* Nummernkreisgruppen
WRITE: / TEXT-002.
SELECT * FROM TNRGT WHERE LANGU <> '1'
AND OBJECT = 'RK_BELEG'
AND NOT ( SUBOBJECT IN KOKRS ).
WRITE: /10 TNRGT-LANGU, TNRGT-SUBOBJECT, TNRGT-TXT.
CHECK DELETE = 'X'.
DELETE TNRGT.
ENDSELECT.
ULINE.
* Nummernkreiselemente (Vorgänge)
WRITE: / TEXT-003.
SELECT * FROM TKA04 WHERE NOT ( KOKRS IN KOKRS ).
WRITE: /10 TKA04-KOKRS, TKA04-ACTIVITY.
CHECK DELETE = 'X'.
DELETE TKA04.
ENDSELECT.
------------------------------------------------------------------------ -------------------------
Report title: Correction Program: Debug CO Document Number Ranges
Selection text: Delete NumRnges with errors (X-JA)
Number texts:
001 Number ranges
002 Number range groups
003 Number range elements (Bus.transactions)
004 Number ranges containing errors are not deleted - test run!
------------------------------------------------------------------------------------------------
Technorati : ,
Del.icio.us : ,
Zooomr : ,
Flickr : ,
Technorati :
Del.icio.us :

Note 10110 - IW31 No cancelling on Priority Help view

Symptom
There is no "Cancel" function in the window for the help view (F4 on Priority SAPLCOIH, screen 100, transaction IW31 Create PM order).

Cause and prerequisites
The help view was programmed such that the window is only as large as the longest text.

Solution
Enter a longer text, or press F12.

Technorati :
Del.icio.us :
Zooomr :
Flickr :

Note 10104 - Service - unknown

Symptom

Key word: Service
System log Q0A: "Service - unknown" (e.g. when establishing a
CPIC connection).



Cause and prerequisites

An additional application server was installed with a different
SAP system number; however, the dispatcher service is not known
on all computers (unfortunately, the SAP installation program
only enters one service in /etc/services, not a list).

Because the application server service is not known on the message
server, the message server returns the service "-" (for "No service")
in the SM51 list. Any functions that build on this, like CPIC,
then no longer work.


Solution

Publish all the used services (sapdp.., sapgw.., sapms..) on
all computers where SAP programs are executed.

Technorati : , ,
Del.icio.us : , ,
Zooomr : , ,
Flickr : , ,

21.5.10

Note 10099 - ABAP: separate F4/F1 on selection screens from 3.0

Symptom

Keyword: selection screen
Starting in Release 3.0, it is possible to use self-defined F4 and F1 routines for parameters and select options on selection screens.
For report-specific parameters/select options, this is done by specifying the event language elements

AT SELECTION-SCREEN ON VALUE-REQUEST FOR .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR -LOW.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR -HIGH.

AT SELECTION-SCREEN ON HELP-REQUEST FOR .
AT SELECTION-SCREEN ON HELP-REQUEST FOR -LOW.
AT SELECTION-SCREEN ON HELP-REQUEST FOR -HIGH.

This enables you to control which field(s) is/are supported for select options, and the correct field can be provided with the selected value in an F4 case.

If F1/F4 is pressed on the appropriate selection screen field, the coding block after AT SELECTION-SCREEN ON ... is processed.

For database-specific parameters and select options, F1/F4 can be supported - with the appropriate additional specifications for the PARAMETERS and SELECT-OPTIONS statement in Include DBxyzSEL (logical database xyz):

PARAMETERS ... VALUE-REQUEST.
PARAMETERS ... HELP-REQUEST.

SELECT-OPTIONS ... VALUE-REQUEST.
SELECT-OPTIONS ... VALUE-REQUEST FOR LOW.
SELECT-OPTIONS ... VALUE-REQUEST FOR HIGH.
SELECT-OPTIONS ... HELP-REQUEST.
SELECT-OPTIONS ... HELP-REQUEST FOR LOW.
SELECT-OPTIONS ... HELP-REQUEST FOR HIGH.

If only VALUE-REQUEST or HELP-REQUEST is specified for SELECT-OPTIONS, F4 is supported for the LOW field and F1 for the HIGH field.

In this case, pressing the appropriate keys triggers routine

FORM _VAL.
FORM _HLP.

FORM -LOW_VAL.
FORM -LOW_HLP.

FORM -HIGH_VAL.
FORM -HIGH_HLP.

in the database access program SAPDBxyz.

Note 10100 - Master data check with T830x tables

Symptom

Key word: Master data
No valid combinations are found during the master data check when the table used contains object numbers and master data for fields is in the T830x tables.
Affects: allocation, planning

Cause and prerequisites

In table T800D (integrated master data), BUKRS was used as a superior field for the company code instead of RBUKRS .

Solution

Advance correction:
Make the following changes to Include LGUMDF20, FORM routine READ_T800D.

ELSE.
SELECT SINGLE * FROM T800D WHERE TAB = TABELLE
AND FELD = FELDNAME.
IF SY-SUBRC = 0.
IF T800D-MASTTAB+0(1) NE '='.
SELECT SINGLE * FROM T800A WHERE TAB = T800D-MASTTAB.
IF SY-SUBRC = 0.
IF T800A-COMPTAB = ' '.
SELECT SINGLE * FROM T800A WHERE TAB = TABELLE. <-new
IF SY-SUBRC = 0. < -new
IF T800A-OBJTABLE = SPACE. <---------- new
T800D-RFIELD1 = 'BUKRS'.
ELSE. <-new
T800D-RFIELD1 = 'RBUKRS'. < -new
ENDIF. <-new
ENDIF. <-new
ELSE.
T800D-RFIELD1 = 'RCOMP'.
ENDIF.
ENDIF.

Keywords

GA715, Allocation

Technorati : , ,
Del.icio.us : , ,
Zooomr : , ,
Flickr : , ,