SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

BAPI_COSTCENTER_DELETEMULTIPLE



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Sun May 25, 2008 1:39 pm    Post subject: BAPI_COSTCENTER_DELETEMULTIPLE Reply with quote

BAPI_COSTCENTER_DELETEMULTIPLE - Delete One or More Cost Centers

Code:
**********************************
START-OF-SELECTION.

t_cost-costcenter = p_kostl.
t_cost-valid_from = s_valido-low.
t_cost-valid_to = s_valido-high.
APPEND t_cost.

PERFORM comprobar_datos.

IF d_subrc EQ 0.
CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
EXPORTING
defaultoption = 'N'
textline1 = '¿Realmente deben borrarse los centros'
textline2 = 'de coste seleccionados?'
titel = 'Borrar centro de coste'
START_COLUMN = 25
START_ROW = 6
IMPORTING
answer = d_answer.
IF d_answer EQ 'N'.
EXIT.
ENDIF.

CALL FUNCTION 'BAPI_COSTCENTER_DELETEMULTIPLE'
EXPORTING
controllingarea = p_kokrs
testrun = p_test
TABLES
costcenterlist = t_cost
return = t_return.

ELSE.

t_return-type = 'E'.
t_return-id = 'KS'.
t_return-number = '002'.

SELECT SINGLE text FROM t100
INTO t_return-message
WHERE sprsl EQ sy-langu
AND arbgb EQ 'KS'
AND msgnr EQ '002'.
REPLACE '&2' WITH p_kostl INTO t_return-message.
APPEND t_return.
ENDIF.

READ TABLE t_return INDEX 1.
IF sy-subrc NE 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.