on 03-24-2009 10:59 PM
Hello Experts!!!
I am an ABAP developer and I need 2 BAPI:
1 for read data from CJ30 or budget of a project
1 to save data in CJ30 or modified budget of a project
Can anyone help me?
Very thanks in advance and regards
Check out the note
Note 625613 - Interface for overall planning and budgeting
Regards
Sreenivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
People,
E solved in another way(via ABAP), because I was intended to validate data (according to user authorization) on CJ30, CJ32, CJ37and CJ38... I was wondering create a Z program to simulate these transactions and that is why I was looking for a FM to read(field WERT1) and write to...
The solution to whom interest is:
$$ Exit : EXIT_SAPLCNAU_002 $$
$$ Project : ZPS0000 $$
$$ Enhancement : CNEX0002 $$
$$ -
-
$$
*&----
*
*& Include ZXCN1U06 *
*&----
*
declaração de dados para tratamento das transações CJ30, CJ32, CJ37, CJ38
DATA: tvarvc TYPE tvarvc.
DATA: v_text(40) TYPE c.
DATA: i_tget_exp LIKE bpge_id.
DATA: li_qtdreg TYPE i.
FIELD-SYMBOLS: TO i_tget_exp.
Export to class ZCL_IM__IM_BEHAVIOUR
EXPORT i_tget_exp TO MEMORY ID 'i_tget_exp'.
EXIT.
ENDIF.
WHEN 'CJ37'.
IF TO i_tget_exp.
Export to class ZCL_IM__IM_BEHAVIOUR
EXPORT i_tget_exp TO MEMORY ID 'i_tget_exp'.
EXIT.
ELSEIF sy-tabix = li_qtdreg.
READ TABLE TO i_tget_exp.
CLEAR: i_tget_exp-wtges.
Export to class ZCL_IM__IM_BEHAVIOUR
EXPORT i_tget_exp TO MEMORY ID 'i_tget_exp'.
ENDIF.
WHEN 'CJ38'.
IF TO i_tget_exp.
Export to class ZCL_IM__IM_BEHAVIOUR
EXPORT i_tget_exp TO MEMORY ID 'i_tget_exp'.
EXIT.
ELSEIF sy-tabix = li_qtdreg.
READ TABLE TO i_tget_exp.
CLEAR: i_tget_exp-wtges.
Export to class ZCL_IM__IM_BEHAVIOUR
EXPORT i_tget_exp TO MEMORY ID 'i_tget_exp'.
ENDIF.
ENDCASE.
ENDLOOP.
ENDIF.
-
-
$$ Class : ZCL_IM__IM_BEHAVIOUR $$
$$ BAdI : IM_BEHAVIOUR $$
$$ Implementation : Z_IM_BEHAVIOUR $$
METHOD if_ex_im_behaviour~get_behaviour .
Declaração de dados para implementação das transações CJ30, CJ32,
CJ38 e
DATA: tvarvc TYPE tvarvc.
DATA: v_text(40) TYPE c.
DATA: i_tget_exp TYPE bpge_id.
FIELD-SYMBOLS: TYPE bpge_id.
IF sy-tcode EQ 'CJ30' OR
sy-tcode EQ 'CJ32' OR
sy-tcode EQ 'CJ37' OR
sy-tcode EQ 'CJ38'.
Import da EXIT_SAPLCNAU_002
IMPORT i_tget_exp TO i_tget_exp FROM MEMORY ID 'i_tget_exp'.
v_text = '(SAPLKBPP)T_GE[]'.
ASSIGN (v_text) TO -epos = 'X'.
Conditions CJ30
IF ( sy-tcode = 'CJ30' AND -wtges NE i_tget_exp-wtges AND
i_tget_exp-objnr IS INITIAL ) )
Conditions CJ32
OR ( sy-tcode = 'CJ32' AND -vorga = '*ADD' )
Conditions CJ37
OR ( sy-tcode = 'CJ37' AND -wtges NE i_tget_exp-wtges )
Conditions CJ38
OR ( sy-tcode = 'CJ38' AND -wtges NE i_tget_exp-wtges ).
SELECT SINGLE *
FROM tvarvc
INTO tvarvc
WHERE name = 'PS_CONT_ORC_N1'
AND low = sy-uname.
IF sy-subrc NE 0.
MESSAGE ID 'ZPS' TYPE 'E' NUMBER '117' WITH sy-uname.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF. " Fim CJ30, CJ32, CJ37 e CJ38
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.