Posting COPA fields to FB01 using POSTING_INTERFACE_DOCUMENT
Hi All,
I am trying to post FI document through FB01 using POSTING_INTERFACE_DOCUMENT. All the FI fields are getting posted. But I am unable to post COPA fields. I am using BSEG-RKE* structure as suggested in other threads but still the COPA button is disabled for the document posted. I also checked in database, the fields are not populated. Could someone suggest if any additional information needs to be passed to enable COPA specific posting to the FM. Thanks.
Hi SS ,
can you do like this , Pass all COPA field details in this format "BSEG_RKEXXXXX' ,let me know the results.
im ref : call function 'RKE_FILL_BDCDATA_WITH_CRITERIA' in that FM.
Edited by: Prabhu Peram on Sep 29, 2011 11:50 AM
Similar Messages
-
Posting COPA fields through IDOC
Hi
I am using IDOC FIDCCP02 (Basic Type) to post FI Documents to SAP from external legacy system.
We need to add couple of COPA fields to this INBOUND interface(related to profitability analysis).
Can I extend the IDOC FIDCCP02 to include COPA fields? If yes, what is the exit/badi?
If FIDCCP02 is not the suitable one then which one to go for? Any documentation in this topic?
Thanks in advance
Rupa BhowmickYou need to extend your idoc type.
Here are exits available for <b>IDOC_INPUT_FIDCC1</b> function module
EXIT_SAPLF050_001
EXIT_SAPLF050_002
EXIT_SAPLF050_003
EXIT_SAPLF050_004
EXIT_SAPLF050_006
EXIT_SAPLF050_007
EXIT_SAPLF050_008
EXIT_SAPLF050_009
EXIT_SAPLF050_010
EXIT_SAPLF050_011
Regds
Manohar -
How to populate COPA fields for GL posting using BAPI_ACC_DOCUMENT_POST
Hi All,
I am posting documents in FB50 using BAPI_ACC_DOCUMENT_POST. I have a requirement to post the documents with profitability segment parameters as well. Should I use EXTENSION1 table to pass COPA updates and implement BTE to achieve it? Can anyone please guide me with the procedure to populate the COPA fields for GL posting using BAPI_ACC_DOCUMENT_POST?
Also please let me know how/where to check if COPA is enabled for a GL account.
Thanks,
SubathraModerator Message: This forum is for questions directly related to Web Dynpro ABAP only. It should not be used for general questions. I am moving this thread to the ABAP General forum.
-
Parking of A/C doc with & without-copa fields and posting of accrual doc
Hi,
We have a requirement to park the accounting document with & without the copa fields and to post the accrual document.
For with-out copa fields parking we have already tried using the FM AC_DOCUMENT_GENERATE, followed by FM PRELIMINARY_POSTING_DOC_WRITE , but i can view only the header data in the display in the transaction fbv3 and not the item data. But the item datas are available in the table vbsegs,vbsegd and vbsegk.
Can any suggest what could be the problem and if any one has faced the similar problem please reply me immediately.
For the with-copa field parking we have the copa fields in the FM AC_DOCUMENT_GENERATE, but not in FM PRELIMINARY_POSTING_DOC_WRITE. Can any suggest how this can be resolved.
I have not got any clue of how to post the accrual document.
Any pointers on these are most welcome asap.
Thanks in advance.
Regards
Shobana.Hi Shobana
I have the same requirement to park a document, im getting an error in generating the document
Can you confirm the fields to be populated? -
COPA Fields using the FM PRELIMINARY_POSTING_FB01
Hi everyone,
I am using the Function modules PRELIMINARY_POSTING_FB01 to park the GL invoice documents. I am not able to populate the COPA fields of the document. How do we pass copa fields to the FM PRELIMINARY_POSTING_FB01?Hi,
First populate PAOBJNR, PASUBNR from function module COPA_PRELIMINARY_SEGMENT and pass these to PRELIMINARY_POSTING_FB01 - TBSEG-PAOBJNR AND TBSEG-PASUBNR.
Populating PAOBJNR:
FORM get_paobjnr TABLES pt_tbkpf TYPE gty_tbkpf
pt_tbseg TYPE gty_tbseg.
DATA: lv_tabix TYPE sy-tabix,
lv_kokrs TYPE kokrs,
wa_cobl TYPE cobl,
wa_cobl1 TYPE cobl.
READ TABLE pt_tbkpf INTO wa_tbkpf INDEX 1.
READ TABLE gt_bukrs INTO wa_bukrs WITH KEY bukrs = wa_tbkpf-bukrs BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE it_tka01 INTO wa_tka01 WITH KEY ktopl = wa_bukrs-ktopl BINARY SEARCH.
IF sy-subrc = 0.
lv_kokrs = wa_tka01-kokrs.
ENDIF.
ENDIF.
LOOP AT it_bseg INTO wa_bseg WHERE ( copa_kunnr IS NOT INITIAL OR
copa_matnr IS NOT INITIAL OR
copa_werks IS NOT INITIAL OR
copa_vkorg IS NOT INITIAL OR
copa_vtweg IS NOT INITIAL OR
copa_spart IS NOT INITIAL OR
copa_pspnr IS NOT INITIAL OR
copa_prctr IS NOT INITIAL ) AND
copa_valid = c_x.
lv_tabix = sy-tabix.
wa_cobl-glvor = 'RFBU'.
wa_cobl-vorgn = 'RFBU'.
wa_cobl-process = 'BELEGPOS'.
wa_cobl-event = 'PRUEFEN'.
wa_cobl-budat = wa_tbkpf-budat.
wa_cobl-bldat = wa_tbkpf-bldat.
wa_cobl-bukrs = wa_tbkpf-bukrs.
wa_cobl-hkont = wa_bseg-hkont.
wa_cobl-koart = c_s.
wa_cobl-kokrs = lv_kokrs.
wa_cobl-gjahr = wa_tbkpf-gjahr.
wa_cobl-blart = wa_tbkpf-blart.
wa_cobl-bschl = wa_bseg-bschl.
wa_cobl-waers = wa_tbkpf-waers.
wa_cobl-wrbtr = wa_bseg-wrbtr.
wa_cobl-kunnr = wa_bseg-copa_kunnr.
wa_cobl-vkorg = wa_bseg-copa_vkorg.
wa_cobl-vtweg = wa_bseg-copa_vtweg.
wa_cobl-spart = wa_bseg-copa_spart.
wa_cobl-matnr = wa_bseg-copa_matnr.
wa_cobl-werks = wa_bseg-copa_werks.
CALL FUNCTION 'COPA_PROFITABILITY_SEGMENT'
EXPORTING
dialog = space
i_cobl = wa_cobl
i_update = c_x
IMPORTING
e_cobl = wa_cobl1
EXCEPTIONS
abnormal_leave = 1
btrans_not_relevant = 2
error_copa = 3
OTHERS = 4.
IF sy-subrc = 0.
READ TABLE pt_tbseg INTO wa_tbseg INDEX lv_tabix.
IF sy-subrc = 0.
wa_tbseg-paobjnr = wa_cobl1-paobjnr.
wa_tbseg-pasubnr = wa_cobl1-pasubnr.
MODIFY pt_tbseg FROM wa_tbseg INDEX sy-tabix TRANSPORTING paobjnr pasubnr.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " GET_PAOBJNR -
Many documents posting using POSTING_INTERFACE_DOCUMENT
Does anyone know the format for header and item to post many documents using POSTING_INTERFACE_DOCUMENT ?
is it scenario A ?
Document header data A ( K 1)
Document item A.1 ( P 1)
Document item A.2 ( P 2)
Document header data B ( K 2)
Document item B.1 ( P 1)
Document item B.2 ( P 2)
or scenario B ?
Document header data A ( K 1)
Document item A.1 ( P 1)
Document item A.2 ( P 2)
Document header data B ( K 2)
Document item B.1 ( P 3)
Document item B.2 ( P 4)
or it cannot be done ?
Many Thanks.Hi,
Look at the link
Re: function 'POSTING_INTERFACE_DOCUMENT'
http://translate.google.com/translate?hl=en&sl=es&u=http://sap4.com/wiki/index.php%3Ftitle%3DZIFIPIDOC&sa=X&oi=translate&resnum=8&ct=result&prev=/search%3Fq%3DABAP%2B%252B%2BPOSTING_INTERFACE_DOCUMENT%26hl%3Den
Regards
Sudheer -
COPA- How to seggregate when 2 condion type are mapped to one copa field
Hi,
I have a scenario, wherein 2 Billing condition records PDIF & PR00 mapped to one copa field.
Going forward, I can map each of them to different copa fields, then is their a way to correct past data?
These 2 condition records have diffrent billing types.
If I go to CE1XXXX table, I have an option to pull data according billing types.
CE4XXX Segment table being a higher level table, I can't extract data per billing type.
Realignment and Reorganizing copa data doens't seem to address the fix.
Looking for some good suggestions.
Thanks,
Parimala.Hi,
From what I think, it is probably not possible and best not to correct the past data in this case. Technically, will you have any idea as to how to break this data, and based on what weightage, percentage or conditions? And how many years back are you going to correct the data?
I can suggest that you correct the data by reversing the old data out (by posting in opposite figures), put in the new mapping, and repost the data again. However, in this case, you'll lost the history of the posting and it will take a lot of time to identify the data and re-post.
It's best to use the mapping from a logic break onwards, such as going forward in a new fiscal year... it's probably going to cost a lot of effort in re-educating the users, and correcting the reports, but it might be more effective from IT point of view.
Hope this helps.
Cheers,
Gimmo -
Posting FI documents to FB01 transaction
Hi ,
My program collects data from database tables and sends the final data to a file in SAP directory.
Now my requirement is to post this data into FB01 transaction.
When the program runs, the following entry is posted
Dr 210001023
Cr 229001017.
SO which FM do I need to use to post these two GL accounts?Is there any other method to do so.
My file contains Vendor info and check details like no, date,amount...
I appreciate quick response.
Thanks in Advance.
Swathi.Hi Rhea,
Have a look at my program below. Its has no customer no's.but dr and cr accounts.
*---SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_zbukr LIKE payr-zbukr OBLIGATORY, " Paying Company
p_hbkid LIKE payr-hbkid OBLIGATORY, " House Bank
p_hktid LIKE payr-hktid OBLIGATORY, " Account ID
p_file LIKE rlgrap-filename OBLIGATORY. " Output file name
SELECT-OPTIONS: s_prundt FOR sy-datum OBLIGATORY NO-EXTENSION,
" Previuos run date
s_crundt FOR sy-datum NO-EXTENSION.
" Current run date
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_chkvd AS CHECKBOX DEFAULT 'X'. " Update TVARV
SELECTION-SCREEN COMMENT 04(79) text-014.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(64) text-013 FOR FIELD p_mon.
PARAMETERS p_mon(2) TYPE n DEFAULT '24'. " Months considered
" for abandoned period of uncashed checks
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
*---INITIALIZATION
INITIALIZATION.
Initialize Unix File Path
PERFORM initialize_filepath.
*---AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Selection Screen Validations
PERFORM validations.
Populate current extraction date
PERFORM get_current_date.
*---START-OF-SELECTION
START-OF-SELECTION.
Get data from PAYR
PERFORM get_payr.
Get data from VF_KRED
PERFORM ger_vf_kred.
Process data
PERFORM process_data.
*---END-OF-SELECTION
END-OF-SELECTION.
IF f_data IS INITIAL.
Transfer data to file
PERFORM transfer_data.
Write report
PERFORM write_report.
ENDIF.
*---PAGE HEADING
TOP-OF-PAGE.
Write the Page Heading
PERFORM page_heading.
*& Form Initialize_filepath
Initialize Unix File Path
FORM initialize_filepath.
Output File
CONCATENATE '/int/'
sy-sysid
sy-mandt
'/out/'
INTO p_file.
ENDFORM. " Initialize_filepath
*& Form Validations
Selection Screen Validations
FORM validations.
Local variable
DATA: l_text(5). " variable to hold 5 char data
Validate paying company
SELECT SINGLE bukrs INTO l_text FROM t001 WHERE bukrs = p_zbukr.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Paying Company'(002) p_zbukr.
ENDIF.
Validate House bank
SELECT SINGLE hbkid INTO l_text FROM t012 WHERE bukrs = p_zbukr AND
hbkid = p_hbkid.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Hoouse Bank'(003) p_hbkid.
ENDIF.
Validate Account Id
SELECT SINGLE hktid INTO l_text FROM t012k WHERE bukrs = p_zbukr AND
hbkid = p_hbkid AND
hktid = p_hktid.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Account ID'(004) p_hktid.
ENDIF.
Validate File name
PERFORM validate_filename.
ENDFORM. " Validations
*& Form validate_filename
Validate File name
FORM validate_filename.
DATA : l_len TYPE i.
l_len = strlen( p_file ).
IF p_file CA space.
IF sy-fdpos < l_len.
MESSAGE e003 WITH
'File name should not contain spaces'(005).
ENDIF.
ENDIF.
IF p_file CA '\'. "File name should not contain '\'.
MESSAGE e003 WITH
'File name should not contain \'(006).
ENDIF.
IF p_file0(1) = '/' AND p_file1(127) = space.
MESSAGE e003 WITH
'File name should not contain only /'(007).
ENDIF.
ENDFORM. " validate_filename
*& Form get_payr
Get data from PAYR
FORM get_payr.
SELECT zbukr
hbkid
hktid
checf
laufd
lifnr
vblnr
zaldt
waers
rwbtr FROM payr INTO TABLE t_payr
BYPASSING BUFFER
WHERE zbukr = p_zbukr AND
hbkid = p_hbkid AND
hktid = p_hktid AND
zaldt IN s_crundt AND
bancd = '00000000' AND
voidr = '00'.
IF sy-subrc = 0.
SORT t_payr.
Get the sending company code from REGUH
SELECT laufd
zbukr
lifnr
vblnr
absbu FROM reguh INTO TABLE t_reguh
BYPASSING BUFFER
FOR ALL ENTRIES IN t_payr
WHERE laufd = t_payr-laufd AND
xvorl = space AND
zbukr = t_payr-zbukr AND
lifnr = t_payr-lifnr AND
vblnr = t_payr-vblnr.
IF sy-subrc = 0.
SORT t_reguh.
ENDIF.
ELSE.
MESSAGE i003 WITH 'No data exists for the given selection'(011).
f_data = c_f.
STOP.
ENDIF.
ENDFORM. " get_payr
*& Form ger_VF_KRED
Get data from VF_KRED
FORM ger_vf_kred.
IF NOT t_reguh[] IS INITIAL.
SELECT lifnr
bukrs
name1
ort01
ort02
pstlz
regio
stcd1
stras
qsrec
adrnr
FROM vf_kred INTO TABLE t_lfa1
BYPASSING BUFFER
FOR ALL ENTRIES IN t_reguh
WHERE lifnr = t_reguh-lifnr AND
bukrs = t_reguh-absbu.
IF sy-subrc = 0.
SORT t_lfa1.
ELSE.
MESSAGE i003 WITH 'No vendor data exists'(012).
ENDIF.
ENDIF.
ENDFORM. " ger_VF_KRED
*& Form process_data
Process data
FORM process_data.
LOOP AT t_payr.
Get the sending company code from T_REGUH
READ TABLE t_reguh WITH KEY laufd = t_payr-laufd
zbukr = t_payr-zbukr
lifnr = t_payr-lifnr
vblnr = t_payr-vblnr
BINARY SEARCH TRANSPORTING absbu.
IF sy-subrc <> 0.
CLEAR t_reguh-absbu.
ENDIF.
clear t_lfa1.
Get the vendor data from T_LFA1
READ TABLE t_lfa1 WITH KEY lifnr = t_payr-lifnr
bukrs = t_reguh-absbu
BINARY SEARCH.
IF sy-subrc <> 0.
CLEAR t_lfa1.
SELECT SINGLE name1 stcd1 adrnr INTO
(t_lfa1-name1, t_lfa1-stcd1, t_lfa1-adrnr)
FROM lfa1 WHERE lifnr = t_payr-lifnr.
IF sy-subrc <> 0.
CLEAR t_lfa1.
ENDIF.
ENDIF.
clear t_address.
clear : t_lfa1-ort01,
t_lfa1-ort02,
t_lfa1-pstlz,
t_lfa1-regio,
t_lfa1-stras.
Vendor Address
select single city1
str_suppl1
post_code1
region
street
from adrc into t_address
where addrnumber = t_lfa1-adrnr.
if sy-subrc = 0.
move-corresponding t_address to t_lfa1.
endif.
Vendor Type
CASE t_lfa1-qsrec.
WHEN c_01.
t_file-vend_type = c_s.
WHEN c_07 OR c_20.
t_file-vend_type = space.
Clear Vendot TIN
CLEAR t_lfa1-stcd1.
WHEN OTHERS.
t_file-vend_type = c_f.
ENDCASE.
Vendor TIN
t_file-vend_tin = t_lfa1-stcd1.
Vendor Name
t_file-vend_name = t_lfa1-name1.
Mail Address1
t_file-addr1 = t_lfa1-stras.
Mail Address2
t_file-addr2 = t_lfa1-ort02.
City
t_file-city = t_lfa1-ort01.
State
t_file-state = t_lfa1-regio.
Zip Code
t_file-zip = t_lfa1-pstlz.
Check ID
t_file-check_id = c_ms08.
Check Number
t_file-check_no = t_payr-checf.
Application Description
t_file-appl_desc = c_app_desc.
Check Date
t_file-check_dt = t_payr-zaldt.
*TPR 1944 : Begin "Vinay
Check Amount sign
IF T_PAYR-RWBTR GE 0.
T_FILE-CHECK_SIGN = C_POS.
ELSE.
T_FILE-CHECK_SIGN = C_NEG.
ENDIF.
IF t_payr-rwbtr GE 0.
t_file-check_sign = c_neg.
ELSE.
t_file-check_sign = c_pos.
ENDIF.
*TPR 1944: End "Vinay
Check Amount
UNPACK t_payr-rwbtr TO t_file-check_amt1.
t_file-check_amt2 = t_file-check_amt1.
t_file-amt = t_payr-rwbtr.
t_file-vend_no = t_payr-lifnr.
t_file-waers = t_payr-waers.
APPEND t_file.
CLEAR t_file.
ENDLOOP.
ENDFORM. " process_data
*& Form transfer_data
Transfer data to file
FORM transfer_data.
DATA : l_pgm_id LIKE sy-repid,
l_file_mode LIKE pppch-acces VALUE 'A'.
l_pgm_id = sy-repid.
Open data file
CALL FUNCTION 'ZZ_OPEN_OUTBOUND_INTERFACE'
CHANGING
file_name = p_file
pgm_id = l_pgm_id
mode = l_file_mode
FILE2 =
FILE3 =
FILE4 =
FILE5 =
FILE6 =
FILE7 =
FILE8 =
FILE9 =
FILE10 =
ABEND_ON_ERROR_IF_SPACE =
EXCEPTIONS
error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Transfer data to the file
LOOP AT t_file.
TRANSFER t_file+0(1221) TO p_file.
v_count = v_count + 1.
ENDLOOP.
Close data file
CALL FUNCTION 'Z_CLOSE_INTERFACE_FILE'
EXPORTING
pgm_id = l_pgm_id.
ENDFORM. " transfer_data
*& Form get_current_date
Populate current extraction date
FORM get_current_date.
DATA: l_date LIKE sy-datum,
l_mon(2) TYPE n,
l_months TYPE i.
l_mon = sy-datum+4(2).
l_mon = l_mon - 1.
l_date = sy-datum.
l_date+4(2) = l_mon.
CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = l_date
IMPORTING
last_day_of_month = l_date
EXCEPTIONS
day_in_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Calculate date with no.of months considered for abandoned period of
uncashed checks
l_months = p_mon * -1.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = l_months
olddate = l_date
IMPORTING
newdate = s_crundt-high.
Begin of D02K921571
CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = s_crundt-high
IMPORTING
last_day_of_month = s_crundt-high
EXCEPTIONS
day_in_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
End of D02K921571
REFRESH s_crundt.
s_crundt-low = s_prundt-high + 1.
s_crundt-sign = 'I'.
s_crundt-option = 'BT'.
APPEND s_crundt.
CLEAR s_crundt.
ENDFORM. " get_current_date
*& Form write_report
Write Report
FORM write_report.
Selection Report
PERFORM select_report.
Audit Report
PERFORM audit_report.
Detail Report
PERFORM detail_report.
ENDFORM. " write_report
*& Form Page_heading
page heading
FORM page_heading.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
ULINE.
WRITE: /1 sy-vline,
2 sy-repid,
65 'ABBOTT LABORATORIES'(015) CENTERED,
146 sy-datum,
156 sy-vline.
WRITE: /1 sy-vline,
2 sy-sysid,
5 '/',
6 sy-mandt,
59 'SAP to Tracker Outbound Interface'(016) CENTERED,
148 sy-uzeit,
156 sy-vline.
WRITE: /1 sy-vline,
2 sy-uname,
(120) v_title CENTERED,
145 'Page:'(017), sy-pagno,
156 sy-vline.
ULINE.
IF v_title = 'Detail Report'(030).
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Paying Company'(031),
17 sy-vline,
18 'House Bank'(032),
29 sy-vline,
30 'Account ID'(033),
41 sy-vline,
42 'Current Extract Range'(034),
156 sy-vline.
FORMAT COLOR OFF.
WRITE: /1 sy-vline,
2 p_zbukr CENTERED,
17 sy-vline,
18 p_hbkid CENTERED,
29 sy-vline,
30 p_hktid CENTERED,
41 sy-vline.
LOOP AT s_crundt.
WRITE: 44 s_crundt-low,
58 'to'(035),
62 s_crundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Vendor Type'(036),
14 sy-vline,
15 'Vendor TIN'(037),
26 sy-vline,
27 'Vendor No.'(038),
38 sy-vline,
39 'Vendor Name'(039),
82 sy-vline,
83 'Vendor State'(040),
96 sy-vline,
97 'Check Number'(041),
118 sy-vline,
119 'Check Issue Date'(042),
136 sy-vline,
137 'Check Amount'(043),
156 sy-vline.
ULINE.
ENDIF.
ENDFORM. " Page_heading
*& Form select_report
selection-report
FORM select_report.
NEW-PAGE.
v_title = 'Selection Report'(028).
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Paying company code :'(018),
28 p_zbukr,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'House bank :'(019),
28 p_hbkid,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Account ID :'(020),
28 p_hktid,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 'Output file name :'(021),
28 p_file,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Previous extraction date :'(022).
LOOP AT s_prundt.
WRITE: 28 s_prundt-low,
42 'to'(035),
46 s_prundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Current extraction date :'(023).
LOOP AT s_crundt.
WRITE: 28 s_crundt-low,
42 'to'(035),
46 s_crundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Update TVARV :'(024),
28 p_chkvd,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 text-025,
67 p_mon,
156 sy-vline.
ULINE.
ENDFORM. " select_report
*& Form audit_report
Audit Report
FORM audit_report.
NEW-PAGE.
v_title = 'Audit Report'(029).
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'No. of records extracted :'(026),
36 v_count,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'No. of records transferred to file:'(027),
36 v_count,
156 sy-vline.
ULINE.
ENDFORM. " audit_report
*& Form detail_report
Detail Report
FORM detail_report.
DATA : l_inten TYPE i,
l_date LIKE sy-datum.
NEW-PAGE.
v_title = 'Detail Report'(030).
LOOP AT t_file.
l_inten = sy-tabix MOD 2. " for alternate colors in report
IF l_inten = 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
l_date = t_file-check_dt.
WRITE: /1 sy-vline,
2 t_file-vend_type,
14 sy-vline,
15 t_file-vend_tin,
26 sy-vline,
27 t_file-vend_no,
38 sy-vline,
39 t_file-vend_name,
82 sy-vline,
83 t_file-state,
96 sy-vline,
97 t_file-check_no,
118 sy-vline,
119 l_date,
136 sy-vline,
137 t_file-amt CURRENCY t_file-waers,
156 sy-vline.
ENDLOOP.
ULINE.
ENDFORM. " detail_report -
Experts:-
1.How to map COPA fields with SD.
2. what is difference between CO based COPA and A/C based COPA.Hi
(1)To map COPA fields with SD, there are 2 main steps:
1 - Assign the SD condition types to CO values fields (KE4I)
2 - Assign the quantity fields KE4M
(2) Costing Based CO-PA uses value fields to group together cost elements or G/L accounts. In addition, costing based CO-PA allows you to create valuations , either with costing sheets or through user exits to automatically valuate key figures/value fields. Cisting Based CO-PA posts to tables CExyyyy where yyyy = Operating Concern.
Account based CO-PA use the cost element as the main value field. This allows you to quickly and easily reconcile CO-PA with FI. With account based CO-PA, the postings to CO-PA takes place at the same time with the FI posting and posts to tables CEOP and COEJ. No valuation is possible with Account based co-pa. -
Error while inserting the value in xmltype field of oracle using ALDSP?
I am getting the following error, while trying to insert the large xml in the xmltype field of oracle using aldsp service:
inconsistent datatypes: expected - got CLOB in bea
But this error does not occur when the input xml is of smaller size.Please post the complete error message and stack trace.
-
Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
Hi experts,
For a Handling Unit number, im Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
Im passing the below values to the BAPI, to create a Material document and transfer order.
GOODSMVT_HEADER- PSTNG_DATE (System Date)
GOODSMVT_HEADER - DOC_DATE (System date)
GOODSMVT_HEADER- PR_UNAME (SY-NAME)
GOODSMVT_CODE- GM_CODE ( 01)
GOODSMVT_ITEM-MOVE_TYPE (Movement type): movement type '101'
GOODSMVT_ITEM- DELIV_NUMB_TO_SEARCH (Delivery)
GOODSMVT_ITEM-DELIV_ITEM_TO_SEARCH (Delivery item)
GOODSMVT_ITEM-PLANT (Plant) VEPO- WERKS
GOODSMVT_ITEM-STGE_LOC (Storage location) VEPO- LGORT
GOODSMVT_ITEM-ENTRY_QNT (Quantity)
GOODSMVT_ITEM-ENTRY_UOM (Unit of measure)
GOODSMVT_ITEM-PO_NUMBER (Purchase order)
GOODSMVT_ITEM-PO_ITEM (Purch. order item)
GOODSMVT_ITEM-UNLOAD_PT ( HU number)
GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
I dont know what values has to be passed to the following fields in BAPI
*GOODSMVT_ITEM-SU_PL_STCK_1*
*GOODSMVT_ITEM-SU_PL_STCK_2*
*GOODSMVT_ITEM-ST_UN_QTYY_1*
*GOODSMVT_ITEM-ST_UN_QTYY_2*
*GOODSMVT_ITEM-UNITTYPE_1*
*GOODSMVT_ITEM-UNITTYPE_2*
All those values has to be updated in the Material document.
Please help me on this.
Thanks & regards,
Leo
Edited by: Thomas Zloch on Nov 17, 2011 10:11 AMI konw that I'm digging an old thread but let's have a look. I have the same problrm (filling the DMBTR field from the BAPI). I have not tried yet but checking the code of the BAdI I found that the EXTENSIONIN_TO_MATDOC method of the MB_BAPI_GOODSMVT_CREATE BAdI is called before creating the material posting and it has the IMSEG table as changing parameter. I will give it a try soon. Hope that it will work.
Has anyone experience with it by any chance?
Adam -
How to post a cross-company invoice using the BAPI_TRANSACTION_COMMIT?
Hi
I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.
There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.
The only problem is that the field is not there
Does anybody know whet to do?
Thanks,
MagdalenaBAPI BAPI_TRANSACTION_COMMIT is not used for a specific application, but needs to be called always after any BAPI is called to post the data that were changed in the BAPI to the database.
You need to find the BAPI that is used to post the invoice and then call BAPI_TRANSACTION_COMMIT.
Always do:
call function 'BAPI_application_specific'
if sy-subrc eq 0.
call function 'BAPI_TRANSACTION_COMMIT'.
endif.
Check the documentation you have to see if you can find the application specific BAPI.
Hope that helps,
Michael -
Posting intercompany items in FB01 (business area problem)
Hi guys,
Have you tried posting intercompany items in FB01?
My problem occured when i tried to post concur documents in FB01.
In line item1, i didn't enter a business area.
In line item2, i entered business area 0005.
I clicked simulation.
The business area in line item 1 is now populated with 0005.
When i debug the program, item 1's business area was populated because of OSS notes 566083.
I look for OSS notes that may solve this problem but i haven't found any.
I considered using the substitution exit that is called before simulation, but i'm afraid it might cause conflict in other modules!
Help.
Any suggestion is highly appreciated.
warm thanks,
naviHi Prabhu,
Thank you so much for sharing your thoughts.
Yes, i ikow I can manipulate the business area's value in a substitution exit.
But the problem is, the OSS note was called after the line item passed through the substitution exit.
Meaning the filling-up of the BA happens after the program executed the substitution exit.
It could have solved the problem if the substitution exit comes after the OSS note but its not the case, so I really can't use that exit.
I search for another exits that occurs when simulation was ticked, but there's none.
I asked my functional to ask SAP for OSS notes that may solve this problem and I am also conducting thorough investigation in my end.
Do you have any other idea regarding this problem?
Thanks again so much in advance.
Navi -
COPA Derivation based with target field as non-copa field
Hello experts,
There is a requirement to derive the Characteristic maintained in Classification view(AUSP table) in Material master based on material number.The target field into which the characteristic value needs to be populated is not in COPA(it is a non-copa field).
I tried to use table look up with AUSP table, but it is asking for values of certain key fields like
ATZHL(Characteristic value counter) MAFID(Indicator: Object/Class) and
KLART(Class Type), which are not there in COPA.
With the Enhancement in KEDR transaction, EXIT_SAPlKEDRCOPA_001 and Include ZXKKEU11, I created an enhancement step by giving the material as the key in the source fields.With that material number I can do a select on the AUSP table inside the include ZXKKEU11 and get the characteristic value. The problem i am facing is that the target field which stores the internal characteristic value is not there in COPA?And while creating a derivation rule, I can only select the COPA fields as target fields.
It's urgent....any suggestions please? Points will be rewarded for any useful answer.
Thanks,
AnkyHi,
As far as I know the derivation functionality in COPA is meant for derivation of characteristic values to store them in a characteristic field.
If you splitt up the derivation in two steps it might be possible to use the USERTEMP fields, to store the information needed and to pass it on to an other lookup step as a key-reference.
Regards,
Roy -
Adding new custom fields in FB01
Hello all.
I am having a requirment as i need to add the custome fields in Fb01 transaction at item level.
I have added the custome fields in Bseg table, now i wan to display this fields in the Fb01 screen.
Is thios possible to do so.First, I hope you are using the ECC 6.0 since this is a new functionality (or ECC 5.0????). Second, tell us the steps you have followed.
Fernando.
Maybe you are looking for
-
I have installed version 7.7 and complete the d/l without a problem. But when i try and open i tunes i get i tunes has encountered a problem and needs to close debug. send error report. dont send error signature appname itunes.exe appver 7.7.0.43 mod
-
Ever since I updated my Flash I can not get Video when trying to use Google Video Chat using Safari, it works using Crome. Does anyone know how to fix it in Safari?
-
Business Scenario for BPA, CPA and PPO
Hi All, can you please give some business example(scenario) where you are actually using the following ? 1) Business Purchase Agreement - BPA 2) Planned Purchase Order - PPO 3) Contract Purchase Agreement - CPA. i am trying to see what are benifits o
-
Credit Card Non-Use/Bank Termination - FICO Impact?
Have recently received notification from issuing bank that as a result of non-use my MasterCard account is to be terminated. No prior notification was received that this account was jeopardized. Current FICO is in range of 780+. How does this affe
-
Can I add a caller DURING a group call?
I am aware that if someone calls me with Skype during a group call, I can bring them into the group right away by simply accepting their call. However, how does one make it work in the other direction? When I am on a group call, and the group decid