Skip to Content
avatar image
Former Member

Problem with "BAPI_BUS1077_CREATE"

Hi everybody,

I work with web dyn pro and I call "BAPI_BUS1077_CREATE" using the wizard.

When I call "BAPI_BUS1077_CREATE" i pass several tables in the same time as parameters.

i don't understand why only the "subheader table" is taken in account.

All the Other tables are ignored.

I think i use the right flags also.

And i checked the binding of all nodes with tables.

Here is part of the code, i will send a second part in a second message:

lo_node_3 = wd_context->get_child_node( name = 'IMPORTING' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_HEADER'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_IDENT'
                                    value = 'X' ).

  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_PROP_USAGE'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_PROP_HEADER'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_PROP'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_PROP_REL'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'FLG_PROP_DATA'
                                    value = 'X' ).
  lo_node_3->SET_ATTRIBUTE( exporting NAME = 'flg_ident_sublist'
                                    value = 'X' ).

REFRESH: l_sub_header_tab.
   CLEAR l_sub_header_wa.
   addinf-valdat = '00010101'.   "key date 01/25/2007
   CLEAR addinf-aennr.           "change number
   l_sub_header_wa-primarykey = 2. "int. key
   l_sub_header_wa-flgprimkey = true.
   l_sub_header_wa-subcategry = 'LIST_SUB'. "spec. category
   l_sub_header_wa-subauthgrp = 'ALL'.      "spec. auth. group
   l_sub_header_wa-created_by =  'BE001376'.
   l_sub_header_wa-created_on =  '07042010'.
   APPEND l_sub_header_wa TO l_sub_header_tab.



*   prepare the new IDENTIFIER HEADER
  REFRESH: l_ident_header_tab.
  CLEAR l_ident_header_wa.
  l_ident_header_wa-primarykey  = 21. "int. key
  l_ident_header_wa-flgprimkey  = true.
  l_ident_header_wa-foreignkey  = l_sub_header_wa-primarykey.
  l_ident_header_wa-flgfrgnkey  = l_sub_header_wa-flgprimkey.
  l_ident_header_wa-id_type     = 'NAM'.  "ident.'s type
  l_ident_header_wa-id_categry  = 'PROD'. "ident.'s category
  l_ident_header_wa-langu       = 'E'.    "ident.'s language
  l_ident_header_wa-identifier  = 'Test JMC'.               "#EC *
  APPEND l_ident_header_wa TO l_ident_header_tab.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 07, 2011 at 04:59 PM
    REFRESH: l_prop_usage_tab, l_prop_usage_tab_xp.
      CLEAR l_prop_usage_wa.
      l_prop_usage_wa-primarykey  = 216. "int. key
      l_prop_usage_wa-flgprimkey  = true.
      l_prop_usage_wa-foreignkey  = l_ident_header_wa-primarykey.
      l_prop_usage_wa-flgfrgnkey  = l_ident_header_wa-flgprimkey.
      l_prop_usage_wa-mastertabl  = 'ESTRI'.
      l_prop_usage_wa-rating      = 'PUBLIC'.
      l_prop_usage_wa-val_area    = 'REG_EU'.
      l_prop_usage_wa-excl_ind    = false.
      l_prop_usage_wa-act_ind     = true.
      APPEND l_prop_usage_wa TO l_prop_usage_tab.
    *   APPEND l_prop_usage_wa TO l_prop_usage_tab_xp.
    
    *   prepare the LINES FOR VALUE ASSIGNMENTS
    **  l_prop_usage_wa-primarykey  = 217. "int. key
    **  l_prop_usage_wa-val_area    = 'REG_WORLD'.
    **  l_prop_usage_wa-mastertabl  = 'ESTVA'.
    **  l_prop_usage_wa-ACT_IND     = true.
    **  APPEND l_prop_usage_wa TO l_prop_usage_tab_xp.
    
    *   prepare the PROPERTY HEADER
      REFRESH: l_prop_header_tab, l_prop_header_tab_xp.
      CLEAR l_prop_header_wa.
      l_prop_header_wa-primarykey  = 22. "int. key
      l_prop_header_wa-flgprimkey  = true.
      l_prop_header_wa-foreignkey  = l_sub_header_wa-primarykey.
      l_prop_header_wa-flgfrgnkey  = l_sub_header_wa-flgprimkey.
      l_prop_header_wa-subchacat   = 'SAP_EHS_1013_008'. "COLOR
      APPEND l_prop_header_wa TO l_prop_header_tab.
    
    *   prepare the VALUE tab
      REFRESH: l_prop_val_tab.
      CLEAR l_prop_val_wa.
      l_prop_val_wa-primarykey  = 221.
      l_prop_val_wa-flgprimkey  = true.
      l_prop_val_wa-foreignkey  = l_prop_header_wa-primarykey.
      l_prop_val_wa-flgfrgnkey  = l_prop_header_wa-flgprimkey.
      l_prop_val_wa-sequence    = 1.
      APPEND l_prop_val_wa TO l_prop_val_tab.
    
    
    *   prepare the VALUE ASSIGNMENT ASSESSMENT tab
      REFRESH: l_prop_assess_tab.
      CLEAR l_prop_assess_wa.
      l_prop_assess_wa-primarykey  = 2211.
      l_prop_assess_wa-flgprimkey  = true.
      l_prop_assess_wa-foreignkey  = l_prop_val_wa-primarykey.
      l_prop_assess_wa-flgfrgnkey  = l_prop_val_wa-flgprimkey.
      l_prop_assess_wa-assessment  = '1'.                          "<<<<<<<<<<<<<<<<<<
      APPEND l_prop_assess_wa TO l_prop_assess_tab.
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      error was found.

      It was the flags' value, that were "T" instead of "X".

      So it couldn't work.

      Thanks everybody for your help.

      And i'm sorry for these beginner errors.