Skip to Content
author's profile photo Former Member
Former Member

Copy Standard Functional Module

In standard FM, DETERMINE_TXJCD_EXTERNALLY. City and county are optional. What effort it takes to makes this fields as mandatory.

Please let me know.

Can I copy this Standard FM to custom funtional module and just say check the check box in export parameters.

Please let me know. Thank you.

Regards

Madhu

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Nov 30, 2007 at 05:49 PM

    But, does it matter if the fields city and coutnry are not mandatory?

    You can use this FM in your program with passing these fields city and coutnry. No need to create a copy and maintain that.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • If you want to make sure about the data is fatching or not, you can check the exceptions for that.

      Like:

          CALL FUNCTION 'DETERMINE_TXJCD_EXTERNALLY'
               EXPORTING
                    COUNTRY                       = LFA1-LAND1
                    REGION                        = LFA1-REGIO
                    CITY                          = LFA1-ORT01
                    COUNTY                        = LFA1-ORT02
                    ZIPCODE                       = LFA1-PSTLZ
                    PROCEDURE                     = TTXD-KALSM
                    ID_TAX_EXT                    = TTXD-XEXTN
                    NO_DIALOG                     = 'X'
               IMPORTING
                    TXJCD                         = LFA1-TXJCD
               EXCEPTIONS
                    TXJCD_NOT_FOUND               = 01
                    TXJCD_NOT_UNIQUE_IN_NO_DIALOG = 02.
      IF SY-SUBRC = 1.  " <<
         MESSAGE E398(00) 'Data not found'.
      ENDIF.

      Regards,

      Naimesh Patel

  • Posted on Nov 30, 2007 at 05:46 PM

    It's very easy.

    You can copy the FM to ZFM and remove the optional check boxes.

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 07:30 PM

    Hi,

    My suggestion will be

    Write a wrapper function module of DETERMINE_TXJCD_EXTERNALLY with the same fields

    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(COUNTRY) LIKE  TTX_TXJCD-COUNTRY
    *"     VALUE(REGION) LIKE  TTX_TXJCD-REGION
    *"     VALUE(CITY) LIKE  TTX_TXJCD-CITY OPTIONAL
    *"     VALUE(COUNTY) LIKE  TTX_TXJCD-COUNTY OPTIONAL
    *"     VALUE(ZIPCODE) LIKE  TTX_TXJCD-ZIPCODE
    *"     VALUE(PROCEDURE) LIKE  TTX_TXJCD-PROCEDURE OPTIONAL
    *"     VALUE(ID_TAX_EXT) LIKE  TTX_TXJCD-ID_TAX_EXT OPTIONAL
    *"     VALUE(NO_DIALOG) LIKE  TTX_TXJCD-ID_TAX_EXT OPTIONAL
    *"  EXPORTING
    *"     VALUE(TXJCD) LIKE  TTX_TXJCD-TXJCD
    *"     VALUE(CITY) LIKE  TTX_TXJCD-CITY
    *"     VALUE(COUNTY) LIKE  TTX_TXJCD-COUNTY
    *"  EXCEPTIONS
    *"      TXJCD_NOT_FOUND
    *"      TXJCD_NOT_UNIQUE_IN_NO_DIALOG
    *"      EXTERNAL_TXJCD_NOT_REQUIRED
    *"      TXJCD_PROCESSING_NOT_REQUIRED
    *"      RFCDEST_NOT_FOUND
    

    and within that wrapper function module make fields mandatory. This will reduce your effort during patches updattion. otherwise if you are copying the standard function module, then after applying the patches to original function module you need to redo the changes mannually in to your copied function module

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.