FM for creating relations bewtween 2 BP (IS-U)

Hi,
how i can create relation between 2 bp?
thank you.
Lechoo

RESOLVED:
CODE FROM SWO1 METHOD DEFINITION:
BEGIN_METHOD CREATE_BP_FROM_CIC CHANGING CONTAINER.
DATA: db_update      TYPE REGEN-DB_UPDATE,
      EXIT_TYPE      TYPE REGEN-EXIT_TYPE,
      muster_kun     TYPE EKUND-MUSTER_KUN,
      TYPE           TYPE BUS000FLDS-TYPE,
      bpkind         TYPE BUS000FLDS-BPKIND,
      GROUP          TYPE TB001-BU_GROUP,
      PARTNER        TYPE BUT000-PARTNER,
      ROLETYPE       TYPE TBZ0-RLTYP OCCURS 0,
      upd_onl        TYPE REGEN-KENNZX,
      no_xinit       TYPE REGEN-KENNZX,
      xinit          type regen-kennzx,
      p              type isu01_partner_data,
      NAME_FIRST     TYPE BUT000-NAME_FIRST,
      NAME_LAST      TYPE BUT000-NAME_LAST,
      TEL_NUMBER     TYPE ADR2-TEL_NUMBER,
      EMAIL          TYPE ADR6-SMTP_ADDR,
      SOC_SECURE     TYPE EKUN-SOC_SECURE,
      rec_partner    type bapiisubpd,
      rec_partner_x  type bapiisubpdx,
      r_partner_new  type bapibppara-partner,
      rec_return     type bapiret2,
      rec_address    type bapiisubpa,
      rec_address_x  type bapiisubpax,
      rec_adruse     type bapiisubpau,
      rec_adruse_x   type bapiisubpaux,
      rec_bank       type bapiisubpb,
      rec_bank_x     type bapiisubpbx,
      rec_ccard      type bapiisubpc,
      rec_ccard_x    type bapiisubpcx,
      rec_email_on_a type bapiadsmtp,
      rec_extension  type bapiparex,
      rec_rltypes    type bapiisubpr,
      rec_tel_on_a   type bapiadtel,
      rec_tax        type bapibus1006tax,
      tab_adruse     like rec_adruse     occurs 0 with header line,
      tab_adruse_x    like rec_adruse_x   occurs 0 with header line,
      tab_address     like rec_address    occurs 0 with header line,
      tab_address_TMP like rec_address    occurs 0 with header line,
      tab_address_x   like rec_address_x  occurs 0 with header line,
      tab_bank        like rec_bank       occurs 0 with header line,
      tab_bank_x      like rec_bank_x     occurs 0 with header line,
      tab_ccard       like rec_ccard      occurs 0 with header line,
      tab_ccard_x     like rec_ccard_x    occurs 0 with header line,
      tab_email_on_a  like rec_email_on_a occurs 0 with header line,
      tab_extension   like rec_extension  occurs 0 with header line,
      tab_rltypes     like rec_rltypes    occurs 0 with header line,
      tab_tax         like bapibus1006tax occurs 0 with header line,
      tab_tel_on_a    like rec_tel_on_a   occurs 0 with header line,
      ls_auto         type isu01_partner_auto,
LS_ADDRESS LIKE LINE OF LS_AUTO-T_ADDRESS,
      rltypes         like bup_partnerroles occurs 0 with header line,
      t_rltyp         like tbz0-rltyp occurs 0 with header line.
  SWC_GET_ELEMENT CONTAINER 'ReferenceCustomer'   muster_kun.
  SWC_GET_ELEMENT CONTAINER 'Type'                TYPE.
  SWC_GET_ELEMENT CONTAINER 'BusinessPartnerKind' bpkind.
  SWC_GET_ELEMENT CONTAINER 'Group'               GROUP.
  SWC_GET_ELEMENT CONTAINER 'Partner'             PARTNER.
  SWC_GET_ELEMENT CONTAINER 'FirstName'           NAME_FIRST.
  SWC_GET_ELEMENT CONTAINER 'LastName'            NAME_LAST.
  SWC_GET_ELEMENT CONTAINER 'EMailAddress'        email.
  SWC_GET_ELEMENT CONTAINER 'Telephone'           tel_number.
  SWC_GET_TABLE   CONTAINER 'RoleType'            t_rltyp[].
  SWC_GET_ELEMENT CONTAINER 'UpdateOnline'        upd_onl.
  SWC_GET_ELEMENT CONTAINER 'NoFirstScreen'       no_xinit.
  SWC_GET_ELEMENT CONTAINER 'SS' soc_secure.
if no_xinit = 'X'.
  clear xinit.
else.
  xinit = 'X'.
endif.
refresh rltypes.
loop at t_rltyp.
  rltypes-rolecategory = t_rltyp.
  append rltypes.
endloop.
* provide business partner data
CLEAR: LS_aUTO, rec_partner, rec_partner_X.
      call function 'ISU_S_PARTNER_PROVIDE'
        exporting
          x_partner                      = PARTNER
          x_wmode                        = '1'
          x_no_dialog                    = 'X'
       importing
         y_auto                          = ls_auto
      exceptions
       not_found                       = 1
       partner_in_role_not_found       = 2
       foreign_lock                    = 3
       not_authorized                  = 4
       invalid_wmode                   = 5
       different_type                  = 6
       general_fault                   = 7
       others                          = 8.
if sy-subrc = 0 and not ls_auto is initial.
rec_partner-bpkind = LS_AUTO-ACT-BPKIND.
rec_partner_x-bpkind = 'X'.
rec_partner-name_first = NAME_FIRST.
rec_partner_x-name_first = 'X'.
rec_partner-name_last  = NAME_last.
rec_partner_x-name_last  = 'X'.
rec_partner-soc_secure = soc_secure.
rec_partner_x-soc_secure = 'X'.
CLEAR: TAB_ADDRESS_TMP, TAB_ADDRESS, TAB_ADDRESS_X.
REFRESH: TAB_ADDRESS_TMP, TAB_ADDRESS, TAB_ADDRESS_X.
*APPEND LINES OF LS_AUTO-T_ADDRESS TO TAB_ADDRESS_TMP.
LOOP AT LS_AUTO-T_ADDRESS INTO LS_ADDRESS.
tab_address_x-XDFADR     = 'X'.
tab_address-XDFADR       = 'X'.
tab_address_x-CITY1      = 'X'.
tab_address-CITY1        = LS_ADDRESS-CITY1.
tab_address_x-POST_CODE1 = 'X'.
tab_address-POST_CODE1   = LS_ADDRESS-POST_CODE1.
tab_address_x-STREET     = 'X'.
tab_address-STREET       = LS_ADDRESS-STREET.
tab_address_x-HOUSE_NUM1 = 'X'.
tab_address-HOUSE_NUM1   = LS_ADDRESS-HOUSE_NUM1.
tab_address_x-COUNTRY    = 'X'.
tab_address-COUNTRY      = LS_ADDRESS-COUNTRY.
tab_address_x-TEL_NUMBER = 'X'.
tab_address-TEL_NUMBER   = tel_number.
tab_address_x-E_MAIL     = 'X'.
tab_address-E_MAIL       = EMAIL.
APPEND TAB_ADDRESS.
APPEND tab_address_x.
CLEAR: LS_ADDRESS, TAB_ADDRESS, TAB_ADDRESS_X.
ENDLOOP.
endif.
*upd_onl = 'X'.
type = '1'.
group = '0001'.
*   ==============================================
    call function 'BAPI_ISUPARTNER_CREATEFROMDATA'
*   ==============================================
         exporting
*                    PARTNER      =
                    type         = type
                    group        = group
                    refcustomer  = 'SDKUNDE'
                    partnerdata  = rec_partner
                    partnerdatax = rec_partner_x
*                   TESTRUN      =
                    accept_error = 'X'
         importing  return       = rec_return
                    new_partner  = r_partner_new
         tables  taddress              = tab_address
                 taddressx             = tab_address_x
                 tbankdata             = tab_bank
                 tbankdatax            = tab_bank_x
                 tccarddata            = tab_ccard
                 tccarddatax           = tab_ccard_x
                 rltypes               = tab_rltypes
                 extensionin           = tab_extension
                 ttaxdata              = tab_tax
                 telefondatanonaddress = tab_tel_on_a
                 e_maildatanonaddress  = tab_email_on_a
                 tadruse               = tab_adruse
                 tadrusex              = tab_adruse_x.
if not rec_return-type = 'E'.
call function 'BAPI_TRANSACTION_COMMIT'
     exporting
       wait = 'X'.
  CALL FUNCTION ' BAPI_BUPR_RELATIONSHIP_CREATE'
    EXPORTING
      businesspartner1               = partner
      businesspartner2               = r_partner_new
      relationshipcategory           = 'ZDISP2'
*     RELATIONSHIPTYPE               =
*     VALIDFROMDATE                  = SY-DATLO
*     VALIDUNTILDATE                 = '99991231'
*     DIFFERENTIATIONTYPEVALUE       =
*     XDFREL                         =
*   TABLES
*     RETURN                         =
call function 'BAPI_TRANSACTION_COMMIT'
     exporting
       wait = 'X'.
    call function 'ISU_S_PARTNER_CHANGE'
      exporting
        x_partner            = r_partner_new
*        X_VALDT              =
        x_upd_online         = 'X'
*        X_NO_DIALOG          =
*        X_AUTO               =
*        X_OBJ                =
*        X_NO_OTHER           =
*        X_REL_KZ             = 'X'
*        X_MUSTER_KUN         =
*        X_TESTRUN            =
*      IMPORTING
*        Y_DB_UPDATE          =
*        Y_EXIT_TYPE          =
*        Y_NEW_PARTNER        =
*      TABLES
*        XT_RLTYPES           =
*      EXCEPTIONS
*        NOT_FOUND            = 1
*        FOREIGN_LOCK         = 2
*        NOT_AUTHORIZED       = 3
*        CANCELLED            = 4
*        INPUT_ERROR          = 5
*        GENERAL_FAULT        = 6
*        OTHERS               = 7
commit work and wait.
else.
endif.
** call change service function (no commit)
*call function 'ISU_S_PARTNER_CREATE'
*     exporting
**          x_partner       = partner
**          x_upd_online    = upd_onl
*          x_upd_online    = SPACE
*          x_type          = type
*          x_group         = group
**          x_first_screen  = xinit
*          x_muster_kun    = muster_kun
*          x_bpkind        = bpkind
**           X_NO_DIALOG     =
*           X_AUTO          = ls_auto
**           X_WINDOW        =
*          x_rel_kz        = 'X'
*    importing
**         y_db_update     = db_update
*         y_exit_type     = exit_type
*         y_new_partner   = p
**    tables
**         xt_rltypes      = rltypes
*      exceptions
*           existing        = 1
*           foreign_lock    = 2
*           not_authorized  = 3
*           input_error     = 5
*           general_fault   = 6
*           others          = 7.
*if sy-subrc <> 0.
*  if sy-subrc = 1.
**     existing
*    exit_return 1000 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*  elseif sy-subrc = 2.
**     foreign lock
*    exit_return 1001 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*  elseif sy-subrc = 3.
**     not authorized
*    exit_return 1002 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*  else.
**     other error
*    swc_refresh_object self.
**   set initial objectkey
*    clear object-key.
*    swc_set_objectkey object-key.
*    exit_return 1003 text-s00 space space space.
*  endif.
*endif.
if exit_type = 'CANC'.
*   cacelled
  exit_cancelled.
endif.
swc_set_objectkey r_partner_new.
* put export parameters to container
  SWC_SET_ELEMENT CONTAINER 'DatabaseUpdate' db_update.
  SWC_SET_ELEMENT CONTAINER 'Exit_type' EXIT_TYPE.
  SWC_SET_ELEMENT CONTAINER 'Partner' r_partner_new.
* attributes may have changed, force new read from DB
swc_refresh_object self.
END_METHOD.
IF YOU LIKE MY CODE, PLEASE GIVE ME STAR

Similar Messages

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • Changing the default associated view for a related entity

    A question from a peer:
    Hey there
    Do you know how in CRM 2015 to change the default associated view for a related entity?
    Say you are in an Account and from the menu open the opportunities for that account.
    That new pop up window states “Opportunity Associated View” I want to change that to “My Custom View”
    I thought we covered this in class years back but cannot remember

    There are a few ways to get what you want, the easiest being
    Create a document as you want it for a particular site, save it is junk.php or similar and create a new file by saving as this as the proper document name such as index.php
    Use the Dreamweaver template system, i.e. create a template with a .dwt.php extension like template.dwt.php and use that to create new pages.
    There are other ways like creating your own php template system. But you can put that in the too hard basket.

  • Is it possible to create relational view on Analytic Workspace in Oracle 9i Release1

    Hi All,
    We are in the initial stages of Oracle 9i OLAP prototype. Since the current version of BIBeans 2.5 does not work with Release 2 of Oracle 9i OLAP, we are planning to use Oracle 9i OLAP Release 1. So can you please answer the following questions.
    1. Is it possible to create relational view on Analytic Workspace(like in Release 2) and populate the OLAP catalog, if so can you give me guidance to get the appropriate user guide. The OLAP DML guide in Release 1 talks about creating OLAP catalog metadata for Analytic Workspace using a metadata locator object.
    2, Is it advisable to use Oralce 9i OLAP Release 1? Does the Analytic Workspace and the corresponding BIBeans work in Release 1?
    Thank you,
    Senthil

    Analytic Workspaces (Express/multidimensional data objects and procedures written in
    the OLAP DML) are new to Oracle9i OLAP Release 2, you cannot find them in Release 1.
    BI Beans will soon (within a week) introduce a version on OTN that will work with Oracle9i OLAP Release 2.

  • How to change the attribute name for a relation

    When the Data Modeler engineers a logical model into a relational model it create table columns for the relations. The names of the generated columns are listed in the attributes list in the properties dialog of the relation. The actual name of the attribute gets calculated by the attribute name of the entity which is part of the relation. This is okay, if there is only one relation between two entities. But when there are two relations between two entities the second attribute gets a stupid number suffix. This makes it impossible to give the attribute a useful semantic meaning.
    When I engineer the model into a relational model I can change the column name in the relational model. Changing the column name in the relational model is not perfect but it would be okay for me, if it would not be overwritten during the next engineering run.
    So I have two questions:
    How can I change the attribute name in the attributes section of the properties dialog of a relation? See here for screen shot:
    http://public.ceving.de/2012050300/relationattribute.png
    And if it is not possible:
    How can I preserve any changes on column names in the relational model during a re-engineering run?
    Edited by: 931739 on 03.05.2012 08:07

    Hi,
    I've logged an Enhancement request on this.
    I don't believe it's possible to change it from the Entity or Relationship dialog, as it's not updatable in these dialogs.
    What you can do is change it in the Relational Model, and then reverse engineer the change back to the Logical Model.
    David

  • Error while creating Relational DB connection in webanalysis

    Hi,
    I am facing issue while creating Relational DB connection in webanalysis. It is giving test connection failed error.
    DataBase connection string is correct :- jdbc:oracle:thin:@ugdwpi1.cos.abc.com:1521:GDWDB
    where Port no.- 1521 , Server Name - ugdwpi1.cos.abc.com
    JDBC Username & JDBC Password are also correct.
    CLASSPATH is - E:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
    JDBC Driver is : oracle.jdbc.driver.OracleDriver
    Please tell me where am i wrong. CLASSPATH is correct or not? or there is an issue with JDBC Driver.
    Thanks
    Edited by: user649490 on Jan 28, 2009 10:24 PM

    Hi Mohit,
    Thanks for ur response and it helps me to explore more. But, still after adding the oracle jar file in E:\Hyperion\deployments\Tomcat5\WebAnalysis\webapps\WebAnalysis\WEB-INF\lib(this path does reside on my remote), it giving the same error.
    I think following details will help u to judge the exact scenario :
    DataBase connection string is correct :- jdbc:oracle:thin:@ugdwpi1.cos.abc.com:1521:GDWDB
    where Port no.- *1521* , Server Name - ugdwpi1.cos.abc.com
    JDBC Username & JDBC Password are also correct.
    CLASSPATH is - E:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
    JDBC Driver is : oracle.jdbc.driver.OracleDriver
    TNS enrty is :
    GDWDEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ugdwpi1.cos.abc.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = GDWDB)
    Please suggest me, if i am wrong anywhere. Quick response is highly appreciated.
    Thanks

  • M7279- Data for creating a delivery is incomplete (Vendor)

    Dear All,
    i am getting below error while processing Goods receipt.
    "M7279- Data for creating a delivery is incomplete (Vendor)" 
    1.I am doing Goods receipt with mvt type 521( GR without ref to prod order).
    2.storge location is WH manged + HU managed.
    3.Material master is assinged with sales org / distribution channel- sales view.
    4.maintained for Transportation Group . loading group - sales gen/plant data.
    5. Maintaine for shipping data for Storage location ( customisation -SPRO-LE-Shipping-Basic shipping function- Shipping points and goods receiving points determination-Assign goods receiving points for Inbound Deliveries.)
    6. HUM- setting - LG-HUM-HU requirement for storage location and default values for deliveries)
    Why system is thowing this error message as in my case vendor does not comes in to picture ( I can cosider if a GR is with refence to PO , in that case in customer master number has to be maintained in vendor master + shipping condition entered in customer master)
    Could you pl help me on above ( as this is 521 movement , it should not have any link with vendor or customer master) then why i am getting this error.
    Appreciate your earliest response.
    Om

    I am doing simple goods receipt without reference to any document ( mvt 521 - goods receipt without ref to production order) , in that case it should not ask for any vendor or should not search for vendor code , i am not getting why it is searching for vendor.
    If i removed the setting related to HU management for storage location then it allows me to post the document without any error, but if i activate for HU managment in below path i am getting error ( even in below path if i entered any vendor code then it allows me to post the document)
    Logistics general- Handling unit management- basics-materials management - inventory management -HU requirement for storage location and default values for deliveries
    plant     Storage location      Partner storage location   Sal org  Dist chan shipping division vendor customer HU requred
    05         ZBD1                       ZPK1
    in above if i entered any vendor code then it allows me to post the doc but i remove it then i am getting above error.
    If there any alternative or other setting to overcome this error.
    Thanks
    Om

  • Creation of Sales org views for customers related to vendor

    Hello All,
                 Can any body tell me is there any functional module which can be used to created the sales org views for customers related to vendors.
    Regards
    Srinivas

    Hi Ravi,
    the number of sales area possible would be 6 sales area,
    yes you can of course use the common master data functionality
    After creating the organizational structure and relevant master records you want to use as the masters, that is, in the distribution channels and divisions you are going to use as a reference, you can group distribution channels and divisions separately for master data (which combines customer master and material master records), group condition records, or both master data and condition records.
    Letu2019s say you have a product range that is not different for the four different distribution channels you have (the channels could be telesales, retail, industry, and wholesale.) Neither is there a difference in the customersu2019 details when they purchase through one or the other. Thus, you will not want to create a multiple of four views of customer master and material master records. Merely create the customer master records and material master records in one of the distribution channels, such as retail. Then assign the other distribution channels you created in the organizational structure setup to this one.
    Donu2019t forget this means you can only create or change master data in the distribution channel that is being referenced. In the scenario above, this means you can only change data for the retail distribution channel. Even if you should access a customer or material master in change mode, press F4 (possible entries), and select telesales, industry, or wholesale, you will receive a message u201CSales area is not defined . . . u201D
    The same is true for the sharing of conditions. If conditions are shared, you need only create a condition in the distribution channel or division you are using as the reference. Obviously, this only pertains to conditions that have the distribution channel and/or division in their key, such as a price based on sales area
    Revert if helpful
    Mohit Singh

  • Capturing Detail Items for a Related List in a New Item Form

    I have a simple (ha!) requirement to capture Purchase Requests with the individual line items being captured in a separate List.  I have been using InfoPath, but will consider ANY solution at this point.
    If I have an Edit Item Form, I can have a Data View (LIst View Web part) that will display all related items in my Details List (using a filter on the Parent ID).  I can even add a Data Form Web Part below this to allow for the entry of a single itme
    at a time, and make the lookup field of the new item default to the ID of the parent item.
    All well and good for the Edit Item.  But if I want to do the same on my New Item Form, I am up the proverbial without a paddle because I do not have access to the ID of the Parent List Item (that is still being captured).
    So, using any of the standard SharePoint technologies (except Visual Studio), how can I create a New Item Form, in which I can enter items for a related details List and see those detail items already entered, all while capturing the original form?

    Hi Mike,
    According to your description, my understanding is that you want to get the details of the related items in New Item form.
    I recommend to edit the new item form in InfoPath and use repeating table to display the related items based on the value in the lookup column.
    Here are the detailed steps:
    Edit the new item form(listB for example) in InfoPath and then add the related list(listA for example) including all the details you need as external data source to the form.
    Choose the secondary data source added in step1 in Fields panel and then expand dataFields, then right click d:SharePointListItem_RW and select Repeating Table to insert the secondary data source added in step1 as repeating table to the form.
    Right click d:SharePointListItem_RW in the Fields panel and select Rules, then click New and select Formatting in Rules panel.
    Click None under Condition in Rules panel, then select ID field in the repeating table in the first box, select is not equal to in the second box, then choose Select a field or group in the third box and select Main under Fields, then click the lookup field
    in the form and then click OK.
    Select Hide this control under Formatting in Rules panel.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Is it possible to have 2 mail programmes on my macbook pro? one for business related emails and one personal. I dont want all the emails in one mail programme!

    Is it possible to have 2 mail programmes on my macbook pro? one for business related emails and one personal. I dont want all the emails in one mail programme. At the moment i have 2 personal email address being sent to my mail but because of receiving huge numbers of work emails it would be good to keep them seperate, what is the best way of doing this?

    if i use the one mail programme can it separate the incoming mail from the different email accounts into 2 folders without me having to do it manually?
    Yes, you can.  Nearly all email software can do this.  It involves creating two folders and a Rule for each folder.
    Maybe call one folder Personal Mail, the other Work Mail (Apple Mail calls folders Mailboxes).  One Rule would route all mail from your personal email account into the Personal Mail folder; the other Rule would route all mail from your work email account into the Work Mail folder.  It's actually easy to do, all you have to do is click a few things and the rule is set up.  Once the Rule is written you can also apply it to existing messages already downloaded to your Mac.
    In Apple Mail, Rules are under Preferences > Rules.  Follow the prompts to create a rule like this:
    If = Any
    Account = my Personal account (select the name of your personal email account)
    Perform the following actions: Move Message to Mailbox = my Personal Mail (select the name of your Personal Mail folder (aka mailbox))
    This rule says,  "take any message that comes in from my Personal Account and move it to my Personal Mail mailbox (folder)"
    Create a similar rule for your Work email.

  • Syntax for creating foreign key across users in a database

    There are two user present A,B.They are granted all privileges.Now in USER A, there is a table PARENT whose primary key is PARENT_NO.In USER B I have created a table CHILD whose primary key is CHILD_NO.
    In the CHILD table of USER B, I want to create a foreign key relation to the PARENT table of USER A.For this I have created a column CHILD_PARENT_NO in the CHILD table.If anybody knows the syntax please post the syntax for creating the required foreign key relationship?

    Please post your code. Cut'n'paste from SQL*Plus like this...
    SQL> conn a/a
    Connected.
    SQL> desc t1
    Name                                      Null?    Type
    COL1                                               NUMBER
    COL2                                               VARCHAR2(10)
    SQL> grant references on t1 to b;
    Grant succeeded.
    SQL> conn b/b
    SQL> create synonym a_t for a.t1;
    Synonym created.
    SQL> alter table test add constraint fk foreign key (n) references a_t(col1);
    Table altered.
    SQL> Note that Oracle will translate the synonym anyway...
    SQL> select constraint_name, r_owner, r_constraint_name
      2  from  user_constraints
      3  where table_name = 'TEST'
      4  /
    CONSTRAINT_NAME R_OWNER R_CONSTRAINT_NAME
    FK              A       T1_PK
    SQL> By the way, this ...
    GRANT ALL PRIVILEGES TO B;... is a mindbendingly unsafe way of proceeding. In real life you would have given user B the power to utterly destroy your database. It's always easier to start with good habits than to break bad ones so please get used to granting only the minimum set of privileges necessary.
    Cheers, APC

  • Function Module for creating Functional Location BOM and Equipment BOM

    Hi All,
    Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???

    Hi,
    Tables for Eq., BOM: EQST, STKO, STPO.
    Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
    You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
    And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
    Hope this helps.
    Best Regards, Murugesh AS

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS

    Dear Experts,
    Is there any separate t code available to MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
    I got this POINT from ECC 6.0 features in Solution browser.
    Please help me on this.
    MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
    Functionality Enhancements
    Provides a specific transaction for mass maintenance of material related excise duties fields
    Business Benefits
    Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
    Regards
    Soundar.G

    Dear Ravi,
    I have already created LSMW for this in Material master and J1ID.
    But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
    Regards
    Soundar.G

  • MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS - T CODE

    Dear Experts,
    Is there any separate t code available to  MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
    I got this POINT from ECC 6.0 features in Solution browser.
    Please help me on this.
    MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
    Functionality Enhancements
    Provides a specific transaction for mass maintenance of material related excise duties fields
    Business Benefits
    Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
    Regards
    Soundar.G

    Dear Ravi,
    I have already created LSMW for this in Material master and J1ID.
    But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
    Regards
    Soundar.G

Maybe you are looking for