Home > Default > Reset flag

Reset flag

November 30Hits:0
Advertisement
Hi Experts I need an advice for the below case.
A flag which is set in the EBAN must be reseted. This
is the programm. It doesn't do that. What can be reason for that.
This is the Function Module Call from SAP SRM System with destination command.
CALL FUNCTION 'ZBM_RESET_FLAG'
DESTINATION 'RV3CLNT888'
  EXPORTING
    BANFNUMBER        = ls_ITEM-EXT_DEMID
EXCEPTIONS
   NOT_RESETED       = 1
   OTHERS            = 2.
The Function Module is in the the backendsystem (R/3).
FUNCTION ZBM_RESET_FLAG.
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(BANFNUMBER) TYPE  BANFN
*"  EXCEPTIONS
*"      NOT_RESETED
  data lt_eban type table of eban.
  data ls_eban type eban.
  data:  l_r_banfn type table of ZBANFEN.
SELECT * FROM eban into table lt_eban where BANFN EQ BANFNUMBER AND LOCKFLAG EQ 'X'.
  IF SY-SUBRC IS INITIAL.
    LOOP AT lt_eban INTO ls_eban .
      clear: ls_eban-LOCKFLAG .
      modify eban from ls_eban.
    ENDLOOP.
    ELSE.
    raise NOT_RESETED.
  ENDIF.
ENDFUNCTION.

Answers

Dear Colleques,
the problem is still existing.
I have inserted a infinite loop and have called t-code sm50 and debugged this coding.
There is no sy-subrc <> 0 and any error message.
Is it not possible to update a dictionary table via remote call like in my case ?
What is worng here ?
Regards
ertas
data lzahl1 type i .
data lzahl2 type i .
lzahl1 = 0.
lzahl2 = 2.
while lzahl1 < lzahl2.
clear sy-subrc.
endwhile.
  data lt_eban type table of eban.
  data ls_eban type eban.
  data:  l_r_banfn type table of ZBANFEN.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT  = BANFNUMBER
    IMPORTING
      OUTPUT = BANFNUMBER.
  SELECT * FROM eban into table lt_eban where BANFN EQ BANFNUMBER AND LOCKFLAG EQ 'X'.
  IF SY-SUBRC IS INITIAL.
    LOOP AT lt_eban INTO ls_eban .
      UPDATe eban set lockflag = ' ' where banfn = ls_eban-BANFN.
     commit work and wait.
    ENDLOOP.
  ELSE.
    raise NOT_RESETED.
  ENDIF.

Read other 21 answers

Tags:

Related Articles

  • Reset flagNovember 30

    Hi Experts I need an advice for the below case. A flag which is set in the EBAN must be reseted. This is the programm. It doesn't do that. What can be reason for that. This is the Function Module Call from SAP SRM System with destination command. CAL

  • Reset Flag MARC-XCHARNovember 30

    Hi All, For few materials in the system MARC-XCHAR (internal Batch Management Indicator) is set where as MARC-XCHPF (Batch Management requriement) is BLANK. I am unable to trace the reason, Can you let me know importance of the same and request you l

  • JCO - Connection reset by peer - after 5 minute timeoutOctober 11

    Hello We're using SUP with the JCO Connector. This has been working flawlessly since project inception. Now, after switching to a new data center (Windows Server 2008 Server Enterprise Edition, SP2 on VMWare) we're observing a mysterious behavior wit

  • Parameter field still editable after setting flag 'PropFlags​_NotEditab​le'?November 30

    Hi, Parameter field still editable after setting flag 'PropFlags_NotEditable'? I have defined a step type with a string parameter. (MyParameter). This parameter field has to contain custom generated data, stuffed from a code module. I want to have 'M

  • Resetting JProgressBarNovember 30

    The JProgressBar works great using a separate thread for the process and a Runnable thread for progress (calling SwingUtilities.invokeLater()), but I cannot get the darn thing to reset back to 0 for another run. A simple call to progressBar.setValue(

  • Error :  Business partner has status "Flagged for Archiving"November 30

    Hi All, I have error in order: Business partner (Sold to Party) .has status "Flagged for Archiving" I removed the Click "Archiving Flag" from BP and I changed the order. But still error is not going. Can somebody suggest what to do for

  • Error Reset-O Reset-INovember 30

    Hi all, i have a strange error on my ASA5515-X and I can not understand what can be. I natted server-mail with services https: object network Owa_10.0.1.4 host 10.0.1.4 object network Owa_10.0.1.4     nat (INSIDE,OUTSIDE) static interface service tcp

  • Error while updating table before branching to a reportOctober 11

    Hi, I have an apex form screen where on click of a button, i need to change a few flags on the screen and then display a bi publisher report. when the user clicks the PRINT Button a javascript function is called, which will set the flags and submits

  • How to store numbers in a stack....October 11

    hello guys...i ve got the following assignment: Write a Java program that reads and evaluates a fully parenthesised arithmetic expression. The purpose of this program is to illustrate a fundamental use of stacks. Implement the stack using Linked List

  • Problem: Why does this only work for powers of 2?October 11

    I wrote this program to create a golf league schedule for, ideally, eight players. However I want it to be flexible enough to permit for other denominations, such as 10 or 12. When I run the program it works perfectly for any number that is a power o

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 1.457 s.