Entering content frame

This graphic is explained in the accompanying text Example 4 Locate the document in its SAP Library structure

 

Aim

To fill the segment field "SFAKNA1" of the segment mapped to the table "SMOIHPA" for the BDoc type "". The source table from which the field will be filled is "SMOKNA1" and the source field in that table is "SFAKNA1". The R/3 (or CRM) Key fields of the table "SMOVBAK" are "KUNNR" and "SOURCE". This field will be used to filter the table to get to the appropriate value. This field is to be fetched only when the destination segment mapped to the table "SMOIHPA" (DEST_TABLE)’s field "TPLNR" has the value equal to "CAP" or "CON" when the source table "SMOKNA1" ‘s field "SOURCE" has the value "CAP" or "CON", respectively.

Note that DEST_TABLE "SMOIPHA" is the table mapped to the child segment and that SRC_TABLE "SMOKNA1" is the table mapped to the parent segment of DEST_TABLE ’s segment. Hence, the table mapped to child segment "SMOIHPA" does not contain "SOURCE" field or any corresponding field.

Table 1

Field Name

Field Value

SRNO

1

TRANS ID

D5D73401C5E711D2AD3D00105AC69204

DEST TABLE

SMOIHPA

DEST FIELD

SFAKNA1

SRC TABLE

SMOKNA1

SRC FIELD

SFAKNA1

CONC PFLDS

KUNNR

CONC PDEST

PARNR

FETCHOPT

A

DEST COND

TPLNR = 'CAP'

SRC COND

SOURCE = 'CAP'

INACTIVE

 

 

Table 2

Field Name

Field Value

SRNO

2

TRANS ID

D5D73401C5E711D2AD3D00105AC69204

DEST TABLE

SMOIHPA

DEST FIELD

SFAKNA1

SRC TABLE

SMOKNA1

SRC FIELD

SFAKNA1

CONC PFLDS

KUNNR

CONC PDEST

PARNR

FETCHOPT

A

DEST COND

TPLNR = 'CON'

SRC COND

SOURCE = 'CON'

INACTIVE

 

 

Features of the above entries

Leaving content frame