SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

FDM_EXT_KEY - how can i use it?

Erol_CAGLAR
Participant
0 Kudos

Hi all,

I have a problem Case ID field(FDM_EXT_KEY) ,  How can I use in bapi?

could you plase help me?

1 REPLY 1

Erol_CAGLAR
Participant
0 Kudos

Hi All,

It's solved,

I used to BAPI_CTRACDOCUMENT_CREATE ,

itemrelations = " bapifkkoprel Object Relations for DFKKKO and DFKKOP 

data : lt_ITEMREL type STANDARD TABLE OF  BAPIFKKOPREL ,
        ls_itemrel like LINE OF lt_itemrel.

ls_itemrel-RELATION = '02' .
ls_itemrel-OBJECT_ID = '03' .
ls_itemrel-OBJECT_KEY = gv_guUid.

APPEND ls_itemrel to lt_itemrel .




CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
   EXPORTING
     TESTRUN                       = space
     DOCUMENTHEADER                = gv_documentheader
*   RECKEYINFO                    =
     COMPLETEDOCUMENT              = 'X'
*   NET_RECEIVABLES               =
   IMPORTING
    DOCUMENTNUMBER                = p_DOCUMENTNUMBER
    RETURN                        = p_RETURN
  TABLES
        ITEMRELATIONS  lt_ITEMREL
        partnerpositions   = gt_partnerpositions
       genledgerpositions = gt_glpositions
      extensionin        = gt_extensionin.
           .