cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc

Former Member
0 Kudos

we are trying to populate long texts in customer invoice transaction (f-22) using the Idoc acc_document, which is not possible according to SAP standard code... looking for a solution

Thanks

Satyaki

Accepted Solutions (0)

Answers (4)

Answers (4)

mandar_shete
Active Participant
0 Kudos
Former Member
0 Kudos

Hi Jose,

Option 1:

Fill the E1BPACEXTC (Container for 'Customer Exit' Parameter )segment with your texts and post the same using the Business transaction event.Assign a processing function module to the BTE in the table TPS01.

So basically your processing function module will be used to update the long texts.

Option 2.

Fill the segment E1BPPAREX (Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT ) and process the same using BADI ACC_DOCUMENT.

I hope this helps you out.

Thank you.

Regards,

karun.M

mandar_shete
Active Participant
0 Kudos

Hi Jose,

I think you need to extend the IDOC Type ACC_DOCUMENT02.

Create a segment in that for the Long Text.

Create a Z-Wrapper to IDOC_INPUT_ACC_DOCUMENT. Pass the same import export table parameter as pass to FM IDOC_INPUT_ACC_DOCUMENT.

In the Z-Wrapper after processing the FM IDOC_INPUT_ACC_DOCUMENT call SAVE_TEXT with following options

Text Name <Text Name>

Language EN

Text ID 0001

Text object DOC_ITEM

Do rest of the settings required to call the Z-Wrapper FM.

Former Member
0 Kudos

Create a new segment with the fields to populate the Longtext according to ur req. in WE31.

Add this segment to Extended IDOC type in WE30.

In exit fill the data.