OBYC - Creating new Z procedures

Friends,
  I want to create a new procedure ZXX for a discount in a separate GL Account. How to create a new procedure in OBYC and assign to condition types. Any input would be grateful
Regards
SAPMA

hi
go to spro >mm>pur>condition>define price determination process>define transaction/event key
define new keys here then in OByc u can give acct for it
also to activete it go to pricing procedure and against the condition in acct key field maintain that event key .
so sytem will pick that acct key for the condiiona  and gl acct attach to key
regards
kunal
award if helpful

Similar Messages

  • MySql WorkBench crashes when saving, creating new stored procedure.

    Process:         MySQLWorkbench [5284]
    Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
    Identifier:      com.oracle.mysql.workbench
    Version:         6.2.3 (1)
    Code Type:       X86 (Native)
    Parent Process:  launchd [270]
    Responsible:     MySQLWorkbench [5284]
    User ID:         501
    Date/Time:       2014-10-08 19:38:53.715 +0530
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  5E7DB8A9-29C7-B596-C2A8-0C0A1784765D
    Sleep/Wake UUID: F9E2CCB6-389C-448C-B322-1ECED6B8EEA5
    Crashed Thread:  19  Dispatch queue: com.apple.root.default-priority
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000fefff000
    VM Regions Near 0xfefff000:
        CG shared images       00000000c871f000-00000000c8727000 [   32K] r--/r-- SM=SHM 
    --> VM_ALLOCATE            00000000fefff000-00000000ff000000 [    4K] rw-/rwx SM=COW 
        Submap                 00000000ffff0000-00000000ffff1000 [    4K] r--/r-- SM=PRV  process-only VM submap
    Application Specific Information:
    Performing @selector(perform:) from sender MFToolBarActionItemImpl 0x7e72dcb0
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed8a _pthread_cond_wait + 837
    2   libsystem_pthread.dylib       0x956ef042 pthread_cond_timedwait_relative_np + 47
    3   com.apple.FinderKit           0x9a9329ed TConditionVariable::WaitWithTimeout(TMutex&, unsigned long long, bool&) + 107
    4   com.apple.FinderKit           0x9a92e105 TIconFetcher::Fetch() + 211
    5   com.apple.FinderKit           0x9a92df2a UIconFetcher::Prefetch(TFENodeVector const&, TFENode const&, unsigned long, unsigned long, bool) + 117
    6   com.apple.FinderKit           0x9a92deb0 UIconFetcher::PrefetchIcons(TFENodeVector const&, unsigned long) + 56
    7   com.apple.FinderKit           0x9aa4459f -[FILocationPopUp setTargetNode:] + 161
    8   com.apple.FinderKit           0x9aa10b30 -[FIFinderViewGutsController setTargetNode:withViewStyle:] + 710
    9   com.apple.FinderKit           0x9aa106d8 -[FIFinderViewGutsController setTargetNode:] + 64
    10  com.apple.FinderKit           0x9aa11d3d -[FIFinderViewGutsController deferredRetargetAndReloadForNode:] + 188
    11  com.apple.FinderKit           0x9aa12247 -[FIFinderViewGutsController urlResolutionCompleted:] + 212
    12  com.apple.Foundation           0x95b5e9f2 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 49
    13  com.apple.CoreFoundation       0x9729b5a4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
    14  com.apple.CoreFoundation       0x9717d04b _CFXNotificationPost + 3435
    15  com.apple.Foundation           0x95b4d4df -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
    16  com.apple.Foundation           0x95b6aa9e -[NSNotificationCenter postNotificationName:object:] + 55
    17  com.apple.FinderKit           0x9aa0cdb2 -[FI_FinderURLResolver resolutionCompleted:] + 193
    18  libobjc.A.dylib               0x998cb2af -[NSObject performSelector:withObject:] + 70
    19  com.apple.Foundation           0x95bb3772 __NSThreadPerformPerform + 318
    20  com.apple.CoreFoundation       0x971f2b5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    21  com.apple.CoreFoundation       0x971e395b __CFRunLoopDoSources0 + 235
    22  com.apple.CoreFoundation       0x971e305e __CFRunLoopRun + 1022
    23  com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    24  com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    25  com.apple.HIToolbox           0x9397ab5d RunCurrentEventLoopInMode + 259
    26  com.apple.HIToolbox           0x9397a777 ReceiveNextEventCommon + 163
    27  com.apple.HIToolbox           0x9397a6bd _BlockUntilNextEventMatchingListInModeWithFilter + 92
    28  com.apple.AppKit               0x981d9349 _DPSNextEvent + 1602
    29  com.apple.AppKit               0x981d8870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
    30  com.apple.AppKit               0x98556edc -[NSApplication _realDoModalLoop:peek:] + 828
    31  com.apple.AppKit               0x98556b8d -[NSApplication _doModalLoop:peek:] + 209
    32  com.apple.AppKit               0x98555556 -[NSApplication runModalForWindow:] + 235
    33  com.apple.AppKit               0x98888db7 -[NSSavePanel runModal] + 403
    34  libmforms.dylib               0x01d52b49 filechooser_run_modal(mforms::FileChooser*) + 148
    35  libmforms.dylib               0x01d21e7d mforms::FileChooser::run_modal() + 27
    36  libwbpublic.be.dylib           0x007bac76 save_file(MySQLEditor*) + 56
    37  libwbpublic.be.dylib           0x007c6163 boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, void (*)(MySQLEditor*), boost::_bi::list1<boost::_bi::value<MySQLEditor*> > >, void, mforms::ToolBarItem*>::invoke(boost::detail::function::function_buffer&, mforms::ToolBarItem*) + 17
    38  libmforms.dylib               0x01d942e0 boost::function1<void, mforms::ToolBarItem*>::operator()(mforms::ToolBarItem*) const + 36
    39  libmforms.dylib               0x01d9428d boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker::m_invoke(boost::shared_ptr<boost::signal s2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > const&, boost::signals2::detail::void_type const*) const + 43
    40  libmforms.dylib               0x01d941a5 boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal1_ impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >::dereference() const + 57
    41  libmforms.dylib               0x01d9412a void boost::signals2::optional_last_value<void>::operator()<boost::signals2::detail: :slot_call_iterator_t<boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >(boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal 1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >, boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal1_ impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >) const + 30
    42  libmforms.dylib               0x01d928d8 boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::operator()(mforms::ToolBarItem*) + 386
    43  libmforms.dylib               0x01d9242b boost::signals2::signal1<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::operator()(mforms::ToolBarItem*) + 37
    44  libmforms.dylib               0x01d9203c mforms::ToolBarItem::callback() + 42
    45  libmforms.dylib               0x01d95499 -[MFToolBarActionItemImpl perform:] + 28
    46  libobjc.A.dylib               0x998cb2af -[NSObject performSelector:withObject:] + 70
    47  com.apple.AppKit               0x984058a5 -[NSApplication sendAction:to:from:] + 438
    48  com.apple.AppKit               0x984056ad -[NSControl sendAction:to:] + 102
    49  com.apple.AppKit               0x98454c7b -[NSCell _sendActionFrom:] + 159
    50  com.apple.AppKit               0x9846ff2a -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2465
    51  com.apple.AppKit               0x9846f161 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 513
    52  com.apple.AppKit               0x9846e785 -[NSControl mouseDown:] + 690
    53  com.apple.AppKit               0x983eaa9d -[NSWindow sendEvent:] + 11953
    54  com.apple.AppKit               0x9838691d -[NSApplication sendEvent:] + 4034
    55  com.apple.AppKit               0x981cb1bc -[NSApplication run] + 823
    56  com.apple.AppKit               0x981b3ff8 NSApplicationMain + 1165
    57  com.oracle.mysql.workbench     0x00077475 start + 53
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib         0x97b20992 kevent64 + 10
    1   libdispatch.dylib             0x9189f899 _dispatch_mgr_invoke + 238
    2   libdispatch.dylib             0x9189f532 _dispatch_mgr_thread + 52
    Thread 2:: Dispatch queue: com.apple.root.default-priority
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.Foundation           0x95bb95b9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
    7   com.apple.AppKit               0x9849da10 -[NSAnimation(NSInternal) _runBlocking] + 463
    8   com.apple.AppKit               0x9849d827 -[NSAnimation(NSInternal) _animationThread] + 79
    9   com.apple.AppKit               0x9849d7bc __42-[NSAnimation(NSInternal) _runInNewThread]_block_invoke + 36
    10  libdispatch.dylib             0x918a076b _dispatch_call_block_and_release + 15
    11  libdispatch.dylib             0x9189d386 _dispatch_client_callout + 50
    12  libdispatch.dylib             0x9189f443 _dispatch_root_queue_drain + 257
    13  libdispatch.dylib             0x918a070e _dispatch_worker_thread2 + 39
    14  libsystem_pthread.dylib       0x956eddab _pthread_wqthread + 336
    15  libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 3:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 4:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 5:
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.AppKit               0x98382b88 _NSEventThread + 283
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 6:: timer
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libglib-2.0.0.dylib           0x001846a7 g_usleep + 75
    3   libwbpublic.be.dylib           0x007d18fb bec::TimerActionThread::main_loop() + 77
    4   libwbpublic.be.dylib           0x007d1803 bec::TimerActionThread::start(void*) + 75
    5   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 7:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 8:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.Foundation           0x95bb7355 +[NSURLConnection(Loader) _resourceLoadLoop:] + 381
    7   com.apple.Foundation           0x95bb71ce -[NSThread main] + 45
    8   com.apple.Foundation           0x95bb7126 __NSThread__main__ + 1426
    9   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    10  libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    11  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 9:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x95247ae4 JSC::BlockAllocator::blockFreeingThreadMain() + 276
    4   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    5   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 10:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 11:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 12:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 13:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 14:
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libglib-2.0.0.dylib           0x001846a7 g_usleep + 75
    3   libwbbase.dylib               0x003f365b ThreadedTimer::main_loop() + 55
    4   libwbbase.dylib               0x003f3427 ThreadedTimer::start(void*) + 17
    5   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 15:: CVDisplayLink
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.framework.IOKit     0x9112070c io_connect_method + 424
    3   com.apple.framework.IOKit     0x910ba44f IOConnectCallMethod + 546
    4   com.apple.framework.IOKit     0x910ba70b IOConnectCallStructMethod + 84
    5   com.apple.IOAccelerator       0x99a5b640 IOAccelContextSubmitDataBuffers + 232
    6   libGPUSupportMercury.dylib     0x997e139b gpusSubmitDataBuffers + 133
    7   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40349005 IntelCommandBuffer::getNew(GLDContextRec*) + 43
    8   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40345386 GenContext::prepareCommandBuffer() + 32
    9   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40348e69 intelSubmitCommands + 216
    10  com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x4034a241 gldPresentFramebufferData + 152
    11  GLEngine                       0x9b720590 glSwap_Exec + 96
    12  com.apple.opengl               0x97d843fb CGLFlushDrawable + 67
    13  com.apple.QuartzCore           0x91162ae4 view_draw(_CAView*, double, CVTimeStamp const*, bool) + 4610
    14  com.apple.QuartzCore           0x911618b8 view_display_link(double, CVTimeStamp const*, void*) + 148
    15  com.apple.QuartzCore           0x9116174b link_callback + 278
    16  com.apple.CoreVideo           0x960d0506 CVDisplayLink::performIO(CVTimeStamp*) + 288
    17  com.apple.CoreVideo           0x960cf4ff CVDisplayLink::runIOThread() + 871
    18  com.apple.CoreVideo           0x960cf180 startIOThread(void*) + 159
    19  libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    20  libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    21  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 16:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 17:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 18:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 19 Crashed:: Dispatch queue: com.apple.root.default-priority
    0   ???                           0xfefff000 0 + 4278185984
    1   com.apple.desktopservices     0x9813e2cc CopyIconRefForSizes(__CFURL const*, unsigned long, OpaqueIconRef*&) + 41
    2   com.apple.desktopservices     0x98136eb7 TFSInfo::CopyIconRef(unsigned long, OpaqueIconRef*&, bool&) const + 583
    3   com.apple.desktopservices     0x981347ba TFSInfo::GetIconRef(TPropertyReference&, TCountedPtr<TFSVolumeInfo> const&, unsigned long, bool&) const + 40
    4   com.apple.desktopservices     0x981356e3 TFSInfo::GetProperty(unsigned long, TPropertyReference&, TCountedPtr<TFSVolumeInfo> const&, unsigned long, bool&) const + 97
    5   com.apple.desktopservices     0x980bbbfe TNode::GetProperty(unsigned long, TPropertyReference&, unsigned long) const + 1266
    6   com.apple.desktopservices     0x980cbe5a TNode::GetProperty(unsigned long, TPropertyReference&, OpaqueNodeRequest* const&, unsigned long) const + 72
    7   com.apple.desktopservices     0x980fa3fd GetNodeProperty(OpaqueNodeRef*, unsigned long, TPropertyReference&, OpaqueNodeRequest*, unsigned long) + 192
    8   com.apple.desktopservices     0x980a8777 NodeGetPropertyAsIconRef + 74
    9   com.apple.FinderKit           0x9a8b7195 TFENode::Icon(unsigned long, unsigned long, short*, bool) const + 337
    10  com.apple.FinderKit           0x9a8b703d TFENode::Icon(unsigned long) const + 55
    11  com.apple.FinderKit           0x9a92dd12 TIconFetcher::FetchIcons(TFENodeVector const&) const + 56
    12  com.apple.FinderKit           0x9a92e5e7 TIconFetcher::Main() + 553
    13  com.apple.FinderKit           0x9a92dfdd ___ZN12TIconFetcher5FetchEv_block_invoke + 100
    14  libdispatch.dylib             0x918a076b _dispatch_call_block_and_release + 15
    15  libdispatch.dylib             0x9189d386 _dispatch_client_callout + 50
    16  libdispatch.dylib             0x9189f443 _dispatch_root_queue_drain + 257
    17  libdispatch.dylib             0x918a070e _dispatch_worker_thread2 + 39
    18  libsystem_pthread.dylib       0x956eddab _pthread_wqthread + 336
    19  libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 20:: com.apple.appkit-heartbeat
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libsystem_c.dylib             0x96e1be62 usleep$UNIX2003 + 60
    3   com.apple.AppKit               0x9844da4c -[NSUIHeartBeat _heartBeatThread:] + 2318
    4   com.apple.Foundation           0x95bb71ce -[NSThread main] + 45
    5   com.apple.Foundation           0x95bb7126 __NSThread__main__ + 1426
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 19 crashed with X86 Thread State (32-bit):
      eax: 0x00000009  ebx: 0x959f35eb  ecx: 0xb0b3c762  edx: 0x00000001
      edi: 0xb0b3c960  esi: 0xb0b3c9f0  ebp: 0xb0b3ca58  esp: 0xb0b3c72c
       ss: 0x00000023  efl: 0x00010202  eip: 0xfefff000   cs: 0x0000001b
       ds: 0x00000023   es: 0x00000023   fs: 0x00000023   gs: 0x0000000f
      cr2: 0xfefff000
    Logical CPU:     2
    Error Code:      0x00000015
    Trap Number:     14
    Binary Images:
       0x6f000 -    0xdbfff +com.oracle.mysql.workbench (6.2.3 - 1) <2765CC4C-A45B-3C20-BC45-5DB2C54F68B7> /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
      0x133000 -   0x21bfeb +libglib-2.0.0.dylib (3303) <3116D359-3426-3F61-B2F9-450417634FCA> /Applications/MySQLWorkbench.app/Contents/Frameworks/libglib-2.0.0.dylib
      0x239000 -   0x239ffd +libgthread-2.0.0.dylib (3303) <5961B07A-C925-3F03-99C6-59A8DC561956> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgthread-2.0.0.dylib
      0x23e000 -   0x359ff7 +com.sun.Scintilla (1.0) <9A74C350-1FF4-3373-8BCC-88371B35C726> /Applications/MySQLWorkbench.app/Contents/Frameworks/Scintilla.framework/Versio ns/A/Scintilla
      0x3ef000 -   0x41dff3 +libwbbase.dylib (1) <F6F012C6-6119-3ADA-9F8B-13E57323C94D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbbase.dylib
      0x449000 -   0x4f4ff3 +libgrt.dylib (1) <42E72546-021C-3102-BDDF-006BE243F078> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgrt.dylib
      0x5a9000 -   0x610ff3 +libmysql.canvas.dylib (1) <4483BAEB-1E41-30DE-BBC0-D501586C2E07> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysql.canvas.dylib
      0x6ce000 -   0x6e2ffb +libcdbc.dylib (1) <68B0F24C-E9DC-3C40-B92A-16C1A6C6C5B5> /Applications/MySQLWorkbench.app/Contents/Frameworks/libcdbc.dylib
      0x702000 -   0xa87fff +libwbpublic.be.dylib (1) <AA30B579-7D0F-3D17-A170-3D3DFF5F139F> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbpublic.be.dylib
      0xf06000 -  0x1601ff7 +libwbprivate.be.dylib (1) <09D6F65B-C54C-398C-BDC1-95B878309F38> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbprivate.be.dylib
    0x1d1f000 -  0x1e40ffb +libmforms.dylib (1) <F8609BB3-C342-3AF3-92FB-24607561BF1C> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmforms.dylib
    0x1fe2000 -  0x2049fff +com.oracle.mysql.workbench.WBExtras (1.0) <22F306B8-39FF-334A-BCD6-FAE77FE998C0> /Applications/MySQLWorkbench.app/Contents/Frameworks/WBExtras.framework/Version s/A/WBExtras
    0x20cf000 -  0x21b6ffe  org.python.python (2.7.5 - 2.7.5) <CEEA0C30-0A80-3055-8380-2702560D0190> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
    0x2207000 -  0x2208fff +libgmodule-2.0.0.dylib (3303) <CD572830-C546-37BB-8A34-3752649E6B7D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgmodule-2.0.0.dylib
    0x220f000 -  0x47a8ff7 +mysql.parser.dylib (1) <97B0B1F3-6940-38CD-93F9-A638A91FFF33> /Applications/MySQLWorkbench.app/Contents/Frameworks/mysql.parser.dylib
    0x4a3c000 -  0x4a40ffb +libpcrecpp.0.dylib (1) <6C12DAD8-71D1-31D6-97DC-525C9D143DC4> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpcrecpp.0.dylib
    0x4a49000 -  0x4a5cff3 +libtinyxml.dylib (1) <CE2171E4-9CB1-3E73-92A5-7E8224032A8A> /Applications/MySQLWorkbench.app/Contents/Frameworks/libtinyxml.dylib
    0x4a70000 -  0x4a8fff4 +libpcre.1.dylib (2) <49CF4D85-C23F-3565-8D99-79595FC90E8D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpcre.1.dylib
    0x4a96000 -  0x4b54ff3 +libcairo.2.dylib (0) <5E5AFB69-5C20-37CF-A5E9-756FA63D1877> /Applications/MySQLWorkbench.app/Contents/Frameworks/libcairo.2.dylib
    0x4b81000 -  0x4cd0fe9 +libpixman-1.0.dylib (0) <1690B90B-76DD-397A-A9B2-54E09FE01BD3> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpixman-1.0.dylib
    0x4ce5000 -  0x4d10ffa +libpng12.0.dylib (0) <A828AF30-BA47-3195-91C4-0112FA35F876> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpng12.0.dylib
    0x4d1a000 -  0x4d85ff7 +libmysqlcppconn.7.1.1.4.dylib (0) <3D2E513F-5386-3DBA-AED6-BC30BA9CC651> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysqlcppconn.7.1.1.4.dy lib
    0x4df3000 -  0x507effb +libmysqlclient.18.dylib (18) <4EE3497B-8C86-3E28-A47F-7F542EB91CFF> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysqlclient.18.dylib
    0x51c9000 -  0x5239ffb +libctemplate.0.dylib (2.2) <1430E75E-3032-791A-5948-49FFDB23B7DE> /Applications/MySQLWorkbench.app/Contents/Frameworks/libctemplate.0.dylib
    0x52e1000 -  0x52f6ffb +libvsqlitepp.0.dylib (0) <38E99F2E-B7D7-3CA9-A02F-0CC177132A32> /Applications/MySQLWorkbench.app/Contents/Frameworks/libvsqlitepp.0.dylib
    0x531a000 -  0x6046fff +libgdal.1.dylib (0) <4ABF3042-228F-3407-BC04-302D065A8706> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgdal.1.dylib
    0x62da000 -  0x6333ff0 +libproj.0.dylib (0) <4D7F86B1-2644-33B7-A11E-47A80E38FD51> /Applications/MySQLWorkbench.app/Contents/Frameworks/libproj.0.dylib
    0x6344000 -  0x634fffc +libzip.1.0.0.dylib (0) <39E8E56B-861B-3D97-9E5B-2CBB1FDAEFBD> /Applications/MySQLWorkbench.app/Contents/Frameworks/libzip.1.0.0.dylib
    0x7c1b000 -  0x7c21ffb +db.grt.dylib (1) <12EEBDC8-B442-3CB5-BDD5-959D2980B509> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.grt.dylib
    0x7c2c000 -  0x7cb7ff3 +db.mysql.grt.dylib (1) <4B4D2041-D404-323A-BA65-1780ACFF307F> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.grt.dylib
    0x7d01000 -  0x7d04ffb  strop.so (76.100.1) <29C19707-E781-3E34-8884-83B69CDA5A83> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/strop.so
    0x7d09000 -  0x7d0cffe  operator.so (76.100.1) <2A24B38F-D09C-3C15-B14E-A3923F8033D7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/operator.so
    0x7d11000 -  0x7d11ffc  _functools.so (76.100.1) <8B6B250E-E34B-3860-A08F-0C790A5019B4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_functools.so
    0x7d15000 -  0x7d16fff  _locale.so (76.100.1) <52B51C26-D880-3321-9B8A-7F0E922D21BF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_locale.so
    0x7d1a000 -  0x7d1cfff  _collections.so (76.100.1) <22BAA559-DAE3-3104-8D20-BC0044F39116> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_collections.so
    0x7d21000 -  0x7d21fff +_ARC4.so (0) <91687EDB-4272-3F90-8971-B86AD03C5F43> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_AR C4.so
    0x8fe5000 -  0x900effb +db.mysql.parser.grt.dylib (1) <591EA3E7-D40F-3B40-971C-46913EB75274> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.parser.grt.dylib
    0x9033000 -  0x904fffb +db.mysql.query.grt.dylib (1) <561161D6-F083-3030-A66E-8A9B8112CCEB> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.query.grt.dylib
    0x906e000 -  0x912fff3 +db.mysql.sqlparser.grt.dylib (1) <0D38B2C7-AD33-3863-A7F3-96DB43C86187> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.sqlparser.grt.dylib
    0x91eb000 -  0x933cff7 +libsql.parser.dylib (1) <19ABFB99-85AB-3B7C-8356-91479DD64220> /Applications/MySQLWorkbench.app/Contents/Frameworks/libsql.parser.dylib
    0x93cc000 -  0x9418fff +wb.model.grt.dylib (1) <D8EF8A1E-17AB-3955-9DFB-A32839DAEBFF> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.grt.dylib
    0x944d000 -  0x9493ff3 +wb.mysql.import.grt.dylib (1) <1BD8E598-C538-3988-A5EA-B4F88C75B8CB> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.mysql.import.grt.dylib
    0x955f000 -  0x967cff7 +_mforms.so (1) <A684ABC4-3F08-3EAE-A3B3-2DA97139F893> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/_mforms.so
    0x9847000 -  0x984bffd  itertools.so (76.100.1) <BB875822-F784-3D55-B27F-16FEF82F8B2F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/itertools.so
    0x9852000 -  0x9853fff  _heapq.so (76.100.1) <EB82769D-06EE-3191-B3D9-2768E7730649> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_heapq.so
    0x9858000 -  0x9859ffb  time.so (76.100.1) <F45A4F21-964E-3CE2-9FB8-CBF3339C9B88> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/time.so
    0x989f000 -  0x98a1ffe  select.so (76.100.1) <61F400FB-79A1-3E03-B4C2-3A064885200C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/select.so
    0x98a6000 -  0x98a7ffc  fcntl.so (76.100.1) <339A6F31-4760-31D8-ACF4-F77CC1C4D977> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/fcntl.so
    0x98ab000 -  0x98aefff  _struct.so (76.100.1) <F88E14EB-8604-3D26-A6DF-FEA85A80952E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_struct.so
    0x98b4000 -  0x98b6fff  binascii.so (76.100.1) <842C430F-9BB0-3610-9545-3F94CE0C08D0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/binascii.so
    0x98ba000 -  0x98bbffd  cStringIO.so (76.100.1) <A9144569-57E5-3CCC-9036-1090842E85B0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cStringIO.so
    0x98bf000 -  0x98c1fff  _multiprocessing.so (76.100.1) <34718BD6-72E4-37EA-9398-3B427AD25178> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_multiprocessing.so
    0x98c6000 -  0x98d0fff  cPickle.so (76.100.1) <AFA21217-0A1F-351C-970B-5F6C4A637CE1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cPickle.so
    0x9916000 -  0x9925fff  _io.so (76.100.1) <CF1D9070-1B67-36FC-986D-81CDC2505859> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_io.so
    0x9933000 -  0x9936ff0  math.so (76.100.1) <1D3A53CC-C7E6-3128-AE6E-9393621D94F5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/math.so
    0x993b000 -  0x993cffe  _hashlib.so (76.100.1) <43C57D47-95AE-3B32-9DBB-464C6A85B56F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_hashlib.so
    0x9940000 -  0x9941ff9  _random.so (76.100.1) <E3DE4628-CB89-3411-86E6-5DF5B5361E8C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_random.so
    0x99c5000 -  0x99ceffc  datetime.so (76.100.1) <9CDA0E9D-F57C-3A42-94B0-509A67DE45FA> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/datetime.so
    0x99d6000 -  0x99defff  _sqlite3.so (76.100.1) <40F725D1-B1A2-3579-A038-1E5DA513AF27> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_sqlite3.so
    0x9b27000 -  0x9b2fff3  _socket.so (76.100.1) <A70A4F8F-8B9B-3A63-8FFB-E104C41D922A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_socket.so
    0x9b38000 -  0x9b3bfff  _ssl.so (76.100.1) <04E37108-2126-3F63-B99C-EC1CCCCC13E8> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ssl.so
    0x9b41000 -  0x9b45ffd  array.so (76.100.1) <26E74A26-B929-3955-B3F3-032FD0FAD61F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/array.so
    0x9b4b000 -  0x9b4cff5 +_counter.so (0) <2458BD3E-9C06-31C3-8A6D-07AF59DA6268> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Util/_coun ter.so
    0x9b4f000 -  0x9b54ff7 +_AES.so (0) <53E5A54B-063D-33EF-AB5F-368ADA8AE461> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_AE S.so
    0x9b97000 -  0x9b99fff  zlib.so (76.100.1) <90A50AF6-F710-3198-AA52-0489763DFCD5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/zlib.so
    0x9b9d000 -  0x9ba8ff7 +_DES3.so (0) <280806C9-1C5C-3EB0-9F60-7145C86C1D85> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_DE S3.so
    0x9beb000 -  0x9beeff7 +_Blowfish.so (0) <0877DDE3-C900-3F3E-AF0F-7E61B472BFB5> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_Bl owfish.so
    0x9bf1000 -  0x9bf2ffd  termios.so (76.100.1) <59D05CA7-0E80-315D-91BC-160FF272B30D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/termios.so
    0x9bf6000 -  0x9bf6ff6 +strxor.so (0) <1C060F90-8403-3995-9F0F-EE9004E224C0> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Util/strxo r.so
    0x9bf9000 -  0x9c07ffb  _ctypes.so (76.100.1) <DC8228AC-4DEE-38A8-93EA-7356270066B9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ctypes.so
    0x9c51000 -  0x9c51ffe  grp.so (76.100.1) <5D60CEC5-6B82-3527-84FF-5DDB975941BC> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/grp.so
    0x9d3c000 -  0x9d40ff7  _json.so (76.100.1) <9BF5E50D-9145-394E-829F-48523B217B94> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_json.so
    0x9e05000 -  0x9e2cfff +_cairo.so (1) <95731EDE-144C-3728-9BD7-1880ABAD0743> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/_cairo.so
    0x9fc8000 -  0xa001ffb +db.mysql.diff.reporting.wbp.dylib (1) <F23BA88D-A154-3E38-B1C2-3878960FF663> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.diff.reporting.wbp.d ylib
    0xa055000 -  0xa16bffb +db.mysql.wbp.dylib (1) <E00D73CC-81C7-3F10-A831-62FFA3ECAC07> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.wbp.dylib
    0xa28f000 -  0xa306fff +db.mysql.editors.wbp.dylib (1) <24BFC837-7B92-3BC3-8B78-756FFD9F6F59> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.editors.mwbplugin/Co ntents/Frameworks/db.mysql.editors.wbp.dylib
    0xa3b3000 -  0xa3f2ffb +db.search.wbp.dylib (1) <D7F1BC58-4C7E-3D94-8F67-833154C065AB> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.search.wbp.dylib
    0xa44d000 -  0xa471fff +wb.model.editors.wbp.dylib (1) <3029A06C-1E8C-30CE-855C-68D223A5E923> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.editors.mwbplugin/Co ntents/Frameworks/wb.model.editors.wbp.dylib
    0xa4b3000 -  0xa4d1fff +wb.model.snippets.wbp.dylib (1) <17040CCF-C18E-3869-B500-243E8ED64F87> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.snippets.wbp.dylib
    0xa4ef000 -  0xa505ff7 +wb.printing.wbp.dylib (1) <443EF14A-0531-3B2B-9D9D-EB20053951D3> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.printing.mwbplugin/Content s/Frameworks/wb.printing.wbp.dylib
    0xa5dd000 -  0xa5deff5 +cl_kernels (???) <5FDD1970-A21F-4DFF-AB2A-E861AA7B3637> cl_kernels
    0xa5ec000 -  0xa5edfff +cl_kernels (???) <58D2DE5A-F568-426B-86B2-5DC79BA8D2F8> cl_kernels
    0xada1000 -  0xae8cff7  unorm8_bgra.dylib (2.3.58) <73AEEEF2-DF38-33F9-994C-2BB7A76EB027> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_bgra.dylib
    0xaeb8000 -  0xaeeeff3 +com.oracle.mysql.workbench.dbmysqleditors (1.0) <7DE8A01C-A668-3B89-8ABB-26EF73803DA7> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.editors.mwbplugin/Co ntents/MacOS/db.mysql.editors
    0xaf0b000 -  0xaf14ff3 +com.oracle.mysql.workbench.wbmodeleditors (1.0) <4B922804-45D2-3234-A555-9D252836F90E> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.editors.mwbplugin/Co ntents/MacOS/wb.model.editors
    0xaf20000 -  0xaf24ff3 +com.oracle.mysql.workbench.wbprinting (1.0) <9632227F-9AD8-35AA-A844-390F7B49AFA6> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.printing.mwbplugin/Content s/MacOS/wb.printing
    0xc00a000 -  0xc02fff9  com.apple.framework.familycontrols (4.1 - 410) <A33A97EE-C735-38BA-9B49-5D78DAA3DEDA> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
    0xc044000 -  0xc04fffa  com.apple.CommerceCore (1.0 - 42) <E59717F2-6770-3DBC-8510-F7AA61E60F57> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
    0xd088000 -  0xd088ff3 +cl_kernels (???) <B4216B69-4B0C-4678-B269-CE74801D4AAE> cl_kernels
    0xd097000 -  0xd097ffb +cl_kernels (???) <1BD8B991-04DB-499D-9DA0-7002726A7D3E> cl_kernels
    0xd099000 -  0xd17fff7  unorm8_rgba.dylib (2.3.58) <54C13C5A-EF13-3CB8-A736-CDA39A907F3C> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_rgba.dylib
    0xd934000 -  0xd934ffd +cl_kernels (???) <41032263-D9C5-438F-87A0-4B5B06D8FE76> cl_kernels
    0xd93a000 -  0xd93ffff +com.tee.NuFile (1.9 - 1.9) /Library/Contextual Menu Items/NuFile.plugin/Contents/MacOS/NuFile
    0xd945000 -  0xd949ff7 +org.tigris.scfinderplugin (169) <7EEC70AB-634F-D6C8-85BF-0AD1289630F3> /Library/Contextual Menu Items/SCFinderPlugin.plugin/Contents/MacOS/SCFinderPlugin
    0xd959000 -  0xd983fff  com.apple.datadetectors (5.0 - 246.0) <E78157B5-C380-3C09-8439-54F5E89209C9> /System/Library/PrivateFrameworks/DataDetectors.framework/Versions/A/DataDetect ors
    0xd9a0000 -  0xd9a1ff7 +cl_kernels (???) <E54B2CAD-3754-4898-8146-36775BDA1E8A> cl_kernels
    0xf754000 -  0xf943ffc  com.apple.WebKit2 (9537 - 9537.78.2) <7B6A5E63-15FA-3B8F-80EC-6A7703A55817> /System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2
    0x40000000 - 0x4045fff7  com.apple.driver.AppleIntelHD5000GraphicsGLDriver (8.28.32 - 8.2.8) <E98BAE1C-BA6D-36AE-B76C-9FDD40BA1236> /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/Mac OS/AppleIntelHD5000GraphicsGLDriver
    0x8fef7000 - 0x8ff29417  dyld (239.4) <0F2176BD-4239-3506-BA41-3B885269520E> /usr/lib/dyld
    0x90008000 - 0x90010ffe  libGFXShared.dylib (9.6.1) <632989B3-36C2-302E-8A85-A02125A9C5D6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
    0x90011000 - 0x90013ffb  libRadiance.dylib (1044) <6713977E-A33A-395A-9933-719F72DF1A98> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.d ylib
    0x90014000 - 0x9001ffff  com.apple.CrashReporterSupport (10.9 - 539) <10FE9B2D-404F-32B8-B3CA-CBA3524B4CFF> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
    0x90020000 - 0x90095ff1  com.apple.ApplicationServices.ATS (360 - 363.3) <FD423680-01A1-357A-89A7-33910A87DE65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90096000 - 0x900a1fff  libcsfde.dylib (380.70.2) <B3FC85EE-BBC2-3A20-9C45-C1ABDD063A63> /usr/lib/libcsfde.dylib
    0x900a2000 - 0x900a3ffa  libsystem_sandbox.dylib (278.11.1) <DA875837-A5C2-3004-8117-65F378E4BD03> /usr/lib/system/libsystem_sandbox.dylib
    0x900a4000 - 0x90310ff5  com.apple.AddressBook.framework (8.0 - 1371.2) <4B02A52C-E6F6-3083-89C4-1B99E27E81C6> /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x90311000 - 0x90745ff7  com.apple.vision.FaceCore (3.0.0 - 3.0.0) <5B12F3E9-84F6-3183-B85D-FD19EF800ADB> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x90746000 - 0x907a4ffd  com.apple.AE (665.5 - 665.5) <54F2F247-160C-3A22-A6E3-5D49655A67AB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x907a8000 - 0x907a9fff  libsystem_blocks.dylib (63) <2AC67D5E-ECD4-3644-A53C-9684F9B7AA33> /usr/lib/system/libsystem_blocks.dylib
    0x907aa000 - 0x907aeffe  libCoreVMClient.dylib (58.1) <0EB8FFD7-AFED-3A63-810E-29629831D43D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
    0x907af000 - 0x90818ffa  com.apple.datadetectorscore (5.0 - 354.5) <CB793FA7-B873-39A9-855F-D86AB0C35298> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDe tectorsCore
    0x90819000 - 0x90857ff7  com.apple.NavigationServices (3.8 - 215) <A093AAF0-248E-313E-BA82-01F69E269895> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x91019000 - 0x91031ff7  com.apple.CFOpenDirectory (10.9 - 173.90.1) <7F3A0094-3A24-302C-9B64-C32C65750EDE> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
    0x91034000 - 0x91041fff  com.apple.AppleFSCompression (56.92.1 - 1.0) <D2E7A2DF-9E5B-35E6-9CCD-0D40ADA7E021> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/Apple FSCompression
    0x91042000 - 0x91088ff7  libFontRegistry.dylib (127) <A0930DB2-A6C6-3C6E-B4A2-119E0D76FD7D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x91089000 - 0x910b4ff7  libsystem_network.dylib (241.3) <71EBA489-386D-3608-ADE6-CB50EBD1AB1B> /usr/lib/system/libsystem_network.dylib
    0x910b5000 - 0x9112cffb  com.apple.framework.IOKit (2.0.1 - 907.100.13) <D1308EE0-96AA-3442-A27B-264F58AE12B4> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x9112d000 - 0x912d9fff  com.apple.QuartzCore (1.8 - 332.3) <DA347693-5E26-3E47-A2B3-3824C52EB08B> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x912da000 - 0x91309ff7  com.apple.framework.SystemAdministration (1.0 - 1.0) <1BD6205B-7C66-3B7B-AC8C-11BE34F7CF6B> /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/Sys temAdministration
    0x9130a000 - 0x9130afff  com.apple.ApplicationServices (48 - 48) <7967F6FA-2984-3CC3-AD9A-7B9AEC562A2A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x9130b000 - 0x91409fff  libJP2.dylib (1044) <E8873182-8B75-34A5-A104-BED94B0C6BF6> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x9140a000 - 0x9140bfff  com.apple.marco (10.0 - 1000) <F7AD1FF7-5B1E-3D3C-AF00-FA3A43118CE5> /System/Library/PrivateFrameworks/Marco.framework/Versions/A/Marco
    0x9140c000 - 0x9168bff7  com.apple.imageKit (2.5 - 774) <53C3FA27-3830-3A15-9707-AF7369119866> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
    0x9168c000 - 0x916bdff4  com.apple.securityinterface (9.0 - 55047) <0D5ED2B8-C973-3C91-BA45-22501A043263> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x916be000 - 0x916e9ff5  com.apple.ChunkingLibrary (2.0 - 155.1) <50BBBBF8-F30B-39EA-A512-11A47F429F2C> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/Chunking Library
    0x916ea000 - 0x91727ff7  libauto.dylib (185.5) <CD008E66-4A0C-35F5-8D72-80D76A716A03> /usr/lib/libauto.dylib
    0x91728000 - 0x91759ffb  com.apple.GSS (4.0 - 2.0) <145B389F-AC1E-3817-835D-8EA263E96EA5> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x9175a000 - 0x9177fff7  com.apple.quartzfilters (1.8.0 - 1.7.0) <FCF52905-85B1-375C-B0AA-B8251B614D2D> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
    0x91780000 - 0x91793fff  com.apple.ImageCapture (9.0 - 9.0) <63D5C96F-1893-3F35-ADFB-EE451AFD87E6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x91794000 - 0x917e9ff3  com.apple.ImageCaptureCore (5.0 - 5.0) <69A007AE-4654-3C79-9AF6-5EC8F173F225> /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCo re
    0x917ea000 - 0x91874ff7  com.apple.CoreSymbolication (3.0.1 - 141.0.5) <A33D0598-8699-39AC-A1DD-37079F423269> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSy mbolication
    0x91875000 - 0x91876fff  libDiagnosticMessagesClient.dylib (100) <B936B1D4-90BB-395D-8EA9-E1237608E7D0> /usr/lib/libDiagnosticMessagesClient.dylib
    0x91877000 - 0x9187ffff  libsystem_dnssd.dylib (522.92.1) <7E36B79E-6BF4-3462-9A84-C0744D029636> /usr/lib/system/libsystem_dnssd.dylib
    0x91880000 - 0x9189bff5  com.apple.openscripting (1.4 - 157) <5C161A52-8D2F-3D56-A988-05727BED7A59> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9189c000 - 0x918b4ffd  libdispatch.dylib (339.92.1) <7E7A88BF-74B3-363B-B534-6F757DF2DDE3> /usr/lib/system/libdispatch.dylib
    0x918b5000 - 0x91baaffc  com.apple.CoreImage (9.4.0) <33696A53-9E18-32D6-844F-28098DB7E426> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage .framework/Versions/A/CoreImage
    0x91bab000 - 0x91c3cfff  com.apple.ColorSync (4.9.0 - 4.9.0) <8366AE10-0396-3100-B87A-A176E8ECE7B6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91c3d000 - 0x91c75ff7  com.apple.MediaKit (15 - 709) <82E0F8C0-313C-379C-9994-4D21587D0C0C> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
    0x91c76000 - 0x91d8dffb  com.apple.WebKit (9537 - 9537.78.2) <525C4DF6-81DE-3D49-900A-0CDA821F9B86> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x91d8e000 - 0x91d90fff  com.apple.SecCodeWrapper (3.0 - 1) <066E1E30-2EEA-3166-8F86-D1054B50875B> /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWr apper
    0x91d91000 - 0x91d99fff  liblaunch.dylib (842.92.1) <C180016C-F2DB-3D8B-A72D-5185CE67DFA2> /usr/lib/system/liblaunch.dylib
    0x91d9a000 - 0x91d9dff7  com.apple.help (1.3.3 - 46) <AB6292FA-D3BC-3D56-B3A5-2BE630A503E7> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x91d9e000 - 0x91da5ff2  com.apple.NetFS (6.0 - 4.0) <915AA303-C02B-3B0C-8208-D8AAA4350DB4> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x91da6000 - 0x91da7ff7  com.apple.diagnosticlogcollection (10.0 - 1000) <B2525E0D-2BB1-3AF6-BDCA-56DCDC1F7DBF> /System/Library/PrivateFrameworks/DiagnosticLogCollection.framework/Versions/A/ DiagnosticLogCollection
    0x91da8000 - 0x91e1eff3  com.apple.securityfoundation (6.0 - 55122.3) <DFA5E047-2B68-3CE8-B9C3-D19E6F2461CB> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x91e1f000 - 0x91e55fff  com.apple.IconServices (25 - 25.17) <A4B5242B-765E-3D58-B066-BBEDB5947AAD> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconService s
    0x91e56000 - 0x91ef5fff  libCoreStorage.dylib (380.70.2) <AAB92110-31F1-36F0-A877-21FCE9531C4F> /usr/lib/libCoreStorage.dylib
    0x91fa2000 - 0x9221bff2  com.apple.security (7.0 - 55471.14.18) <7A58D9DE-D68B-37F7-87EF-4A3575DA09B7> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x9221c000 - 0x9223bff9  com.apple.framework.Apple80211 (9.4 - 940.60) <8CCF54EE-F3CA-38B3-BD61-DDBF99E37FCB> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x9223c000 - 0x9223cfff  libkeymgr.dylib (28) <1B097DEA-011E-3B1C-86D5-6C7FAD5C765A> /usr/lib/system/libkeymgr.dylib
    0x9223d000 - 0x92261ff3  libc++abi.dylib (49.1) <43A04ACF-97A5-35ED-B454-6B5C0CF0F99D> /usr/lib/libc++abi.dylib
    0x92262000 - 0x923efffb  com.apple.CFNetwork (673.3 - 673.3) <2C900A5F-9E29-3636-846D-68B24774E82A> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x923f0000 - 0x92420ff7  com.apple.CoreServicesInternal (184.9 - 184.9) <999FEDEC-7657-3F32-A9AE-F29E0BE0AAF5> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/Cor eServicesInternal
    0x924210

    I suggest you start by writing a script that contains local variables.  These variables correspond to your intended procedure arguments.  Once you have that working, you should be able to convert the script into a stored procedure.  Since
    I don't have Northwind I'll use AdventureWorks as a reference.  The script below will not actually run successfully since I did not include all the required information to insert a row into the detail table - but it should give you a rough idea of what
    a basic script would look like. 
    set nocount on;
    use AdventureWorks2012;
    go
    begin tran;
    declare @orderid int;
    declare @productid int;
    declare @qty int;
    set @orderid = 10;
    set @productid = 1;
    set @qty = 4;
    insert Sales.SalesOrderDetail (SalesOrderID, ProductID, UnitPrice, OrderQty)
    select @orderid, prod.ProductID, prod.ListPrice, @qty
    from Production.Product as prod where prod.ProductID = @productid;
    rollback tran;
    go

  • How to create a pricing procedure

    how to create a new pricing procedure and activate it

    You create it in spro > Sales and Distribution > Basic Functions > Pricing > Pricing Control > Define and Assign Pricing Procedures > Maintain Pricing Procedures
    You can't attach PP to specific plant. Pricing Procedure is determined thru trx OVKK. The defining parameters for pricing procedure determination are:
    1. SalesOrg
    2. Distribution Channel
    3. Division
    4. Document Procedure (defined in Sales doc\Billing doc maintenance) 
    5. Pricing procedure assigned to customer (defined in customer master)
    http://www.sap-img.com/sap-sd/creating-new-pricing-procedure.htm
    http://help.sap.com/saphelp_470/helpdata/en/dd/5616cc545a11d1a7020000e829fd11/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to create new account determination in OBYC

    Dear SAP Guru,
    I'm getting error 'Maintain account determination (table T030B) for posting ST3' upon GR (posting) against PO. I noticed name of the procedure or group of procedures for which automatic postings can be generated is NOT maintain for ST3 in OBYC (Maintain FI Configuration : Automatic Posting - Procedure). Appreciate if you could show me the path or t/code how to create new procedure for ST3 & maintain in OBYC. Thank you.
    rgds,
    nantha

    Hello Nantha,
    Transaction key can be created in
    SPRO - MM - Purchasing - Conditions - Define Proce determination Process - Define transaction/event key
    Here go for new entries and maintain the transaction key with a description.
    Then go to M/08 and maintain the transaction key in the 'acct key' field for your pricing procedure and the condition type.
    Also make sure to tick the 'Accruals' tickbox in M/06 for the condition type you want to post in the account key.
    Now go to OBYC and maintain the G/L accounts along with the posting keys and the posting rules as explained in my previous reply.
    Regards
    Gregory Mathews

  • What is procedure for creating new vendor and material master data in ABAP

    What is procedure for creating new vendor and material master data in ABAP .

    see below code which is used for creation of vendor master as well as extension...
    *& Report  ZFC_VENDOR_CREATE                                           *
    REPORT  ZFC_VENDOR_CREATE  LINE-SIZE 100
                               NO STANDARD PAGE HEADING
                               MESSAGE-ID ZZ.
                         TABLES
    TABLES : SSCRFIELDS.   " Fields on selection screens
                         CONSTANTS
    DATA : C_SPLIT TYPE C VALUE '#'.  " Used for Has Separator in GUI_UPLAOD
                         TYPES
    Int'table to hold Vendor Master Data
    TYPES : BEGIN OF TY_VENDOR_MASTER,
              FLAG  TYPE C,               " Update Flag
              LIFNR TYPE LIFNR,           " Vendor Number
              BUKRS TYPE BUKRS,           " Company Code
              KTOKK TYPE KTOKK,           " Account Group
              ANRED TYPE ANRED,           " Title
              NAME1 TYPE NAME1_GP,        " Name1
              NAME2 TYPE NAME2_GP,        " Name2
              SORTL TYPE SORTL,           " Search Term 1
              SORT2 TYPE AD_SORT2UL,      " Search Term 2
              STRAS TYPE STRAS_GP,        " Street
              PSTLZ TYPE PSTLZ,           " Postal Code
              ORT01 TYPE ORT01_GP,        " City
              REGIO TYPE REGIO,           " Region
              LAND1 TYPE LAND1_GP,        " Country
              SPRAS TYPE SPRAS,           " Language
              VBUND TYPE RASSC,           " Trading Partner
              BANKS TYPE BANKS,           " Country
              BANKL TYPE BANKK,           " Bank Key
              BANKN TYPE BANKN,           " Bank Account
              BKONT TYPE BKONT,           " Bank Control Key
              BANKA TYPE BANKA,           " Name of Bank
              AKONT TYPE AKONT,           " Reconciliation Account
              FDGRV TYPE FDGRV,           " Cash Management Group
              ZTERM TYPE DZTERM,          " Payment Terms
              REPRF TYPE REPRF,           " Check Double Invoice
              ZWELS TYPE DZWELS,          " Payment Methods
              XPORE TYPE XPORE,           " Pay all items separately
            END   OF TY_VENDOR_MASTER,
    Int'table to hold Vendor Extend Data
            BEGIN OF TY_VENDOR_EXTEND,
              FLAG  TYPE C,               " Update Flag
              LIFNR     TYPE LIFNR,           " Vendor Number
              BUKRS     TYPE BUKRS,           " Company Code
              KTOKK     TYPE KTOKK,           " Account Group
              REF_LIFNR TYPE LIFNR,           " Reference Vendor Number
              REF_BUKRS TYPE BUKRS,           " Reference Company Code
              AKONT     TYPE AKONT,           " Reconciliation Account
              FDGRV     TYPE FDGRV,           " Cash Management Group
              ZTERM     TYPE DZTERM,          " Payment Terms
              REPRF     TYPE REPRF,           " Check Double Invoice
              ZWELS     TYPE DZWELS,          " Payment Methods
              XPORE TYPE XPORE,           " Pay all items separately
            END   OF TY_VENDOR_EXTEND,
    Int'table to hold Error Records Data
            BEGIN OF TY_ERROR,
              MSG(200) TYPE C,                " To hold Message
              LIFNR    TYPE LIFNR,            " Vendor Number
              BUKRS    TYPE BUKRS,            " Company Code
            END   OF TY_ERROR.
                         DATA (Simple Fields)
    DATA : W_COUNT TYPE I,               " Variable to hold count of Records
           W_SUCC_REC TYPE I,            " No. of Success Records
           W_SUCC_REC1 TYPE I,           " No. of Updated Records
           W_ERR_REC TYPE I,             " No. of Error Records
           w_noupdate_rec type i.        " No. of Records not Changed
                         INTERNAL TABLES
    Int'table to hold uploaded data from File
    DATA : IT_VENDOR_MASTER    TYPE STANDARD TABLE OF TY_VENDOR_MASTER,
           WA_IT_VENDOR_MASTER TYPE TY_VENDOR_MASTER,
           IT_VENDOR_EXTEND    TYPE STANDARD TABLE OF TY_VENDOR_EXTEND,
           WA_IT_VENDOR_EXTEND TYPE TY_VENDOR_EXTEND,
           WA_IT_BDCDATA       TYPE BDCDATA,
           IT_BDCDATA          TYPE STANDARD TABLE OF BDCDATA,
           WA_IT_MESSTAB       TYPE BDCMSGCOLL,
           IT_MESSTAB          TYPE STANDARD TABLE OF BDCMSGCOLL,
           IT_ERROR            TYPE STANDARD TABLE OF TY_ERROR,
           WA_IT_ERROR         TYPE TY_ERROR,
           it_error_fk01       type standard table of ty_error,
           wa_it_error_fk01    type ty_error,
           it_error_fk02       type standard table of ty_error,
           wa_it_error_fk02    type ty_error,
           it_succ_rec1        type standard table of ty_error,
           wa_it_succ_rec1     type ty_error,
           it_noupdate         type standard table of ty_error,
           wa_it_noupdate      type ty_error.
                         FLAGS
    DATA : FL_FLAG1 TYPE C,          " Flag to check error upload file
           FL_FLAG2 TYPE C,          " Flag to hold value
           FL_FLAG3 TYPE C,          " Flag to hold value
           FL_FLAG4 TYPE C.          " Flag to hold value
                         SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-001,
                POSITION POS_LOW.
    PARAMETERS :       P_FILE(128) DEFAULT 'C:\UPLOAD.TXT' OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-002,
                POSITION POS_LOW.
    PARAMETERS :       P_VENMAS RADIOBUTTON GROUP R1 DEFAULT 'X'.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-003,
                POSITION POS_LOW.
    PARAMETERS :       P_VENEXT RADIOBUTTON GROUP R1.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-004,
                POSITION POS_LOW.
    PARAMETERS :       P_MODE(1) DEFAULT 'N'.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-005,
                POSITION POS_LOW.
    PARAMETERS :       P_GROUP(12) DEFAULT 'ZFC_VENDOR_C' OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE,
                COMMENT 1(30) TEXT-016,
                POSITION POS_LOW.
    PARAMETERS :       P_GROUP1(12) DEFAULT 'ZFC_VENDOR_U' OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
                         AT SELECTION-SCREEN ON
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    Form to get file path for upload of data
      PERFORM GET_FILE_PATH.
    AT SELECTION-SCREEN ON BLOCK B1.
    Form to Validate data specified on Selection Screen
      CHECK SSCRFIELDS-UCOMM EQ 'ONLI'.
      PERFORM VALIDATE_DATA.
                         START - OF - SELECTION
    START-OF-SELECTION.
      IF P_VENMAS = 'X'.
    Form to upload data from Presentation Server for Vendor Master
        PERFORM UPLOAD_DATA TABLES IT_VENDOR_MASTER.
        IF FL_FLAG1 NE 'X'.
          SORT IT_VENDOR_MASTER BY LIFNR BUKRS KTOKK.
          DELETE IT_VENDOR_MASTER WHERE LIFNR = ' '
                                  AND   BUKRS = ' '
                                  AND   KTOKK = ' '.
    Form to process data for Vendor Master
          PERFORM INSERT_VENDOR_MASTER_DATA.
        ENDIF.
      ELSEIF P_VENEXT = 'X'.
    Form to upload data from Presentation Server for Vendor Extend
        PERFORM UPLOAD_DATA TABLES IT_VENDOR_EXTEND.
        IF FL_FLAG1 NE 'X'.
          SORT IT_VENDOR_EXTEND BY LIFNR BUKRS KTOKK.
          DELETE IT_VENDOR_EXTEND WHERE LIFNR = ' '
                                  AND   BUKRS = ' '
                                  AND   KTOKK = ' '.
    Form to process data for Vendor Master
          PERFORM CHK_AND_INS_VENDOR_EXTEND_DATA.
        ENDIF.
      ENDIF.
                         END - OF - SELECTION
    END-OF-SELECTION.
      IF FL_FLAG1 NE 'X'.
        FORMAT COLOR 7.
        WRITE:/2 TEXT-O01.           " Total Number of records read :
        FORMAT COLOR OFF.
        WRITE:40 W_COUNT.
        FORMAT COLOR 7.
        WRITE:/2 TEXT-O02.           " Total Number of Success records :
        FORMAT COLOR OFF.
        WRITE:40 W_SUCC_REC.
        FORMAT COLOR 7.
        WRITE:/2 TEXT-O07.           " Total Number of Updated records :
        FORMAT COLOR OFF.
        WRITE:40 W_SUCC_REC1.
        FORMAT COLOR 7.
        WRITE:/2 TEXT-O08.           " Total Number of Unchanged records :
        FORMAT COLOR OFF.
        WRITE:40 W_noupdate_REC.
        FORMAT COLOR 7.
        WRITE:/2 TEXT-O03.           " Total Number of Error records :
        FORMAT COLOR OFF.
        WRITE:40 W_ERR_REC.
        if not it_succ_rec1 is initial.
          skip 1.
          perform display_changed_report.
        endif.
        if not it_noupdate is initial.
          skip 1.
          perform display_nochange_report.
        endif.
        IF NOT IT_ERROR IS INITIAL.
          SKIP 3.
    Form to display error data
          PERFORM DISPLAY_ERROR_REPORT.
        ENDIF.
        IF FL_FLAG2 = 'X'.
          SKIP 2.
          FORMAT COLOR 4.
          WRITE:/2 TEXT-O04.        " BDC Session Name for Creation (FK01) :
          FORMAT COLOR OFF.
          WRITE:40 P_GROUP.
          perform display_error_report_fk01.
        ENDIF.
        IF FL_FLAG3 = 'X'.
          SKIP 2.
          FORMAT COLOR 4.
          WRITE:/2 TEXT-O09.        " BDC Session Name for Updation (FK02) :
          FORMAT COLOR OFF.
          WRITE:40 P_GROUP1.
          perform display_error_report_fk02.
        ENDIF.
      ENDIF.
    *&      Form  GET_FILE_PATH
    This form is used to get the specified path for uploading of data from
    flat file with the help of F4 function key
    FORM GET_FILE_PATH .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = ' '
        IMPORTING
          FILE_NAME     = P_FILE.
    ENDFORM.                    " GET_FILE_PATH
    *&      Form  VALIDATE_DATA
    This form is used to validate the data given by user on the Selection
    Screen and the appropriate message is been displayed when an wrong
    entry is inputted
    FORM VALIDATE_DATA .
      IF SY-BATCH EQ 'X'.
        CLEAR SSCRFIELDS-UCOMM.
        MESSAGE E001(ZZ) WITH TEXT-011.
        " Excel file not to be used in Batch Mode
      ENDIF.
      IF P_MODE NE 'A' AND P_MODE NE 'N' AND P_MODE NE 'E'.
        MESSAGE E001(ZZ) WITH TEXT-012.
        " Session Mode should be either A or N or E
      ENDIF.
    ENDFORM.                    " VALIDATE_DATA
    *&      Form  UPLOAD_DATA
    This form is used to upload data from Presentation Server for either
    Vendor Master or Vendor Extend
    FORM UPLOAD_DATA TABLES P_IT_VENDOR.
      DATA : L_FILENAME TYPE STRING,
             L_FILETYPE TYPE CHAR10 VALUE 'ASC',
             L_HEADER_LENGTH TYPE I VALUE 0,
             L_READ_BY_LINE TYPE CHAR01 VALUE 'X'.
      MOVE P_FILE TO L_FILENAME.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = L_FILENAME
          FILETYPE                = L_FILETYPE
          HEADER_LENGTH           = L_HEADER_LENGTH
          READ_BY_LINE            = L_READ_BY_LINE
          HAS_FIELD_SEPARATOR     = C_SPLIT
        TABLES
          DATA_TAB                = P_IT_VENDOR
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      IF SY-SUBRC <> 0.
       MESSAGE I001(ZZ) WITH TEXT-006 L_FILENAME.
    MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        FL_FLAG1 = 'X'.
      ELSEIF P_IT_VENDOR[] IS INITIAL.
        MESSAGE I001(ZZ) WITH TEXT-014.   " Uploaded File contains no data
        FL_FLAG1 = 'X'.
      ENDIF.
    ENDFORM.                    " UPLOAD_DATA
    *&      Form  INSERT_VENDOR_MASTER_DATA
    This form is used to process BDC data for Vendor Master
    FORM INSERT_VENDOR_MASTER_DATA .
      DATA : L_LIFNR TYPE LIFNR.
      CLEAR : L_LIFNR.
      sort it_vendor_master by flag.
      LOOP AT IT_VENDOR_MASTER INTO WA_IT_VENDOR_MASTER.
        W_COUNT = W_COUNT + 1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = WA_IT_VENDOR_MASTER-LIFNR
          IMPORTING
            OUTPUT = WA_IT_VENDOR_MASTER-LIFNR.
        if wa_it_vendor_master-flag = 'A'.
        SELECT SINGLE LIFNR
               FROM LFB1
               INTO L_LIFNR
               WHERE LIFNR = WA_IT_VENDOR_MASTER-LIFNR
               AND   BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
        IF SY-SUBRC EQ 0.
          WA_IT_ERROR-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
          WA_IT_ERROR-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
          WA_IT_ERROR-MSG   = TEXT-015.
          APPEND WA_IT_ERROR TO IT_ERROR.
          W_ERR_REC = W_ERR_REC + 1.
          CLEAR : WA_IT_ERROR, L_LIFNR.
        ELSE.
          REFRESH IT_BDCDATA.
          CLEAR IT_BDCDATA.
          PERFORM POPULATE_BDC_DATA_VEN_MASTER.
          PERFORM CALL_TRANSACTION.
        ENDIF.
        CLEAR : WA_IT_VENDOR_MASTER.
        elseif wa_it_vendor_master-flag = 'C'.
          IF FL_FLAG2 = 'X' and fl_flag4 ne 'X'.
            PERFORM CLOSE_BDC_SESSION.
            fl_flag4 = 'X'.
          ENDIF.
          REFRESH IT_BDCDATA.
          CLEAR IT_BDCDATA.
          PERFORM POPULATE_BDC_DATA_VEN_MASTER.
          PERFORM CALL_TRANSACTION_FK02.
          CLEAR : WA_IT_VENDOR_MASTER.
        elseif wa_it_vendor_master-flag = 'N'.
          WA_IT_noupdate-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
          WA_IT_noupdate-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
          WA_IT_noupdate-MSG   = TEXT-018.
          APPEND WA_IT_noupdate TO IT_noupdate.
          W_noupdate_REC = W_noupdate_REC + 1.
          CLEAR : WA_IT_noupdate, WA_IT_VENDOR_MASTER.
        endif.
      ENDLOOP.
      IF FL_FLAG3 = 'X'.
        PERFORM CLOSE_BDC_SESSION.
      ENDIF.
    ENDFORM.                    " INSERT_VENDOR_MASTER_DATA
    *&      Form  POPULATE_BDC_DATA_VEN_MASTER
    This form is used to populate BDC data of Vendor Master
    FORM POPULATE_BDC_DATA_VEN_MASTER .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = WA_IT_VENDOR_MASTER-ZTERM
        IMPORTING
          OUTPUT = WA_IT_VENDOR_MASTER-ZTERM.
      IF WA_IT_VENDOR_MASTER-REPRF = 'Y'.
        WA_IT_VENDOR_MASTER-REPRF = 'X'.
      ENDIF.
      IF WA_IT_VENDOR_MASTER-XPORE = 'Y'.
        WA_IT_VENDOR_MASTER-XPORE = 'X'.
      ENDIF.
      if wa_it_vendor_master-flag = 'A'.
      PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0105',
               BDC_FIELD  USING 'RF02K-LIFNR' WA_IT_VENDOR_MASTER-LIFNR,
               BDC_FIELD  USING 'RF02K-BUKRS' WA_IT_VENDOR_MASTER-BUKRS,
               BDC_FIELD  USING 'RF02K-KTOKK' WA_IT_VENDOR_MASTER-KTOKK,
               BDC_FIELD  USING 'BDC_OKCODE'  '/00'.
      elseif wa_it_vendor_master-flag = 'C'.
      PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0106',
               BDC_FIELD  USING 'RF02K-LIFNR' WA_IT_VENDOR_MASTER-LIFNR,
               BDC_FIELD  USING 'RF02K-BUKRS' WA_IT_VENDOR_MASTER-BUKRS,
               BDC_FIELD  USING 'BDC_OKCODE'  '=MALL',
               BDC_DYNPRO USING 'SAPMF02K' '0106',
               BDC_FIELD  USING 'RF02K-D0110' 'X',
               BDC_FIELD  USING 'RF02K-D0120' 'X',
               BDC_FIELD  USING 'RF02K-D0130' 'X',
               BDC_FIELD  USING 'RF02K-D0210' 'X',
               BDC_FIELD  USING 'RF02K-D0215' 'X',
               BDC_FIELD  USING 'RF02K-D0220' 'X',
               BDC_FIELD  USING 'BDC_OKCODE'  '/00'.
      endif.
      perform :BDC_DYNPRO USING 'SAPMF02K' '0110',
               BDC_FIELD  USING 'LFA1-ANRED'  WA_IT_VENDOR_MASTER-ANRED,
               BDC_FIELD  USING 'LFA1-NAME1'  WA_IT_VENDOR_MASTER-NAME1,
               BDC_FIELD  USING 'LFA1-NAME2'  WA_IT_VENDOR_MASTER-NAME2,
               BDC_FIELD  USING 'LFA1-SORTL'  WA_IT_VENDOR_MASTER-SORTL,
               BDC_FIELD  USING 'LFA1-STRAS'  WA_IT_VENDOR_MASTER-STRAS,
               BDC_FIELD  USING 'LFA1-ORT01'  WA_IT_VENDOR_MASTER-ORT01,
               BDC_FIELD  USING 'LFA1-PSTLZ'  WA_IT_VENDOR_MASTER-PSTLZ,
               BDC_FIELD  USING 'LFA1-LAND1'  WA_IT_VENDOR_MASTER-LAND1,
               BDC_FIELD  USING 'LFA1-REGIO'  WA_IT_VENDOR_MASTER-REGIO,
               BDC_FIELD  USING 'LFA1-SPRAS'  WA_IT_VENDOR_MASTER-SPRAS,
               BDC_FIELD  USING 'BDC_OKCODE'  '/00',
               BDC_DYNPRO USING 'SAPMF02K' '0120',
               BDC_FIELD  USING 'LFA1-VBUND'  WA_IT_VENDOR_MASTER-VBUND,
               BDC_FIELD  USING 'BDC_OKCODE'  '/00',
               BDC_DYNPRO USING 'SAPMF02K' '0130',
               BDC_FIELD  USING 'LFBK-BANKS(01)'  WA_IT_VENDOR_MASTER-BANKS,
               BDC_FIELD  USING 'LFBK-BANKL(01)'  WA_IT_VENDOR_MASTER-BANKL,
               BDC_FIELD  USING 'LFBK-BANKN(01)'  WA_IT_VENDOR_MASTER-BANKN,
               BDC_FIELD  USING 'BDC_OKCODE'  '=BANK',
               BDC_DYNPRO USING 'SAPLBANK' '0100',
               BDC_FIELD  USING 'BNKA-BANKA'  WA_IT_VENDOR_MASTER-BANKA,
               BDC_FIELD  USING 'BDC_OKCODE'  '=ENTR',
               BDC_DYNPRO USING 'SAPMF02K' '0130',
               BDC_FIELD  USING 'BDC_OKCODE'  '=ENTR',
               BDC_DYNPRO USING 'SAPMF02K' '0210',
               BDC_FIELD  USING 'LFB1-AKONT'  WA_IT_VENDOR_MASTER-AKONT,
               BDC_FIELD  USING 'LFB1-FDGRV'  WA_IT_VENDOR_MASTER-FDGRV,
               BDC_FIELD  USING 'BDC_OKCODE'  '=/00',
               BDC_DYNPRO USING 'SAPMF02K' '0215',
               BDC_FIELD  USING 'LFB1-ZTERM'  WA_IT_VENDOR_MASTER-ZTERM,
               BDC_FIELD  USING 'LFB1-REPRF'  WA_IT_VENDOR_MASTER-REPRF,
               BDC_FIELD  USING 'LFB1-ZWELS'  WA_IT_VENDOR_MASTER-ZWELS,
               BDC_FIELD  USING 'LFB1-XPORE'  WA_IT_VENDOR_MASTER-XPORE,
               BDC_FIELD  USING 'BDC_OKCODE'  '=UPDA'.
    ENDFORM.                    " POPULATE_BDC_DATA_VEN_MASTER
    *&      Form  BDC_DYNPRO
    This form is used to move data to BDCDATA int'table
    FORM BDC_DYNPRO  USING PROGRAM TYPE BDC_PROG
                           DYNPRO  TYPE BDC_DYNR.
      CLEAR WA_IT_BDCDATA.
      WA_IT_BDCDATA-PROGRAM  = PROGRAM.
      WA_IT_BDCDATA-DYNPRO   = DYNPRO.
      WA_IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_IT_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
    This form is used to move data to BDCDATA int'table
    FORM BDC_FIELD  USING FNAM TYPE ANY
                          FVAL TYPE ANY.
      CLEAR WA_IT_BDCDATA.
      WA_IT_BDCDATA-FNAM = FNAM.
      WA_IT_BDCDATA-FVAL = FVAL.
      APPEND WA_IT_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_FIELD
    *&      Form  CALL_TRANSACTION
    This form is used to Call FK01 for processing of data either for
    Vendor Master or Vendor Extend. The error records are inserted to
    Session which can be processed using SM35
    FORM CALL_TRANSACTION .
      DATA : L_OPTION TYPE CTU_PARAMS,
             L_SUBRC TYPE SYSUBRC.
      REFRESH IT_MESSTAB.
      CLEAR IT_MESSTAB.
      L_OPTION-DEFSIZE = 'X'.
      L_OPTION-DISMODE = P_MODE.
      L_OPTION-UPDMODE = 'S'.
      CALL TRANSACTION 'FK01'
           USING IT_BDCDATA
           MESSAGES INTO IT_MESSTAB
           OPTIONS FROM L_OPTION.
      L_SUBRC = SY-SUBRC.
      IF L_SUBRC = 0.
        W_SUCC_REC = W_SUCC_REC + 1.
      ELSE.
        IF FL_FLAG2 NE 'X'.
          PERFORM OPEN_BDC_SESSION.
          FL_FLAG2 = 'X'.
        ENDIF.
        PERFORM BDC_INSERT.
        W_ERR_REC = W_ERR_REC + 1.
        PERFORM ERROR_RECORD_DATA.
      ENDIF.
    ENDFORM.                    " CALL_TRANSACTION
    *&      Form  OPEN_BDC_SESSION
    Form used to open session for Error out Records
    FORM OPEN_BDC_SESSION .
      DATA : L_USERID TYPE APQ_MAPN,      " Variable to hold user-id
             L_GROUP TYPE APQ_GRPN.       " Variable to hold value
      MOVE P_GROUP TO L_GROUP.
      MOVE SY-UNAME TO L_USERID.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          CLIENT              = SY-MANDT
          GROUP               = L_GROUP
          KEEP                = SPACE
          USER                = L_USERID
        EXCEPTIONS
          CLIENT_INVALID      = 1
          DESTINATION_INVALID = 2
          GROUP_INVALID       = 3
          GROUP_IS_LOCKED     = 4
          HOLDDATE_INVALID    = 5
          INTERNAL_ERROR      = 6
          QUEUE_ERROR         = 7
          RUNNING             = 8
          SYSTEM_LOCK_ERROR   = 9
          USER_INVALID        = 10
          OTHERS              = 11.
      IF SY-SUBRC <> 0.
        WRITE:/ TEXT-008.              " Unable to open BDC Session
      ENDIF.
    ENDFORM.                    " OPEN_BDC_SESSION
    *&      Form  BDC_INSERT
    This form is used to insert error records to a Session method
    FORM BDC_INSERT .
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE            = 'FK01'
        TABLES
          DYNPROTAB        = IT_BDCDATA
        EXCEPTIONS
          INTERNAL_ERROR   = 1
          NOT_OPEN         = 2
          QUEUE_ERROR      = 3
          TCODE_INVALID    = 4
          PRINTING_INVALID = 5
          POSTING_INVALID  = 6
          OTHERS           = 7.
      IF SY-SUBRC <> 0.
        WRITE:/ TEXT-009.             " Unable to Insert Data to BDC Session
      ENDIF.
    ENDFORM.                    " BDC_INSERT
    *&      Form  ERROR_RECORD_DATA
    This form is used to process the messages for the error records which
    will be displayed on the output report
    FORM ERROR_RECORD_DATA .
      DATA : L_LINES TYPE I,
             L_MSG(200) TYPE C.
      DESCRIBE TABLE IT_MESSTAB LINES L_LINES.
      READ TABLE IT_MESSTAB INTO WA_IT_MESSTAB INDEX L_LINES.
      IF SY-SUBRC = 0.
        CLEAR L_MSG.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID        = WA_IT_MESSTAB-MSGID
            LANG      = SY-LANGU
            NO        = WA_IT_MESSTAB-MSGNR
            V1        = WA_IT_MESSTAB-MSGV1
            V2        = WA_IT_MESSTAB-MSGV2
            V3        = WA_IT_MESSTAB-MSGV3
            V4        = WA_IT_MESSTAB-MSGV4
          IMPORTING
            MSG       = L_MSG
          EXCEPTIONS
            NOT_FOUND = 1
            OTHERS    = 2.
        IF SY-SUBRC = 0.
          WA_IT_ERROR_fk01-MSG = L_MSG.
        ENDIF.
        IF P_VENMAS = 'X'.
          WA_IT_ERROR_fk01-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
          WA_IT_ERROR_fk01-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
        ELSEIF P_VENEXT = 'X'.
          WA_IT_ERROR_fk01-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
          WA_IT_ERROR_fk01-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
        ENDIF.
        APPEND WA_IT_ERROR_fk01 TO IT_ERROR_fk01.
        CLEAR WA_IT_ERROR_fk01.
      ENDIF.
    ENDFORM.                    " ERROR_RECORD_DATA
    *&      Form  CLOSE_BDC_SESSION
    Form used to close session of the Error Records
    FORM CLOSE_BDC_SESSION .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
        WRITE:/ TEXT-010.             " Unable to Close BDC Session
      ENDIF.
    ENDFORM.                    " CLOSE_BDC_SESSION
    *&      Form  CHK_AND_INS_VENDOR_EXTEND_DATA
    This form is used to process BDC data for Vendor Extend
    FORM CHK_AND_INS_VENDOR_EXTEND_DATA .
      DATA : L_LIFNR TYPE LIFNR.
      CLEAR : L_LIFNR, fl_flag4.
      sort it_vendor_extend by flag.
      LOOP AT IT_VENDOR_EXTEND INTO WA_IT_VENDOR_EXTEND.
        W_COUNT = W_COUNT + 1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = WA_IT_VENDOR_EXTEND-REF_LIFNR
          IMPORTING
            OUTPUT = WA_IT_VENDOR_EXTEND-REF_LIFNR.
        if wa_it_vendor_extend-flag = 'A'.
        SELECT SINGLE LIFNR
               FROM LFB1
               INTO L_LIFNR
               WHERE LIFNR = WA_IT_VENDOR_EXTEND-REF_LIFNR
               AND   BUKRS = WA_IT_VENDOR_EXTEND-REF_BUKRS.
        IF SY-SUBRC NE 0.
          WA_IT_ERROR-LIFNR = WA_IT_VENDOR_EXTEND-REF_LIFNR.
          WA_IT_ERROR-BUKRS = WA_IT_VENDOR_EXTEND-REF_BUKRS.
          WA_IT_ERROR-MSG   = TEXT-007.
          APPEND WA_IT_ERROR TO IT_ERROR.
          W_ERR_REC = W_ERR_REC + 1.
          CLEAR : WA_IT_ERROR, L_LIFNR.
        ELSE.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              INPUT  = WA_IT_VENDOR_EXTEND-LIFNR
            IMPORTING
              OUTPUT = WA_IT_VENDOR_EXTEND-LIFNR.
          SELECT SINGLE LIFNR
                 FROM LFB1
                 INTO L_LIFNR
                 WHERE LIFNR = WA_IT_VENDOR_EXTEND-LIFNR
                 AND   BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
          IF SY-SUBRC EQ 0.
            WA_IT_ERROR-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
            WA_IT_ERROR-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
            WA_IT_ERROR-MSG   = TEXT-015.
            APPEND WA_IT_ERROR TO IT_ERROR.
            W_ERR_REC = W_ERR_REC + 1.
            CLEAR : WA_IT_ERROR, L_LIFNR.
          ELSE.
            REFRESH IT_BDCDATA.
            CLEAR IT_BDCDATA.
            PERFORM POPULATE_BDC_DATA_VEN_EXTEND.
            PERFORM CALL_TRANSACTION.
          ENDIF.
        ENDIF.
        CLEAR : WA_IT_VENDOR_EXTEND.
        elseif wa_it_vendor_extend-flag = 'C'.
          IF FL_FLAG2 = 'X' and fl_flag4 ne 'X'.
            PERFORM CLOSE_BDC_SESSION.
            fl_flag4 = 'X'.
          ENDIF.
          REFRESH IT_BDCDATA.
          CLEAR IT_BDCDATA.
          PERFORM POPULATE_BDC_DATA_VEN_extend.
          PERFORM CALL_TRANSACTION_FK02.
           CLEAR : WA_IT_VENDOR_EXTEND.
        elseif wa_it_vendor_extend-flag = 'N'.
          WA_IT_noupdate-LIFNR = WA_IT_VENDOR_extend-LIFNR.
          WA_IT_noupdate-BUKRS = WA_IT_VENDOR_extend-BUKRS.
          WA_IT_noupdate-MSG   = TEXT-019.
          APPEND WA_IT_noupdate TO IT_noupdate.
          W_noupdate_REC = W_noupdate_REC + 1.
          CLEAR : WA_IT_noupdate, WA_IT_VENDOR_EXTEND.
        endif.
      ENDLOOP.
      IF FL_FLAG2 = 'X'.
        PERFORM CLOSE_BDC_SESSION.
      ENDIF.
      if fl_flag3 = 'X'.
        PERFORM CLOSE_BDC_SESSION.
      ENDIF.
    ENDFORM.                    " CHK_AND_INS_VENDOR_EXTEND_DATA
    *&      Form  POPULATE_BDC_DATA_VEN_EXTEND
    This form is used to populate BDC data of Vendor Extend
    FORM POPULATE_BDC_DATA_VEN_EXTEND .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = WA_IT_VENDOR_EXTEND-ZTERM
        IMPORTING
          OUTPUT = WA_IT_VENDOR_EXTEND-ZTERM.
      IF WA_IT_VENDOR_EXTEND-REPRF = 'Y'.
        WA_IT_VENDOR_EXTEND-REPRF = 'X'.
      ENDIF.
      IF WA_IT_VENDOR_extend-XPORE = 'Y'.
        WA_IT_VENDOR_extend-XPORE = 'X'.
      ENDIF.
      if wa_it_vendor_extend-flag = 'A'.
      PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0105',
               BDC_FIELD  USING 'RF02K-LIFNR' WA_IT_VENDOR_EXTEND-LIFNR,
               BDC_FIELD  USING 'RF02K-BUKRS' WA_IT_VENDOR_EXTEND-BUKRS,
               BDC_FIELD  USING 'RF02K-KTOKK' WA_IT_VENDOR_EXTEND-KTOKK,
               BDC_FIELD  USING 'RF02K-REF_LIFNR'
                                          WA_IT_VENDOR_EXTEND-REF_LIFNR,
               BDC_FIELD  USING 'RF02K-REF_BUKRS'
                                          WA_IT_VENDOR_EXTEND-REF_BUKRS,
               BDC_FIELD  USING 'BDC_OKCODE'  '/00'.
      elseif wa_it_vendor_extend-flag = 'C'.
      PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0106',
               BDC_FIELD  USING 'RF02K-LIFNR' WA_IT_VENDOR_extend-LIFNR,
               BDC_FIELD  USING 'RF02K-BUKRS' WA_IT_VENDOR_extend-BUKRS,
               BDC_FIELD  USING 'RF02K-D0210' 'X',
               BDC_FIELD  USING 'RF02K-D0215' 'X',
               BDC_FIELD  USING 'BDC_OKCODE'  '/00'.
      endif.
      perform :BDC_DYNPRO USING 'SAPMF02K' '0210',
               BDC_FIELD  USING 'LFB1-AKONT'  WA_IT_VENDOR_EXTEND-AKONT,
               BDC_FIELD  USING 'LFB1-FDGRV'  WA_IT_VENDOR_EXTEND-FDGRV,
               BDC_FIELD  USING 'BDC_OKCODE'  '=/00',
               BDC_DYNPRO USING 'SAPMF02K' '0215',
               BDC_FIELD  USING 'LFB1-ZTERM'  WA_IT_VENDOR_EXTEND-ZTERM,
               BDC_FIELD  USING 'LFB1-REPRF'  WA_IT_VENDOR_EXTEND-REPRF,
               BDC_FIELD  USING 'LFB1-ZWELS'  WA_IT_VENDOR_EXTEND-ZWELS,
               BDC_FIELD  USING 'LFB1-XPORE'  WA_IT_VENDOR_extend-XPORE,
               BDC_FIELD  USING 'BDC_OKCODE'  '=UPDA'.
    ENDFORM.                    " POPULATE_BDC_DATA_VEN_EXTEND
    *&      Form  DISPLAY_ERROR_REPORT
    This form is used to display the error records on the output screen
    FORM DISPLAY_ERROR_REPORT .
      IF P_VENMAS = 'X'.
        WRITE:/ TEXT-O05.            " Error List for Vendor Master
      ELSEIF P_VENEXT = 'X'.
        WRITE:/ TEXT-O06.            " Error List for Vendor Master Extended
      ENDIF.
      WRITE:/ SY-ULINE(100).
      FORMAT COLOR 1.
      WRITE:/1   SY-VLINE,
             2   TEXT-H01,              " Vendor Number
             17  SY-VLINE,
             18  TEXT-H02,              " Company Code
             31  SY-VLINE,
             32  TEXT-H03,              " Error Message
             100 SY-VLINE.
      FORMAT COLOR OFF.
      WRITE:/ SY-ULINE(100).
      LOOP AT IT_ERROR INTO WA_IT_ERROR.
        FORMAT COLOR 2.
        WRITE:/1   SY-VLINE,
               2   WA_IT_ERROR-LIFNR,
               17  SY-VLINE,
               18  WA_IT_ERROR-BUKRS,
               31  SY-VLINE,
               32  WA_IT_ERROR-MSG,
               100 SY-VLINE.
        CLEAR : WA_IT_ERROR.
        FORMAT COLOR OFF.
      ENDLOOP.
      WRITE:/ SY-ULINE(100).
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  CALL_TRANSACTION_FK02
    Form used to Call Transaction FK02
    form CALL_TRANSACTION_FK02 .
      DATA : L_OPTION TYPE CTU_PARAMS,
             L_SUBRC TYPE SYSUBRC.
      REFRESH IT_MESSTAB.
      CLEAR IT_MESSTAB.
      L_OPTION-DEFSIZE = 'X'.
      L_OPTION-DISMODE = P_MODE.
      L_OPTION-UPDMODE = 'S'.
      CALL TRANSACTION 'FK02'
           USING IT_BDCDATA
           MESSAGES INTO IT_MESSTAB
           OPTIONS FROM L_OPTION.
      L_SUBRC = SY-SUBRC.
      IF L_SUBRC = 0.
        W_SUCC_REC1 = W_SUCC_REC1 + 1.
        WA_IT_succ_rec1-MSG = Text-017.
        IF P_VENMAS = 'X'.
          WA_IT_succ_rec1-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
          WA_IT_succ_rec1-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
        ELSEIF P_VENEXT = 'X'.
          WA_IT_succ_rec1-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
          WA_IT_succ_rec1-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
        ENDIF.
        APPEND WA_IT_succ_rec1 TO IT_succ_rec1.
      ELSE.
        IF FL_FLAG3 NE 'X'.
          PERFORM OPEN_BDC_SESSION_fk02.
          FL_FLAG3 = 'X'.
        ENDIF.
        PERFORM BDC_INSERT_fk02.
        W_ERR_REC = W_ERR_REC + 1.
        PERFORM ERROR_RECORD_DATA1.
      ENDIF.
    endform.                    " CALL_TRANSACTION_FK02
    *&      Form  OPEN_BDC_SESSION_fk02
    Form used to Open session for FK02
    form OPEN_BDC_SESSION_fk02 .
      DATA : L_USERID TYPE APQ_MAPN,      " Variable to hold user-id
             L_GROUP TYPE APQ_GRPN.       " Variable to hold value
      MOVE P_GROUP1 TO L_GROUP.
      MOVE SY-UNAME TO L_USERID.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          CLIENT              = SY-MANDT
          GROUP               = L_GROUP
          KEEP                = SPACE
          USER                = L_USERID
        EXCEPTIONS
          CLIENT_INVALID      = 1
          DESTINATION_INVALID = 2
          GROUP_INVALID       = 3
          GROUP_IS_LOCKED     = 4
          HOLDDATE_INVALID    = 5
          INTERNAL_ERROR      = 6
          QUEUE_ERROR         = 7
          RUNNING             = 8
          SYSTEM_LOCK_ERROR   = 9
          USER_INVALID        = 10
          OTHERS              = 11.
      IF SY-SUBRC <> 0.
        WRITE:/ TEXT-008.              " Unable to open BDC Session
      ENDIF.
    endform.                    " OPEN_BDC_SESSION_fk02
    *&      Form  BDC_INSERT_fk02
    Form used to insert data into BDC session using FK02
    form BDC_INSERT_fk02 .
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE            = 'FK02'
        TABLES
          DYNPROTAB        = IT_BDCDATA
        EXCEPTIONS
          INTERNAL_ERROR   = 1
          NOT_OPEN         = 2
          QUEUE_ERROR      = 3
          TCODE_INVALID    = 4
          PRINTING_INVALID = 5
          POSTING_INVALID  = 6
          OTHERS           = 7.
      IF SY-SUBRC <> 0.
        WRITE:/ TEXT-009.             " Unable to Insert Data to BDC Session
      ENDIF.
    endform.                    " BDC_INSERT_fk02
    *&      Form  display_changed_report
    Form to display Updated Vendor data
    form display_changed_report .
      IF P_VENMAS = 'X'.
        WRITE:/ TEXT-O10.          " Updated List for Vendor Master
      ELSEIF P_VENEXT = 'X'.
        WRITE:/ TEXT-O11.          " Updated List for Vendor Master Extended
      ENDIF.
      WRITE:/ SY-ULINE(100).
      FORMAT COLOR 1.
      WRITE:/1   SY-VLINE,
             2   TEXT-H01,              " Vendor Number
             17  SY-VLINE,
             18  TEXT-H02,              " Company Code
             31  SY-VLINE,
             32  TEXT-H04,              " Message
             100 SY-VLINE.
      FORMAT COLOR OFF.
      WRITE:/ SY-ULINE(100).
      LOOP AT IT_succ_rec1 INTO WA_IT_succ_rec1.
        FORMAT COLOR 2.
        WRITE:/1   SY-VLINE,
               2   WA_IT_succ_rec1-LIFNR,
               17  SY-VLINE,
               18  WA_IT_succ_rec1-BUKRS,
               31  SY-VLINE,
               32  WA_IT_succ_rec1-MSG,
               100 SY-VLINE.
        CLEAR : WA_IT_succ_rec1.
        FORMAT COLOR OFF.
      ENDLOOP.
      WRITE:/ SY-ULINE(100).
    endform.                    " display_changed_report
    *&      Form  display_nochange_report
    Form to display No Changed data for Vendors
    form display_nochange_report .
      IF P_VENMAS = 'X'.
        WRITE:/ TEXT-O12.       " No Changes List for Vendor Master
      ELSEIF P_VENEXT = 'X'.
        WRITE:/ TEXT-O13.       " No Changes List for Vendor Master Extended
      ENDIF.
      WRITE:/ SY-ULINE(100).
      FORMAT COLOR 1.
      WRITE:/1   SY-VLINE,
             2   TEXT-H01,              " Vendor Number
             17  SY-VLINE,
             18  TEXT-H02,              " Company Code
             31  SY-VLINE,
             32  TEXT-H04,              " Message
             100 SY-VLINE.
      FORMAT COLOR OFF.
      WRITE:/ SY-ULINE(100).
      LOOP AT IT_noupdate INTO WA_IT_noupdate.
        FORMAT COLOR 2.
        WRITE:/1   SY-VLINE,
               2   WA_IT_noupdate-LIFNR,
               17  SY-VLINE,
               18  WA_IT_noupdate-BUKRS,
               31  SY-VLINE,
               32  WA_IT_noupdate-MSG,
               100 SY-VLINE.
        CLEAR : WA_IT_noupdate.
        FORMAT COLOR OFF.
      ENDLOOP.
      WRITE:/ SY-ULINE(100).
    endform.                    " display_nochange_report
    *&      Form  ERROR_RECORD_DATA1
    Form to get Error Message for Changed Vendors
    form ERROR_RECORD_DATA1 .
      DATA : L_LINES TYPE I,
             L_MSG(200) TYPE C.
      DESCRIBE TABLE IT_MESSTAB LINES L_LINES.
      READ TABLE IT_MESSTAB INTO WA_IT_MESSTAB INDEX L_LINES.
      IF SY-SUBRC = 0.
        CLEAR L_MSG.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID        = WA_IT_MESSTAB-MSGID
            LANG      = SY-LANGU
            NO        = WA_IT_MESSTAB-MSGNR
            V1        = WA_IT_MESSTAB-MSGV1
            V2        = WA_IT_MESSTAB-MSGV2
            V3        = WA_IT_MESSTAB-MSGV3
            V4        = WA_IT_MESSTAB-MSGV4
          IMPORTING
            MSG       = L_MSG
          EXCEPTIONS
            NOT_FOUND = 1
            OTHERS    = 2.
        IF SY-SUBRC = 0.
          WA_IT_ERROR_fk02-MSG = L_MSG.
        ENDIF.
        IF P_VENMAS = 'X'.
          WA_IT_ERROR_fk02-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
          WA_IT_ERROR_fk02-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
        ELSEIF P_VENEXT = 'X'.
          WA_IT_ERROR_fk02-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
          WA_IT_ERROR_fk02-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
        ENDIF.
        APPEND WA_IT_ERROR_fk02 TO IT_ERROR_fk02.
        CLEAR WA_IT_ERROR_fk02.
      ENDIF.
    endform.                    " ERROR_RECORD_DATA1
    *&      Form  display_error_report_fk01
    Form to display Error Report for Master Vendors (FK01)
    form display_error_report_fk01 .
      IF P_VENMAS = 'X'.
        WRITE:/ TEXT-O05.     " Error List for Vendor Master (FK01)
      ELSEIF P_VENEXT = 'X'.
        WRITE:/ TEXT-O06.     " Error List for Vendor Master Extended (FK01)
      ENDIF.
      WRITE:/ SY-ULINE(100).
      FORMAT COLOR 1.
      WRITE:/1   SY-VLINE,
             2   TEXT-H01,              " Vendor Number
             17  SY-VLINE,
             18  TEXT-H02,              " Company Code
             31  SY-VLINE,
             32  TEXT-H04,              " Message
             100 SY-VLINE.
      FORMAT COLOR OFF.
      WRITE:/ SY-ULINE(100).
      LOOP AT IT_ERROR_fk01 INTO WA_IT_ERROR_fk01.
        FORMAT COLOR 2.
        WRITE:/1   SY-VLINE,
               2   WA_IT_ERROR_fk01-LIFNR,
               17  SY-VLINE,
               18  WA_IT_ERROR_fk01-BUKRS,
               31  SY-VLINE,
               32  WA_IT_ERROR_fk01-MSG,
               100 SY-VLINE.
        CLEAR : WA_IT_ERROR_fk01.
        FORMAT COLOR OFF.
      ENDLOOP.
      WRITE:/ SY-ULINE(100).
    endform.                    " display_error_report_fk01
    *&      Form  display_error_report_fk02
    Form to display Error Report for changed Vendors (FK02)
    form display_error_report_fk02 .
      IF P_VENMAS = 'X'.
        WRITE:/ TEXT-O14.     " Error List for Vendor Master (FK02)
      ELSEIF P_VENEXT = 'X'.
        WRITE:/ TEXT-O15.     " Error List for Vendor Master Extended (FK02)
      ENDIF.
      WRITE:/ SY-ULINE(100).
      FORMAT COLOR 1.
      WRITE:/1   SY-VLINE,
             2   TEXT-H01,              " Vendor Number

  • Complete step by step procedure to create new material group.

    Hi,
    Please suggest procedure to create new material group in R/3 system and assigning it to G/l account.
    How to reflect it into EBP ssytem.
    Many thanks in advance.

    Hi,
    T. Code: - OMSF
    Path: - SPRO >> Logistics u2013 General >> Material Master >> Settings for Key Fields >> Define Material Groups.
    Select existing material group and click on Copy As button.
    Enter material group code, material group name and long description for material group.
    Then click on save button for save material group.
    Regards,
    Mahesh Wagh

  • How to create new valuation modifier OBYC

    Hi Friends,
    I need to have new  Valuation modifier  in OBYC.
    How to create new valuation modifier,Please help to know the path.
    Thanks in advance for great hlp.
    RAMAN.

    If I understand Your requirement that You need to give the Account Modifier Like GBB ?
    i.e you need to do different Valuation Grouping code.
    then go to
    SPRO > Materials Mangemtn > Account Determination > Account Determination Without Wizard > Group together Valuation Areas.
    Then when you go to OBYC and Choose the Transaction / Event Ket pop up will ask you to enter the Chart of account
    latter
    under Rules
    you will find Account Modifier , Valuation class and Account Posting key as per your selection you can do.

  • Procedure for creating new Org Value

    Hi
    Can any one tell me the procedure for creating new Org Value
    thanks,
    Ssssssss

    Hi Sun...
    Use PFCG_ORGFIELD_CREATE program and refer SAP Note 323817
    Check out this thread....
    Converting Field to Org level
    regards,
    Zaheer

  • Need Help to create new screen for RF Sapconsole

    Hi Guru's
    I'm new on RF (but some years in ABAP) since last week.
    I need help to create new screens for RF (SAPLLMOB).
    Can someone explain me the procedure to create screen (with ABAP code after) or perhaps someone have an exemple (simple or not) ?
    I have to develop 2 new screens with really few time.
    And, another subsidiary question :
    how SAP can transfert information between the flash gun and the screen i have developped.
    Is there some code to add to enable this functionality or it is include in SAPLLMOB on standard fields ????
    It's a new strange world for me today...
    Many thanks to everyone who can explain me
    Alain

    hi,
    I am facing this problem as well. Is there any reference to create the new screen?
    Hope someone can help! Thanks!
    Regards,
    Darren

  • Old user account not accessible - Had to create new user account

    Why was I forced to create a new user account in order to access Apple discussions? The last time I had posted to Apple discussions was 11/06. From the emails notifying me of replies to my post, I can still go to the link where my question and the replies are. Last week I wanted to post another question. Instead I encountered a circular problem. Every time I tried to log in to discussions with my Apple ID and password (the same as my .Mac name and password, which were working fine for accessing .Mac), I was told that there was an error in my password. When I tried again, I was repeatedly re-directed to a "create new user account" web page that listed my .Mac email address as my Apple ID, as it should have. I tried to re-create my old user account with my own [real] name (as before) and was told that name was in use! Of course, it was me! (I had always used by real first name and surname as my name on Apple discussions.) So finally, very frustrated, I created a new name, a nickname, for discussions, and it worked. Now, all my previous posts are gone. It's as if I didn't exist in the Apple world until today, 9/16/07, but I originally had established my user account in 2004. I tried asking about this in a phone call to Apple support, but I was re-directed to the .Mac web site. Then I posted a question at .Mac feedback to no avail. I had a feeling that as soon as I "obeyed" and created a new user account that wouldn't be recognized as myself, my past posts would be sent into oblivion. I don't like losing all my previous posts that were attached to my user account. I have found this problem very frustrating and would really like an explanation.

    Hi decemberbaby,
    Try this procedure.
    Delete all the Apple Cookies in your browser, and empty the Cache.
    Go here Discussions Sign In, and try logging in with your original Apple ID again.
    If that still doesn't work, delete the Cookies again, and go to My Info, and log in with the original Apple ID.
    If you get the error message "Your Apple ID or password was entered incorrectly.", click on "Did you forget your password? Click here for assistance".
    On the page that opens, you can also click on "Forget your Apple ID
    ali b

  • Error while creating new release groups in PO release strategy

    Hi All
    I was creating a release procedure for PO and after completing steps, Create Characteristic and Create class & while creating new release grp with the class created i am not able to save it and the error message is (ME492) is" Only one release class should be used within the release groups for overall release...".
    But i am able to create from an already existing CLASS and able to proceed further.( Note: I am using the training module and in the learning stage.)
    Thanks for your support.
    Illan

    Dear,
    Please follow below mention path.
    *and check any things is missing, If you can go in bellow mention hints you cans create easily purchase release streatgy.*
    *- Follow below mention path.*
    *SPRO -> Material Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders.*
    *Three steps involved in release process of purchase order.*
    **Edit Characteristic     Create characteristic for release purchase order. If you want to release purchase order on purchasing group base. So you can create characteristic for purchasing group. Take reference of CEKKO structure and BKGRP field for purchasing group in additional data of characteristic. E.g :- Purchasing group - BKGRP**
    **Edit Class     After creation of characteristic, create class for release purchase order. In which you can take reference of Class Type: - 032,Status: - Release,Class group: - Release strategy class,And put reference of your characteristic, which are created by you in first step.E.g: - Class - REL_PO**
    *Define Release Procedure of purchase order     In this step four processes involved.o     Release Groupso     Release Codeso     Release indicatoro     Release Strategies*
    Now see each steps of Define release procedure of purchase order in briefly: -
    Release Group     In which you can define release strategy groupExa.: - Release group : - 01,Release object: - 01, Class: - REL_PO.
    Release code     In which you can define release code. Enter value as Release group: - 01,release code: -01 - Purchase Head,Release group: -01, release code: - 02 - Auditor
    Release indicator     In this step you have to define release indicator.Like X - Blocked, I - Under process, S - Release
    *Release Strategy     *This is the final step for release strategy.Assign release code 01, 02.Click on release prerequisites, select 02 - check box and click on continue.Click on release status button, enter release indicator X, I, S and click continueClick on classification button, enter values of purchasing group for which you want to created release strategy
    Than create purchase order for purchasing group, which you assign in classification of release strategy. Enter your values of purchase order and click on check button release strategy executed in your purchase order.
    Regards,
    Mahesh Wagh

  • Error after creating a stored procedure

    hi,
    i m planning to create the below stored procedure and created but i m unable to execute this procedure,
    please provide me the solution.
    SQL> create or replace procedure test is
    2 titl varchar(20);
    3 typ varchar(20);
    4 pric number(10);
    5 nprice number(10);
    6 begin
    7 SELECT
    8 title_id,
    9 type,
    10 price,
    11 CASE type
    12 WHEN 'history'
    13 THEN price + 110
    14 WHEN 'psychology'
    15 THEN price + 120
    16 WHEN 'computer'
    17 THEN price + 140
    18 ELSE price
    19 END
    20 AS "New price" into titl,typ,pric,nprice
    21 FROM book
    22 ORDER BY type ASC, title_id ASC;
    23 dbms_output.put_line(titl || typ || pric || nprice);
    24 end;
    25 /
    Procedure created.
    SQL> set serverout on
    SQL> exec test
    BEGIN test; END;
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYS.TEST", line 8
    ORA-06512: at line 1
    SQL> show error
    No errors.
    thanks...

    Hi,
    Check you SQL query, Its returning mutiple rows which you are storing in variables.
    If your data returns mutiple row then use cursor to iterate through it.
    like
    create or replace procedure test is
    titl varchar(20);
    typ varchar(20);
    pric number(10);
    nprice number(10);
    cursor c is
    SELECT title_id, type, price, CASE type WHEN 'history' THEN price + 110
                                                           WHEN 'psychology' THEN price + 120
                                                           WHEN 'computer'   THEN price + 140
                                                           ELSE price END AS "New price"
    FROM book
    ORDER BY type ASC, title_id ASC;
    begin
    for r in c loop
    dbms_output.put_line(r.titl || r.typ || r.pric || r.nprice);
    end;Twinkle

  • How to create new Partner Numbers for WE20?

    Hello colleagues!
    While creating new Source System for R/3 system in automatic mode providing existing RFC (SM59), system errored with message E0552 "Error during insert in port table".
    I tried creating new Partner Profile "FI5FIN100D" in WE20 (partner type=LS of course) by copying existing "FI2FIN200D" partner profile (LOGICAL SYSTEM also), but I received error:
    ==================
    Enter a permissible partner number
    Message no. E0342
    Diagnosis
    The partner number 'FI5FIN100D' does not exist for the partner type 'LS'.
    Procedure
    Enter a valid partner number and make sure that this partner number exists for the partner type
    ===================
    Where do I create this in BW? I tried WEDI but I received error:
    =========
    Transaction WEDI is an area menu and cannot be executed
    Message no. OZ037
    =========
    I have SAP BW 3.0b, SP 26, Basis/Abap SP 48.
    Can somebody help please?
    Thank you in advance.
    Mario Vallejo.

    Hi Mario,
           In Partner Feild u have give the Logical System Name i.e particular to the client which is already  create in SALE Transaction.It is taken by Basis People i think.I think it is already created .give that Logical sytem name in Partner Number.
    For ex Partner Number: LGS100(This is created in SALE   
                                  Tr and  assign it to 
                                  client i.e like 100 or 200)
           Partner Type  : LS
         In PostProcessing Tab
             Type : 'US' or 'o'(depending on client)
            Agent : Randomly it (Generates)creates Number
            Lang  : EN
    Hope This Help
    Sreeni

  • Creation of a new pricing procedure by copying existing one (for sale order

    Hi,
    Existing pricing procures are here below:
    1000     10     00     1     1     ZBRI01     Pricing Proc_Under Con                            1000     10     00     1     2     ZBRI02     Pricing upgradationFlat                           
    Now I need to create a new pricing procedure for the following combination :
    1000     10                 00                 1                     3                   ZBR103        Pricing_single sale
    Please let me know the steps to follow.
    With regards,
    Parijatha

    Dear JP,
    Based on your last direction,  I created a pricing procedure.  It is hitting the right GL and everything looks ok.  My problem is " ZCAR (car park value which is a  ZFREE item  should get added to the "Net value"  which is not happening.    Control data -reference step overview is herebelow.   From step 50 to 300 all are ticked for Statistics.
    50     0     ZBAV     Base Value for Calc     0     0               0     0     0
    110     0     ZTCO     Apartment Value     0     0               0     0     0
    115     0     ZDSQ     Discount on ApT     0     0               0     0     0
    120     0     ZDVA     Discount on ApT_Lump     0     0               0     0     0
    150     0     ZTGR     Terrace/garden Stat     0     0               0     0     0
    160     0     ZDTG     Discount on Terrace     0     0               0     0     0
    210     0     ZCAR     Car Park (booking)     0     0               0     0     0
    250     0          Total Consideration     110     210               0     0     0
    270     0     ZGOV     Govt Rate_Reg     0     0               0     0     164
    300     0          Upgradation Value - Billing     250     270               0     0     0
    310     0     ZBLD     Building - For Bill     270     0               0     0     164     ZBB
    320     0     ZSDT     Reg and Stamp Duty     0     0               0     0     0     ZSD
    330     0     ZSDA     Stamp duty-Agr-Sell     0     0               0     0     0     ZSA
    340     0     ZECH     Power Consump. Chgs     0     0               0     0     0     ZEC
    350     0     ZLFE     Legal Fees     0     0               0     0     0     ZLF
    360     0     ZPTX     Property Tax     0     0               0     0     0     ZPT
    Can you please help me what should I do to add ZCAR (item category is ZFREE) value to  Net value.
    With regards,
    Parijatha

  • Unable to create new price validity in Scheduling agreement

    Dear Experts
    We are SAP 4.7 version.
    We have 4 companies and 17 plants in same client server.We are facing problem in a particular company having two plants not able to change price in scheduling agreement with validity period.But in other company code allowing to create new price validity period.
    Any configuration missing out please help us to resolve the issue.
    Most urgent
    SS

    Hello Suresh,
    There are two possibilities
    1. Missing authorization :Check if you have the same authorization profile for maintaining data in all company code/plant/purchasing organizaiton.
    2. Release streatagy: Check if you have activated release procedure in such a way that once it is release it will not allow any changes in scheduling agreement.
    Hope this helps.
    Regards
    Arif Mansuri

Maybe you are looking for

  • Synergy 3105 Base reset to default - tech. Expert ...

    Hi, I've had my Synergy 3105 for years and for me (with decent 1100mAh re-chargeable) it has been a great system i want to keep. However Handset 2(HS2) developed a display problem then a catastrophic fault. I managed to get 3 more Synergy 3105 handse

  • Oracle 10gR2 on Solaris 10 - Zoned Machine getting ORA-27102 Errors

    Getting Memory issues in Solaris 10. I have configured the database to have only 2GB of SGA, but still getting ORA-27102 and also when we look at top command it seems all the memory is not available. The machine is divided into two zones, machine has

  • Read all items when when item-level permissions set

    I have a SharePoint 2010 list where the general user population should be able to submit and read only their own items. Item-level permissions set as follows: Read access : Read items that were created by the user Creaed and Edit access : Create item

  • Kodo, JRun, and logging

    Hi, I'm trying to run my Kodo JDO application in a JRun4 J2EE server. I'm having a problem getting logging to work, and I've discovered what's happening. As it happens, JRun is using the commons logging facility itself, and initializes an older versi

  • Motion to Flash to Iweb....

    I'm trying to export a movie out of motion and throw it into flash then to iweb....my goal is to use motion to make flash banners because motion is alot more intuitive than flash...my problem with exporting out of motion is that the files are huge...