Application Development 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: 

How to update accounting document header text and line Item text

Former Member
0 Kudos

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

10 REPLIES 10

FredericGirod
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

it's not text has you think, it's only field into tables BSEG, BKPF

Rgd

Fred

former_member188685
Active Contributor
0 Kudos

Hi,

you can do it using FM <b>SAVE_TEXT</b>.

it is used to upload or save the long text.

Regards

vijay

Former Member
0 Kudos

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

0 Kudos

Hi Max,

Thanks a lot. works out perfectly.

Regards,

Nagaseshu Reddy Yaramala

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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