Indeed this was a helpful answer,
i'll use BAPI_ALM_ORDER_MAINTAIN to update field of AUFk table.
First:
ls_extensionsin_s-structure = 'BAPI_TE_AUFK'
ls_extensionsin_s-valuepart1+0(12) = <order id> " Key field for you its orderid so it should be
ls_extensionsin_s-valuepart1+12(<size of z field 1>) = <Zfield1>.
"that is the value of zzebeln (purchasing doc no is filled), EBELN is of type char10.
ls_extensionin_s-valuepart+12(10) = '0000000001' "say P. Doc no."ebeln.
ls_extensionin_s-valuepart+22(5) = '00010' "say P. Doc no line item."ebelp.
APPEND ls_extensionsin_s TO lt_extensionsin_s.
Upto this , i got it.
but VALUEPART1 is of type char240. and now it is been filled with 12 + 10 + 5 = 27 character.
valuepart1 can still contain 213 letters more.
the. what is the use of fields
"all are of 240 char.
VALUEPART2
VALUEPART3
VALUEPART4
when are these fields get filled, if we have to pass the values of both doc no and item in the
very first field VALUEPART2 ???
Also, we are passing values of zzebeln and zzebelp. but we are not passing fields name of table aufk.
somewhere we need to pass that these both values 0000000001 and 00010 are to be filled in zzebeln and zzebelp fields of table AUFK.
When the fields names are to be passed?
______________________________