Quantcast
Channel: SCN : All Content - BOPF Application Framework
Viewing all 309 articles
Browse latest View live

system and pakage details to practice BOPF?

$
0
0

Hi All,

 

 

I want to learn BOPF, already i have started reading the blogs in community , But my question is where can we practice the BOPF.

 

Currently my system is having EHP6 and can we practice in ECC itself or where can we practice?

 

Please can you suggest me ,how can i integrate  BOPF into my System.

 

 

thank you.


FBI table of BO representation nodes

$
0
0

Hi all,

 

I have a standard BO which has a standard subnode that collects BO representation nodes and need to display this using FBI.  The requirement is similar to the /BOFU/DEMO_SALES_ORDER object, which has the 'PARTY' subnode which collects /BOFU/BUSINESSPARTNER representation nodes.

 

demo_sales_order.PNG

 

When running the sample FPM application /BOFU/DEMO_CUSTOMER from package /BOFU/DEMO, I noticed that the creation of a new Business Partner node dumps:

 

demo_sales_order2.PNG

 

This dump is because the framework uses the configuration of the /BOFU/DEMO_SALES_ORDER to search for a node of the /BOFU/BUSINESSPARTNER, which obviously can't be found.

 

Does anyone know what's wrong with the (wiring of the) demo application? My application also needs to do the same, strange thing is that creating BO representation nodes does not work, but deleting them is no problem.

 

Many thanks in advance!

 

Kind regards,

Bjorn

Relationship between ET_FAILED_KEY and EO_MESSAGE in action calls

$
0
0

Hi,

 

When calling an action with a set of keys I would like to determine whether a failed key is a failed key because of a lock (so that it makes sense to call the action with that key once more after a couple of minutes). In order to achieve this I analyze EO_MESSAGE.

Unfortunately, the lock message always refers to the node that is actually locked (of course...), but there is no link to one of the keys for which the action is called.

If I don't know the internals of the action, there's no chance to find out which of the failed keys is a failed key because of a lock. And even if I do, it's sometimes very complicated to trace it.

Is there any option that might help here?

 

Regards, Thomas

Workflow Initiation

$
0
0

Hi Experts,

 

   I am looking to integrate SAP workflow in BOPF based Business object.

  •   Do I need to make use of Determinations to start the workflow?
  •   If I have to use it then what should be the category .

 

Thanks

Pavan

Custom field on FPM form always read-only

$
0
0

Hi,

 

I want to enhance a component configuration (form UIBB) by adding a new input field. This configuration has assigned an FBI View so it also has a business object. The problem is that the new field is always  read-only. I've tried all the things from in this forum for this topic– to modify in get_data and get_definition from feeder class but nothing is working, I think somewhere these attributes are overwritten, because I've tried to make another field that was on the screen mandatory and didn't work.

I've discovered that it’s working for fields with a search help assigned, but for my particular field  it’s still not working.

In order to add the field on the screen I enhanced the Node UI structure . And If I check in BOPF objectin Node Category in the tab Attribute Properties the read-only property is checked for my field. I think because of this reason that field is always read-only. Do you know if I can change it? Can I enhance somehow the BOPF in order to change that tick in the Attributes Properties ?

 

Or do you have another idea for how to solve this problem?

 

Thank you,

Ramona

Get BO key for Object

$
0
0

Hi Experts,

 

Started to learn BOPF concepts, hot to get specific BO key for Object.

 

Example:

 

I want to get BO key for Object /IAM/ACTIVITY, please let me know steps to find it.

 

Regards

goudham

FBI-BOPF: controlling the properties of a button (action)

$
0
0

Hello,

I'm trying to understand the FPM-FBI-BOPF workings of the BO example /BOFU/DEMO_CUSTOMER:

  • WD application /BOFU/DEMO_SAMPLE_CUSTOMER
  • FPM_OIF_COMPONENT with WD CompConfig /BOFU/DEMO_SAMPLE_CUSTOMER_OIF

The BO implements a custom action "CHECK_ARCHIVABILITY". It's connected to a button in the OIF.
At runtime, the UI-button becomes active in "CHANGE"-mode, i.e. after the button "Edit" is pressed. The UI-button becomes inactive
when switching back to read-only mode. I can't find any determination that implements this behavior for the CHECK_ARCHIVABILITY action. I'd assume that class  /bobf/cl_lib_h_set_property would be involved, but this isn't the case either.


What do I miss?

Thanks for any hint and clarification.

 

regards,
Ulli

How to Create modelled Association between 2 child node using Parent key?

$
0
0

Hello,

  i am new here my requirement is to create a modelled association bewteen 2 child  using parent key.

 

it should go like this

node.PNG

i want to get  data  of child 2  at child 1 using the association that share the same parent key .for example parent key for child 1 is abc

now when i call this assocaiton  it should give me the data of child where parent key is abc .

 

can this be achieved using association attribute binding.

 

Regards

LK


How to Create modelled Association between 2 child node using Parent key?

$
0
0

Hello,

  i am new here my requirement is to create a modelled association bewteen 2 child  using parent key.

 

it should go like this

node.PNG

i want to get  data  of child 2  at child 1 using the association that share the same parent key .for example parent key for child 1 is abc

now when i call this assocaiton  it should give me the data of child where parent key is abc .

 

can this be achieved using association attribute binding.

 

Regards

LK

Can I use BOPF for extra high volume data?

$
0
0

I have a customer requirement in TM enterprise area, where I need to load one million record lines in batches (filtered) into a FPM UI. But I see that, for even a record size of 10,000 line items, BO loading is taking between 2-3 minutes. Customer acceptance for these kind of data load is 3 seconds. Can you please let me know, how to fine tune BO to support these work load. I have done a complete ABAP stack trace and see that, FPM takes only few milliseconds to load the data, where as BOPF takes more than 120 seconds to load this.

So, is BOPF meant for high volume data?

 

Sunil.

Data not shown in UI

$
0
0

Hello ,

 

We have created a application on BOPF using the customer feeder class inherited from the super class /BOFU/CL_FBI_GUIBB_LIST. Where in Get data we have copied all the code part from the super class. The item node was populated from the root node through the wiring. This functionality was working fine in EHP 6.

 

recently we moved from EHP 6 to EHP 7 package and now the data are not showing in Item Node UI. Though I have checked that while creating the NOde the internal tables has all the  item keys.

 

As per my initial analysis the custom feeder class the standard copied code  is not able to get the parent keys and the below code part is not able to get the keys.

 

if lo_entity_collection IS BOUND.

   lt_keys = lo_entity_collection->get_self_keys( ).

End if.

Class belongs to it is /BOFU/CL_FBI_ENTITY_COLLECTION Method /BOFU/IF_FBI_ENTITY_COLLECTION~GET_SELF_KEYS.

 

I have checked and cross verified with our old version that all the wiring and it is correct.EV_DATA_CHANGED is also checked.My PORT Identifier is CO Now.

 

Can any one help me what should be the reason or Do I need to change anything with respect to EHP7?

 

Regards,

Partha

Can I reuse PCBO Object?

$
0
0

Hi Experts,

 

    I want to build a solution on top of BOPF along with the capabilities of BOPF framework. In this regard I have developed a custom Business Object. Now I would like to integrate workflows. In this context, I knew that there is a process foundation related to EHSM. However, I would like to reuse the PCBO Business Object by creating a linkage with one of the custom PCO class.  Can you please suggest on this whether is this a good approach or not.

 

1. Can PCBO linked with the custom Business Object?

2. Can custom bilt PCO class communicate with PCBO business Object.?

 

 

Thanks

Pavan

Adobe Form INtegration With FBI Views?

$
0
0

Hi Experts,

 

  I know how to embed adobe forms into a FPM application using free UIBB. However, I am keen to understand that is it possible to embed adobe form in FBI views.

 

Thanks

Pavan

Introduction to Business Object Processing Framework (BOPF)

$
0
0

Wouldn't you like to streamline and simplify the development process for your business applications?

 

Then you should get to know more about BOPF, our infrastructure for developing business objects that is available for the SAP Business Suite. With the Business Object Processing Framework, you will save time during the development cycle because you don't have to implement all the technical details yourself - details such as authorization control, low-level transaction handling, buffer management, provisioning of consumer API, or business logic orchestration. Using the model-driven approach in BOPF, you can instead focus your attention more on the actual business requirements themselves.

 

What does BOPF stand for?

The Business Object Processing Framework is an ABAP OO-based framework that provides a set of generic services and functionalities to speed up, standardize, and modularize your development. BOPF manages the entire life cycle of your business objects and covers all aspects of your business application development. Instead of expending effort for developing an application infrastructure, the developer can focus on the individual business logic. Using BOPF, you get the whole application infrastructure and integration of various components for free. This allows you to rapidly build applications on a stable and customer-proved infrastructure.

 

Who uses BOPF?

BOPF is not really a new framework. In fact, it is well established and broadly used in multiple SAP ByDesign and SAP Business Suite applications and products – for example, Transportation Management (TM), Environment, Health and Safety (EH&S), SAP Supplier Lifecycle Management, SAP Management of Change, SAP Quality Issue Management, to name but a few. Apart from its use in SAP internal development, BOPF is also used in customer development projects.

 

How can SAP customers use BOPF?

Due to increased interest, BOPF is also used in SAP customer development projects. It is released with SAP Business Suite EHP5 SP11, SAP Business Suite EHP6 SP05, and SAP Business Suite EHP7. However, it is not available in the SAP NetWeaver standalone system, but only in the Business Suite Foundation layer, so that every SAP Business Suite customer can use it for their own development projects.

 

What are the main components of the application infrastructure?

With BOPF, you have a framework at your disposal with which you can seamlessly integrate different components of business applications. You can use them out-of-the-box. The advantages of using BOPF are thus obvious:

When using BOPF you don’t have to care about the development of adapters or integration layers to consume the following components:

 

BOPF_Integration_Diagram.png

Figure: BOPF acts as a bridging unit between various components

 

 

User Interfaces and Consumption

 

 

Dynpro

 

BOPF provides a standard interface for consumption by the classic Dynpro UI.

 

Web Dynpro / Floor Plan Manager (FPM)                    

 

The generation and configuration of complex user interfaces has never been as easy as it is today with the FPM. FPM is implemented as a Web Dynpro component and can be easily integrated with BOPF. BOPF provides configurable and codeless integration of FPM and enables you to seamlessly consume the services of BOPF Business Objects in a modification-free environment.

 

More: Floorplan Manager for Web Dynpro ABAP and Web Dynpro ABAP on SCN

 

SAPUI5

 

SAPUI5 is designed for building lightweight UIs for casual use.

 

More: UI Developer Center on SCN

 

Gateway (OData)

 

SAP NetWeaver Gateway is a technology that provides a convenient way to connect devices, environments, and platforms to SAP software based on market standards. The BOPF integration of the Gateway is based on REST and OData standards.

 

More: SAP NetWeaver Gateway on SCN

 

Business Object Layer & GenIL

 

The Business Object Layer (BOL) provides a generic API for accessing business data.

The Generic Interaction Layer (GenIL) enables uniform access to business data using a stateless request/response format. BOPF provides adapters for BOL and GenIL integration.


More: SAP CRM on SCN

 

 

Process Integration

 

 

Post Processing Workflow

 

With BOPF BOs, you can integrate business processes using the Post Processing Workflow.

 

More: Post Processing Framework (PPF) (on SCN )

 

Infrastructure Component

 

 

Archive Development Kit                 (ADK)          

 

With ADK you archive not only table records but also business instances. Using BOPF you can select which BO instances have to be archived and then trigger the archiving process for them.

 

More: Archive Development Kit on the SAP help portal

 

Change Documents

 

BOPF uses the SAP NetWeaver Change Documents solution for recording changes on business object data.

 

More: Change Documents on the SAP help portal

 

 

Application Logging

 

Application logging is used to record particular events during the execution of an application so that you can reconstruct them later, if necessary.

In BOPF, application logging is integrated with the help of the Application Log BO. This business object supports you when reading or writing application-specific log messages.

 

More: Application Log - Guidelines for Developers on the SAP help portal

 

Enterprise Search

 

The search service of SAP NetWeaver provides a framework for enterprise-wide indexing of and searching for structured (business objects) and unstructured data (documents).

BOPF design time provides you with a convenient way for enabling BOPF business objects for Enterprise Search. Using an existing BO model, you have the option of importing the BO data and, in this way, creating a corresponding Enterprise Search model.

 

More: Enterprise Search on SCN

 

Business Rules Framework plus (BRF+)

 

BRF+ is a rule engine. It provides a comprehensive API and user interface for defining and processing business rules and expressions.

With a BOPF-specific expression type, it is possible to create BO data retrieval expressions in BRF+. These expressions make data of BOs available in BRF+ environments that support any kind of rule processing.

 

More: Business Rule Framework plus on SCN

 

 

What are the elements of the programming model?

The business objects are the basic units of the BOPF-based programming model. Business applications or processes operate on certain business objects. A business object is represented as a hierarchical tree of nodes. A single node includes a set of semantically related business object data and the corresponding business logic. On the technical level, each node is implemented with a regular Dictionary table, where each node instance corresponds to a single table entry (table rows). Nodes, attributes, and alternative keys set up the data part of a business object. Again from a technical viewpoint, attributes form the columns of the table. A node serves as an anchor point for connecting the business logic of the business object.

For each node, several types of entities can be defined to form the specific business logic part of a business object.

 

 

Node Entity 

is used ...

Action

to implement a service (operation or behavior) of a business object. An action is explicitly triggered by a service consumer, such as the user interface.

Determination                      

to provide functions that are automatically executed as soon as certain trigger conditions are fulfilled. A determination is triggered internally due to changes made to the instance of a business object.

Validation

to either validate whether a specific action can be executed on a specific node instance (action validations) or whether a set of node instances is consistent (consistency validations).

Query

to search for business object instances that meet certain search criteria.

Authority Check

to povide an authorization concept for BO nodes (for their data and the operations on their data).

Association

to connect business object instances that are located on different nodes.

 

BO_DATA_MODEL_NEW.png

 

 

Figure: Business object metadata model

 

 

What kind of development environment is available for BOPF?

 

Tool Support Features

 

SAP Internal Design Time Tools (BOBF)

 

These are internal SAP tools and utilities that provide developers with a comprehensive feature set for building BO-centered applications for SAP Business Suite.

 

 

BO Builder (BOB)

 

This tool targets simple enhancement scenarios.

Customers can enhance SAP business objects and also create their own simple business objects in the customer namespace. The creation of business objects, nodes, actions, determinations, queries, or validations is extensively supported by wizard-driven tools and utilities.
BO Builder is available through SAP GUI and is released for customers with SAP Business Suite EHP5 upwards

.

 

BO Builder for eXperts (BOBX)

 

This tool targets experienced BOPF developers.
It also provides SAP Business Suite customers with a comprehensive feature set for building BO-centered applications so that they can use it for their own development projects.

BO Builder for eXperts is available through SAP GUI and is released for customers with SAP Business Suite EHP6 upward.

 

(Eclipse-Based) ABAP Development Tools for BOPF

 

With SAP Business Suite EHP7 a new Eclipse-based client application

will be provided as part of an ABAP Development Tools installation. This set of tools runs on top of the Eclipse-based ABAP IDE and is aimed at supporting all kinds of BO-centric use cases: it allows both the creation of new BOPF-applications and the enhancement of existing ones.

 

BO Builder Test Environment (BOBT)

 

Starting from development environment, you can always test the current range of functions of each business object (or enhancement).

 

BO-Specific Debugging

 

Debugging on the business object entities level enables you to speed up the troubleshooting process:

You can set breakpoints for entities such as actions, determinations, and validations. Furthermore, you have the option of setting watchpoints for certain activities on the nodes (for example, to update a particular node attribute).

 

Integrated BO Test Infrastructure

 

BOPF supports test automation and test-driven development. From the outset, you can apply ABAP unit tests to test isolated units of business objects, such as actions, validations, or determinations. In addition, with the scenario testing function, you can extend the tests to processes that consist of several steps.

 

NOTE

As a SAP customer, you can use the BO Builder (BOB), the BO Builder for eXperts (BOBX), or the Eclipse-based client for the development of your own business objects. Here, you will benefit from that interoperability is ensured between these development tools. So you can, for example, create new business objects in the BOB tool and then edit them in another tool on.

 

 

 

How to get started?

how to raise error message in consistency validation in bopf

$
0
0

hi team,

 

please tell me how to raise error message for input check whether user enter the correct value or wrong in sap bopf


Error - Create chemical using program

$
0
0

Hi All,

 

I am trying to create a chemical using BO EHFND_CHEMICAL using program. Referring the sample code listed in 'Navigating to BOPF' blog series.

I have passed ROOT node and BI_CHEMICAL nodes. But I am getting error 'Mandatory node ROLE is missing'.

When I tried to add ROLE node , in the code its giving errors like 'Mandatory node ROLE is missing' OR can not create, source object does not exist'.

 

I went through the node structure for the BO. In it we have Root - > Revision -> Role.

So my query is how to pass information for ROLE node? We need to add REVISION node also?

 

If anybody can guide, will be really helpful.

Modification in BOPF Root object Data

$
0
0

Hello Experts,

 

I have created a BOPF Application with one root and one Dependent. I have created some root data and now want to edit that.

 

I am consuming my BOPF Application from SE38 report. I am not able to update the values for Root object.

 

Following steps i am following to Lock the Root and then edit the values of it.

 

I am getting dump when locking the Root. Some more data i have missed passing to the Modify method.

 

 

TRY.

     lo_txn_manager = /bobf/cl_tra_trans_mgr_factory=>get_transaction_manager( ).

     lo_serv_mgr    = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( zif_may1_trq1_c=>sc_bo_key ).

     lo_bo_config   = /bobf/cl_frw_factory=>get_configuration( zif_may1_trq1_c=>sc_bo_key ).

   CATCH /bobf/cx_frw INTO lx_bopf.

     lv_error = lx_bopf->get_text( ).

     ASSERT CONDITION 1 = 2.

ENDTRY.

 

**** Get the details of the Root before modifying.

 

SELECT *

   FROM zmay1_d_root

   INTO TABLE lt_root_tab.

 

READ TABLE lt_root_tab INTO ls_root_wa INDEX 1.

IF sy-subrc EQ 0.

   ls_key-key = ls_root_wa-db_key.

   APPEND ls_key TO lt_key.

ENDIF.

 

CLEAR : lt_modification, ls_modification.

 

***** Lock the Root.

 

ls_modification-node = zif_may1_trq1_c=>sc_node-root.

ls_modification-root_key = ls_root_wa-db_key.

ls_modification-change_mode = 'E'.

APPEND ls_modification TO lt_modification.

CALL METHOD lo_serv_mgr->modify                      -  Getting Dump at this point.

   EXPORTING

     it_modification = lt_modification

   IMPORTING

     eo_change       = lr_chnge

     eo_message      = lr_message.

 

CLEAR : lt_modification, ls_modification.

 

CREATE DATA lr_data.

CHECK lr_data IS BOUND.

 

lr_data->trq_id = '200'.

lr_data->trq_desc = 'CHG'.

lr_data->src_loc = 'CHG'.

lr_data->des_loc = 'CHG'.

 

ls_modification-node = zif_may1_trq1_c=>sc_node-root.

ls_modification-change_mode = 'U'.

ls_modification-data = lr_data.

ls_modification-root_key = ls_root_wa-db_key.

APPEND ls_modification TO lt_modification.

 

 

CALL METHOD lo_serv_mgr->modify

   EXPORTING

     it_modification = lt_modification

   IMPORTING

     eo_change       = lr_chnge

     eo_message      = lr_message.

 

 

lo_txn_manager->save(

EXPORTING

   iv_transaction_pattern = /bobf/if_tra_c=>gc_tp_save_and_continue    " Data element for a transaction pattern

IMPORTING

   ev_rejected            =   lv_rejected          " Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

   eo_change              =   lr_eo_change         " Interface for transaction change objects

   eo_message             =   lr_eo_message        " Interface of Message Object

   et_rejecting_bo_key    =   lt_rejecting_bo_key  " Key table

).



BR,

Nikhil Kulkarni

Throwing message for validation

$
0
0

Hi all,

 

Im using the following code in validation class to show a message for numbers in my field. but it is not getting any message.

i tried debugging, everything is working fine.

 

anybody help..

 

Regards,

Vipin V

 

METHOD /bobf/if_frw_validation~execute.

 

   DATA:

         lt_data TYPE zins_t_root,

         ls_data TYPE zins_s_root,

         ls_mesage TYPE symsg,

         ls_key TYPE /bobf/s_frw_key,

         lv_str TYPE string.

 

   ls_mesage-msgid = 'ZTR_BOPF'.

   ls_mesage-msgno = '000'.

   ls_mesage-msgty = 'E'.

 

 

   io_read->retrieve(

     EXPORTING

       iv_node                 zif_ins_demo_c=>sc_node-root   " Node Name

       it_key                  it_key   " Key Table

    IMPORTING

      et_data                 lt_data    " Data Return Structure

  ).

 

   READ TABLE lt_data INTO ls_data INDEX 1.

   IF sy-subrc <> 0.

     et_failed_key = it_key.

   ENDIF.

 

   IF ls_data-user_id CA '1234567890'.

       IF eo_message IS NOT BOUND.

       eo_message = /bobf/cl_frw_factory=>get_message( ).

       ENDIF.

      eo_message->add_message(

       EXPORTING

         is_msg       = ls_mesage    " Structure of Message Variables

         iv_node      = is_ctx-node_key    " Node Name

         iv_key       = ls_key-key    " Key

         iv_attribute = zif_ins_demo_c=>sc_node_attribute-root-user_id    " Field Name

     ).

     et_failed_key = it_key.

   ENDIF.

ENDMETHOD.

Creating Dependent Node

$
0
0

Hello Experts,

 

I am new to BOPF and trying to create ROOT and Dependent from se38 report.

 

I created a Root and while creating the dependent i am only passing Root Key for dependent creation. Mean while i tried doing it using ASSOCIATION field in call to service MODIFY method, but its giving Dump.

 

My question is , is it sufficient to pass only Root key for dependent creation ? How can i make use of Association marked in Bold color below.

 

Following is the Code snippet i have written.

**** Data Declarations

DATA : lo_txn_manager      TYPE REF TO /bobf/if_tra_transaction_mgr,

             lo_serv_mgr           TYPE REF TO /bobf/if_tra_service_manager,

        lo_bo_config                TYPE REF TO /bobf/if_frw_configuration,

        lx_bopf             TYPE REF TO /bobf/cx_frw,

        lv_error            TYPE string,

        lt_modification     TYPE /bobf/t_frw_modification,

        ls_modification     TYPE /bobf/s_frw_modification,

        lr_chnge            TYPE REF TO /bobf/if_tra_change,

        lr_message          TYPE REF TO /bobf/if_frw_message,

        lr_data             TYPE REF TO zmay1_s_root,

        lr_data1            TYPE REF TO zmay1_s_item,

        lv_rejected         TYPE boole_d,

        lr_eo_change        TYPE REF TO /bobf/if_tra_change,

        lr_eo_message       TYPE REF TO /bobf/if_frw_message,

        lt_rejecting_bo_key TYPE /bobf/t_frw_key2,

        ls_root_key         TYPE /bobf/conf_key..

 

TRY.

     lo_txn_manager = /bobf/cl_tra_trans_mgr_factory=>get_transaction_manager( ).

     lo_serv_mgr    = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( zif_may1_trq1_c=>sc_bo_key ). " ZIF_MAY1_TRQ1_C - Constant interface


     lo_bo_config   = /bobf/cl_frw_factory=>get_configuration( zif_may1_trq1_c=>sc_bo_key ).

   CATCH /bobf/cx_frw INTO lx_bopf.

     lv_error = lx_bopf->get_text( ).

     ASSERT CONDITION 1 = 2.

ENDTRY.

 

CHECK lo_serv_mgr IS BOUND.

CREATE DATA lr_data.

CHECK lr_data IS BOUND.

 

**** Root Creation

lr_data->trq_id = '200'.

lr_data->trq_desc = 'final'.

lr_data->src_loc = 'Mum'.

lr_data->des_loc = 'DEL'.

ls_modification-node = zif_may1_trq1_c=>sc_node-root.

ls_modification-change_mode = 'C'.

ls_modification-data = lr_data.

APPEND ls_modification TO lt_modification.

 

CALL METHOD lo_serv_mgr->modify

   EXPORTING

     it_modification = lt_modification

   IMPORTING

     eo_change       = lr_chnge

     eo_message      = lr_message.

 

CLEAR: ls_modification,lt_modification.

 

**** Get the Root key from Buffer

ls_root_key  = lo_serv_mgr->get_new_key( ).

 

  **** Dependent Creation and finally Root and Dependent Saving

 

CREATE DATA lr_data1.

CHECK lr_data1 IS BOUND.

 

CLEAR ls_modification.

 

lr_data1->item_id = ' 25'.

lr_data1->item_desc = 'Done'.

ls_modification-node = zif_may1_trq1_c=>sc_node-item.

ls_modification-change_mode = 'C'.

ls_modification-data = lr_data1.

ls_modification-root_key = ls_root_key.

*ls_modification-association = zif_may1_trq1_c=>sc_association-root-item.

CLEAR lt_modification.

APPEND ls_modification TO lt_modification.

CALL METHOD lo_serv_mgr->modify

   EXPORTING

     it_modification = lt_modification

   IMPORTING

     eo_change       = lr_chnge

     eo_message      = lr_message.

 

lo_txn_manager->save(

   EXPORTING

     iv_transaction_pattern = /bobf/if_tra_c=>gc_tp_save_and_continue    " Data element for a transaction pattern

   IMPORTING

     ev_rejected            =   lv_rejected          " Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

     eo_change              =   lr_eo_change         " Interface for transaction change objects

     eo_message             =   lr_eo_message        " Interface of Message Object

     et_rejecting_bo_key    =   lt_rejecting_bo_key  " Key table

).



Please suggest. Please do not block it as i didnot find any code snippets discussed in forum.


BR,

Nikhil Kulkarni

Custom Fields in BOPF model UI

$
0
0

Hello all.

 

I know I can extend the metamodel and database tables but is it possible to add custom fields to the BOPF modeling UI itself? Either in Sapgui or eclipse.

 

I would like to create a model which fetches data from customizable criteria and the most logical would be to add these criteria to the metamodel directly. However, then I would need to access these fields also from the UI.

 

Thanks a lot.

 

Martin Jonsson   

Viewing all 309 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>