Why is my BDC_CURSOR command not working to position the cursor?

Why is my BDC_CURSOR command not working to position the cursor?  Here are the details regarding my issue.
I am writing a BDC to mass delete routing material assignments using transaction CA02.  I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen.  But once here, I cannot get the BDC_CURSOR command to take me into the list.  Here are the commands I am using.  Please let me know what I may try differently.
CA02 Material Assignment - Set position  <-- this resets list of materials to correct position
  PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENT1'.
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
CA02 Material Assignment - Delete
  PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'  'MAPL-MATNR(01)'.    <-- this is not working to set the cursor into the list
  PERFORM bdc_field       USING 'BDC_OKCODE'  '=LOE'.             " trash can
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
CA02 Material Assignment - Green Check OK
  PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'   '=BACK'.            " check mark
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.

Thank you for your reply.
I had used SM35 to record.  However, I was not aware of the "create program" feature.  I had commented out a section from my previous post which I have now added back (latest code below).  But it still did not resolve the issue.
When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list.  I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen.  I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves.  But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
Here is code used.  It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
CA02 Material Assignment - Set position
this code functions to position the desired material to first in screen list
  PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=ENT1'.
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                 c_position.
CA02 Material Assignment - Delete
  PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR' 
                                'MAPL-MATNR(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=LOE'.             " trash can
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                 c_position.
Acknowledge Pop-Up Screen
  PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=YES'.
CA02 Material Assignment - Green Check OK
  PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=BACK'.            " check mark
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                 c_position.

Similar Messages

  • Why does my google toolbar not work properly with the new updates. It was such a convenience to use the old toolbar to go to places I had visited before. Now I cannot get those old addresses with anything but Firefox 3.62 or whatever.

    Why does Google Toolbar not work with the newer versions of Firefox.

    Google have stopped supporting Google Toolbar on the latest versions of Firefox. Apparently one of the reasons for this decision is that modern browsers already tend to support many of the functions that google toolbar provides.
    Firefox does allow you to specifically bookmark sites you have chosen, and also automatically remembers many of the sites you visit.
    * see [[how do i use bookmarks]]

  • Why is tail unix command not working properly on a mounted drive?

    I mounted a remote drive on my mac, smb://some-windows-host/some-folder.
    I thought I'd be able to do a 'tail -f' on a file on this mounted drive, but it seems the changes aren't coming through.  What's wrong?
    Do I have to enable someting?
    Thank you so much.
    JS.

    Kind of late, but for anyone that sees this in the future.
    It's possible that the process that is modifying your file is creating a new file with the same filename.  The 'tail -f' command reads the file based on it's 'file descriptor'.  When the file gets rewritten by the other process, then the file descriptor changes.
    So to track a file by it's name instead of it's descriptor, you should use a capital 'F', like 'tail -F'.

  • I'm using iPhone 4S, why my weekdays alarm still not working?

    I'm using iPhone 4S, why my weekdays alarm still not working?
    By the way, single alarm is working.

    wifi appears to be OFF and ON on my device !.
    but when i used to turn it ON , it is not showing anything.
    just showing as 'searching for devices'.

  • Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Here's where you need to change the settings: System Preferences > Keyboard > Keyboard Shortcuts:

  • Why is the scroll function not working after accessing the voice feature in settings?

    Why is the scroll function not working after accessing the voice feature in settings?

    For some prerecorded audio files the Transpose slider will not work reliably. I found no clear pattern, when it does and when not.
    If all fails, create a loop from the audio file. Select the region in the track and use the command "File: Add region to Loop library".
    Set the current key and tempo, name the loop, and save the loop.
    Now add it from the loop browser to a new track and delete your old track. The search field in the Loop browser will help you to find the loop quickly.
    You will be able to transpose the sample as described above, like a regular loop.
    For example - a audio file turned into a loop and transposed:

  • Velocity override command not working

    I am using ni pci-7334 stepper motion control board.
    flex_set_velocity_override command is not working in VB6. the selected axis gets killed?
    Please reply.
    Regards

    Hey Nandkumar,
    The velocity of a contoured move is not determined by the velocity parameter but by the distance between the position points in the contour array. Thus, in this case, the velocity parameter has no effect and flex_load_velocity_override() doesn't change the velocity of contoured moves. The velocity override command does work with straight line moves, arc moves, and other moves, just not with contouring moves, because the contour moves set their velocities in a different way. Please refer to the following discussion forum link Using velocity override in absolute contouring mode for more information on why this function doesn't work with contouring moves. Also, in this discussion forum there is somewhat of a work around.
    I hope this helps. Please let me know if you have any further questions on this. Thanks and have a great day.
    Regards,
    DJ
    Applications Engineer
    National Instruments

  • Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Sighhhh, wasted so much time yesterday and today going around Sony centre and then carphone warehouse. They told me to come back after Easter.
    I came home, banged the phone against the wall and it worked.
    Turned out that mic was working on loud speaker and when using headphones so I thought that the secondary mic is working and the main one (placed with the speakers) isn't. So I banged that part against the wall slightly (in plastic case to prevent scratches) then put the phone underwater, waited for it to dry and now it's working. Idk how well and if it's of perfect quality again but people can hear me well.

  • Why does my card reader not work on my iPad since upgrade?

    I use my iPad mini to download photos from my camera when I'm on the road. In the summer I bought the "3 in 1 Card Reader Adapter Cable Camera Connection Kit, 3 Port Card Reader for iPad 4 and iPad Mini by Eurekka" and it worked wonderfully. I was able to download photos (jpg and RAW) directly to the iPad and off the camera, and once home it was a flawless upload to my iMac.
    However, once I upgraded to iOS 7 last week I get a message saying the device is not supported. What gives? Will this be fixed or will Apple products only accept Apple accessories from now on?

    No but I was just trying to find a way in to your help desk. I didn't find 
    your web page very helpful in this regard.
    Douglas Whiteley
    In a message dated 10/05/2012 20:43:50 GMT Daylight Time, [email protected] 
    writes:
    Re:  why does my adobe reader not work
    created by Claudio  González
    (http://forums.adobe.com/people/Claudio+González)  in Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/4395059#4395059)

  • Why is my apple id not working

    I wonder why my apple id is not working please help me out FAST or ASAP

    How about some more information. Any error messages? What happens when you try to make a purchase or download an app?

  • Why magic jack apps is not working on my iphone 5?

    why magic jack apps is not working on my iphone 5?

    I have the same problem.  I contacted magic jack, and after more than an hour of waiting, here is the final part of our discussion, before I had to leave to go to work:
    Me:  the magic jack app has worked fine for months unregistered. Never had a problem before. I must go to work now. I will leave the chat box open. if you could, send me a list of possible fixes and I will try to apply them when I get back. Please write in detail. Is there a way that I can get in touch and get a senior rep on right away to handle my problem when I get back, or do I hae to wait again when I call next time?
    Kara: I am one of the senior rep here and in fact one of the supervisors . Here is what you are going to do:
    Kara: Once you register the magicjack app into your Iphone, we can refresh your account connections here manually however if you dont register it, no options in our end to work for your connections since the MJ app is not used to be registered. No worries, we can remove your account if you dont want the service anymore for free.
    +++++++++++++++++
    So, it would seem that either there is a problem that they don't know about, or else magic jack is trying to force everyone to not choose option 3 on the opening screen, the one which allows you to continue to make a call without registering.
    Has anyone received a solution to this problem from magic jack support?

  • Why is my Apple ID not working in iTunes and App Store on my iPhone? Nothing happens if I click buy for apps or music. If I then go to settings/iTunes App Store my Apple ID is not there. If I then enter ID and password it does not save or link to account?

    Why is my Apple ID not working in iTunes or App Store on my iPhone? When I try to buy apps or music it asks for Apple ID so I enter my info and nothing happens. When I go to settings/iTunes App Store my Apple ID is not there. When I enter my ID and password it does not save or link to account. I do not have this problem with iPad ID is stored and can be used in App Store and iTunes. I have just upgraded to 5c and it's still a problem.

    LeesaHeeley wrote:
    When I go to settings/iTunes App Store my Apple ID is not there. When I enter my ID and password it does not save or link to account.
    When fist setting up your new iphone you will be asked to log in with an apple id and password. If this did not happen you can then do as you suggested going to settings to itunes and app store and add your apple id login. This apple id login must have already been created for the iphone to accept it. If this apple id is already created but is not being accepted by your iphone you then should shut down your iphone and restart the device.
    Good luck.

  • Why does drag and drop not work?

    Why does drag and drop not work?

    Do you mean that when you move files on the Desktop, they don't stay where you put them ?.
    If so - use Finder - View menu - Show View options & choose 'Arrange by' : none
    If not - please describe exactly what the problem is.

  • Why does my free trial not work?

    Why does my free trial not work?  This is intentially misleading.

    You need to provide a better description of what isn't working, system info and all that. This could be all sorts of technical issues or your trial could simply have bombed itself. In the latter case there is nothing you can do:
    Adobe trial software expired early
    Anything else like iunstall issues can in most cases be sorted out...
    Mylenium

  • Why Model MD297AE/A is not working with Fcae time and Model MD293C/A is working in UAE with Facetime

    Why Model MD297AE/A is not working with Fcae time and Model MD293C/A is working in UAE with Facetime.
    In fact I have given my iPhone to my daughter to use in Canada (purchased from UAE ISP) she is unable to use Face Time within Canada. ?
    Is it possibile to activate FaceTime in Canada if iPhone is purchase from UAE.
    Purchase under Points by ISP (No contract)
    Thanks
    Abbas

    Hello sir
           I agree what u replied for the above question, but because of the UAE request, you cannot deactivate the facetime completely from this iphone, they should stop working through SIM network. The iphone is a universal mobile which can travel all over the world, many tourist people will suffer due to that, pls re-consider in taking back and try to make it upgrading this software.
    Thanks
    SATHISH KUMAR

Maybe you are looking for