cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for file to IDoc.

Former Member
0 Kudos

Hi,

I could like to create an UDF for file to IDoc secenario.

Srouce:

MTCashPosting_

Header

CashPosting

PubDiv

DocType

DocDate

PostDate

RefDocNo

HeaderTxt

Customer

Value

Currency

ExchangeRate

Ledger

Item

Material

TaxValue

VAtValue

Trailer

Traget: (IDOC Type: FIDCCP02 Message Type: FIDCC2)

FIDCCP02

IDoc (Under FIDCCP02)

Begin (Under IDoc)

EDIDC40_:DISABLED

E1FIKPF (Under IDoc)

E1FISEG (Under E1FIKPF)

Segment

buzei

bschl

shkzg

mwskz

dmbtr

hkont

matnr

"The secenario is the 'Value,TaxVAlue & VatValue' should be handled by replicating E1FISEG like (HAve used External definition for IDoc)"

Value -> Line item 1

IF TaxValue exists->Line Item 2

IF VatValue exists-> Line item 3

Finally Line item 4 for cerdit.All above are debit

Value____________UDF______________E1FISEG

TaxValue_________|

VatValue_________|

Value____________UDF______________DMBTR

TaxValue_________|

VatValue_________|

How should I map?? Inputs plzzzzz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

I am not sure whether my understanding is correct.

As per my understanding

You need to duplicate E1F1SEG segment 4 times as there are 4 conditions

and those nodes need to be enabled or suppressed based on your condition .

Regards

sandeep

Former Member
0 Kudos

Hi,

Use the Boolean If and Node function Exists to map.

Regards