02-23-2006 10:09 AM
Hi,
I need to update the accountting document header text( BKPF-BKTXT ) and line items text (BSEG-SGTXT) .
This can not be done using the BDC(FB02), because in between we may get diffrent popup screens. so I am looking for BAPIs or FMs to do the same.
Please let me know if there are any BAPI's or Function modules to update the accounting document header text and line items text.
Thanks in advance
02-23-2006 10:11 AM
Hi,
I know it's really bad, but this field is link to nothing. So you could update directly the database table.
Rgd
Frédéric
02-23-2006 10:21 AM
1.
use function module "READ_TEXT"
for this u need to giv the text-id, text-object text-lang etc ,
check out this functiuon module ..
2.
Check table STXH for the existence of the text tehn run this FM
02-23-2006 10:22 AM
it's not text has you think, it's only field into tables BSEG, BKPF
Rgd
Fred
02-23-2006 10:25 AM
Hi,
you can do it using FM <b>SAVE_TEXT</b>.
it is used to upload or save the long text.
Regards
vijay
02-23-2006 10:44 AM
Hi
See the std FM FI_ITEMS_MASS_CHANGE: it creates a BDC for trx FB02, you have to move the items you need to change the data and the name of fields where the data (have to be changed) are stored.
In the form SCREEN_DETAIL you can see the field can be changed, if there isn't your field yuo can create a copy of that fm.
Max
02-24-2006 6:28 AM
Hi Max,
Thanks a lot. works out perfectly.
Regards,
Nagaseshu Reddy Yaramala
02-27-2006 6:04 AM
Hi Max,
Is there any FM that updates the both accounting document header and item details. The FM that you mentioned FI_ITEMS_MASS_CHANGE is only for chaning item details, I need to update both header and item texts (BKPF_BKTXT ,BSEG-SGTXT ) at a time.
Please let me know if you know any such FM or BAPI.
Thanks you
Nagaseshu Reddy Yaramala.
09-13-2006 5:21 PM
Hi,
Can any body help us to update FB02 transaction, I have seen that FM 'FI_ITEMS_MASS_CHANGE' will work but I am not able to know how to pass the parameters.
Can any body used the abve FM, Please let me know ur suggestions.
Thanks in advance.
09-28-2006 7:19 PM
Not sure if you received the answer yet, but I've just figured out the 'FI_ITEMS_MASS_CHANGE' FM yesterday for use with FB02 - item text.
Here's my code:
TYPE-POOLS: tpit.
DATA: tbseg TYPE bseg,
it_errtab TYPE tpit_t_errdoc WITH HEADER LINE,
rt_buztab TYPE tpit_t_buztab WITH HEADER LINE,
fldtab TYPE tpit_t_fname WITH HEADER LINE.
CALL FUNCTION 'FI_ITEMS_MASS_CHANGE'
EXPORTING
s_bseg = tbseg
IMPORTING
errtab = it_errtab[]
TABLES
it_buztab = rt_buztab
it_fldtab = fldtab
EXCEPTIONS
bdc_errors = 1
OTHERS = 2.
IF sy-subrc = 0.
" Change made
ENDIF.
A couple of notes:
1. Be sure to include the posting key (BSCHL) in TBSEG.
2. TBSEG-SGTXT should contain the text you want saved.
3. FLDTAB should include SGTXT and 'X'.
4. Records in FLDTAB and RT_BUZTAB should be appended. I didn't have to append TBSEG.
10-21-2006 11:12 AM
Hi Lisa,
Thanx for the posted message..I am supposed to change the line item text for a some given document nos.
I know the procedue you have specified using CALL FUNCTION 'FI_ITEMS_MASS_CHANGE' will work out in this regard.
I need a help in this context.
1. The excel source file format.
2. To call the source file and put into the internal table.
3. How to map the fields into the function modules.. may be if you can help me with the full program...if you have enuf time will be hingly thankful.
Thanks and Regards
Sivaprasad