Showing posts with label sap. Show all posts
Showing posts with label sap. Show all posts

Tuesday, January 17, 2012

Create Measurement Document using BAPI RFC

Function Module MEASUREM_DOCUM_RFC_SINGLE_001

Task

RFC Measurement document: Individual processing, Create

Use

This RFC enables the following remote calls for creating measurement documents:



  • Remote dialog (WITH_DIALOG_SCREEN = 'X')
  • API without Dialog (WITH_DIALOG_SCREEN = ' ')


The session "Create with dialog" can be used for the correction of incorrect data records (compare with processing in the foreground for incorrect batch input sessions).

You can use the parameter CREATE_NOTIFICATION to determine whether another maintenance notification should be created for the measurement document.

If a notification is to be created, a notification type that is set in Customizing of the target system can be assigned, using the parameter NOTIFICATION_TYPE. The standard notification type M2 = Malfunction report is preassigned.

Additionally, the notification can be assigned a priority that also has to be set in Customizing of the target system.


The following data can be copied into the notification from the measurement document or the measuring point:

  • Measuring point object of the measuring point (functional location or equipment)
  • The field Assembly for the measuring point (should be included in the bill of material of the measuring point object)
  • Measurement time in the field Malfunction start (date and time) of the notification
  • Counter-reader in the field Notifier of the notification
  • Short text
  • Valuation code, as long as its catalog type is the same as the catalog type defined in Customizing for Problems (V_TQ80_C-FEKAT) of the respective notification type.
Click here for more information on Plant Maintenance.

Sunday, October 9, 2011

work area is not too long enough SAP ABAP

You may receive this error in SAP ABAP workbench.

Updating ZTABLE is throwing this error.

Change INTERNAL_TABLE structure to ZTABLE structure.

data: INTERNAL_TABLE like table of ZTABLE,
         WORK_AREA like line of INTERNAL_TABLE.

modify ZTABLE from table INTERNAL_TABLE .
insert ZTABLE from WORK_AREA.