Visualizzazione post con etichetta SAP. Mostra tutti i post
Visualizzazione post con etichetta SAP. Mostra tutti i post

2 lug 2013

perhaps customers pay for numbers of lines of code

...
          FG_OK 'X'.
          IF FG_OK ''.
            EXIT.
          ELSE.
....



27 mag 2013

is it useful?

 
*---------------------------------------------------------------------*
*      Form  CHECK_DATA
*---------------------------------------------------------------------*
FORM check_data.

  SELECT FROM mbew. EXIT. ENDSELECT.
* controllo che la data inserita sia l'ultimo giorno del mese in corso
  p1_data p_data + 1.
  IF p_data+4(2p1_data+4(2).
    MESSAGE w006 WITH text-m01
                 text-m02.
    IF c_tvarv EQ 'X'.
      MESSAGE e006 WITH text-m03
                        text-m04.
    ENDIF.
  ENDIF.


ENDFORM.                               " CHECK_DATA
 
 

5 mar 2013

Changes on Infoprovider

When some changes are about the infoprovider in production environment, the queries sometime don't work correctly.
Should be some runtime errors with message like:
- InfoProvider &V1 was changed and activated during query runtime.

In order to update the cache for inforpovider you should run Abap report

RSR_MULTIPROV_CHECK

Put in the parameter the name of infoprivider mentioned in the error message.

that's all.

19 lug 2012

jokes, unfortunately true: (

We transport the changes in production to test if it runs correctly (italian customer)

14 mag 2012

SAP BW message: translation error

Process Cancellarzioene di richieste dal PSA, variant Canc. PSA - Vendite has status Terminato con errori (instance PSAD_66313UORU2Q


Message no. RSPC009

18 feb 2009

the worst ABAP code ever seen

I found this custom code on SAP ECC system...
Read the same internal table more times with the same selection!

REFRESH i_export.
LOOP AT i_temp INTO wa_temp.
l_ekko-ibebeln = wa_temp-ibebeln.
MOVE wa_temp-ibebeln TO wa_export-ibebeln.
l_ekpo-ibebelp = wa_temp-ibebelp.
MOVE wa_temp-ibebelp TO wa_export-ibebelp.

READ TABLE i_ekko INTO wa_ekko WITH KEY zzfgp_ibebeln = wa_temp-ibebeln.
IF sy-subrc EQ 0.
l_ekko-iblifnr = wa_ekko-zzfgp_iblifnr.
MOVE wa_ekko-zzfgp_iblifnr TO wa_export-iblifnr.
ENDIF.

READ TABLE i_lfa1 INTO wa_lfa1 INDEX 1.
IF sy-subrc EQ 0.
l_lfa1-name1 = wa_lfa1-name1.
MOVE wa_lfa1-name1 TO wa_export-name1.
ENDIF.


READ TABLE i_ekko INTO wa_ekko WITH KEY zzfgp_ibebeln = wa_temp-ibebeln.
IF sy-subrc EQ 0.
l_ekko-ibwaers = wa_ekko-zzfgp_ibwaers.
MOVE wa_ekko-zzfgp_ibwaers TO wa_export-ibwaers.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln .
IF sy-subrc EQ 0.
l_ekpo-ibmatkl = wa_ekpo-zzfgp_ibmatkl.
MOVE wa_ekpo-zzfgp_ibmatkl TO wa_export-ibmatkl.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln.
IF sy-subrc EQ 0.
l_ekpo-ibparnop = wa_ekpo-zzfgp_ibparnop.
MOVE wa_ekpo-zzfgp_ibparnop TO wa_export-ibparnop.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln .
IF sy-subrc EQ 0.
l_ekpo-ibparnopt = wa_ekpo-zzfgp_ibparnopt.
MOVE wa_ekpo-zzfgp_ibparnopt TO wa_export-ibparnopt.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln .
IF sy-subrc EQ 0.
IF oda5 EQ ''.
l_ekpo-ibnetpr = wa_ekpo-zzfgp_ibnetpr.
MOVE wa_ekpo-zzfgp_ibnetpr TO wa_export-ibnetpr.
* Il prezzo recepito è inizialmente uguale al prezzo base.
IF NOT l_check = 'X'.
l_ekpo-ibnetpr2 = l_ekpo-ibnetpr.
ENDIF.
MOVE wa_ekpo-zzfgp_ibnetpr TO wa_export-ibnetpr2.
ELSE.
l_ekpo-ibnetpr = v_netpr_oda5_tot.
IF NOT l_check = 'X'.
l_ekpo-ibnetpr2 = l_ekpo-ibnetpr.
ENDIF.
ENDIF.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln.
IF sy-subrc EQ 0.
l_ekpo-ibpeinh = wa_ekpo-zzfgp_ibpeinh.
MOVE wa_ekpo-zzfgp_ibpeinh TO wa_export-ibpeinh.
ENDIF.

READ TABLE i_ekpo INTO wa_ekpo WITH KEY zzfgp_ibebeln = wa_temp-ibebeln.
IF sy-subrc EQ 0.
l_ekpo-ibmeins = wa_ekpo-zzfgp_ibmeins.
MOVE wa_ekpo-zzfgp_ibmeins TO wa_export-ibmeins.
ENDIF.
APPEND wa_export TO i_export.
CLEAR wa_ekpo.
CLEAR wa_ekko.
CLEAR wa_temp.
ENDLOOP.

6 dic 2008

progetto SAP UpGrade R/3 e BI

Stefano sistemista SAP con gli strumenti da lavoro... pane salame mortadella (la bombetta!)

Alberto, il PM che segue assiduamente il progetto ... i video di YouTube aiuteranno?
Il Team al completo durante il pomeriggio/sera

Eccomi ... la mortadella aiuta BW :)
ecco invece un ricordo del precedente progetto... anche qui il salame è stato un elemento fondamentale!!!