Software World By Sumit

Thursday 22 February 2024

Automatic Billing through Order Delivery - SAP ABAP

 &---------------------------------------------------------------------

*& Report ZSD_BILLING_CREATE

&---------------------------------------------------------------------

*&DEVELOPER : SUMIT

&---------------------------------------------------------------------

REPORT zsd_billing_create.


TABLES : zdi_data .


DATA: itbill_data TYPE STANDARD TABLE OF bapivbrk,

      wtbill_data TYPE  bapivbrk,

      it_return   TYPE STANDARD TABLE OF bapiret1,

      wa_return   TYPE bapiret1,

      it_success  TYPE STANDARD TABLE OF bapivbrksuccess,

      wa_success  TYPE bapivbrksuccess.


DATA: s_dlv   TYPE likp-vbeln,

      wa_likp TYPE likp,

      wa_lips TYPE lips,

      wa_vbak TYPE vbak.

DATA : LV_VBELN TYPE VBELN .

DATA : LV_MSG TYPE CHAR100 .


TYPES:BEGIN OF ty_data,

        vbeln TYPE vbeln,

*      ref_doc type char10 ,

      END OF ty_data.


TYPES:BEGIN OF ty_final,

        vbeln_de   TYPE vbeln,

        vbeln(120) TYPE c,

      END OF ty_final.


      TYPES : BEGIN OF TY_FF ,

        SELECT(1) ,

        MSG(100) .

        INCLUDE STRUCTURE zdi_data .

      TYPES END OF TY_FF .



DATA: it_data TYPE STANDARD TABLE OF TY_FF , "" TY_DATA,

      wa_data TYPE TY_FF.

DATA:it_final TYPE TABLE OF ty_final,

     wa_final TYPE ty_final.

DATA:it_fcat TYPE slis_t_fieldcat_alv,

     wa_fcat TYPE slis_fieldcat_alv.

DATA:w_col       TYPE i.

DATA: it_raw TYPE truxs_t_text_data.


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

  SELECT-OPTIONS : s_del FOR zdi_data-delivery .

  SELECT-OPTIONS : s_di FOR zdi_data-di_number .

  SELECT-OPTIONS : s_ul FOR zdi_data-unloading_location .

  SELECT-OPTIONS : s_pl FOR zdi_data-plant_location .

  SELECT-OPTIONS : s_dd FOR zdi_data-del_date .

  SELECT-OPTIONS : s_dt FOR zdi_data-del_time .

SELECTION-SCREEN END OF BLOCK b1.

**

**AT SELECTION-SCREEN ON VALUE-REQUEST FOR  P_FNAME.

**  PERFORM GET_FILE_NAME.


START-OF-SELECTION.


  SELECT * FROM zdi_data INTO CORRESPONDING FIELDS OF TABLE it_data

      WHERE delivery IN s_del AND di_number IN s_di AND unloading_location IN s_ul AND plant_location IN s_pl

    AND del_date IN s_dd AND del_time IN s_dt AND billed  = '' .

  REFRESH:it_final[].


  PERFORM display.

*  PERFORM CALL_BAPI_FOR_BILLING.


END-OF-SELECTION.

&---------------------------------------------------------------------

*& Form PREPARE_BILLING_DATA

&---------------------------------------------------------------------

*& text

&---------------------------------------------------------------------

*& -->  p1        text

*& <--  p2        text

&---------------------------------------------------------------------

FORM prepare_billing_data .


ENDFORM.

&---------------------------------------------------------------------

*& Form CALL_BAPI_FOR_BILLING

&---------------------------------------------------------------------

*& text

&---------------------------------------------------------------------

*& -->  p1        text

*& <--  p2        text

&---------------------------------------------------------------------

FORM call_bapi_for_billing .


  DATA: blg_msg TYPE string.

  REFRESH: it_success[], it_return[].

  CLEAR: wa_success, blg_msg.


  IF itbill_data[] IS NOT INITIAL.


    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

      TABLES

        billingdatain = itbill_data

        return        = it_return

        success       = it_success.


**   Check the return table.

    LOOP AT it_return INTO wa_return WHERE type = 'E' OR type = 'A'.

*      WRITE: / WA_RETURN-MESSAGE.

      wa_final-vbeln_de = wa_data-delivery.

      wa_final-vbeln    = wa_return-message.

      lv_msg            = wa_return-message.

      APPEND wa_final TO it_final.

      CLEAR: wa_return,wa_final.

    ENDLOOP.


    IF it_success[] IS NOT INITIAL.

      COMMIT WORK AND WAIT.

      READ TABLE it_success INTO wa_success INDEX 1.

      CLEAR: blg_msg.

      wa_final-vbeln_de = wa_data-delivery.

      wa_final-vbeln    = wa_success-bill_doc.

      LV_VBELN    = wa_success-bill_doc.

      APPEND wa_final TO it_final.

      CLEAR: wa_final.

      UPDATE zdi_data SET billed = 'X' bill_NO = wa_success-bill_doc  WHERE delivery = wa_data-delivery .

    ENDIF.


  ENDIF.


ENDFORM.

&---------------------------------------------------------------------

*& Form GET_FILE_NAME

&---------------------------------------------------------------------

*& text

&---------------------------------------------------------------------

*& -->  p1        text

*& <--  p2        text

&---------------------------------------------------------------------

FORM get_file_name .

**    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'

**    EXPORTING

**      FIELD_NAME = 'P_FNAME'

**    CHANGING

**      FILE_NAME  = P_FNAME.

ENDFORM.

&---------------------------------------------------------------------

*& Form READ_EXCEL_DATA

&---------------------------------------------------------------------

*& text

&---------------------------------------------------------------------

*& -->  p1        text

*& <--  p2        text

&---------------------------------------------------------------------

FORM read_excel_data .

** DATA L_FNAME TYPE RLGRAP-FILENAME.

**  L_FNAME = P_FNAME.

**  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

**    EXPORTING

**      I_LINE_HEADER        = '1'

**      I_TAB_RAW_DATA       = IT_RAW

**      I_FILENAME           = L_FNAME

**    TABLES

**      I_TAB_CONVERTED_DATA = IT_DATA.


ENDFORM.

&---------------------------------------------------------------------

*& Form DISPLAY

&---------------------------------------------------------------------

*& text

&---------------------------------------------------------------------

*& -->  p1        text

*& <--  p2        text

&---------------------------------------------------------------------

FORM display .


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'SELECT'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-edit   = 'X'.

  wa_fcat-checkbox   = 'X'.

  wa_fcat-seltext_m = 'Select'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'DELIVERY'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Delivery No.'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'DI_NUMBER'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'DI Number'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'DEL_DATE'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Del Date'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'DEL_TIME'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Del Time'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'KDMT'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Customer Part'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'UNLOADING_LOCATION'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Unload LOcation'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'PLANT_LOCATION'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'P Location'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'LFIMG'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Inv Qty'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'BILL_NO'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Billing No'.

  APPEND wa_fcat TO it_fcat.


  CLEAR wa_fcat.

  wa_fcat-fieldname = 'MSG'.

  wa_fcat-tabname   = 'IT_DATA'.

  wa_fcat-seltext_m = 'Remarks'.

  APPEND wa_fcat TO it_fcat.




  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

      i_callback_program       = sy-repid

      i_callback_user_command  = 'USER_COMMAND'

      i_callback_pf_status_set = 'SET_PF'

      I_DEFAULT = 'X'

*     IS_LAYOUT                = LAYOUT

      it_fieldcat              = it_fcat

      i_save                   = 'A'

    TABLES

      t_outtab                 = it_data[]

    EXCEPTIONS

      program_error            = 1

      OTHERS                   = 2.


ENDFORM.


FORM set_pf USING rt_extab TYPE slis_t_extab.

  SET PF-STATUS 'ZSTATUS'.

ENDFORM.


FORM user_command USING r_ucomm LIKE sy-ucomm

                        rs_selfield TYPE slis_selfield.


  data : ref_grid type ref to cl_gui_alv_grid.


  if ref_grid is initial.

    call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'

      importing

        e_grid = ref_grid.

  endif.


  if not ref_grid is initial.

    call method ref_grid->check_changed_data.

  endif.


  DATA: lv_message TYPE c LENGTH 100.

  CASE r_ucomm.

    WHEN 'DBILL' .


  .

      LOOP AT it_data ASSIGNING FIELD-SYMBOL(<FSSS>) WHERE SELECT = 'X'  .


        CLEAR: wtbill_data, wa_vbak, wa_likp, wa_lips , LV_VBELN , lv_msg .

        REFRESH: itbill_data[].


        s_dlv = <FSSS>-delivery.

        SELECT SINGLE * FROM likp INTO wa_likp WHERE vbeln = s_dlv.

        SELECT SINGLE * FROM lips INTO wa_lips WHERE vbeln = s_dlv.

        SELECT SINGLE * FROM vbak INTO wa_vbak WHERE vbeln = wa_lips-vgbel.


        wtbill_data-ref_doc    = <FSSS>-delivery.

        wtbill_data-ref_doc_ca = 'J'.

        APPEND wtbill_data TO itbill_data.

          PERFORM call_bapi_for_billing.


          <FSSS>-BILL_NO = LV_VBELN .

          if LV_VBELN is INITIAL .

          <FSSS>-msg = lv_msg .

          else .

          <FSSS>-msg = 'SUCCESS' .

            endif .

*        CLEAR <FSSS>.


      ENDLOOP .


  ENDCASE.


  RS_SELFIELD-REFRESH = 'X'.


ENDFORM.

Monday 1 August 2022

Envato Elements Premium Account For Free

Are you searching for Envato Elements Premium Account For Free?

If yes, today I will share Envato Elements Premium Account for free with you.

With this account, you can download all files that are available on Envato elements.



What is Envato Elements

Envato Elements is the marketplace by Envato market. Where you can get WordPress Themes, WordPress Plugins, Web Templates, CMS Templates, Stock Images, Stock videos, Music, Sound effects, Graphic templates, Presentation Templates, Email Templates, HTML Templates, etc.

I am sharing the login details with username and password. I am trying to help the people. Please don't change the passwords. Lets help each other and grow together. 

If you wanna help me you can donate me BAT token if you are using Brave browser. Thank you

Login details for Envato Element👍

Username:- krishna202020

Password:- Nepal@9860

Thank you so much!!!

Wednesday 5 May 2021

Download Adobe Life Cycle 11.0 Full Activated

 What is Adobe LifeCycle Designer?

The SAP Adobe LifeCyle Designer is a tool that you use to define both the layout and logic of a form. The program of the company ADOBE is independent of SAP. You use Adobe Lifecyle Designer to create forms for mobile devices that adapt to different screen sizes. You create forms that are optimized for both print and the Web. The designer is a component that is installed locally.

The Adobe LiveCycle Designer tool is integrated with both ABAP Workbench and SAP NetWeaver Developer Studio.
For the SAP environment, although it is an external tool, the Adobe LifeCycle Designer for SAP is fully integrated into transaction SFP.

We have summarized an important aspect for the installation in the following article. Do you have any questions about this? Then just contact us. We look forward to seeing you.

sap adobe lifecycle designer

sap adobe lifecycle designer

How do you install Adobe LifeCycle Designer?

What software must be installed on your computer to work with adobe livecycle designer is summarized below

SAP GUI for Windows – During installation, make sure that the Adobe LiveCycle Designer is also installed.

Adobe Reader – Please make sure you always use Adobe Reader in the latest version. This is especially important for interactive function. For more information, see SAP Note 834573.

Interactive Forms – If you want to work with interactive forms, you may need the Active Component Framework (ACF) component on your PC. For more information, see SAP Note 766191.

Do you want to install/patch Adobe LifeCycle Designer on your local computer or update your existing installation? You need the installation files, the appropriate SAP version and a Windows PC.

For version 11, the following prerequisites apply

Adobe LifeCycle Designer 11.0 works with the following versions of Adobe Document Services (ADS):

  • SAP NetWeaver 7.31 SP-16 and above
  • SAP NetWeaver 7.40 SP-11 and above
  • SAP NetWeaver 7.50
  • SAP Cloud Platform Forms from Adobe

Note: You can use Adobe LifeCycle Designer 11.0 with older ADS versions. For more information, see SAP Note 1317925.

Operating systems

Adobe LiveCycle Designer 11.0 is supported on the following Windows operating systems:

  • Windows 7 (32bit and 64bit)
  • Windows 8.1 (32bit and 64bit)
  • Windows 10 (32bit and 64bit)
  • Windows Server 2008 X64
  • Windows Server 2008 R2 X64
  • Windows Server 2012 X64
  • Windows Server 2012 R2 X64
  • Windows Server 2016 X64

Download Adobe LiveCycle Designer

Download procedure – The installation has already been described in various SAP notes. The last valid one is SAP Note 2187332. To download and install or update Adobe LiveCycle Designer, follow the instructions in this note. The individual actions are described in detail there.

The Adobe LiveCycle Designer is connected to the installation of the SAP GUI. Adobe LiveCycle Designer 11.0 is supported with SAP GUI Server version 7.40 and later.

To Download you can use the link provided below . 

LiveCyle Designer from ADOBE or SAP?

The one from SAP Adobe LiveCycle Designer is different from the Adobe LiveCycle Designer, which can be obtained from Adobe. The Adobe LiveCycle Designer delivered by SAP is only in maintenance until 31.12.2025. There are currently no new versions of Adobe Livecycle Designer planned, according to SAP media. We also read about differences of opinion between the manufacturers Adobe and SAP. So it remains exciting for SAP customers.

In the installation, you can determine which designer is installed . In Windows -> Control Panel -> Programs and features, select the Publisher value for Adobe LiveCycle Designer 11.0. If you see SAP SE as publisher, use the version of the LiveCycle Designer delivered by SAP.   


   Click Here To Download SAP ADOBE LIFE CYCLE 11.0


Wednesday 29 July 2020

Download & Install SAP GUI 760 with Complete Installation Process

Before you can configure and use the SAP GUI, you need to download the software from the SAP Marketplace as per steps below -

Step 1) Goto service.sap.com to Download SAP GUI 7.60 for Windows
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 2) Enter S-user and password as provided by SAP.
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 3) Goto "Software Downloads."
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 4) Choose "Browse our Download Catalog."
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 5) Choose SAP Frontend components
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 6) Choose SAP GUI for your OS. In this demo, we will select Windows-
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 7) Choose SAP GUI 7.30 Core which is the latest one.
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 8) Choose installation
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 9) Choose Add to download Basket
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 10) Choose the Download Basket
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 11) Choose Your download and it will begin.
 
How to Download & Install SAP GUI (FrontEnd) for Windows


Time to configure your GUI


Once the download is complete and you have installed the software, it's time to configure it -

Step 1) Click on create the button as shown below.
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 2) Click next button
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Step 3) Fill the Server details
  1. Connection Type: - Custom Application Server(Particular one host)
  2. Description: - Name of instance
  3. Application Server: - IP address of remote application server
  4. Instance number which you can find from os level (Unix)
    Goto /usr/sap/sid/DVEBGMS00 Here instance number = 00
  5. System ID: - As per you setting which you have specified during installation time.


How to Download & Install SAP GUI (FrontEnd) for Windows

Step 4) Created system will be there in the list as per shown below.
 
How to Download & Install SAP GUI (FrontEnd) for Windows

Double Click on the instance to log-in to a SAP Server.

Click Here To Download SAP GUI 7.6