Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sample code

Former Member
0 Likes
644

Hi all,

i am new to bapi,can any body provide sample code to upload data to ac03 transaction using bapi_service_create.were can i find details about this bapi

thanks in advance

siva

2 REPLIES 2
Read only

Former Member
0 Likes
452

Hi Siva

Go to this Fmodule and you will find Function module documentation.

Below that they also give example what parameters to pass and how to pass.

you get info.

In general info

its not a big task,just you want to know what are the parameters to pass bapi,mostly you have to fill the structures and pass it .

Thanks

Read only

Former Member
0 Likes
452

Hi

See this doc of this fun module and pass the parameters as mentioned and use

FU BAPI_SERVICE_CREATE

____________________________________________________

Short Text

Creation of a Service Master Record

Functionality

This Business Application Programming Interface (BAPI) is used in the component External Services Management (MM-SRV).

The BAPI enables you to create service master records.

Notes

Authorization

To be able to create service master records, you need the relevant authorization.

Authorization object Service Master (M_SRV_LS) is checked for activity 01 (Create).

Transfer

The service master data is transferred in the parameter IM_SERVICE_DATA.

The change parameters are transferred in the parameter IM_SERVICE_DATAX.

The short texts are transferred in the table SERVICE_DESCRIPTION.

The long texts are transferred in the table SERVICE_LONG_TEXTS.

Return messages

In addition to customers' own messages, success and error messages are returned during the entire service master processing in the parameter RETURN. The RETURN table thus contains information as to whether interface data has been processed incorrectly and issues success or error messages during the creation of service master records.

Restrictions

With this BAPI, it is not possible to:

Create several service master records at once. If you want to create several service records, reinvoke the method prior to each creation of a further master record.

Create a new service master record on the basis of an already existing one using the Create with Reference function.

Specify the displayable fields in the service master via field selection in Customizing. The field selection is not taken into account.

Create data for classification (configuration).

Customer enhancements

The following BAdIs are available for the BAPI BAPI_SERVICE_CREATE:

Service Master: Modification of BAPI Interfaces (MMSRV_SM_BAPI_CUST)

Enhancement of Service Master (MMSRV_SM_MAIN)

Create Notification/Change Service Master (MMSRV_SM_NOTIFY)

Parameters

IM_SERVICE_DATA

IM_SERVICE_DATAX

NO_NUMBER_RANGE_CHECK

TESTRUN

SERVICE

EX_SERVICE_DATA

EX_SERVICE_DATAX

RETURN

SERVICE_DESCRIPTION

SERVICE_LONG_TEXTS

EXTENSION_IN

EXTENSION_OUT

Exceptions

Function Group

BASB

Reward points if useful

Regards

Anji