Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

SAPGUI login screen forgot password enhencement

$
0
0

We need to enhance the SAPGUI login screen to add a button to allow the user to reset his own password.

 

How can we add a button to the login screen?

 

For now, all the information found to implement reset password self service are related to Java.

 

We want to avoid to pass through Java mechanism.

 

All suggestions will be highly appreciated,


VL10G delivery creation based on delivery date at STO creation from ME21N....!

$
0
0

Dear Experts,

 

I have created two PO's with different delivery dates and i am trying to create the delivery document in VL10G against those STO PO's , the system is creating two different delivery documents . But we need the system should create only one document against those two PO's which i have selected in VL10G. Please suggest . How can we achieve this .....can it happened from Configuration or we need to go for enhancement , if enhancement please suggest any User Exits or BADI.

 

Regards,

Suresh

How to revert back deleted Segment of BD87(t-code) ?

$
0
0

Hello all,

 

I deleted the whole contents segment of bd87 ,now I want to revert back the segment again that i deleted ...How to do that?

Smart form for Payment Advice

$
0
0

Hi Technical geeks,

 

I am right now doing an analysis on Payment advice Print Program. Other than Program RFFOEDI1 isn't there any way by which we can print the form for payment advice. Can't we directly print from F110 transaction.

 

I need to use Smart forms for printing my Payment Advice. I find only standard SAP Script available for this purpose. this is quite urgent.

 

 

Thanks in advance

Ramachandran

Function Module in Excel download in ALV

$
0
0

Doesanybody know which function module is used for Excel download in ALV grid/list display? Thanks

How to change Payment Advice driver program RFFOAU_T for smartform

$
0
0

Hi experts,

 

I have migrated the standard Script F110_IN_AVIS into Z Smartform and now working on driver program RFFOAU_T.


The includes in driver program:

RFFORI0M

RFFORI00

RFFORIA1

RFFORI06

RFFORI07

RFFORI99

 

Correct me if I'm wrong, the include RFFORI06 is being used to print Payment Advice?

How to create file in AL11

$
0
0

hello Folks,

 

I am new to ABAP development. Kindly excuse me if this question is already asked.

I have written the following code for creating file at AL11.

 

I have given file name as /usr/sap/trans/ecc/tmp/poonam.txt

I can see directory path till /usr/sap/trans/ecc/tmp 

 

However then also my open dataset statement is failing.

my doubt is do i need to create a blank file at this location before executing the program ?

if not  kindly assist me how to solve this issue.

 

 

REPORT YPM_AL11_1.

 

TYPES : BEGIN OF st_DEMO,

         EMP_NO(5) TYPE C,

         NAME(20) TYPE C,

         ADDR(30) TYPE C,

         END OF ST_DEMO.

 

DATA : WA_DEMO TYPE ST_DEMO,

        IT_DEMO TYPE TABLE OF ST_DEMO,

        L_FNAME TYPE STRING .

 

PARAMETERS: P_FNAME(128) TYPE C DEFAULT '/usr/sap/trans/ecc/tmp/poonam.txt' OBLIGATORY.

 

L_FNAME = P_FNAME.

 

WA_DEMO-emp_NO = '51117'.

WA_DEMO-NAME = 'Poonam'.

WA_DEMO-ADDR = 'Bangalore'.

APPEND WA_DEMO TO IT_DEMO.

 

WA_DEMO-EMP_NO = '11111'.

WA_DEMO-NAME = 'HARSH'.

WA_DEMO-ADDR = 'Mumbai'.

APPEND WA_DEMO TO IT_DEMO.

 

   OPEN DATASET L_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

   WRITE :5 'EMP NUM',16 'NAME',37 'ADDRESS' " Header of file to be created in specified location

   LOOP AT IT_DEMO INTO WA_DEMO.

     IF SY-SUBRC = 0.

       TRANSFER WA_DEMO TO L_FNAME.

       WRITE :/5 WA_DEMO-EMP_NO,16 WA_DEMO-NAME,37 WA_DEMO-ADDR.

     ENDIF.

   ENDLOOP.

 

 

   close dataset l_fname.

error in smartform output

$
0
0

Hi friends,

I am creating my first smartform. I did all the steps correctly including the driver program, but the entries under main table are coming empty like item, material no etc.I checked all the smartforms related blogs, but still the solution is not coming correct.  What is the error ? PFA.

Regards,

Saurav Lahiry


how to update rejection items in report??

$
0
0

I have developed a program for po supplier but when the items are rejected its is not updating. Kindly if any one knows give me the relevant answer.

 

Thanks and Regards

Asim

COPA_PROFITABILITY_SEGMENT

$
0
0

Hi All ,

 

We are trying to generate COPA document at the time of depreciation run for specific asset classes. We already have added Copa characteristics fields in asset master . We have created substitution rule in OKC9 in program SAPFGBES . Depreciation is run through AFAB. In SAPFGBES we are calling FM COPA_PROFITABILITY_SEGMENT which is working fine in test run as we enter the characterstics in window pop-up and continue. When we try to run depriciation through AFAB in background , depriciation does not run and gives u error. When we comment out FM COPA_PROFITABILITY_SEGMENT and run depriciation it works fine but there are no characterstics.

 

Can you please tell me how can i pass characterstic values to COPA_PROFITABILITY_SEGMENT without pop up as i think the issue is due to pop up occuring in background ??????

Enhance BDCDATA in FM IDOC_INPUT_ORDERS

$
0
0

Hi ,

 

I have enhanced the Additional Data Tab B in VA01 and are populating the custom fields through

IDOC type ORDERS05 .The Standard Function Module IDOC_INPUT_ORDERS  is enhanced for the BDC that is called behind.

the EXIT_SAPLVEDA_002 ,which is enhanced with the code that is found in the SDN blog posted earlier by Arun jawahar :



  STATICS: l_vbak_added TYPE xfeld,

           l_vbap_added TYPE xfeld.

 

  DATA: ls_vbap TYPE vbap.

 

  IF dlast_dynpro = '4001'.

    CHECK l_vbak_added IS INITIAL.

*Ok code for addition B Screen.

    ls_vbak = dxvbak.

    dxbdcdata-fnam = 'BDC_OKCODE'.

    dxbdcdata-fval = '=KZKU'.

    APPEND dxbdcdata.

    CLEAR: dxbdcdata.

*Additional data B screen

    dxbdcdata-program = 'SAPMV45A'.

    dxbdcdata-dynpro   = '4002'.

    dxbdcdata-dynbegin = 'X'.

    APPEND dxbdcdata.

    CLEAR: dxbdcdata.

*Populate data.

    dxbdcdata-fnam = "additonal data tab B field name

    dxbdcdata-fval =  "field value

    APPEND dxbdcdata.

    CLEAR: dxbdcdata.

 

    dxbdcdata-fnam = 'BDC_OKCODE'.

    dxbdcdata-fval = '/EBACK'.

    APPEND dxbdcdata.

    CLEAR: dxbdcdata.

    l_vbak_added  = 'X'.

  ENDIF.

 

But once coding is done in the exit , it is preventing the normal BDC flow that is being created by the standard function module

and the cursor after populating the custom fields in Additional data Tab B the cursor is blinking in the item level Material Number with no material number extracted from IDOC segment  .Could we retain the normal BDC standard code that is being created by the Function Module and then add or modify the BDCDATA with our code as shown above .

Along with the custom fields the e-mail address and Street3 in the pop up for the partner function needs to be populated .

Once we populate the partner field in the VA01 and press enter a pop up comes up ,where we need to populate the street3 and e-mail address .

 

 

Thanks in advance

Amit

To Update user status in sales order item with status number selected in radio button

$
0
0

Hi,

 

My requirement is to update the user status of a sales order item with a custom status profile and i am using FM 'status_update 'in user exit 'MV45AFZZ' during creation/change of a order via VA01/VA02. and its updating correctly . However i am facing issue in the default selection of radio button of status number. It is not happening. If i manually change the status profile via 'VA02' , it is selected correctly based on the configuration(table: TJ30) . Please suggest how to overcome this?.

Sap Smartform Using Template Two Pages

$
0
0

Hi friends ,

I want to  use template in the LOOP. İf I print a single page , I get the correct output but If I print  some lines of the table inside the loop another pages , its not correct. The data in the last 2 lines is getting wrong. I don't understand What the problem.  I have added some pictures. Thank you in advance for your help

 

Table : the data I want to print to the screen.

Correct : the screen its correct.

Wrong1 :The first page of the incorrect output

Wrong2 : The second page of the incorrect output

Update long text description using BAPI_CLASS_CREATE

$
0
0

Hi,

 

I created a class for class type "001" using BAPI_CLASS_CREATE. It works fine.   But have issues while updating the Long Text :


How to populate the long text and pass it as a parameter to the CLASSLONGTEXTS   Bapi ?


Here is my code trying to update multiple lines for the long text.


data: it_class_long_texts LIKE BAPI1003_LONGTEXT OCCURS 0 WITH HEADER LINE.


**Class Long Texts En

*Long text line 1

      it_class_long_texts-LANGU      = 'EN'.

      it_class_long_texts-LANGU_ISO  = 'EN'.

      it_class_long_texts-TEXT_DESCR = 'line 1 for long text'.

       it_class_long_texts-TEXT_LINE  = 1.

      APPEND it_bapi_class_long_texts.


*Long text line 2

      it_class_long_texts-LANGU      = 'EN'.

      it_class_long_texts-LANGU_ISO  = 'EN'.

      it_class_long_texts-TEXT_DESCR = 'line 2 for long text'.

      it_class_long_texts-TEXT_LINE  = 2.

      APPEND it_bapi_class_long_texts.


CALL FUNCTION 'BAPI_CLASS_CREATE'

     EXPORTING

       CLASSNUMNEW       = LV_CLASS_NAME    

       CLASSTYPENEW      = '001'                 

       CLASSBASICDATA    = lv_cls_bas_dat

       CLASSSTANDARD     = lv_cls_standard

     TABLES

       RETURN            =                     it_bapi_return

       CLASSDESCRIPTIONS = it_bapi_cls_desc

       CLASSLONGTEXTS    = it_class_long_texts.

 

Regards,

Vicky

prevent user from saving after throwing error message in exit ZXWOCU07( EXIT_SAPLCOIH_009)

$
0
0

hello all,

 

for a PM Order in transaction IW32 ,

 

i have written a condition in user exit  ZXWOCU07( EXIT_SAPLCOIH_009),

 

the condition is throw error message if actual quantity is not equal to zero

 

when user selects Complete(business) button in application toolbar,

 

however the issue is after throwing the error , if user clicks enter and select save , the order is getting saved

 

which should not happen  i.e  it should prevent saving the order after throwing error message,

 

how do i achieve this,

 

below is my code in the include,

 

 

data : wa_resb TYPE resb,        it_resb TYPE STANDARD TABLE OF resb.
 if  caufvd_imp-auart eq c_ordertype_pm80 and sy-tcode EQ 'IW32'.   if sy-ucomm eq 'ARCH' or sy-ucomm eq 'WTER'.
 select * from resb INTO TABLE it_resb WHERE aufnr eq caufvd_imp-aufnr                                        and enmng GT 0.   if it_resb[] is   NOT INITIAL.     MESSAGE 'The actual Quantities are not zero for this order' type 'E'.   endif.
 endif.
 endif.

 

thanks in advance....


Credit memo & movement type 501/502

$
0
0

Hello experts,

 

I have a question.

 

Can there be a link between creating a credit memo w.r.t to an order and movement type 501/502..?

 

I created a credit memo with reference to an order. Is it possible that movement type 501 must have been posted by some process..??  I mean can there be any link..??

 

Thanks

how to set parmeter rdisp/max_wprun_time dynamically in abap

$
0
0

Can we set this parmeter rdisp/max_wprun_time dynamically in abap for a particular program only? not all on instance profile level.

 

Mandeep

Save layout is not working in custom OO ALV on custom toolbar save button for grid alv

$
0
0

Hi,

I have created a custom Z report using custom OO ALV Grid display. Added two custom button in toolbar. While saving the layout using layout button. It is not showing the default save layout.when I passed i_variant-variant = 'X'  then it is allowing to save the layout,but default layout is not showing up. I have also saved the default setting. when I removed the i_variant-variant = 'X', then default save layout is showing up. Kindly suggest some solutions. In I variant I am passing the below field value.

 

Initially when I was not passing the i_variant = 'X', It was not saving the layout. Below is the program logic.

 

i_variant-report   = sy-repid.

  i_variant-username  = sy-uname.
i_variant-variant   = 'X'.

 

i_save = 'A' or 'U' or  'X'.

 

CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

IS_VARIANT = i_VARIANT     

I_SAVE = 'A'

I_DEFAULT = 'X'

IT_TOOLBAR_EXCLUDING          = LT_EXCLUDE

CHANGING

IT_OUTTAB = GT_LST[]

IT_FIELDCATALOG = GT_FIELDCATALOG


Using WS_DELIVERY_UPDATE_2 to Post a Partial Goods Receipt on a Inbound Delivery

$
0
0

Hi Folks,

 

I am trying to use WS_DELIVERY_UPDATE_2 to post a Partial PGR on an Inbound Delivery. I have seen a lot of posts and forums about this topic but none clearly say how they achieved it. I have also searched SAP Portal and debuged the code all to no avail.

 

In this example 1800003517 has one line of 10 bags, I have packed 5 bags and want to do the goods receipt for just those 5 bags.

 

Here is how I am calling the code, if someone has gotten this to work I would be more than greatful.

   DATA: ls_vbkok  LIKE  vbkok,
      lt_vbpok_tab TYPETABLEOF vbpok,
      ls_vbpok_tab TYPE vbpok,
      gs_lips TYPE lips.

ls_vbkok-vbeln_vl = '1800003517'.
ls_vbkok-wabuc = 'X'.
ls_vbkok-spe_auto_gr = 'X'.
ls_vbkok-kzebu = 'X'.

 

  ls_vbpok_tab-vbeln_vl = gs_lips-vbeln.

ls_vbpok_tab-posnr_vl = gs_lips-posnr.

ls_vbpok_tab-matnr = gs_lips-matnr.

ls_vbpok_tab-charg = gs_lips-charg.

ls_vbpok_tab-lichn = gs_lips-lichn.

ls_vbpok_tab-vfdat = gs_lips-vfdat.

Ls_vbpok_tab-lgmng = ls_vbpok_tab-lfimg = gs_lips-lfimg.
ls_vbpok_tab-umvkz = gs_lips-umvkz.
ls_vbpok_tab-umvkn = gs_lips-umvkn.
APPEND ls_vbpok_tab TO lt_vbpok_tab.

 

   CALL FUNCTION'WS_DELIVERY_UPDATE_2'
  EXPORTING
    vbkok_wa                           = ls_vbkok
   synchron                           = 'X'
   commit                             = 'X'
    delivery                           = '1800003517'
   if_error_messages_send             = ''
   if_no_remote_chg_1                 = '1'
TABLES
   VBPOK_TAB                          = lt_vbpok_tab.

Note 1703851 - New Element

$
0
0

Hi,

 

In relation to the note 1703851, I can't create the new element P_LIMIT. I've tried to execute first the note, but the method it's not update properly.

 

How I can add it?

 

Thanks and regards.

 

Antonio

Viewing all 8332 articles
Browse latest View live


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