Quantcast
Channel: SCN: Message List
Viewing all 8798 articles
Browse latest View live

Re: Service Tax Calculation on Total Amount

0
0

The following is my understanding from your requirement:

 

You will pay the ST amount to vendor.

i.e. Total Bill value is Rs. 1145

Vendor : Cr : 1145

Services Ac : DR : 1000

ST : DR : 145

 

Maintain the condition type "JSVD IN:Service tax debit" for the Tax code in FV11 or FTXP (as per your Taxation Procedure) and check the entry with this Tax Code. (Create a new tax code if the existing tax code is already used).

 

Gopal.


Re: BRBACKUP failing on every friday

Re: Minimizing SAP B1 Database Size

0
0

Hi Nick

 

Thanks for your reply . At present the recovery mode is SIMPLE only. Kindly guide how to shrink the file ?

 

Regards

 

Suresh Murugan

Re: Erro 699 - Sefaz PE

0
0

Oi Ronaldo, bom dia e obrigado pelo retorno.

 

Nesse link que você mandou o erro pode estar no percentual do calculo mesmo.

 

Mas no nosso caso aqui, a NF é para contribuinte, não tem o calculo da partilha.

Isso em ambiente PRD.

 

 

 

Att,

Belei

Re: Erro 223 - Rejeição SEFAZ SP

0
0

Obrigado pela informação, alguém pode postar quando voltar ao normal.

Ronaldo, tira uma dúvida por favor, como fez para abrir chamado no sefaz?

Re: Minimizing SAP B1 Database Size

0
0

No worries Suresh,

 

First you can right click on the database and head to Tasks, Shrink, Files.

 

Shrink2.PNG

 

Then choose the File Type (Data and/or Log) and click OK.

 

Shrink3.png

 

Use the "Available free space" to determine what space can be saved and/or monitor the size of the DB files before and after shrinking.

 

The SAP Notes provided originally also provide guidance.

 

 

Kind Regards,

 

Nick Lakasas

Re: Erro 699 - Sefaz PE

0
0

Mas a estrutura  <ICMSUFDest>  esta sendo montada no XML ?  Se sim o problema esta ai..!

Re: Missing Components

0
0

Hi Susan;

 

All the UI component will be in SAPUI add on and IW_BEP will be part of SAPGW_FND. Both are present in your system as per the screenshot.

 

Regards,

Sarbjeet Singh


Re: sap.m.table binding with odata not working

0
0

Yes i am already doing that . Actually I solved the problem by identifying that even though the model is set at application level , but the binding in the individual views are working only if the model are applied at view level also . Once i applied the models at view level also , the binding is working. This problem was coming ever since I re-worked my code to use Component.js (earlier without using component.js it was working fine with the model applied at application level)

 

Thanks anyways

 

Amber

Dialog Programming

0
0

Hi ,

 

Need to code for predefined username and pwd ...max attempts  3......if username and pwd is correct then jump to next screen .....But not getting desired output..........................

 

TABLES : ZEMP .

 

 

DATA : WA TYPE ZEMP ,

      PASSWORD ,

      USERNAME(10) type c  ,

       COUNT TYPE I VALUE 1  ,

       DATA TYPE SY-DATUM ,

      FLAG .

 

 

 

 

*&---------------------------------------------------------------------*

*&      Module  INP_210  INPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

MODULE INP_210 INPUT.

 

 

*CASE SY-UCOMM .

IF SY-UCOMM ='S'.

 

 

*  WHEN 'S'.

 

 

  SELECT SINGLE * FROM ZEMP INTO WA WHERE EMPID = ZEMP-EMPID .   " MSG CODE WHEN DATA IS INSERTED DISPALY DATA INSERTED WITH EMPID

                                                                   "  AND WHEN INSERT THE DATA WITH SAME EMPID WHICH IS DERE IN SYSTEM DEN DATA SHUD BE UPDATED

*                                                                 " DISPLAY MESG DATA UPDATAED ,,TO DISPLAY ID IN IN SE91 MSG USE &1

    IF SY-SUBRC = 0.

      FLAG = 'X' .

      ELSE .

        CLEAR FLAG .

        ENDIF .

 

 

   MODIFY ZEMP .         " MODIFY KEYWORD PERFORM BOTH INSERT AND UPDATE

IF FLAG = 'X' .

*

  MESSAGE S027(YMSG) WITH ZEMP-EMPID.   " IF ID EXIST THAN UPDATED

*

  ELSE .

 

 

    MESSAGE S028(YMSG) WITH ZEMP-EMPID.    " DATA INSERTED              " WITH ZEMP-EMPID WILL DISPLAY ID IN MSG

 

 

  ENDIF .

ENDIF .

*WHEN 'R'.

   IF SY-UCOMM = 'R'.

 

 

     CLEAR ZEMP .

     ENDIF .

 

 

IF SY-UCOMM = 'E' .

*WHEN'E'.

       LEAVE PROGRAM .

ENDIF .

*ENDCASE .

ENDMODULE.

*&---------------------------------------------------------------------*

*&      Module  INP_110  INPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

         " INP_110  INPUT

*&---------------------------------------------------------------------*

*&      Module  INP1_210  INPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

MODULE INP1_210 INPUT.

 

 

  IF SY-UCOMM = 'CN' .

 

 

    LEAVE PROGRAM .

    ENDIF .

 

 

 

 

ENDMODULE.                 " INP1_210  INPUT

*&---------------------------------------------------------------------*

*&      Module  OUT_210  OUTPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

MODULE OUT_210 OUTPUT.

 

 

  IF SY-UCOMM = 'S'.

 

 

    SET TITLEBAR  'TITLE1'.

 

 

    ENDIF .

 

 

IF SY-UCOMM = 'R'.

 

 

   SET TITLEBAR 'TITLE2'.

   ENDIF .

 

 

 

 

 

 

ENDMODULE.                 " OUT_210  OUTPUT

*&---------------------------------------------------------------------*

*&      Module  INP_110  INPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

MODULE INP_110 INPUT.

 

 

CASE SY-UCOMM.

    WHEN 'LOGIN'.

      IF USERNAME = 'SAPUSER' AND PASSWORD = 'VZEN@123'.

        IF SY-SUBRC = 0.

     CALL SCREEN 210 .

*          CALL TRANSACTION 'SE11' AND SKIP FIRST SCREEN.

          CLEAR: USERNAME, PASSWORD.

        ENDIF.

      ELSEIF COUNT <= 3.

        COUNT = COUNT + 1.

        MESSAGE 'PLEASE ENTER CORRECT USER NAME OR PASSWORD' TYPE 'E'.

      ELSEIF COUNT > 3.

*          DATE = SY-DATUM + 1.

        MESSAGE 'PASSWORD TOO MANY ATEMPTS NOT POSSIBLE' TYPE 'E'.

        ENDIF.

 

 

 

 

ENDCASE .

ENDMODULE.                 " INP_110  INPUT

Re: Table not coming while running web app preview

0
0

You are not placing your table anywhere , Try this way

 

createContent : function(oController) {

var otable = new sap.m.Table({

  id : "employees",

  itempress : [ ocontroller.itempress,ocontroller ],

  colums:[

  new sap.m.column({

  width:"1em",

  header:new sap.m.label({

  text: "Emp ID" })}),

  new sap.m.Column({

  width:"1em",

  header:new sap.m.label ({text: "Name"})}),

 

  new sap.m.Column({

  width:"1em",

  header:new sap.m.label ({text: "Address"})}),

 

  new sap.m.Column({

  width:"1em",

  header:new sap.m.label ({text: "Designation"})})

 

 

  ]

  });

 

  return new sap.m.Page({

  title: "Employee Details",

  content: [otable

 

  ]

  });

 

  }

 

 

});

Re: Upgrade issue PREP_EXTENSION/EHP_INCLUSION!

ABAP help

0
0

Dear expert team

 

I have following record in database

 

emp  -  InTime - inOut - CodeIN - Codeout - Date

123      7:00                     66            67          3/1/2016

123      7:04                     66                         3/1/2016

123      7:06        15:00     66            67          3/1/2016

123      7:00        15:00     66            67           4/1/2016

 

My question

 

as per the above its show the employee 123 inTime have three times in same date which is 3/1/2015

i want to select one record for employee in to store in internal table and then recorded new database

 

 

 

 

 

Kindly expert need your help in ABAP SQL 

 

Thank you

Talal

Tree List (CL_GUI_LIST_TREE) not getting refresh

0
0

Hi,

  I have a requirement to display a list of documents to upload in tree(Hierarchy) view like below screenshot:

img 1.png

When we click on child node(trigger double click event), the relevant details display in right side of field. When we upload a document by pressing upload button, it uploads document using global class and after successful upload it should display a green check mark against that document. Logic is updating database table but it does not refresh the screen to show that check mark icon ( like we use refresh_table_display). How to refresh the this tree.

 

My code is: (It is a module pool tab strip program.)

 

 

CLASS LCL_APPLICATION_TREE DEFINITION DEFERRED.


TYPES: ITEM_TABLE_TYPE LIKE STANDARD TABLE OF MTREEITM WITH DEFAULT KEY.

 

   DATA: G_APPLICATION_TREE TYPE REF TO LCL_APPLICATION_TREE,

              cc_alv_cont                     TYPE REF TO CL_GUI_CUSTOM_CONTAINER,

              G_TREE                         TYPE REF TO CL_GUI_LIST_TREE,

              G_OK_CODE                  TYPE SY-UCOMM.

 

data:      Root      type tv_nodekey value 'Root'.           


data:      it_doc_list      type TABLE OF /spli/doc_list,

             wa_doc_list    like LINE OF it_doc_list,

             it_doc_h type  table of /SPLI/CL_DOC_H,  

             wa_doc_h like line of it_doc_h.

 

FIELD-SYMBOLS: <fs_doc_h> like line of it_doc_h.

 

data: it_doc  type table of /spli/cl_doc_h,       " temp table to get document history

       wa_doc  like line of it_doc,                " temp wa to get dociment history

       wa_hist_temp like line of it_doc_h.         "

 

DATA: NODE_TABLE     TYPE TREEV_NTAB,          

           ITEM_TABLE       TYPE ITEM_TABLE_TYPE,     

           NODE                 TYPE TREEV_NODE,              

           ITEM                   TYPE MTREEITM                 

           wa_ITEM             like line of item_table

 

 

*************************************************

*  IN PBO in have written below code      *

*************************************************

 

if g_tree is INITIAL.

           IF cc_alv_cont is INITIAL.

             perform get_tree_data.

             perform build_tree_container.

             perform build_tree.

           endif.

endif.

 

____________________________________________________________________________________________

FORM GET_TREE_DATA .

clear: wa_doc_list, it_doc_list, it_doc_h.

  * if application open first time it select data from config table TAB1

     bla bla bla

        bla bla bla

   * endif.

 

  * if application open 2nd time (document uploaded and have to refresh tree), it select data from transaction  table TAB2

     bla bla bla

        bla bla bla

   * endif.

 

ENDFORM.                    " GET_TREE_DATA

______________________________________________________________________________________________


* create a container for the tree control

   CREATE OBJECT cc_alv_cont

     EXPORTING     

       CONTAINER_NAME = 'TREE_CONTAINER'

     EXCEPTIONS

       CNTL_ERROR = 1

       CNTL_SYSTEM_ERROR = 2

       CREATE_ERROR = 3

       LIFETIME_ERROR = 4

       LIFETIME_DYNPRO_DYNPRO_LINK = 5.

   IF SY-SUBRC <> 0.

     MESSAGE A011.

   ENDIF.


________________________________________________________________________________________


FORM BUILD_TREE .

   DATA: EVENTS      TYPE CNTL_SIMPLE_EVENTS,

               event            type cntl_simple_event.

 

* create a list tree

   CREATE OBJECT g_tree

     EXPORTING

       PARENT              = cc_alv_cont

       NODE_SELECTION_MODE = CL_GUI_LIST_TREE=>NODE_SEL_MODE_SINGLE

       ITEM_SELECTION     = 'X'

       WITH_HEADERS       = ' '

     EXCEPTIONS

       CNTL_SYSTEM_ERROR           = 1

       CREATE_ERROR                = 2

       FAILED                      = 3

       ILLEGAL_NODE_SELECTION_MODE = 4

       LIFETIME_ERROR              = 5.

   IF SY-SUBRC <> 0.

     MESSAGE A011.

   ENDIF.

 

* define the events which will be passed to the backend

  " node double click

   event-eventid = CL_GUI_list_TREE=>EVENTID_NODE_DOUBLE_CLICK.

   event-appl_event = 'X'.                                   "

   append event to events.

 

    " item double click

   EVENT-EVENTID = CL_GUI_LIST_TREE=>EVENTID_ITEM_DOUBLE_CLICK.

   event-appl_event = 'X'.

   append event to events.

 

     " expand no children

   EVENT-EVENTID = CL_GUI_LIST_TREE=>EVENTID_EXPAND_NO_CHILDREN.

   event-appl_event = 'X'.

   append event to events.

 

   " link click

   EVENT-EVENTID = CL_GUI_LIST_TREE=>EVENTID_LINK_CLICK.

   event-appl_event = 'X'.

   append event to events.

 

    " button click

   EVENT-EVENTID = CL_GUI_LIST_TREE=>EVENTID_BUTTON_CLICK.

   event-appl_event = 'X'.

   append event to events.

 

    " checkbox change

   EVENT-EVENTID = CL_GUI_LIST_TREE=>EVENTID_CHECKBOX_CHANGE.

   event-appl_event = 'X'.

   append event to events.

 

   CALL METHOD G_TREE->SET_REGISTERED_EVENTS

     EXPORTING

       EVENTS = EVENTS

     EXCEPTIONS

       CNTL_ERROR                = 1

       CNTL_SYSTEM_ERROR         = 2

       ILLEGAL_EVENT_COMBINATION = 3.

   IF SY-SUBRC <> 0.

     MESSAGE A011.

   ENDIF.

 

  CREATE OBJECT G_APPLICATION_TREE.

* assign event handlers in the application class to each desired event

   SET HANDLER G_APPLICATION_TREE->HANDLE_NODE_DOUBLE_CLICK  FOR G_TREE.

   SET HANDLER G_APPLICATION_TREE->HANDLE_ITEM_DOUBLE_CLICK  FOR G_TREE.

   SET HANDLER G_APPLICATION_TREE->HANDLE_EXPAND_NO_CHILDREN FOR G_TREE.

   SET HANDLER G_APPLICATION_TREE->HANDLE_LINK_CLICK         FOR G_TREE.

   SET HANDLER G_APPLICATION_TREE->HANDLE_BUTTON_CLICK       FOR G_TREE.

   SET HANDLER G_APPLICATION_TREE->HANDLE_CHECKBOX_CHANGE    FOR G_TREE.

 

* add some nodes to the tree control

* NOTE: the tree control does not store data at the backend. If an

* application wants to access tree data later, it must store the

* tree data itself.

 

   PERFORM BUILD_NODE_AND_ITEM_TABLE USING NODE_TABLE ITEM_TABLE.

 

   CALL METHOD G_TREE->ADD_NODES_AND_ITEMS

     EXPORTING

       NODE_TABLE = NODE_TABLE

       ITEM_TABLE = ITEM_TABLE

       ITEM_TABLE_STRUCTURE_NAME = 'MTREEITM'

     EXCEPTIONS

       FAILED = 1

       CNTL_SYSTEM_ERROR = 3

       ERROR_IN_TABLES = 4

       DP_ERROR = 5

       TABLE_STRUCTURE_NAME_NOT_FOUND = 6.

   IF SY-SUBRC <> 0.

     MESSAGE A011.

   ENDIF.

 

ENDFORM.                    " BUILD_TREE


_____________________________________________________________________________


FORM BUILD_NODE_AND_ITEM_TABLE  USING    NODE_TABLE TYPE TREEV_NTAB

                                          ITEM_TABLE TYPE ITEM_TABLE_TYPE.

   if flg_clm eq 2.

     clear: node_table, item_table.

   endif.

 

 

* Node with root.

   node-node_key = root.

   clear node-relatkey.

   clear node-relatship.

   node-hidden   = ' '.

   node-isfolder = 'X'.

   clear node-n_image.

   clear Node-exp_image.

   clear node-expander.

   APPEND node to node_table.

   clear node.

 

*  node with parent

   LOOP AT it_doc_list into wa_doc_list.

     node-node_key = wa_doc_list-doc_group.

     node-relatkey = root.

     node-relatship = cl_gui_list_tree=>relat_last_child.

     node-isfolder  = 'X'.

     Append node to node_table.

     clear node.

*   node with child

       LOOP AT it_doc_h into wa_doc_h where doc_group eq wa_doc_list-doc_group.

         node-node_key  = wa_doc_h-doc_name.

         node-relatkey = wa_doc_list-doc_group.

         node-relatship = cl_gui_list_tree=>relat_last_child.

         APPEND node to node_table.

         clear: node, wa_doc_h.

       ENDLOOP.

       clear: node, wa_doc_list.

   ENDLOOP.

 

*  the items of the nodes:

*  node with key root.

data: lv_parent type i value 0,

       lv_child  type i value 0.

   clear item.

   lv_parent = lv_parent + 1.

   item-node_key   = root.

   item-item_name  = lv_parent.

   item-class = cl_gui_list_tree=>item_class_text.      " text item piyush

   " the width of the item is adjusted to its content (text)

   item-alignment  = cl_gui_list_tree=>align_auto.

   " use proportional font for the item

   item-font       = cl_gui_list_tree=>item_font_prop.

   item-text       = 'Documents Check List'.

   APPEND item to item_table.

   clear: item, lv_parent.

 

 

 

   LOOP AT it_doc_list into wa_doc_list.

     item-node_key   = wa_doc_list-doc_group.

     lv_parent = lv_parent + 1.

     item-item_name  = lv_parent.    "wa_doc_list-doc_name.

     item-class      = cl_gui_list_tree=>item_class_text.

     item-alignment  = cl_gui_list_tree=>align_auto.

     item-font       = cl_gui_list_tree=>item_font_prop.

     item-text       = wa_doc_list-doc_group.

     append item to item_table.

     clear: item, wa_doc_list, lv_parent.

   ENDLOOP.

 

     clear: item, wa_doc_h.

     LOOP AT it_doc_h into wa_doc_h.

       clear item.

       lv_child = lv_child + 1.

       item-node_key   = wa_doc_h-doc_name.

       ITEM-ITEM_NAME = lv_child.               "wa_doc_h-doc_name.

       ITEM-CLASS = CL_GUI_LIST_TREE=>ITEM_CLASS_TEXT.

       ITEM-ALIGNMENT = CL_GUI_LIST_TREE=>ALIGN_AUTO.

*      ITEM-LENGTH    = '72'.

       ITEM-FONT = CL_GUI_LIST_TREE=>ITEM_FONT_PROP.

       item-text = wa_doc_h-doc_name.

       APPEND ITEM TO ITEM_TABLE.

       clear item.

 

   IF wa_doc_h-doc_upload eq 'X'.

     lv_child = lv_child + 1.

       item-node_key = wa_doc_h-doc_name.      "'Uploaded'. "wa_doc_h-upload_icon.

       ITEM-ITEM_NAME = lv_child. "wa_doc_h-upload_icon.

       ITEM-CLASS = CL_GUI_LIST_TREE=>ITEM_CLASS_TEXT.

       ITEM-LENGTH = 4. " the width of the item is 4 characters

       ITEM-IGNOREIMAG = 'X'.               " see documentation of Structure

                                            " TREEV_ITEM

*      ITEM-USEBGCOLOR = 'X'.               " item has light grey background

       ITEM-T_IMAGE = wa_doc_h-upload_icon"'@01@'          " icon of the item

       APPEND ITEM TO ITEM_TABLE.

    endif.

 

       clear: itemlv_child, wa_doc_h.

      ENDLOOP.

 

 

ENDFORM.                    " BUILD_NODE_AND_ITEM_TABLE

_______________________________________________________________________________



When I open program first time, it works fine, but when I upload a document it doesn't refresh the tree, to refresh the tree, I have to re-start the program. If I do some code then either it overlap to all the tabs or double click event doesn't work.


Please suggest me how to handle this asap.



Regards

Piyush

Re: To fetch accounts for which a BP was employee responsible on a specific date?


Re: Extranalist Management

0
0

Hi Rusheek,

please mark the thread as correct so that in future others can refer.

 

Rgds

Hari

Re: Get functions method

0
0

Hi,

 

How to use get_function:

 

Some code:

 

*----------------------------------------------------------------------*

*----------------------------------------------------------------------*

CLASS cl_event_receiver DEFINITION .

 

  PUBLIC SECTION.

 

    CONSTANTS: c_select_a TYPE salv_de_function VALUE 'Select_all ' .

    CONSTANTS: c_select_d TYPE salv_de_function VALUE 'Select_none' .

 

 

    METHODS added_function FOR EVENT added_function OF cl_salv_events

        IMPORTING e_salv_function .

 

ENDCLASS .                    "cl_event_receiver DEFINITION

*----------------------------------------------------------------------*

CLASS cl_event_receiver IMPLEMENTATION.

 

METHOD added_function .

 

* Your code....

  ENDMETHOD .

 

ENDCLASS .                    "cl_event_receiver IMPLEMENTATION

*----------------------------------------------------------------------*

*----------------------------------------------------------------------*

 

PBO:

 

 

 

DATA: ob_salv_functions    TYPE REF TO cl_salv_functions .

 

 

ob_salv_functions = ob_salv_table->get_functions( ) .

 

DATA: icon_name TYPE string .

DATA: icon_text TYPE string .

DATA: icon_tool TYPE string .

 

icon_name = icon_select_all .

icon_text = 'Select All' .

icon_tool = 'Select All Rows'  .

 

ob_salv_functions->add_function(

name     = cl_event_receiver=>c_select_a

icon     = icon_name

text     = icon_text

tooltip  = icon_tool

position = if_salv_c_function_position=>right_of_salv_functions  ) .

 

icon_name = icon_deselect_all .

icon_text = 'Deselect' .

icon_tool = 'Deselect All Rows'  .

 

ob_salv_functions->add_function(

name     = cl_event_receiver=>c_select_d

icon     = icon_name

text     = icon_text

tooltip  = icon_tool

position = if_salv_c_function_position=>right_of_salv_functions  ) .

 

DATA: ob_salv_events    TYPE REF TO cl_salv_events_table.

DATA: ob_event_receiver TYPE REF TO cl_event_receiver .

 

ob_salv_events = ob_salv_table->get_event( ).

 

  CREATE OBJECT ob_event_receiver

    EXPORTING

      ob_salv_table = ob_salv_table.

 

SET HANDLER ob_event_receiver->added_function       FOR ob_salv_events . 

  

Regards.

What are the Rules recommended by SAP for User Ids?

0
0

Hello All,

 

Good Evening.

 

What are the parameters that I need to consider for proposing SAP User Ids in Implementation Project? I could see that newly installed SAP system allows spaces also for username.

 

Could you please suggest me on below questions

1. User Id naming convention?

2. Min and Max length of SAP User Ids, and Where can I define these parameters?

3. No spaces and Special Characters should be allowed(what need to be set up to achieve this)

 

Please help me with the implementation plan, if you already have any on user Id design...

 

Thanks in advance..

 

 

Regards,

Ch.

How to find assigned class of material in classification view

0
0

Hi all,

 

I want to get a list which shows which classes are assigned to material in classification view.

From which tables can I get this info?

 

Thanks.

Re: Error during Java DB export- Attempt to fully materialize LOB data

Viewing all 8798 articles
Browse latest View live




Latest Images